[03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:32]accept exits with 9 [03:22:32]New connection [03:22:32]New thread 3067354468 created [03:22:32]Thread 3067211108 joined [03:22:32]Waiting for new connection... [03:22:32] Sock 9.Parse request [03:22:32]Sock 9.Check first char [03:22:32]Sock 9.First char is OK [03:22:32]request: POST /json_proto HTTP/1.0 [03:22:32]Method: POST [03:22:32]URL: /json_proto [03:22:32]Method is POST - this is cgi request [03:22:32]url: /json_proto [03:22:32]query_string will be loaded in cgi processing [03:22:32]execute_cgi json_proto POST (null) [03:22:32]execute_cgi path=json_proto method=POST [03:22:32]POST find Content-Length [03:22:32]Host: 172.17.46.196:8080 [03:22:32]Content-Length: 958 [03:22:32]Content-Type: application/json [03:22:32] [03:22:32]POST finish read [03:22:32]Found Content-Length = 958 [03:22:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190075", "tax_sys" : 0, "items" : [ { "code": "4870001150402", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0442\u0440\u043E\u043F\u0438\u043A", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681086", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u044B\u0440 \u0441 \u0445\u0430\u043B\u0430\u043F\u0435\u043D\u044C\u043E 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:22:32]execute_script... [03:22: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)190075", "tax_sys" : 0, "items" : [ { "code": "4870001150402", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u0442\u0440\u043E\u043F\u0438\u043A", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681086", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u0421\u044B\u0440 \u0441 \u0445\u0430\u043B\u0430\u043F\u0435\u043D\u044C\u043E 55 \u0433\u0440", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:22:32]POST & json_proto [03:22:32]process_json_proto [03:22:32]json parsed OK: [03:22:32]protocol is kg_v1.0 [03:22:32]action value=close_receipt [03:22:32]process_action close_receipt [03:22:32]cmd_close_receipt [03:22:32]MH_GetDate [03:22:32]Write to MH i2c: F0 00 00 A9 04 9C [03:22:32]Write i2c OK [03:22:32]MH_I2C_Read... [03:22:32]Read from MH i2c: F0 [03:22:32]MH_I2C_Read... [03:22:32]Read from MH i2c: F0 09 00 [03:22:32]MH_I2C_Read... [03:22:32]Read from MH i2c: F0 09 00 A9 04 00 78 BA C2 66 C4 85 C2 66 70 [03:22:32]GetLastDocTimeStamp 1724032478 [03:22:32]current date 1724037752 [03:22:32]FM_GetShiftState [03:22:32]SAM_PROTO_GetShiftState [03:22:32]wFMCommunicate request_size=4 [03:22:32]MH_SAM_APDU [03:22:32]CAPDU: 80 13 01 00 [03:22:32]Write to MH i2c: E2 08 00 AA 04 80 13 01 00 00 00 00 00 2B [03:22:32]Write i2c OK [03:22:32]MH_I2C_Read... [03:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:22:32]Read from MH i2c: E2 [03:22:32]MH_I2C_Read... [03:22:32]Read from MH i2c: E2 0E 00 [03:22:32]MH_I2C_Read... [03:22:32]Read from MH i2c: E2 0E 00 AA 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 E5 [03:22:32]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [03:22:32]wFMCommunicate OK [03:22:32]SAM_PROTO_GetShiftState done [03:22:32]FM_GetShiftState done [03:22:32]opened in 1724026361 [03:22:32]opened+sec_in_day 1724112761 [03:22:32]quantity*price = 15000 [03:22:32]sum+1 = 15001 [03:22:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681086 Grizzly волнистые Сыр с халапеньо 55 гр 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.13 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 8 19.08.2024 03:22 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49901 ФПД: 149031155524123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T032232&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49901&fm=149031155524123&tin=02508201610067®Number=0000000000092546&sum=24000 0 [03:22:33]StoreToDocumentArchive [03:22:33]shift 467 fd 49901 [03:22:33]save to /storage/0467/doc_00049901 [03:22:33]save last doc name /storage/0467/doc_00049901 to /storage/kkm_last_doc_name [03:22:33]save OK [03:22:33]Clear old archive folders... [03:22:33]ProcessDocumentItem done err = 0, tmpTLVsize=406 [03:22:33]tlvbuf is 00F68050 [03:22:33]SAM_PROTO_ClearQueue [03:22:33]wFMCommunicate request_size=4 [03:22:33]MH_SAM_APDU [03:22:33]CAPDU: 80 09 00 00 [03:22:33]Write to MH i2c: E2 08 00 B7 04 80 09 00 00 00 00 00 00 2D [03:22:33]Write i2c OK [03:22:33]MH_I2C_Read... [03:22:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:22:33]Read from MH i2c: E2 [03:22:33]MH_I2C_Read... [03:22:33]Read from MH i2c: E2 03 00 [03:22:33]MH_I2C_Read... [03:22:33]Read from MH i2c: E2 03 00 B7 04 00 90 00 2F [03:22:33]RAPDU: 90 00 [03:22:33]wFMCommunicate OK [03:22:33]SAM_PROTO_ClearQueue done [03:22:33]KKMCreateOFDPacket [03:22:33]OFDProtocolAddRootSTLVToBuf [03:22:33]FM_MakeSignedData [03:22:33]FM_MakeSignedData [03:22:33]SAM_PROTO_SignData [03:22:33]wFMCommunicate request_size=4 [03:22:33]MH_SAM_APDU [03:22:33]CAPDU: 80 0D 01 02 [03:22:33]Write to MH i2c: E2 08 00 B8 04 80 0D 01 02 00 00 00 00 35 [03:22:33]Write i2c OK [03:22:33]MH_I2C_Read... [03:22:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:22:33]Read from MH i2c: E2 [03:22:33]MH_I2C_Read... [03:22:33]Read from MH i2c: E2 03 00 [03:22:33]MH_I2C_Read... [03:22:33]Read from MH i2c: E2 03 00 B8 04 00 90 00 30 [03:22:33]RAPDU: 90 00 [03:22:33]wFMCommunicate OK [03:22:33]wFMCommunicate request_size=255 [03:22:33]MH_SAM_APDU [03:22:33]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 34 30 32 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 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 C0 [03:22:33]Write to MH i2c: E2 02 01 B9 04 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 34 30 32 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 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 C0 00 00 0A [03:22:33]Write i2c OK [03:22:33]MH_I2C_Read... [03:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:22:33]Read from MH i2c: E2 [03:22:33]MH_I2C_Read... [03:22:33]Read from MH i2c: E2 03 00 [03:22:33]MH_I2C_Read... [03:22:33]Read from MH i2c: E2 03 00 B9 04 00 90 00 31 [03:22:33]RAPDU: 90 00 [03:22:33]wFMCommunicate OK [03:22:33]wFMCommunicate request_size=165 [03:22:33]MH_SAM_APDU [03:22:33]CAPDU: 80 0D 02 02 A0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 78 BA C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 ED C2 00 00 35 04 06 00 87 8B 05 15 E2 1B [03:22:33]Write to MH i2c: E2 A8 00 BA 04 80 0D 02 02 A0 00 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 78 BA C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 ED C2 00 00 35 04 06 00 87 8B 05 15 E2 1B 00 00 09 [03:22:33]Write i2c OK [03:22:33]MH_I2C_Read... [03:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:22:33]Read from MH i2c: E2 [03:22:33]MH_I2C_Read... [03:22:33]Read from MH i2c: E2 03 00 [03:22:33]MH_I2C_Read... [03:22:33]Read from MH i2c: E2 03 00 BA 04 00 90 00 32 [03:22:33]RAPDU: 90 00 [03:22:33]wFMCommunicate OK [03:22:33]wFMCommunicate request_size=4 [03:22:33]MH_SAM_APDU [03:22:33]CAPDU: 80 0D 03 02 [03:22:33]Write to MH i2c: E2 08 00 BB 04 80 0D 03 02 00 00 00 00 3A [03:22:33]Write i2c OK [03:22:33]MH_I2C_Read... [03:22:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:22:33]Read from MH i2c: E2 [03:22:33]MH_I2C_Read... [03:22:33]Read from MH i2c: E2 0B 00 [03:22:33]MH_I2C_Read... [03:22:33]Read from MH i2c: E2 0B 00 BB 04 00 A4 07 C1 66 49 9D 03 C7 90 00 BD [03:22:33]RAPDU: A4 07 C1 66 49 9D 03 C7 90 00 [03:22:33]wFMCommunicate OK [03:22:33]SAM_PROTO_SignData done [03:22:33]FM_MakeSignedData done [03:22:33]CreateOFDProtocolMessage [03:22:33]wFMCommunicate request_size=4 [03:22:33]MH_SAM_APDU [03:22:33]CAPDU: 80 11 00 00 [03:22:33]Write to MH i2c: E2 08 00 BC 04 80 11 00 00 00 00 00 00 3A [03:22:33]Write i2c OK [03:22:33]MH_I2C_Read... [03:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:22:33]Read from MH i2c: E2 [03:22:33]MH_I2C_Read... [03:22:33]Read from MH i2c: E2 17 00 [03:22:33]MH_I2C_Read... [03:22:33]Read from MH i2c: E2 17 00 BC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 85 [03:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [03:22:33]wFMCommunicate OK [03:22:33]CreateOFDProtocolMessage done [03:22:33]OFDSenderStorePacket 49901 [03:22:33]StoreOFDPacket docnum=49901 [03:22:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 AA 01 00 00 49 73 A2 01 0C 7B 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 34 30 32 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 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 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 78 BA C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 ED C2 00 00 35 04 06 00 87 8B 05 15 E2 1B A4 07 C1 66 49 9D 03 C7 [03:22:33]CheckFolder [03:22:33]dirname=/storage/ofd_packets [03:22:33]CheckFolder done [03:22:33]ProducePacketName [03:22:33]name=ofd_packets/00049901 [03:22:33]NVStorageSaveData ofd_packets/00049901 [03:22:33]File name is /storage/ofd_packets/00049901 [03:22:33]Write 456 bytes [03:22:33]NVStorageSaveData done [03:22:33]OFDSenderStorePacket done [03:22:33]KKMCreateOFDPacket done [03:22:33]NVStorageSaveData kkm_last_timestamp [03:22:33]File name is /storage/kkm_last_timestamp [03:22:33]Write 4 bytes [03:22:33]NVStorageSaveData done [03:22:33]ExternCall_PrintAddStr [03:22:33]wPrintStart [03:22:33]Write to MH i2c: 01 00 00 BD 04 C1 [03:22:33]Write i2c OK [03:22:33]MH_I2C_Read... [03:22:33]Read from MH i2c: 01 [03:22:33]MH_I2C_Read... [03:22:33]Read from MH i2c: 01 07 00 [03:22:33]MH_I2C_Read... [03:22:33]Read from MH i2c: 01 07 00 BD 04 00 00 00 00 00 FF 0F D6 [03:22:34]RasterBufferAndPrint [03:22:34]line Счет N : (3)190075 [03:22:34]line ИНН: 02508201610067 [03:22:34]line Контрольно-Кассовый Чек [03:22:34]line ПРОДАЖА [03:22:34]line Товар: 4870001150402 [03:22:34]line Сок Da-Da 1л тропик [03:22:34]line 1.000 * 150.00 [03:22:34]line = 150.00 [03:22:34]line НДС 12% НСП 1% [03:22:34]line > о реализуемом товаре [03:22:34]line Товар: 4870235681086 [03:22:34]line Grizzly волнистые Сыр с халапеньо 55 гр [03:22:34]line 1.000 * 90.00 [03:22:34]line = 90.00 [03:22:34]line НДС 12% НСП 1% [03:22:34]line > о реализуемом товаре [03:22:34]line ИТОГО: 240.00 [03:22:34]line НСП 1% : 2.13 [03:22:34]line НДС 12% : 25.49 [03:22:34]line Наличными: 240.00 [03:22:34]line Безнал.: 0.00 [03:22:34]line Место: АЗС № 95 "Партнер Нефть" [03:22:34]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [03:22:34]line СНО: Общий режим [03:22:34]line Чек 8 19.08.2024 03:22 [03:22:34]line Смена: 467 ФФД: 1.0 [03:22:34]line ЗНМ: 0300000078 [03:22:34]line РНМ: 0000000000092546 [03:22:34]line Версия ККМ: 001 [03:22:34]line ФМ: 0000000000871800 [03:22:34]line ФД: 49901 [03:22:34]line ФПД: 149031155524123 [03:22:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T032232&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49901&fm=149031155524123&tin=02508201610067®Number=0000000000092546&sum=24000 [03:22:34]line 0 [03:22:34]OFD Sender: Processing packet 49901 [packets to send 21, broken 20] [03:22:34]ProducePacketName [03:22:34]name=ofd_packets/00049901 [03:22:34]OFD Sender: To server: pG, [03:22:34]CommunicateWithHost lk.salyk.kg:30040 [03:22:34]ConnectInit lk.salyk.kg [03:22:34]written 0, free lines is 4095 [03:22:34]Connected sock=7 [03:22:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 AA 01 00 00 49 73 A2 01 0C 7B 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 34 30 32 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 38 36 06 04 3F 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 A1 D1 8B D1 80 20 D1 81 20 D1 85 D0 B0 D0 BB D0 B0 D0 BF D0 B5 D0 BD D1 8C D0 BE 20 35 35 20 D0 B3 D1 80 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 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 78 BA C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 ED C2 00 00 35 04 06 00 87 8B 05 15 E2 1B A4 07 C1 66 49 9D 03 C7 [03:22:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 54 B9 47 00 F2 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 ED C2 00 00 F4 03 04 00 E7 64 C2 66 B6 04 01 00 00 F4 E6 BB DD 07 22 E8 08 [03:22:34]CommunicateWithHost err = 0 [03:22:34]CheckOFDResponse [03:22:34]1017 (14) - 77093643461234 [03:22:34]1041 (16) - 0000000000871800 [03:22:34]1040 (4) - 49901 [03:22:34]1012 (4) - 18.08.2024 21:17 [03:22:34]1206 (1) - 0 [03:22:34]OFD Sender: Remove packet 49901 [03:22:34]ProducePacketName [03:22:34]name=ofd_packets/00049901 [03:22:34]NVStorageDeleteData [03:22:34]Write to MH i2c: 01 00 00 EC 04 F0 [03:22:34]Write i2c OK [03:22:34]MH_I2C_Read... [03:22:34]Read from MH i2c: 01 [03:22:34]MH_I2C_Read... [03:22:34]Read from MH i2c: 01 07 00 [03:22:34]MH_I2C_Read... [03:22:34]Read from MH i2c: 01 07 00 EC 04 00 00 00 00 00 65 0C 68 [03:22:34]RasterBufferAndPrint [03:22:34]line [03:22:34]line [03:22:34]line [03:22:34]line [03:22:34]line [03:22:34]written 0, free lines is 3182 [03:22:34]MH_Cut [03:22:34]Write to MH i2c: D1 01 00 F3 04 01 C9 [03:22:34]Write i2c OK [03:22:34]MH_I2C_Read... [03:22:34]Read from MH i2c: D1 [03:22:34]MH_I2C_Read... [03:22:34]Read from MH i2c: D1 01 00 [03:22:34]MH_I2C_Read... [03:22:34]Read from MH i2c: D1 01 00 F3 04 00 C8 [03:22:34]Write to MH i2c: 01 00 00 F4 04 F8 [03:22:34]Write i2c OK [03:22:34]MH_I2C_Read... [03:22:35]OFD Sender: No OFD packet to send [03:22:35]*** Cut start [03:22:35]*** Purtial cut [03:22:35]*** CUTSNS_PIN = 0 [03:22:35]*** Stage 1: CUTSNS_PIN = 1 [03:22:37]Read from MH i2c: 01 [03:22:37]MH_I2C_Read... [03:22:37]*** Stop cut motor [03:22:37]*** Cut end [03:22:37]Read from MH i2c: 01 07 00 [03:22:37]MH_I2C_Read... [03:22:37]Read from MH i2c: 01 07 00 F4 04 00 00 00 00 00 FF 0F 0D [03:22:37]process_action close_receipt done [03:22:37]requested_data is exist [03:22:37]produce_requested_data [03:22:37]requested_item fm.sn is exist - process it [03:22:37]wFMCommunicate request_size=4 [03:22:37]MH_SAM_APDU [03:22:37]CAPDU: 80 11 00 00 [03:22:37]Write to MH i2c: E2 08 00 F5 04 80 11 00 00 00 00 00 00 73 [03:22:37]Write i2c OK [03:22:37]MH_I2C_Read... [03:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:22:37]Read from MH i2c: E2 [03:22:37]MH_I2C_Read... [03:22:37]Read from MH i2c: E2 17 00 [03:22:37]MH_I2C_Read... [03:22:37]Read from MH i2c: E2 17 00 F5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BE [03:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [03:22:37]wFMCommunicate OK [03:22:37]requested_item fd.num is exist - process it [03:22:37]SAM_PROTO_GetFieldsCounters [03:22:37]wFMCommunicate request_size=4 [03:22:37]MH_SAM_APDU [03:22:37]CAPDU: 80 13 00 00 [03:22:37]Write to MH i2c: E2 08 00 F6 04 80 13 00 00 00 00 00 00 76 [03:22:37]Write i2c OK [03:22:37]MH_I2C_Read... [03:22:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:22:37]Read from MH i2c: E2 [03:22:37]MH_I2C_Read... [03:22:37]Read from MH i2c: E2 62 00 [03:22:37]MH_I2C_Read... [03:22:37]Read from MH i2c: E2 62 00 F6 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 ED C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [03:22:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 ED C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:22:37]wFMCommunicate OK [03:22:37]SAM_PROTO_GetFieldsCounters done [03:22:37]requested_item shift.num is exist - process it [03:22:37]requested_item shift.opened is exist - process it [03:22:37]req_shift_opened [03:22:37]FM_GetShiftState [03:22:37]SAM_PROTO_GetShiftState [03:22:37]wFMCommunicate request_size=4 [03:22:37]MH_SAM_APDU [03:22:37]CAPDU: 80 13 01 00 [03:22:37]Write to MH i2c: E2 08 00 F7 04 80 13 01 00 00 00 00 00 78 [03:22:37]Write i2c OK [03:22:37]MH_I2C_Read... [03:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:22:37]Read from MH i2c: E2 [03:22:37]MH_I2C_Read... [03:22:37]Read from MH i2c: E2 0E 00 [03:22:37]MH_I2C_Read... [03:22:37]Read from MH i2c: E2 0E 00 F7 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 32 [03:22:37]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [03:22:37]wFMCommunicate OK [03:22:37]SAM_PROTO_GetShiftState done [03:22:37]FM_GetShiftState done [03:22:37]req_shift_opened done [03:22:37]requested_item shift.open_date is exist - process it [03:22:37]req_shift_open_date [03:22:37]req_shift_open_date done [03:22:37]produce_requested_data done [03:22:37]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49901,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [03:22:37]process_action_free close_receipt [03:22:37]json_value_free [03:22:37]json_value_free done [03:22:37]process_json_proto returns [03:22:37]Send response to host [03:22:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49901,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [03:22:37]free response buf [03:22:37]execute_script done [03:22:37]execute_script returns [03:22:37]free content buf [03:22:37]Sock 9.Close socket [03:22:37]Sock 9.Thread stoped [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send [03:25:05]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]OFD Sender: No OFD packet to send [03:25:20]OFD Sender: No OFD packet to send [03:25:25]OFD Sender: No OFD packet to send [03:25:30]OFD Sender: No OFD packet to send [03:25:35]OFD Sender: No OFD packet to send [03:25:40]OFD Sender: No OFD packet to send [03:25:45]OFD Sender: No OFD packet to send [03:25:50]OFD Sender: No OFD packet to send [03:25:55]OFD Sender: No OFD packet to send [03:26:00]OFD Sender: No OFD packet to send [03:26:05]OFD Sender: No OFD packet to send [03:26:10]OFD Sender: No OFD packet to send [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:25]OFD Sender: No OFD packet to send [03:26:30]OFD Sender: No OFD packet to send [03:26:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:27:00]OFD Sender: No OFD packet to send [03:27:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:15]OFD Sender: No OFD packet to send [03:30:20]OFD Sender: No OFD packet to send [03:30:25]OFD Sender: No OFD packet to send [03:30:30]OFD Sender: No OFD packet to send [03:30:35]OFD Sender: No OFD packet to send [03:30:40]OFD Sender: No OFD packet to send [03:30:45]OFD Sender: No OFD packet to send [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:20]OFD Sender: No OFD packet to send [03:31:25]OFD Sender: No OFD packet to send [03:31:30]OFD Sender: No OFD packet to send [03:31:35]OFD Sender: No OFD packet to send [03:31:40]OFD Sender: No OFD packet to send [03:31:45]OFD Sender: No OFD packet to send [03:31:50]OFD Sender: No OFD packet to send [03:31:55]OFD Sender: No OFD packet to send [03:32:00]OFD Sender: No OFD packet to send [03:32:05]OFD Sender: No OFD packet to send [03:32:10]OFD Sender: No OFD packet to send [03:32:15]OFD Sender: No OFD packet to send [03:32:20]OFD Sender: No OFD packet to send [03:32:25]OFD Sender: No OFD packet to send [03:32:30]OFD Sender: No OFD packet to send [03:32:35]OFD Sender: No OFD packet to send [03:32:40]OFD Sender: No OFD packet to send [03:32:45]OFD Sender: No OFD packet to send [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]OFD Sender: No OFD packet to send [03:47:11]OFD Sender: No OFD packet to send [03:47:16]OFD Sender: No OFD packet to send [03:47:21]OFD Sender: No OFD packet to send [03:47:26]OFD Sender: No OFD packet to send [03:47:31]OFD Sender: No OFD packet to send [03:47:36]OFD Sender: No OFD packet to send [03:47:41]OFD Sender: No OFD packet to send [03:47:46]OFD Sender: No OFD packet to send [03:47:51]OFD Sender: No OFD packet to send [03:47:56]OFD Sender: No OFD packet to send [03:48:01]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]OFD Sender: No OFD packet to send [03:48:26]OFD Sender: No OFD packet to send [03:48:31]OFD Sender: No OFD packet to send [03:48:36]OFD Sender: No OFD packet to send [03:48:41]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:22]OFD Sender: No OFD packet to send [04:09:27]OFD Sender: No OFD packet to send [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:42]OFD Sender: No OFD packet to send [04:09:47]OFD Sender: No OFD packet to send [04:09:52]OFD Sender: No OFD packet to send [04:09:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:16]accept exits with 10 [04:29:16]New connection [04:29:16]New thread 3067211108 created [04:29:16]Thread 3067354468 joined [04:29:16]Waiting for new connection... [04:29:16] Sock 10.Parse request [04:29:16]Sock 10.Check first char [04:29:16]Sock 10.First char is OK [04:29:16]request: POST /json_proto HTTP/1.0 [04:29:16]Method: POST [04:29:16]URL: /json_proto [04:29:16]Method is POST - this is cgi request [04:29:16]url: /json_proto [04:29:16]query_string will be loaded in cgi processing [04:29:16]execute_cgi json_proto POST (null) [04:29:16]execute_cgi path=json_proto method=POST [04:29:16]POST find Content-Length [04:29:16]Host: 172.17.46.196:8080 [04:29:16]Content-Length: 644 [04:29:16]Content-Type: application/json [04:29:16] [04:29:16]POST finish read [04:29:16]Found Content-Length = 644 [04:29:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190076", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 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" ] } } [04:29:16]execute_script... [04:29:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190076", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 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" ] } } [04:29:16]POST & json_proto [04:29:16]process_json_proto [04:29:16]json parsed OK: [04:29:16]protocol is kg_v1.0 [04:29:16]action value=close_receipt [04:29:16]process_action close_receipt [04:29:16]cmd_close_receipt [04:29:16]MH_GetDate [04:29:16]Write to MH i2c: F0 00 00 F8 04 EB [04:29:16]Write i2c OK [04:29:16]MH_I2C_Read... [04:29:16]Read from MH i2c: F0 [04:29:16]MH_I2C_Read... [04:29:16]Read from MH i2c: F0 09 00 [04:29:16]MH_I2C_Read... [04:29:16]Read from MH i2c: F0 09 00 F8 04 00 1D CA C2 66 C4 85 C2 66 74 [04:29:16]GetLastDocTimeStamp 1724037752 [04:29:16]current date 1724041757 [04:29:16]FM_GetShiftState [04:29:16]SAM_PROTO_GetShiftState [04:29:16]wFMCommunicate request_size=4 [04:29:16]MH_SAM_APDU [04:29:16]CAPDU: 80 13 01 00 [04:29:16]Write to MH i2c: E2 08 00 F9 04 80 13 01 00 00 00 00 00 7A [04:29:16]Write i2c OK [04:29:16]MH_I2C_Read... [04:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:29:16]Read from MH i2c: E2 [04:29:16]MH_I2C_Read... [04:29:16]Read from MH i2c: E2 0E 00 [04:29:16]MH_I2C_Read... [04:29:16]Read from MH i2c: E2 0E 00 F9 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 34 [04:29:16]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [04:29:16]wFMCommunicate OK [04:29:16]SAM_PROTO_GetShiftState done [04:29:16]FM_GetShiftState done [04:29:16]opened in 1724026361 [04:29:16]opened+sec_in_day 1724112761 [04:29:16]quantity*price = 3500 [04:29:16]sum+1 = 3501 [04:29:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 9 19.08.2024 04:29 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49902 ФПД: 16127194763571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T042917&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49902&fm=16127194763571&tin=02508201610067®Number=0000000000092546&sum=3500 0 [04:29:17]StoreToDocumentArchive [04:29:17]shift 467 fd 49902 [04:29:17]save to /storage/0467/doc_00049902 [04:29:17]save last doc name /storage/0467/doc_00049902 to /storage/kkm_last_doc_name [04:29:17]save OK [04:29:17]Clear old archive folders... [04:29:17]ProcessDocumentItem done err = 0, tmpTLVsize=275 [04:29:17]tlvbuf is 00F628F0 [04:29:17]SAM_PROTO_ClearQueue [04:29:17]wFMCommunicate request_size=4 [04:29:17]MH_SAM_APDU [04:29:17]CAPDU: 80 09 00 00 [04:29:17]Write to MH i2c: E2 08 00 06 05 80 09 00 00 00 00 00 00 7D [04:29:17]Write i2c OK [04:29:17]MH_I2C_Read... [04:29:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:29:17]Read from MH i2c: E2 [04:29:17]MH_I2C_Read... [04:29:17]Read from MH i2c: E2 03 00 [04:29:17]MH_I2C_Read... [04:29:17]Read from MH i2c: E2 03 00 06 05 00 90 00 7F [04:29:17]RAPDU: 90 00 [04:29:17]wFMCommunicate OK [04:29:17]SAM_PROTO_ClearQueue done [04:29:17]KKMCreateOFDPacket [04:29:17]OFDProtocolAddRootSTLVToBuf [04:29:17]FM_MakeSignedData [04:29:17]FM_MakeSignedData [04:29:17]SAM_PROTO_SignData [04:29:17]wFMCommunicate request_size=4 [04:29:17]MH_SAM_APDU [04:29:17]CAPDU: 80 0D 01 02 [04:29:17]Write to MH i2c: E2 08 00 07 05 80 0D 01 02 00 00 00 00 85 [04:29:17]Write i2c OK [04:29:17]MH_I2C_Read... [04:29:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:29:17]Read from MH i2c: E2 [04:29:17]MH_I2C_Read... [04:29:17]Read from MH i2c: E2 03 00 [04:29:17]MH_I2C_Read... [04:29:17]Read from MH i2c: E2 03 00 07 05 00 90 00 80 [04:29:17]RAPDU: 90 00 [04:29:17]wFMCommunicate OK [04:29:17]wFMCommunicate request_size=255 [04:29:17]MH_SAM_APDU [04:29:17]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 1D CA C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [04:29:17]Write to MH i2c: E2 02 01 08 05 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 1D CA C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 5A [04:29:17]Write i2c OK [04:29:17]MH_I2C_Read... [04:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:29:18]Read from MH i2c: E2 [04:29:18]MH_I2C_Read... [04:29:18]Read from MH i2c: E2 03 00 [04:29:18]MH_I2C_Read... [04:29:18]Read from MH i2c: E2 03 00 08 05 00 90 00 81 [04:29:18]RAPDU: 90 00 [04:29:18]wFMCommunicate OK [04:29:18]wFMCommunicate request_size=34 [04:29:18]MH_SAM_APDU [04:29:18]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EE C2 00 00 35 04 06 00 0E AA E7 B7 11 33 [04:29:18]Write to MH i2c: E2 25 00 09 05 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EE C2 00 00 35 04 06 00 0E AA E7 B7 11 33 00 00 8B [04:29:18]Write i2c OK [04:29:18]MH_I2C_Read... [04:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:29:18]Read from MH i2c: E2 [04:29:18]MH_I2C_Read... [04:29:18]Read from MH i2c: E2 03 00 [04:29:18]MH_I2C_Read... [04:29:18]Read from MH i2c: E2 03 00 09 05 00 90 00 82 [04:29:18]RAPDU: 90 00 [04:29:18]wFMCommunicate OK [04:29:18]wFMCommunicate request_size=4 [04:29:18]MH_SAM_APDU [04:29:18]CAPDU: 80 0D 03 02 [04:29:18]Write to MH i2c: E2 08 00 0A 05 80 0D 03 02 00 00 00 00 8A [04:29:18]Write i2c OK [04:29:18]MH_I2C_Read... [04:29:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:29:18]Read from MH i2c: E2 [04:29:18]MH_I2C_Read... [04:29:18]Read from MH i2c: E2 0B 00 [04:29:18]MH_I2C_Read... [04:29:18]Read from MH i2c: E2 0B 00 0A 05 00 0E 68 9C 5C EC B2 76 47 90 00 54 [04:29:18]RAPDU: 0E 68 9C 5C EC B2 76 47 90 00 [04:29:18]wFMCommunicate OK [04:29:18]SAM_PROTO_SignData done [04:29:18]FM_MakeSignedData done [04:29:18]CreateOFDProtocolMessage [04:29:18]wFMCommunicate request_size=4 [04:29:18]MH_SAM_APDU [04:29:18]CAPDU: 80 11 00 00 [04:29:18]Write to MH i2c: E2 08 00 0B 05 80 11 00 00 00 00 00 00 8A [04:29:18]Write i2c OK [04:29:18]MH_I2C_Read... [04:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:29:18]Read from MH i2c: E2 [04:29:18]MH_I2C_Read... [04:29:18]Read from MH i2c: E2 17 00 [04:29:18]MH_I2C_Read... [04:29:18]Read from MH i2c: E2 17 00 0B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D5 [04:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [04:29:18]wFMCommunicate OK [04:29:18]CreateOFDProtocolMessage done [04:29:18]OFDSenderStorePacket 49902 [04:29:18]StoreOFDPacket docnum=49902 [04:29:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 68 C4 1F 01 35 C3 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 1D CA C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EE C2 00 00 35 04 06 00 0E AA E7 B7 11 33 0E 68 9C 5C EC B2 76 47 [04:29:18]CheckFolder [04:29:18]dirname=/storage/ofd_packets [04:29:18]CheckFolder done [04:29:18]ProducePacketName [04:29:18]name=ofd_packets/00049902 [04:29:18]NVStorageSaveData ofd_packets/00049902 [04:29:18]File name is /storage/ofd_packets/00049902 [04:29:18]Write 325 bytes [04:29:18]NVStorageSaveData done [04:29:18]OFDSenderStorePacket done [04:29:18]KKMCreateOFDPacket done [04:29:18]NVStorageSaveData kkm_last_timestamp [04:29:18]File name is /storage/kkm_last_timestamp [04:29:18]Write 4 bytes [04:29:18]NVStorageSaveData done [04:29:18]ExternCall_PrintAddStr [04:29:18]wPrintStart [04:29:18]Write to MH i2c: 01 00 00 0C 05 11 [04:29:18]Write i2c OK [04:29:18]MH_I2C_Read... [04:29:18]Read from MH i2c: 01 [04:29:18]MH_I2C_Read... [04:29:18]Read from MH i2c: 01 07 00 [04:29:18]MH_I2C_Read... [04:29:18]Read from MH i2c: 01 07 00 0C 05 00 00 00 00 00 FF 0F 26 [04:29:18]RasterBufferAndPrint [04:29:18]line Счет N : (3)190076 [04:29:18]line ИНН: 02508201610067 [04:29:18]line Контрольно-Кассовый Чек [04:29:18]line ПРОДАЖА [04:29:18]line Товар: 4700000310326 [04:29:18]line Вода Адыгене 1л б/г [04:29:18]line 1.000 * 35.00 [04:29:18]line = 35.00 [04:29:18]line НДС 12% НСП 1% [04:29:18]line > о реализуемом товаре [04:29:18]line ИТОГО: 35.00 [04:29:18]line НСП 1% : 0.31 [04:29:18]line НДС 12% : 3.72 [04:29:18]line Наличными: 35.00 [04:29:18]line Безнал.: 0.00 [04:29:18]line Место: АЗС № 95 "Партнер Нефть" [04:29:18]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [04:29:18]line СНО: Общий режим [04:29:18]line Чек 9 19.08.2024 04:29 [04:29:18]line Смена: 467 ФФД: 1.0 [04:29:18]line ЗНМ: 0300000078 [04:29:18]line РНМ: 0000000000092546 [04:29:18]line Версия ККМ: 001 [04:29:18]line ФМ: 0000000000871800 [04:29:18]line ФД: 49902 [04:29:18]line ФПД: 16127194763571 [04:29:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T042917&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49902&fm=16127194763571&tin=02508201610067®Number=0000000000092546&sum=3500 [04:29:18]OFD Sender: Processing packet 49902 [packets to send 21, broken 20] [04:29:18]ProducePacketName [04:29:18]name=ofd_packets/00049902 [04:29:18]OFD Sender: To server: pG, [04:29:18]CommunicateWithHost lk.salyk.kg:30040 [04:29:18]ConnectInit lk.salyk.kg [04:29:18]line 0 [04:29:18]written 0, free lines is 4095 [04:29:18]Connected sock=9 [04:29:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 68 C4 1F 01 35 C3 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 1D CA C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EE C2 00 00 35 04 06 00 0E AA E7 B7 11 33 0E 68 9C 5C EC B2 76 47 [04:29:19]Write to MH i2c: 01 00 00 34 05 39 [04:29:19]Write i2c OK [04:29:19]MH_I2C_Read... [04:29:19]Read from MH i2c: 01 [04:29:19]MH_I2C_Read... [04:29:19]Read from MH i2c: 01 07 00 [04:29:19]MH_I2C_Read... [04:29:19]Read from MH i2c: 01 07 00 34 05 00 00 00 00 00 D9 0C 25 [04:29:19]RasterBufferAndPrint [04:29:19]line [04:29:19]line [04:29:19]line [04:29:19]line [04:29:19]line [04:29:19]written 0, free lines is 3295 [04:29:19]MH_Cut [04:29:19]Write to MH i2c: D1 01 00 3B 05 01 12 [04:29:19]Write i2c OK [04:29:19]MH_I2C_Read... [04:29:19]Read from MH i2c: D1 [04:29:19]MH_I2C_Read... [04:29:19]Read from MH i2c: D1 01 00 [04:29:19]MH_I2C_Read... [04:29:19]Read from MH i2c: D1 01 00 3B 05 00 11 [04:29:19]Write to MH i2c: 01 00 00 3C 05 41 [04:29:19]Write i2c OK [04:29:19]MH_I2C_Read... [04:29:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 96 84 47 00 0F B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EE C2 00 00 F4 03 04 00 8C 74 C2 66 B6 04 01 00 00 C1 19 B9 91 46 D5 02 99 [04:29:19]CommunicateWithHost err = 0 [04:29:19]CheckOFDResponse [04:29:19]1017 (14) - 77093643461234 [04:29:19]1041 (16) - 0000000000871800 [04:29:19]1040 (4) - 49902 [04:29:19]1012 (4) - 18.08.2024 22:24 [04:29:19]1206 (1) - 0 [04:29:19]OFD Sender: Remove packet 49902 [04:29:19]ProducePacketName [04:29:19]name=ofd_packets/00049902 [04:29:19]NVStorageDeleteData [04:29:19]OFD Sender: No OFD packet to send [04:29:19]*** Cut start [04:29:19]*** Purtial cut [04:29:19]*** Stage 1: CUTSNS_PIN = 1 [04:29:20]Read from MH i2c: 01 [04:29:20]MH_I2C_Read... [04:29:20]*** Stop cut motor [04:29:20]*** Cut end [04:29:20]Read from MH i2c: 01 07 00 [04:29:20]MH_I2C_Read... [04:29:20]Read from MH i2c: 01 07 00 3C 05 00 00 00 00 00 FF 0F 56 [04:29:20]process_action close_receipt done [04:29:20]requested_data is exist [04:29:20]produce_requested_data [04:29:20]requested_item fm.sn is exist - process it [04:29:20]wFMCommunicate request_size=4 [04:29:20]MH_SAM_APDU [04:29:20]CAPDU: 80 11 00 00 [04:29:20]Write to MH i2c: E2 08 00 3D 05 80 11 00 00 00 00 00 00 BC [04:29:20]Write i2c OK [04:29:20]MH_I2C_Read... [04:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:29:20]Read from MH i2c: E2 [04:29:20]MH_I2C_Read... [04:29:20]Read from MH i2c: E2 17 00 [04:29:20]MH_I2C_Read... [04:29:20]Read from MH i2c: E2 17 00 3D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 07 [04:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [04:29:20]wFMCommunicate OK [04:29:20]requested_item fd.num is exist - process it [04:29:20]SAM_PROTO_GetFieldsCounters [04:29:20]wFMCommunicate request_size=4 [04:29:20]MH_SAM_APDU [04:29:20]CAPDU: 80 13 00 00 [04:29:20]Write to MH i2c: E2 08 00 3E 05 80 13 00 00 00 00 00 00 BF [04:29:20]Write i2c OK [04:29:20]MH_I2C_Read... [04:29:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:29:20]Read from MH i2c: E2 [04:29:20]MH_I2C_Read... [04:29:20]Read from MH i2c: E2 62 00 [04:29:20]MH_I2C_Read... [04:29:20]Read from MH i2c: E2 62 00 3E 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EE C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [04:29:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EE C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:29:20]wFMCommunicate OK [04:29:20]SAM_PROTO_GetFieldsCounters done [04:29:20]requested_item shift.num is exist - process it [04:29:20]requested_item shift.opened is exist - process it [04:29:20]req_shift_opened [04:29:20]FM_GetShiftState [04:29:20]SAM_PROTO_GetShiftState [04:29:20]wFMCommunicate request_size=4 [04:29:20]MH_SAM_APDU [04:29:20]CAPDU: 80 13 01 00 [04:29:20]Write to MH i2c: E2 08 00 3F 05 80 13 01 00 00 00 00 00 C1 [04:29:20]Write i2c OK [04:29:20]MH_I2C_Read... [04:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:29:20]Read from MH i2c: E2 [04:29:20]MH_I2C_Read... [04:29:20]Read from MH i2c: E2 0E 00 [04:29:20]MH_I2C_Read... [04:29:20]Read from MH i2c: E2 0E 00 3F 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 7B [04:29:20]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [04:29:20]wFMCommunicate OK [04:29:20]SAM_PROTO_GetShiftState done [04:29:20]FM_GetShiftState done [04:29:20]req_shift_opened done [04:29:20]requested_item shift.open_date is exist - process it [04:29:20]req_shift_open_date [04:29:20]req_shift_open_date done [04:29:20]produce_requested_data done [04:29:20]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49902,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [04:29:20]process_action_free close_receipt [04:29:20]json_value_free [04:29:20]json_value_free done [04:29:20]process_json_proto returns [04:29:20]Send response to host [04:29:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49902,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [04:29:20]free response buf [04:29:20]execute_script done [04:29:20]execute_script returns [04:29:20]free content buf [04:29:20]Sock 10.Close socket [04:29:20]Sock 10.Thread stoped [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:47]accept exits with 7 [05:16:47]New connection [05:16:47]New thread 3067354468 created [05:16:47]Thread 3067211108 joined [05:16:47]Waiting for new connection... [05:16:47] Sock 7.Parse request [05:16:47]Sock 7.Check first char [05:16:47]Sock 7.First char is OK [05:16:47]request: POST /json_proto HTTP/1.0 [05:16:47]Method: POST [05:16:47]URL: /json_proto [05:16:47]Method is POST - this is cgi request [05:16:47]url: /json_proto [05:16:47]query_string will be loaded in cgi processing [05:16:47]execute_cgi json_proto POST (null) [05:16:47]execute_cgi path=json_proto method=POST [05:16:47]POST find Content-Length [05:16:47]Host: 172.17.46.196:8080 [05:16:47]Content-Length: 852 [05:16:47]Content-Type: application/json [05:16:47] [05:16:47]POST finish read [05:16:47]Found Content-Length = 852 [05:16:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190077", "tax_sys" : 0, "items" : [ { "code": "8590042701239", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D\u044B\u0435 VOK", "price" : 36.00, "quantity" : 1.000, "sum" : 36.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 81.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:16:47]execute_script... [05:16: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)190077", "tax_sys" : 0, "items" : [ { "code": "8590042701239", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D\u044B\u0435 VOK", "price" : 36.00, "quantity" : 1.000, "sum" : 36.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 81.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:16:47]POST & json_proto [05:16:47]process_json_proto [05:16:47]json parsed OK: [05:16:47]protocol is kg_v1.0 [05:16:47]action value=close_receipt [05:16:47]process_action close_receipt [05:16:47]cmd_close_receipt [05:16:47]MH_GetDate [05:16:47]Write to MH i2c: F0 00 00 40 05 34 [05:16:47]Write i2c OK [05:16:47]MH_I2C_Read... [05:16:47]Read from MH i2c: F0 [05:16:47]MH_I2C_Read... [05:16:47]Read from MH i2c: F0 09 00 [05:16:47]MH_I2C_Read... [05:16:47]Read from MH i2c: F0 09 00 40 05 00 40 D5 C2 66 C4 85 C2 66 EB [05:16:47]GetLastDocTimeStamp 1724041757 [05:16:47]current date 1724044608 [05:16:47]FM_GetShiftState [05:16:47]SAM_PROTO_GetShiftState [05:16:47]wFMCommunicate request_size=4 [05:16:47]MH_SAM_APDU [05:16:47]CAPDU: 80 13 01 00 [05:16:47]Write to MH i2c: E2 08 00 41 05 80 13 01 00 00 00 00 00 C3 [05:16:47]Write i2c OK [05:16:47]MH_I2C_Read... [05:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:16:47]Read from MH i2c: E2 [05:16:47]MH_I2C_Read... [05:16:47]Read from MH i2c: E2 0E 00 [05:16:47]MH_I2C_Read... [05:16:47]Read from MH i2c: E2 0E 00 41 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 7D [05:16:47]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [05:16:47]wFMCommunicate OK [05:16:47]SAM_PROTO_GetShiftState done [05:16:47]FM_GetShiftState done [05:16:47]opened in 1724026361 [05:16:47]opened+sec_in_day 1724112761 [05:16:47]quantity*price = 3600 [05:16:47]sum+1 = 3601 [05:16:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 50173617 Жев Orbit Eucalyptus 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 81.00 НСП 1% : 0.72 НДС 12% : 8.60 Наличными: 81.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 10 19.08.2024 05:16 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49903 ФПД: 260806911943029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T051648&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49903&fm=260806911943029&tin=02508201610067®Number=0000000000092546&sum=8100 0 [05:16:48]StoreToDocumentArchive [05:16:48]shift 467 fd 49903 [05:16:48]save to /storage/0467/doc_00049903 [05:16:48]save last doc name /storage/0467/doc_00049903 to /storage/kkm_last_doc_name [05:16:48]save OK [05:16:48]Clear old archive folders... [05:16:48]ProcessDocumentItem done err = 0, tmpTLVsize=367 [05:16:48]tlvbuf is 01052A10 [05:16:48]SAM_PROTO_ClearQueue [05:16:48]wFMCommunicate request_size=4 [05:16:48]MH_SAM_APDU [05:16:48]CAPDU: 80 09 00 00 [05:16:48]Write to MH i2c: E2 08 00 4E 05 80 09 00 00 00 00 00 00 C5 [05:16:48]Write i2c OK [05:16:48]MH_I2C_Read... [05:16:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:16:48]Read from MH i2c: E2 [05:16:48]MH_I2C_Read... [05:16:48]Read from MH i2c: E2 03 00 [05:16:48]MH_I2C_Read... [05:16:48]Read from MH i2c: E2 03 00 4E 05 00 90 00 C7 [05:16:48]RAPDU: 90 00 [05:16:48]wFMCommunicate OK [05:16:48]SAM_PROTO_ClearQueue done [05:16:48]KKMCreateOFDPacket [05:16:48]OFDProtocolAddRootSTLVToBuf [05:16:48]FM_MakeSignedData [05:16:48]FM_MakeSignedData [05:16:48]SAM_PROTO_SignData [05:16:48]wFMCommunicate request_size=4 [05:16:48]MH_SAM_APDU [05:16:48]CAPDU: 80 0D 01 02 [05:16:48]Write to MH i2c: E2 08 00 4F 05 80 0D 01 02 00 00 00 00 CD [05:16:48]Write i2c OK [05:16:48]MH_I2C_Read... [05:16:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:16:48]Read from MH i2c: E2 [05:16:48]MH_I2C_Read... [05:16:48]Read from MH i2c: E2 03 00 [05:16:48]MH_I2C_Read... [05:16:48]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [05:16:48]RAPDU: 90 00 [05:16:48]wFMCommunicate OK [05:16:48]wFMCommunicate request_size=255 [05:16:48]MH_SAM_APDU [05:16:48]CAPDU: 80 0D 02 02 FA 03 00 6F 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 [05:16:48]Write to MH i2c: E2 02 01 50 05 80 0D 02 02 FA 00 03 00 6F 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 00 00 14 [05:16:48]Write i2c OK [05:16:48]MH_I2C_Read... [05:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:16:49]Read from MH i2c: E2 [05:16:49]MH_I2C_Read... [05:16:49]Read from MH i2c: E2 03 00 [05:16:49]MH_I2C_Read... [05:16:49]Read from MH i2c: E2 03 00 50 05 00 90 00 C9 [05:16:49]RAPDU: 90 00 [05:16:49]wFMCommunicate OK [05:16:49]wFMCommunicate request_size=126 [05:16:49]MH_SAM_APDU [05:16:49]CAPDU: 80 0D 02 02 79 06 00 5C 03 00 00 00 00 07 04 06 00 A4 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 0A 00 00 00 F4 03 04 00 40 D5 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EF C2 00 00 35 04 06 00 ED 33 D7 57 61 75 [05:16:49]Write to MH i2c: E2 81 00 51 05 80 0D 02 02 79 00 06 00 5C 03 00 00 00 00 07 04 06 00 A4 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 0A 00 00 00 F4 03 04 00 40 D5 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EF C2 00 00 35 04 06 00 ED 33 D7 57 61 75 00 00 0D [05:16:49]Write i2c OK [05:16:49]MH_I2C_Read... [05:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:16:49]Read from MH i2c: E2 [05:16:49]MH_I2C_Read... [05:16:49]Read from MH i2c: E2 03 00 [05:16:49]MH_I2C_Read... [05:16:49]Read from MH i2c: E2 03 00 51 05 00 90 00 CA [05:16:49]RAPDU: 90 00 [05:16:49]wFMCommunicate OK [05:16:49]wFMCommunicate request_size=4 [05:16:49]MH_SAM_APDU [05:16:49]CAPDU: 80 0D 03 02 [05:16:49]Write to MH i2c: E2 08 00 52 05 80 0D 03 02 00 00 00 00 D2 [05:16:49]Write i2c OK [05:16:49]MH_I2C_Read... [05:16:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:16:49]Read from MH i2c: E2 [05:16:49]MH_I2C_Read... [05:16:49]Read from MH i2c: E2 0B 00 [05:16:49]MH_I2C_Read... [05:16:49]Read from MH i2c: E2 0B 00 52 05 00 8C 51 D1 F0 E6 03 96 78 90 00 68 [05:16:49]RAPDU: 8C 51 D1 F0 E6 03 96 78 90 00 [05:16:49]wFMCommunicate OK [05:16:49]SAM_PROTO_SignData done [05:16:49]FM_MakeSignedData done [05:16:49]CreateOFDProtocolMessage [05:16:49]wFMCommunicate request_size=4 [05:16:49]MH_SAM_APDU [05:16:49]CAPDU: 80 11 00 00 [05:16:49]Write to MH i2c: E2 08 00 53 05 80 11 00 00 00 00 00 00 D2 [05:16:49]Write i2c OK [05:16:49]MH_I2C_Read... [05:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:16:49]Read from MH i2c: E2 [05:16:49]MH_I2C_Read... [05:16:49]Read from MH i2c: E2 17 00 [05:16:49]MH_I2C_Read... [05:16:49]Read from MH i2c: E2 17 00 53 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1D [05:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [05:16:49]wFMCommunicate OK [05:16:49]CreateOFDProtocolMessage done [05:16:49]OFDSenderStorePacket 49903 [05:16:49]StoreOFDPacket docnum=49903 [05:16:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 83 01 00 00 84 BA 7B 01 38 8D 5A 03 01 00 03 00 6F 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 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 0A 00 00 00 F4 03 04 00 40 D5 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EF C2 00 00 35 04 06 00 ED 33 D7 57 61 75 8C 51 D1 F0 E6 03 96 78 [05:16:49]CheckFolder [05:16:49]dirname=/storage/ofd_packets [05:16:49]CheckFolder done [05:16:49]ProducePacketName [05:16:49]name=ofd_packets/00049903 [05:16:49]NVStorageSaveData ofd_packets/00049903 [05:16:49]File name is /storage/ofd_packets/00049903 [05:16:49]Write 417 bytes [05:16:49]NVStorageSaveData done [05:16:49]OFDSenderStorePacket done [05:16:49]KKMCreateOFDPacket done [05:16:49]NVStorageSaveData kkm_last_timestamp [05:16:49]File name is /storage/kkm_last_timestamp [05:16:49]Write 4 bytes [05:16:49]NVStorageSaveData done [05:16:49]ExternCall_PrintAddStr [05:16:49]wPrintStart [05:16:49]Write to MH i2c: 01 00 00 54 05 59 [05:16:49]Write i2c OK [05:16:49]MH_I2C_Read... [05:16:49]Read from MH i2c: 01 [05:16:49]MH_I2C_Read... [05:16:49]Read from MH i2c: 01 07 00 [05:16:49]MH_I2C_Read... [05:16:49]Read from MH i2c: 01 07 00 54 05 00 00 00 00 00 FF 0F 6E [05:16:49]RasterBufferAndPrint [05:16:49]line Счет N : (3)190077 [05:16:49]line ИНН: 02508201610067 [05:16:49]line Контрольно-Кассовый Чек [05:16:49]line ПРОДАЖА [05:16:49]line Товар: 8590042701239 [05:16:49]line Салфетки влажные VOK [05:16:49]line 1.000 * 36.00 [05:16:49]line = 36.00 [05:16:49]line НДС 12% НСП 1% [05:16:49]line > о реализуемом товаре [05:16:49]line Товар: 50173617 [05:16:49]line Жев Orbit Eucalyptus [05:16:49]line 1.000 * 45.00 [05:16:49]line = 45.00 [05:16:49]line НДС 12% НСП 1% [05:16:49]line > о реализуемом товаре [05:16:49]line ИТОГО: 81.00 [05:16:49]line НСП 1% : 0.72 [05:16:49]line НДС 12% : 8.60 [05:16:49]line Наличными: 81.00 [05:16:49]line Безнал.: 0.00 [05:16:49]line Место: АЗС № 95 "Партнер Нефть" [05:16:49]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [05:16:49]line СНО: Общий режим [05:16:49]line Чек 10 19.08.2024 05:16 [05:16:49]line Смена: 467 ФФД: 1.0 [05:16:49]line ЗНМ: 0300000078 [05:16:49]line РНМ: 0000000000092546 [05:16:49]line Версия ККМ: 001 [05:16:49]line ФМ: 0000000000871800 [05:16:49]line ФД: 49903 [05:16:49]line ФПД: 260806911943029 [05:16:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T051648&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49903&fm=260806911943029&tin=02508201610067®Number=0000000000092546&sum=8100 [05:16:49]line 0 [05:16:49]OFD Sender: Processing packet 49903 [packets to send 21, broken 20] [05:16:49]ProducePacketName [05:16:49]name=ofd_packets/00049903 [05:16:49]OFD Sender: To server: pG, [05:16:49]CommunicateWithHost lk.salyk.kg:30040 [05:16:49]ConnectInit lk.salyk.kg [05:16:49]written 0, free lines is 4095 [05:16:49]Connected sock=10 [05:16:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 83 01 00 00 84 BA 7B 01 38 8D 5A 03 01 00 03 00 6F 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 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 0A 00 00 00 F4 03 04 00 40 D5 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EF C2 00 00 35 04 06 00 ED 33 D7 57 61 75 8C 51 D1 F0 E6 03 96 78 [05:16:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 90 A5 47 00 7F D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EF C2 00 00 F4 03 04 00 AF 7F C2 66 B6 04 01 00 00 4E 40 0A 71 C6 C6 A7 66 [05:16:50]CommunicateWithHost err = 0 [05:16:50]CheckOFDResponse [05:16:50]1017 (14) - 77093643461234 [05:16:50]1041 (16) - 0000000000871800 [05:16:50]1040 (4) - 49903 [05:16:50]1012 (4) - 18.08.2024 23:11 [05:16:50]1206 (1) - 0 [05:16:50]OFD Sender: Remove packet 49903 [05:16:50]ProducePacketName [05:16:50]name=ofd_packets/00049903 [05:16:50]NVStorageDeleteData [05:16:50]Write to MH i2c: 01 00 00 82 05 87 [05:16:50]Write i2c OK [05:16:50]MH_I2C_Read... [05:16:50]Read from MH i2c: 01 [05:16:50]MH_I2C_Read... [05:16:50]Read from MH i2c: 01 07 00 [05:16:50]MH_I2C_Read... [05:16:50]Read from MH i2c: 01 07 00 82 05 00 00 00 00 00 98 0C 32 [05:16:50]RasterBufferAndPrint [05:16:50]line [05:16:50]line [05:16:50]line [05:16:50]line [05:16:50]line [05:16:50]written 0, free lines is 3229 [05:16:50]MH_Cut [05:16:50]Write to MH i2c: D1 01 00 89 05 01 60 [05:16:50]Write i2c OK [05:16:50]MH_I2C_Read... [05:16:50]Read from MH i2c: D1 [05:16:50]MH_I2C_Read... [05:16:50]Read from MH i2c: D1 01 00 [05:16:50]MH_I2C_Read... [05:16:50]Read from MH i2c: D1 01 00 89 05 00 5F [05:16:50]Write to MH i2c: 01 00 00 8A 05 8F [05:16:50]Write i2c OK [05:16:50]MH_I2C_Read... [05:16:50]OFD Sender: No OFD packet to send [05:16:51]*** Cut start [05:16:51]*** Purtial cut [05:16:51]*** CUTSNS_PIN = 0 [05:16:51]*** Stage 1: CUTSNS_PIN = 1 [05:16:53]Read from MH i2c: 01 [05:16:53]MH_I2C_Read... [05:16:53]*** Stop cut motor [05:16:53]*** Cut end [05:16:53]Read from MH i2c: 01 07 00 [05:16:53]MH_I2C_Read... [05:16:53]Read from MH i2c: 01 07 00 8A 05 00 00 00 00 00 FF 0F A4 [05:16:53]process_action close_receipt done [05:16:53]requested_data is exist [05:16:53]produce_requested_data [05:16:53]requested_item fm.sn is exist - process it [05:16:53]wFMCommunicate request_size=4 [05:16:53]MH_SAM_APDU [05:16:53]CAPDU: 80 11 00 00 [05:16:53]Write to MH i2c: E2 08 00 8B 05 80 11 00 00 00 00 00 00 0A [05:16:53]Write i2c OK [05:16:53]MH_I2C_Read... [05:16:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:16:53]Read from MH i2c: E2 [05:16:53]MH_I2C_Read... [05:16:53]Read from MH i2c: E2 17 00 [05:16:53]MH_I2C_Read... [05:16:53]Read from MH i2c: E2 17 00 8B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 55 [05:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [05:16:53]wFMCommunicate OK [05:16:53]requested_item fd.num is exist - process it [05:16:53]SAM_PROTO_GetFieldsCounters [05:16:53]wFMCommunicate request_size=4 [05:16:53]MH_SAM_APDU [05:16:53]CAPDU: 80 13 00 00 [05:16:53]Write to MH i2c: E2 08 00 8C 05 80 13 00 00 00 00 00 00 0D [05:16:53]Write i2c OK [05:16:53]MH_I2C_Read... [05:16:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:16:53]Read from MH i2c: E2 [05:16:53]MH_I2C_Read... [05:16:53]Read from MH i2c: E2 62 00 [05:16:53]MH_I2C_Read... [05:16:53]Read from MH i2c: E2 62 00 8C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EF C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [05:16:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EF C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:16:53]wFMCommunicate OK [05:16:53]SAM_PROTO_GetFieldsCounters done [05:16:53]requested_item shift.num is exist - process it [05:16:53]requested_item shift.opened is exist - process it [05:16:53]req_shift_opened [05:16:53]FM_GetShiftState [05:16:53]SAM_PROTO_GetShiftState [05:16:53]wFMCommunicate request_size=4 [05:16:53]MH_SAM_APDU [05:16:53]CAPDU: 80 13 01 00 [05:16:53]Write to MH i2c: E2 08 00 8D 05 80 13 01 00 00 00 00 00 0F [05:16:53]Write i2c OK [05:16:53]MH_I2C_Read... [05:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:16:53]Read from MH i2c: E2 [05:16:53]MH_I2C_Read... [05:16:53]Read from MH i2c: E2 0E 00 [05:16:53]MH_I2C_Read... [05:16:53]Read from MH i2c: E2 0E 00 8D 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 C9 [05:16:53]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [05:16:53]wFMCommunicate OK [05:16:53]SAM_PROTO_GetShiftState done [05:16:53]FM_GetShiftState done [05:16:53]req_shift_opened done [05:16:53]requested_item shift.open_date is exist - process it [05:16:53]req_shift_open_date [05:16:53]req_shift_open_date done [05:16:53]produce_requested_data done [05:16:53]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49903,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [05:16:53]process_action_free close_receipt [05:16:53]json_value_free [05:16:53]json_value_free done [05:16:53]process_json_proto returns [05:16:53]Send response to host [05:16:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49903,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [05:16:53]free response buf [05:16:53]execute_script done [05:16:53]execute_script returns [05:16:53]free content buf [05:16:53]Sock 7.Close socket [05:16:53]Sock 7.Thread stoped [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:56]OFD Sender: No OFD packet to send [05:38:01]OFD Sender: No OFD packet to send [05:38:06]OFD Sender: No OFD packet to send [05:38:11]OFD Sender: No OFD packet to send [05:38:16]OFD Sender: No OFD packet to send [05:38:21]OFD Sender: No OFD packet to send [05:38:26]OFD Sender: No OFD packet to send [05:38:31]OFD Sender: No OFD packet to send [05:38:36]OFD Sender: No OFD packet to send [05:38:41]OFD Sender: No OFD packet to send [05:38:46]OFD Sender: No OFD packet to send [05:38:51]OFD Sender: No OFD packet to send [05:38:56]OFD Sender: No OFD packet to send [05:39:01]OFD Sender: No OFD packet to send [05:39:06]OFD Sender: No OFD packet to send [05:39:11]OFD Sender: No OFD packet to send [05:39:16]OFD Sender: No OFD packet to send [05:39:21]OFD Sender: No OFD packet to send [05:39:26]OFD Sender: No OFD packet to send [05:39:31]OFD Sender: No OFD packet to send [05:39:36]OFD Sender: No OFD packet to send [05:39:41]OFD Sender: No OFD packet to send [05:39:46]OFD Sender: No OFD packet to send [05:39:51]OFD Sender: No OFD packet to send [05:39:56]OFD Sender: No OFD packet to send [05:40:01]OFD Sender: No OFD packet to send [05:40:06]OFD Sender: No OFD packet to send [05:40:11]OFD Sender: No OFD packet to send [05:40:16]OFD Sender: No OFD packet to send [05:40:21]OFD Sender: No OFD packet to send [05:40:26]OFD Sender: No OFD packet to send [05:40:31]OFD Sender: No OFD packet to send [05:40:36]OFD Sender: No OFD packet to send [05:40:41]OFD Sender: No OFD packet to send [05:40:46]OFD Sender: No OFD packet to send [05:40:51]OFD Sender: No OFD packet to send [05:40:56]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]int [06:08:33]Write to MH i2c: 01 00 00 8E 05 93 [06:08:33]*** FLAG_PRN_KEY set [06:08:33]Write i2c OK [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: 01 [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: 01 07 00 [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: 01 07 00 8E 05 00 08 00 00 00 FF 0F B0 [06:08:33]state=0 [06:08:33]Key pressed [06:08:33]Feed [06:08:33]Write to MH i2c: D8 00 00 8F 05 6B [06:08:33]Write i2c OK [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: D8 [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: D8 01 00 [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: D8 01 00 8F 05 00 6C [06:08:33]int [06:08:33]Write to MH i2c: 01 00 00 90 05 95 [06:08:33]Write i2c OK [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: 01 [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: 01 07 00 [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: 01 07 00 90 05 00 48 00 00 00 3C 00 20 [06:08:33]state=2 [06:08:33]Key pressed [06:08:33]OFD Sender: No OFD packet to send [06:08:33]int [06:08:33]Write to MH i2c: 01 00 00 91 05 96 [06:08:33]*** FLAG_PRN_KEY reset [06:08:33]Write i2c OK [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: 01 [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: 01 07 00 [06:08:33]MH_I2C_Read... [06:08:33]Read from MH i2c: 01 07 00 91 05 00 00 00 00 00 F6 0F A2 [06:08:33]state=2 [06:08:33]Stop feed [06:08:35]int [06:08:35]Write to MH i2c: 01 00 00 92 05 97 [06:08:35]*** FLAG_PRN_PAP1 set [06:08:35]Write i2c OK [06:08:35]MH_I2C_Read... [06:08:35]Read from MH i2c: 01 [06:08:35]MH_I2C_Read... [06:08:35]Read from MH i2c: 01 07 00 [06:08:35]MH_I2C_Read... [06:08:35]Read from MH i2c: 01 07 00 92 05 00 01 00 00 00 FF 0F AD [06:08:35]state=0 [06:08:35]No paper [06:08:35]int [06:08:35]Write to MH i2c: 01 00 00 93 05 98 [06:08:35]*** FLAG_PRN_PAP2 set [06:08:35]Write i2c OK [06:08:35]MH_I2C_Read... [06:08:35]Read from MH i2c: 01 [06:08:35]MH_I2C_Read... [06:08:35]Read from MH i2c: 01 07 00 [06:08:35]MH_I2C_Read... [06:08:35]Read from MH i2c: 01 07 00 93 05 00 03 00 00 00 FF 0F B0 [06:08:35]state=0 [06:08:35]No paper [06:08:35]Cover opened [06:08:38]OFD Sender: No OFD packet to send [06:08:40]Write to MH i2c: 01 00 00 94 05 99 [06:08:40]Write i2c OK [06:08:40]MH_I2C_Read... [06:08:40]Read from MH i2c: 01 [06:08:40]MH_I2C_Read... [06:08:40]Read from MH i2c: 01 07 00 [06:08:40]MH_I2C_Read... [06:08:40]Read from MH i2c: 01 07 00 94 05 00 03 00 00 00 FF 0F B1 [06:08:40]state=3 [06:08:40]No paper [06:08:40]Cover opened [06:08:43]OFD Sender: No OFD packet to send [06:08:45]Write to MH i2c: 01 00 00 95 05 9A [06:08:45]Write i2c OK [06:08:45]MH_I2C_Read... [06:08:45]Read from MH i2c: 01 [06:08:45]MH_I2C_Read... [06:08:45]Read from MH i2c: 01 07 00 [06:08:45]MH_I2C_Read... [06:08:45]Read from MH i2c: 01 07 00 95 05 00 03 00 00 00 FF 0F B2 [06:08:45]state=3 [06:08:45]No paper [06:08:45]Cover opened [06:08:48]OFD Sender: No OFD packet to send [06:08:50]Write to MH i2c: 01 00 00 96 05 9B [06:08:50]Write i2c OK [06:08:50]MH_I2C_Read... [06:08:50]Read from MH i2c: 01 [06:08:50]MH_I2C_Read... [06:08:50]Read from MH i2c: 01 07 00 [06:08:50]MH_I2C_Read... [06:08:50]Read from MH i2c: 01 07 00 96 05 00 03 00 00 00 FF 0F B3 [06:08:50]state=3 [06:08:50]No paper [06:08:50]Cover opened [06:08:53]OFD Sender: No OFD packet to send [06:08:55]Write to MH i2c: 01 00 00 97 05 9C [06:08:55]Write i2c OK [06:08:55]MH_I2C_Read... [06:08:55]Read from MH i2c: 01 [06:08:55]MH_I2C_Read... [06:08:55]Read from MH i2c: 01 07 00 [06:08:55]MH_I2C_Read... [06:08:55]Read from MH i2c: 01 07 00 97 05 00 03 00 00 00 FF 0F B4 [06:08:55]state=3 [06:08:55]No paper [06:08:55]Cover opened [06:08:58]OFD Sender: No OFD packet to send [06:09:00]Write to MH i2c: 01 00 00 98 05 9D [06:09:00]Write i2c OK [06:09:00]MH_I2C_Read... [06:09:00]Read from MH i2c: 01 [06:09:00]MH_I2C_Read... [06:09:00]Read from MH i2c: 01 07 00 [06:09:00]MH_I2C_Read... [06:09:00]Read from MH i2c: 01 07 00 98 05 00 03 00 00 00 FF 0F B5 [06:09:00]state=3 [06:09:00]No paper [06:09:00]Cover opened [06:09:03]OFD Sender: No OFD packet to send [06:09:05]Write to MH i2c: 01 00 00 99 05 9E [06:09:05]Write i2c OK [06:09:05]MH_I2C_Read... [06:09:05]Read from MH i2c: 01 [06:09:05]MH_I2C_Read... [06:09:05]Read from MH i2c: 01 07 00 [06:09:05]MH_I2C_Read... [06:09:05]Read from MH i2c: 01 07 00 99 05 00 03 00 00 00 FF 0F B6 [06:09:05]state=3 [06:09:05]No paper [06:09:05]Cover opened [06:09:08]OFD Sender: No OFD packet to send [06:09:10]Write to MH i2c: 01 00 00 9A 05 9F [06:09:10]Write i2c OK [06:09:10]MH_I2C_Read... [06:09:10]Read from MH i2c: 01 [06:09:10]MH_I2C_Read... [06:09:10]Read from MH i2c: 01 07 00 [06:09:10]MH_I2C_Read... [06:09:10]Read from MH i2c: 01 07 00 9A 05 00 03 00 00 00 FF 0F B7 [06:09:10]state=3 [06:09:10]No paper [06:09:10]Cover opened [06:09:10]int [06:09:10]Write to MH i2c: 01 00 00 9B 05 A0 [06:09:10]*** FLAG_PRN_PAP1 reset [06:09:10]*** FLAG_PRN_PAP2 reset [06:09:10]Write i2c OK [06:09:10]MH_I2C_Read... [06:09:10]Read from MH i2c: 01 [06:09:10]MH_I2C_Read... [06:09:10]Read from MH i2c: 01 07 00 [06:09:10]MH_I2C_Read... [06:09:10]Read from MH i2c: 01 07 00 9B 05 00 00 00 00 00 FF 0F B5 [06:09:10]state=3 [06:09:10]Cover closed [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:26]accept exits with 9 [06:13:26]New connection [06:13:26]New thread 3067211108 created [06:13:26]Thread 3067354468 joined [06:13:26]Waiting for new connection... [06:13:26] Sock 9.Parse request [06:13:26]Sock 9.Check first char [06:13:26]Sock 9.First char is OK [06:13:26]request: POST /json_proto HTTP/1.0 [06:13:26]Method: POST [06:13:26]URL: /json_proto [06:13:26]Method is POST - this is cgi request [06:13:26]url: /json_proto [06:13:26]query_string will be loaded in cgi processing [06:13:26]execute_cgi json_proto POST (null) [06:13:26]execute_cgi path=json_proto method=POST [06:13:26]POST find Content-Length [06:13:26]Host: 172.17.46.196:8080 [06:13:26]Content-Length: 619 [06:13:26]Content-Type: application/json [06:13:26] [06:13:26]POST finish read [06:13:26]Found Content-Length = 619 [06:13:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190078", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:13:26]execute_script... [06:13: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)190078", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:13:26]POST & json_proto [06:13:26]process_json_proto [06:13:26]json parsed OK: [06:13:26]protocol is kg_v1.0 [06:13:26]action value=close_receipt [06:13:26]process_action close_receipt [06:13:26]cmd_close_receipt [06:13:26]MH_GetDate [06:13:26]Write to MH i2c: F0 00 00 9C 05 90 [06:13:26]Write i2c OK [06:13:26]MH_I2C_Read... [06:13:26]Read from MH i2c: F0 [06:13:26]MH_I2C_Read... [06:13:26]Read from MH i2c: F0 09 00 [06:13:26]MH_I2C_Read... [06:13:26]Read from MH i2c: F0 09 00 9C 05 00 87 E2 C2 66 C4 85 C2 66 9B [06:13:26]GetLastDocTimeStamp 1724044608 [06:13:26]current date 1724048007 [06:13:26]FM_GetShiftState [06:13:26]SAM_PROTO_GetShiftState [06:13:26]wFMCommunicate request_size=4 [06:13:26]MH_SAM_APDU [06:13:26]CAPDU: 80 13 01 00 [06:13:26]Write to MH i2c: E2 08 00 9D 05 80 13 01 00 00 00 00 00 1F [06:13:26]Write i2c OK [06:13:26]MH_I2C_Read... [06:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:13:26]Read from MH i2c: E2 [06:13:26]MH_I2C_Read... [06:13:26]Read from MH i2c: E2 0E 00 [06:13:26]MH_I2C_Read... [06:13:26]Read from MH i2c: E2 0E 00 9D 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 D9 [06:13:26]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [06:13:26]wFMCommunicate OK [06:13:26]SAM_PROTO_GetShiftState done [06:13:26]FM_GetShiftState done [06:13:26]opened in 1724026361 [06:13:26]opened+sec_in_day 1724112761 [06:13:26]quantity*price = 14000 [06:13:26]sum+1 = 14001 [06:13:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 11 19.08.2024 06:13 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49904 ФПД: 263794315621399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T061327&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49904&fm=263794315621399&tin=02508201610067®Number=0000000000092546&sum=14000 0 [06:13:27]StoreToDocumentArchive [06:13:27]shift 467 fd 49904 [06:13:27]save to /storage/0467/doc_00049904 [06:13:27]save last doc name /storage/0467/doc_00049904 to /storage/kkm_last_doc_name [06:13:27]save OK [06:13:27]Clear old archive folders... [06:13:27]ProcessDocumentItem done err = 0, tmpTLVsize=271 [06:13:27]tlvbuf is 00F60580 [06:13:27]SAM_PROTO_ClearQueue [06:13:27]wFMCommunicate request_size=4 [06:13:27]MH_SAM_APDU [06:13:27]CAPDU: 80 09 00 00 [06:13:27]Write to MH i2c: E2 08 00 AA 05 80 09 00 00 00 00 00 00 21 [06:13:27]Write i2c OK [06:13:27]MH_I2C_Read... [06:13:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:13:27]Read from MH i2c: E2 [06:13:27]MH_I2C_Read... [06:13:27]Read from MH i2c: E2 03 00 [06:13:27]MH_I2C_Read... [06:13:27]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [06:13:27]RAPDU: 90 00 [06:13:27]wFMCommunicate OK [06:13:27]SAM_PROTO_ClearQueue done [06:13:27]KKMCreateOFDPacket [06:13:27]OFDProtocolAddRootSTLVToBuf [06:13:27]FM_MakeSignedData [06:13:27]FM_MakeSignedData [06:13:27]SAM_PROTO_SignData [06:13:27]wFMCommunicate request_size=4 [06:13:27]MH_SAM_APDU [06:13:27]CAPDU: 80 0D 01 02 [06:13:27]Write to MH i2c: E2 08 00 AB 05 80 0D 01 02 00 00 00 00 29 [06:13:27]Write i2c OK [06:13:27]MH_I2C_Read... [06:13:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:13:27]Read from MH i2c: E2 [06:13:27]MH_I2C_Read... [06:13:27]Read from MH i2c: E2 03 00 [06:13:27]MH_I2C_Read... [06:13:27]Read from MH i2c: E2 03 00 AB 05 00 90 00 24 [06:13:27]RAPDU: 90 00 [06:13:27]wFMCommunicate OK [06:13:27]wFMCommunicate request_size=255 [06:13:27]MH_SAM_APDU [06:13:27]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 87 E2 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [06:13:27]Write to MH i2c: E2 02 01 AC 05 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 87 E2 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 1E [06:13:27]Write i2c OK [06:13:27]MH_I2C_Read... [06:13:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:13:27]Read from MH i2c: E2 [06:13:27]MH_I2C_Read... [06:13:27]Read from MH i2c: E2 03 00 [06:13:27]MH_I2C_Read... [06:13:27]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [06:13:27]RAPDU: 90 00 [06:13:27]wFMCommunicate OK [06:13:27]wFMCommunicate request_size=30 [06:13:27]MH_SAM_APDU [06:13:27]CAPDU: 80 0D 02 02 19 30 38 37 31 38 30 30 10 04 04 00 F0 C2 00 00 35 04 06 00 EF EB 66 79 F4 17 [06:13:27]Write to MH i2c: E2 21 00 AD 05 80 0D 02 02 19 00 30 38 37 31 38 30 30 10 04 04 00 F0 C2 00 00 35 04 06 00 EF EB 66 79 F4 17 00 00 93 [06:13:27]Write i2c OK [06:13:27]MH_I2C_Read... [06:13:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:13:28]Read from MH i2c: E2 [06:13:28]MH_I2C_Read... [06:13:28]Read from MH i2c: E2 03 00 [06:13:28]MH_I2C_Read... [06:13:28]Read from MH i2c: E2 03 00 AD 05 00 90 00 26 [06:13:28]RAPDU: 90 00 [06:13:28]wFMCommunicate OK [06:13:28]wFMCommunicate request_size=4 [06:13:28]MH_SAM_APDU [06:13:28]CAPDU: 80 0D 03 02 [06:13:28]Write to MH i2c: E2 08 00 AE 05 80 0D 03 02 00 00 00 00 2E [06:13:28]Write i2c OK [06:13:28]MH_I2C_Read... [06:13:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:13:28]Read from MH i2c: E2 [06:13:28]MH_I2C_Read... [06:13:28]Read from MH i2c: E2 0B 00 [06:13:28]MH_I2C_Read... [06:13:28]Read from MH i2c: E2 0B 00 AE 05 00 84 55 5F 6B FF 14 1B E9 90 00 E9 [06:13:28]RAPDU: 84 55 5F 6B FF 14 1B E9 90 00 [06:13:28]wFMCommunicate OK [06:13:28]SAM_PROTO_SignData done [06:13:28]FM_MakeSignedData done [06:13:28]CreateOFDProtocolMessage [06:13:28]wFMCommunicate request_size=4 [06:13:28]MH_SAM_APDU [06:13:28]CAPDU: 80 11 00 00 [06:13:28]Write to MH i2c: E2 08 00 AF 05 80 11 00 00 00 00 00 00 2E [06:13:28]Write i2c OK [06:13:28]MH_I2C_Read... [06:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:13:28]Read from MH i2c: E2 [06:13:28]MH_I2C_Read... [06:13:28]Read from MH i2c: E2 17 00 [06:13:28]MH_I2C_Read... [06:13:28]Read from MH i2c: E2 17 00 AF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 79 [06:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [06:13:28]wFMCommunicate OK [06:13:28]CreateOFDProtocolMessage done [06:13:28]OFDSenderStorePacket 49904 [06:13:28]StoreOFDPacket docnum=49904 [06:13:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 60 7A 1B 01 DA E5 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 87 E2 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F0 C2 00 00 35 04 06 00 EF EB 66 79 F4 17 84 55 5F 6B FF 14 1B E9 [06:13:28]CheckFolder [06:13:28]dirname=/storage/ofd_packets [06:13:28]CheckFolder done [06:13:28]ProducePacketName [06:13:28]name=ofd_packets/00049904 [06:13:28]NVStorageSaveData ofd_packets/00049904 [06:13:28]File name is /storage/ofd_packets/00049904 [06:13:28]Write 321 bytes [06:13:28]NVStorageSaveData done [06:13:28]OFDSenderStorePacket done [06:13:28]KKMCreateOFDPacket done [06:13:28]NVStorageSaveData kkm_last_timestamp [06:13:28]File name is /storage/kkm_last_timestamp [06:13:28]Write 4 bytes [06:13:28]NVStorageSaveData done [06:13:28]ExternCall_PrintAddStr [06:13:28]wPrintStart [06:13:28]Write to MH i2c: 01 00 00 B0 05 B5 [06:13:28]Write i2c OK [06:13:28]MH_I2C_Read... [06:13:28]Read from MH i2c: 01 [06:13:28]MH_I2C_Read... [06:13:28]Read from MH i2c: 01 07 00 [06:13:28]MH_I2C_Read... [06:13:28]Read from MH i2c: 01 07 00 B0 05 00 00 00 00 00 FF 0F CA [06:13:28]RasterBufferAndPrint [06:13:28]line Счет N : (3)190078 [06:13:28]line ИНН: 02508201610067 [06:13:28]line Контрольно-Кассовый Чек [06:13:28]line ПРОДАЖА [06:13:28]line Товар: 47802995 [06:13:28]line Сигареты Winston XS Silver [06:13:28]line 1.000 * 140.00 [06:13:28]line = 140.00 [06:13:28]line НДС 12% НСП 1% [06:13:28]line > о реализуемом товаре [06:13:28]line ИТОГО: 140.00 [06:13:28]line НСП 1% : 1.24 [06:13:28]line НДС 12% : 14.87 [06:13:28]line Наличными: 140.00 [06:13:28]line Безнал.: 0.00 [06:13:28]line Место: АЗС № 95 "Партнер Нефть" [06:13:28]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [06:13:28]line СНО: Общий режим [06:13:28]line Чек 11 19.08.2024 06:13 [06:13:28]line Смена: 467 ФФД: 1.0 [06:13:28]line ЗНМ: 0300000078 [06:13:28]line РНМ: 0000000000092546 [06:13:28]line Версия ККМ: 001 [06:13:28]line ФМ: 0000000000871800 [06:13:28]line ФД: 49904 [06:13:28]line ФПД: 263794315621399 [06:13:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T061327&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49904&fm=263794315621399&tin=02508201610067®Number=0000000000092546&sum=14000 [06:13:28]OFD Sender: Processing packet 49904 [packets to send 21, broken 20] [06:13:28]ProducePacketName [06:13:28]name=ofd_packets/00049904 [06:13:28]OFD Sender: To server: pG, [06:13:28]CommunicateWithHost lk.salyk.kg:30040 [06:13:28]ConnectInit lk.salyk.kg [06:13:28]line 0 [06:13:28]written 0, free lines is 4095 [06:13:28]Connected sock=10 [06:13:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 60 7A 1B 01 DA E5 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 87 E2 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F0 C2 00 00 35 04 06 00 EF EB 66 79 F4 17 84 55 5F 6B FF 14 1B E9 [06:13:28]Write to MH i2c: 01 00 00 D8 05 DD [06:13:28]Write i2c OK [06:13:28]MH_I2C_Read... [06:13:28]Read from MH i2c: 01 [06:13:28]MH_I2C_Read... [06:13:28]Read from MH i2c: 01 07 00 [06:13:28]MH_I2C_Read... [06:13:28]Read from MH i2c: 01 07 00 D8 05 00 00 00 00 00 EC 0C DC [06:13:28]RasterBufferAndPrint [06:13:28]line [06:13:28]line [06:13:28]line [06:13:28]line [06:13:28]line [06:13:28]written 0, free lines is 3314 [06:13:28]MH_Cut [06:13:28]Write to MH i2c: D1 01 00 DF 05 01 B6 [06:13:28]Write i2c OK [06:13:28]MH_I2C_Read... [06:13:28]Read from MH i2c: D1 [06:13:28]MH_I2C_Read... [06:13:28]Read from MH i2c: D1 01 00 [06:13:28]MH_I2C_Read... [06:13:28]Read from MH i2c: D1 01 00 DF 05 00 B5 [06:13:28]Write to MH i2c: 01 00 00 E0 05 E5 [06:13:28]Write i2c OK [06:13:28]MH_I2C_Read... [06:13:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 97 FD 47 00 97 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F0 C2 00 00 F4 03 04 00 F6 8C C2 66 B6 04 01 00 00 A3 B7 5C A6 71 22 BD 2B [06:13:29]CommunicateWithHost err = 0 [06:13:29]CheckOFDResponse [06:13:29]1017 (14) - 77093643461234 [06:13:29]1041 (16) - 0000000000871800 [06:13:29]1040 (4) - 49904 [06:13:29]1012 (4) - 19.08.2024 00:08 [06:13:29]1206 (1) - 0 [06:13:29]OFD Sender: Remove packet 49904 [06:13:29]ProducePacketName [06:13:29]name=ofd_packets/00049904 [06:13:29]NVStorageDeleteData [06:13:29]OFD Sender: No OFD packet to send [06:13:29]*** Cut start [06:13:29]*** Purtial cut [06:13:29]*** Stage 1: CUTSNS_PIN = 1 [06:13:29]Read from MH i2c: 01 [06:13:29]MH_I2C_Read... [06:13:29]*** Stop cut motor [06:13:29]*** Cut end [06:13:29]Read from MH i2c: 01 07 00 [06:13:29]MH_I2C_Read... [06:13:29]Read from MH i2c: 01 07 00 E0 05 00 00 00 00 00 FF 0F FA [06:13:29]process_action close_receipt done [06:13:29]requested_data is exist [06:13:29]produce_requested_data [06:13:29]requested_item fm.sn is exist - process it [06:13:29]wFMCommunicate request_size=4 [06:13:29]MH_SAM_APDU [06:13:29]CAPDU: 80 11 00 00 [06:13:29]Write to MH i2c: E2 08 00 E1 05 80 11 00 00 00 00 00 00 60 [06:13:29]Write i2c OK [06:13:29]MH_I2C_Read... [06:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:13:29]Read from MH i2c: E2 [06:13:29]MH_I2C_Read... [06:13:29]Read from MH i2c: E2 17 00 [06:13:29]MH_I2C_Read... [06:13:29]Read from MH i2c: E2 17 00 E1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AB [06:13:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [06:13:29]wFMCommunicate OK [06:13:29]requested_item fd.num is exist - process it [06:13:29]SAM_PROTO_GetFieldsCounters [06:13:29]wFMCommunicate request_size=4 [06:13:29]MH_SAM_APDU [06:13:29]CAPDU: 80 13 00 00 [06:13:29]Write to MH i2c: E2 08 00 E2 05 80 13 00 00 00 00 00 00 63 [06:13:29]Write i2c OK [06:13:29]MH_I2C_Read... [06:13:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:13:30]Read from MH i2c: E2 [06:13:30]MH_I2C_Read... [06:13:30]Read from MH i2c: E2 62 00 [06:13:30]MH_I2C_Read... [06:13:30]Read from MH i2c: E2 62 00 E2 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F0 C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [06:13:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F0 C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:13:30]wFMCommunicate OK [06:13:30]SAM_PROTO_GetFieldsCounters done [06:13:30]requested_item shift.num is exist - process it [06:13:30]requested_item shift.opened is exist - process it [06:13:30]req_shift_opened [06:13:30]FM_GetShiftState [06:13:30]SAM_PROTO_GetShiftState [06:13:30]wFMCommunicate request_size=4 [06:13:30]MH_SAM_APDU [06:13:30]CAPDU: 80 13 01 00 [06:13:30]Write to MH i2c: E2 08 00 E3 05 80 13 01 00 00 00 00 00 65 [06:13:30]Write i2c OK [06:13:30]MH_I2C_Read... [06:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:13:30]Read from MH i2c: E2 [06:13:30]MH_I2C_Read... [06:13:30]Read from MH i2c: E2 0E 00 [06:13:30]MH_I2C_Read... [06:13:30]Read from MH i2c: E2 0E 00 E3 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 1F [06:13:30]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [06:13:30]wFMCommunicate OK [06:13:30]SAM_PROTO_GetShiftState done [06:13:30]FM_GetShiftState done [06:13:30]req_shift_opened done [06:13:30]requested_item shift.open_date is exist - process it [06:13:30]req_shift_open_date [06:13:30]req_shift_open_date done [06:13:30]produce_requested_data done [06:13:30]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49904,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [06:13:30]process_action_free close_receipt [06:13:30]json_value_free [06:13:30]json_value_free done [06:13:30]process_json_proto returns [06:13:30]Send response to host [06:13:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49904,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [06:13:30]free response buf [06:13:30]execute_script done [06:13:30]execute_script returns [06:13:30]free content buf [06:13:30]Sock 9.Close socket [06:13:30]Sock 9.Thread stoped [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]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:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:44]accept exits with 7 [07:24:44]New connection [07:24:44]New thread 3067354468 created [07:24:44]Thread 3067211108 joined [07:24:44]Waiting for new connection... [07:24:44] Sock 7.Parse request [07:24:44]Sock 7.Check first char [07:24:44]Sock 7.First char is OK [07:24:44]request: POST /json_proto HTTP/1.0 [07:24:44]Method: POST [07:24:44]URL: /json_proto [07:24:44]Method is POST - this is cgi request [07:24:44]url: /json_proto [07:24:44]query_string will be loaded in cgi processing [07:24:44]execute_cgi json_proto POST (null) [07:24:44]execute_cgi path=json_proto method=POST [07:24:44]POST find Content-Length [07:24:44]Host: 172.17.46.196:8080 [07:24:44]Content-Length: 655 [07:24:44]Content-Type: application/json [07:24:44] [07:24:44]POST finish read [07:24:44]Found Content-Length = 655 [07:24:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190079", "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" ] } } [07:24:44]execute_script... [07:24: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)190079", "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" ] } } [07:24:44]POST & json_proto [07:24:44]process_json_proto [07:24:44]json parsed OK: [07:24:44]protocol is kg_v1.0 [07:24:44]action value=close_receipt [07:24:44]process_action close_receipt [07:24:44]cmd_close_receipt [07:24:44]MH_GetDate [07:24:44]Write to MH i2c: F0 00 00 E4 05 D8 [07:24:44]Write i2c OK [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: F0 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: F0 09 00 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: F0 09 00 E4 05 00 3D F3 C2 66 C4 85 C2 66 AA [07:24:44]GetLastDocTimeStamp 1724048007 [07:24:44]current date 1724052285 [07:24:44]FM_GetShiftState [07:24:44]SAM_PROTO_GetShiftState [07:24:44]wFMCommunicate request_size=4 [07:24:44]MH_SAM_APDU [07:24:44]CAPDU: 80 13 01 00 [07:24:44]Write to MH i2c: E2 08 00 E5 05 80 13 01 00 00 00 00 00 67 [07:24:44]Write i2c OK [07:24:44]MH_I2C_Read... [07:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:44]Read from MH i2c: E2 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: E2 0E 00 [07:24:44]MH_I2C_Read... [07:24:44]Read from MH i2c: E2 0E 00 E5 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 21 [07:24:44]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [07:24:44]wFMCommunicate OK [07:24:44]SAM_PROTO_GetShiftState done [07:24:44]FM_GetShiftState done [07:24:44]opened in 1724026361 [07:24:44]opened+sec_in_day 1724112761 [07:24:44]quantity*price = 8500 [07:24:44]sum+1 = 8501 [07:24:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 12 19.08.2024 07:24 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49905 ФПД: 121257025557870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T072445&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49905&fm=121257025557870&tin=02508201610067®Number=0000000000092546&sum=8500 0 [07:24:45]StoreToDocumentArchive [07:24:45]shift 467 fd 49905 [07:24:45]save to /storage/0467/doc_00049905 [07:24:45]save last doc name /storage/0467/doc_00049905 to /storage/kkm_last_doc_name [07:24:45]save OK [07:24:45]Clear old archive folders... [07:24:45]ProcessDocumentItem done err = 0, tmpTLVsize=294 [07:24:45]tlvbuf is 0103F940 [07:24:45]SAM_PROTO_ClearQueue [07:24:45]wFMCommunicate request_size=4 [07:24:45]MH_SAM_APDU [07:24:45]CAPDU: 80 09 00 00 [07:24:45]Write to MH i2c: E2 08 00 F2 05 80 09 00 00 00 00 00 00 69 [07:24:45]Write i2c OK [07:24:45]MH_I2C_Read... [07:24:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:24:45]Read from MH i2c: E2 [07:24:45]MH_I2C_Read... [07:24:45]Read from MH i2c: E2 03 00 [07:24:45]MH_I2C_Read... [07:24:45]Read from MH i2c: E2 03 00 F2 05 00 90 00 6B [07:24:45]RAPDU: 90 00 [07:24:45]wFMCommunicate OK [07:24:45]SAM_PROTO_ClearQueue done [07:24:45]KKMCreateOFDPacket [07:24:45]OFDProtocolAddRootSTLVToBuf [07:24:45]FM_MakeSignedData [07:24:45]FM_MakeSignedData [07:24:45]SAM_PROTO_SignData [07:24:45]wFMCommunicate request_size=4 [07:24:45]MH_SAM_APDU [07:24:45]CAPDU: 80 0D 01 02 [07:24:45]Write to MH i2c: E2 08 00 F3 05 80 0D 01 02 00 00 00 00 71 [07:24:45]Write i2c OK [07:24:45]MH_I2C_Read... [07:24:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:24:45]Read from MH i2c: E2 [07:24:45]MH_I2C_Read... [07:24:45]Read from MH i2c: E2 03 00 [07:24:45]MH_I2C_Read... [07:24:45]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [07:24:45]RAPDU: 90 00 [07:24:45]wFMCommunicate OK [07:24:45]wFMCommunicate request_size=255 [07:24:45]MH_SAM_APDU [07:24:45]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 0C 00 00 00 F4 03 04 00 3D F3 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [07:24:45]Write to MH i2c: E2 02 01 F4 05 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 0C 00 00 00 F4 03 04 00 3D F3 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 8D [07:24:45]Write i2c OK [07:24:45]MH_I2C_Read... [07:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:45]Read from MH i2c: E2 [07:24:45]MH_I2C_Read... [07:24:45]Read from MH i2c: E2 03 00 [07:24:45]MH_I2C_Read... [07:24:45]Read from MH i2c: E2 03 00 F4 05 00 90 00 6D [07:24:45]RAPDU: 90 00 [07:24:45]wFMCommunicate OK [07:24:45]wFMCommunicate request_size=53 [07:24:45]MH_SAM_APDU [07:24:45]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F1 C2 00 00 35 04 06 00 6E 48 59 EF 55 6E [07:24:45]Write to MH i2c: E2 38 00 F5 05 80 0D 02 02 30 00 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F1 C2 00 00 35 04 06 00 6E 48 59 EF 55 6E 00 00 D6 [07:24:45]Write i2c OK [07:24:45]MH_I2C_Read... [07:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:45]Read from MH i2c: E2 [07:24:45]MH_I2C_Read... [07:24:45]Read from MH i2c: E2 03 00 [07:24:45]MH_I2C_Read... [07:24:45]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [07:24:45]RAPDU: 90 00 [07:24:45]wFMCommunicate OK [07:24:45]wFMCommunicate request_size=4 [07:24:45]MH_SAM_APDU [07:24:45]CAPDU: 80 0D 03 02 [07:24:45]Write to MH i2c: E2 08 00 F6 05 80 0D 03 02 00 00 00 00 76 [07:24:45]Write i2c OK [07:24:45]MH_I2C_Read... [07:24:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:24:45]Read from MH i2c: E2 [07:24:45]MH_I2C_Read... [07:24:45]Read from MH i2c: E2 0B 00 [07:24:45]MH_I2C_Read... [07:24:45]Read from MH i2c: E2 0B 00 F6 05 00 1F DB C8 6F 8A 3F 76 13 90 00 FA [07:24:45]RAPDU: 1F DB C8 6F 8A 3F 76 13 90 00 [07:24:45]wFMCommunicate OK [07:24:45]SAM_PROTO_SignData done [07:24:45]FM_MakeSignedData done [07:24:45]CreateOFDProtocolMessage [07:24:45]wFMCommunicate request_size=4 [07:24:45]MH_SAM_APDU [07:24:45]CAPDU: 80 11 00 00 [07:24:45]Write to MH i2c: E2 08 00 F7 05 80 11 00 00 00 00 00 00 76 [07:24:45]Write i2c OK [07:24:45]MH_I2C_Read... [07:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:45]Read from MH i2c: E2 [07:24:45]MH_I2C_Read... [07:24:45]Read from MH i2c: E2 17 00 [07:24:45]MH_I2C_Read... [07:24:45]Read from MH i2c: E2 17 00 F7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C1 [07:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:24:45]wFMCommunicate OK [07:24:45]CreateOFDProtocolMessage done [07:24:45]OFDSenderStorePacket 49905 [07:24:45]StoreOFDPacket docnum=49905 [07:24:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 3F B2 32 01 B9 7E 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 0C 00 00 00 F4 03 04 00 3D F3 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F1 C2 00 00 35 04 06 00 6E 48 59 EF 55 6E 1F DB C8 6F 8A 3F 76 13 [07:24:45]CheckFolder [07:24:45]dirname=/storage/ofd_packets [07:24:45]CheckFolder done [07:24:46]ProducePacketName [07:24:46]name=ofd_packets/00049905 [07:24:46]NVStorageSaveData ofd_packets/00049905 [07:24:46]File name is /storage/ofd_packets/00049905 [07:24:46]Write 344 bytes [07:24:46]NVStorageSaveData done [07:24:46]OFDSenderStorePacket done [07:24:46]KKMCreateOFDPacket done [07:24:46]NVStorageSaveData kkm_last_timestamp [07:24:46]File name is /storage/kkm_last_timestamp [07:24:46]Write 4 bytes [07:24:46]NVStorageSaveData done [07:24:46]ExternCall_PrintAddStr [07:24:46]wPrintStart [07:24:46]Write to MH i2c: 01 00 00 F8 05 FD [07:24:46]Write i2c OK [07:24:46]MH_I2C_Read... [07:24:46]Read from MH i2c: 01 [07:24:46]MH_I2C_Read... [07:24:46]Read from MH i2c: 01 07 00 [07:24:46]MH_I2C_Read... [07:24:46]Read from MH i2c: 01 07 00 F8 05 00 00 00 00 00 FF 0F 12 [07:24:46]RasterBufferAndPrint [07:24:46]line Счет N : (3)190079 [07:24:46]line ИНН: 02508201610067 [07:24:46]line Контрольно-Кассовый Чек [07:24:46]line ПРОДАЖА [07:24:46]line Товар: 4600682557456 [07:24:46]line Напиток FLash up energy эн ж/б 0,5/0,45л [07:24:46]line 1.000 * 85.00 [07:24:46]line = 85.00 [07:24:46]line НДС 12% НСП 1% [07:24:46]line > о реализуемом товаре [07:24:46]line ИТОГО: 85.00 [07:24:46]line НСП 1% : 0.75 [07:24:46]line НДС 12% : 9.03 [07:24:46]line Наличными: 85.00 [07:24:46]line Безнал.: 0.00 [07:24:46]line Место: АЗС № 95 "Партнер Нефть" [07:24:46]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [07:24:46]line СНО: Общий режим [07:24:46]line Чек 12 19.08.2024 07:24 [07:24:46]line Смена: 467 ФФД: 1.0 [07:24:46]line ЗНМ: 0300000078 [07:24:46]line РНМ: 0000000000092546 [07:24:46]line Версия ККМ: 001 [07:24:46]line ФМ: 0000000000871800 [07:24:46]line ФД: 49905 [07:24:46]line ФПД: 121257025557870 [07:24:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T072445&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49905&fm=121257025557870&tin=02508201610067®Number=0000000000092546&sum=8500 [07:24:46]line 0 [07:24:46]OFD Sender: Processing packet 49905 [packets to send 21, broken 20] [07:24:46]ProducePacketName [07:24:46]name=ofd_packets/00049905 [07:24:46]OFD Sender: To server: pG, [07:24:46]CommunicateWithHost lk.salyk.kg:30040 [07:24:46]ConnectInit lk.salyk.kg [07:24:46]written 0, free lines is 4095 [07:24:46]Connected sock=10 [07:24:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 3F B2 32 01 B9 7E 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 0C 00 00 00 F4 03 04 00 3D F3 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F1 C2 00 00 35 04 06 00 6E 48 59 EF 55 6E 1F DB C8 6F 8A 3F 76 13 [07:24:46]Write to MH i2c: 01 00 00 21 06 27 [07:24:46]Write i2c OK [07:24:46]MH_I2C_Read... [07:24:46]Read from MH i2c: 01 [07:24:46]MH_I2C_Read... [07:24:46]Read from MH i2c: 01 07 00 [07:24:46]MH_I2C_Read... [07:24:46]Read from MH i2c: 01 07 00 21 06 00 00 00 00 00 D9 0C 13 [07:24:46]RasterBufferAndPrint [07:24:46]line [07:24:46]line [07:24:46]line [07:24:46]line [07:24:46]line [07:24:46]written 0, free lines is 3295 [07:24:46]MH_Cut [07:24:46]Write to MH i2c: D1 01 00 28 06 01 00 [07:24:46]Write i2c OK [07:24:46]MH_I2C_Read... [07:24:46]Read from MH i2c: D1 [07:24:46]MH_I2C_Read... [07:24:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 89 0E 47 00 3D 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F1 C2 00 00 F4 03 04 00 AB 9D C2 66 B6 04 01 00 00 28 D6 3D 3B 66 DB 22 25 [07:24:46]CommunicateWithHost err = 0 [07:24:46]CheckOFDResponse [07:24:46]1017 (14) - 77093643461234 [07:24:46]1041 (16) - 0000000000871800 [07:24:46]1040 (4) - 49905 [07:24:46]1012 (4) - 19.08.2024 01:19 [07:24:46]1206 (1) - 0 [07:24:46]OFD Sender: Remove packet 49905 [07:24:46]ProducePacketName [07:24:46]name=ofd_packets/00049905 [07:24:46]NVStorageDeleteData [07:24:46]Read from MH i2c: D1 01 00 [07:24:46]MH_I2C_Read... [07:24:46]Read from MH i2c: D1 01 00 28 06 00 FF [07:24:46]Write to MH i2c: 01 00 00 29 06 2F [07:24:46]Write i2c OK [07:24:46]MH_I2C_Read... [07:24:47]OFD Sender: No OFD packet to send [07:24:47]*** Cut start [07:24:47]*** Purtial cut [07:24:47]*** CUTSNS_PIN = 0 [07:24:47]*** Stage 1: CUTSNS_PIN = 1 [07:24:49]Read from MH i2c: 01 [07:24:49]MH_I2C_Read... [07:24:49]*** Stop cut motor [07:24:49]*** Cut end [07:24:49]Read from MH i2c: 01 07 00 [07:24:49]MH_I2C_Read... [07:24:49]Read from MH i2c: 01 07 00 29 06 00 00 00 00 00 FF 0F 44 [07:24:49]process_action close_receipt done [07:24:49]requested_data is exist [07:24:49]produce_requested_data [07:24:49]requested_item fm.sn is exist - process it [07:24:49]wFMCommunicate request_size=4 [07:24:49]MH_SAM_APDU [07:24:49]CAPDU: 80 11 00 00 [07:24:49]Write to MH i2c: E2 08 00 2A 06 80 11 00 00 00 00 00 00 AA [07:24:49]Write i2c OK [07:24:49]MH_I2C_Read... [07:24:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:49]Read from MH i2c: E2 [07:24:49]MH_I2C_Read... [07:24:49]Read from MH i2c: E2 17 00 [07:24:49]MH_I2C_Read... [07:24:49]Read from MH i2c: E2 17 00 2A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F5 [07:24:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:24:49]wFMCommunicate OK [07:24:49]requested_item fd.num is exist - process it [07:24:49]SAM_PROTO_GetFieldsCounters [07:24:49]wFMCommunicate request_size=4 [07:24:49]MH_SAM_APDU [07:24:49]CAPDU: 80 13 00 00 [07:24:49]Write to MH i2c: E2 08 00 2B 06 80 13 00 00 00 00 00 00 AD [07:24:49]Write i2c OK [07:24:49]MH_I2C_Read... [07:24:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:24:49]Read from MH i2c: E2 [07:24:49]MH_I2C_Read... [07:24:49]Read from MH i2c: E2 62 00 [07:24:49]MH_I2C_Read... [07:24:49]Read from MH i2c: E2 62 00 2B 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F1 C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [07:24:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F1 C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:24:49]wFMCommunicate OK [07:24:49]SAM_PROTO_GetFieldsCounters done [07:24:49]requested_item shift.num is exist - process it [07:24:49]requested_item shift.opened is exist - process it [07:24:49]req_shift_opened [07:24:49]FM_GetShiftState [07:24:49]SAM_PROTO_GetShiftState [07:24:49]wFMCommunicate request_size=4 [07:24:49]MH_SAM_APDU [07:24:49]CAPDU: 80 13 01 00 [07:24:49]Write to MH i2c: E2 08 00 2C 06 80 13 01 00 00 00 00 00 AF [07:24:49]Write i2c OK [07:24:49]MH_I2C_Read... [07:24:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:49]Read from MH i2c: E2 [07:24:49]MH_I2C_Read... [07:24:49]Read from MH i2c: E2 0E 00 [07:24:49]MH_I2C_Read... [07:24:49]Read from MH i2c: E2 0E 00 2C 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 69 [07:24:49]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [07:24:49]wFMCommunicate OK [07:24:49]SAM_PROTO_GetShiftState done [07:24:49]FM_GetShiftState done [07:24:49]req_shift_opened done [07:24:49]requested_item shift.open_date is exist - process it [07:24:49]req_shift_open_date [07:24:49]req_shift_open_date done [07:24:49]produce_requested_data done [07:24:49]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49905,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [07:24:49]process_action_free close_receipt [07:24:49]json_value_free [07:24:49]json_value_free done [07:24:49]process_json_proto returns [07:24:49]Send response to host [07:24:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49905,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [07:24:49]free response buf [07:24:49]execute_script done [07:24:49]execute_script returns [07:24:49]free content buf [07:24:49]Sock 7.Close socket [07:24:49]Sock 7.Thread stoped [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:04]accept exits with 9 [07:26:04]New connection [07:26:04]New thread 3067211108 created [07:26:04]Thread 3067354468 joined [07:26:04]Waiting for new connection... [07:26:04] Sock 9.Parse request [07:26:04]Sock 9.Check first char [07:26:04]Sock 9.First char is OK [07:26:04]request: POST /json_proto HTTP/1.0 [07:26:04]Method: POST [07:26:04]URL: /json_proto [07:26:04]Method is POST - this is cgi request [07:26:04]url: /json_proto [07:26:04]query_string will be loaded in cgi processing [07:26:04]execute_cgi json_proto POST (null) [07:26:04]execute_cgi path=json_proto method=POST [07:26:04]POST find Content-Length [07:26:04]Host: 172.17.46.196:8080 [07:26:04]Content-Length: 905 [07:26:04]Content-Type: application/json [07:26:04] [07:26:04]POST finish read [07:26:04]Found Content-Length = 905 [07:26:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190080", "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 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 189.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:04]execute_script... [07:26: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)190080", "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 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 189.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:04]POST & json_proto [07:26:04]process_json_proto [07:26:04]json parsed OK: [07:26:04]protocol is kg_v1.0 [07:26:04]action value=close_receipt [07:26:04]process_action close_receipt [07:26:04]cmd_close_receipt [07:26:04]MH_GetDate [07:26:04]Write to MH i2c: F0 00 00 2D 06 22 [07:26:04]Write i2c OK [07:26:04]MH_I2C_Read... [07:26:04]Read from MH i2c: F0 [07:26:04]MH_I2C_Read... [07:26:04]Read from MH i2c: F0 09 00 [07:26:04]MH_I2C_Read... [07:26:04]Read from MH i2c: F0 09 00 2D 06 00 8E F3 C2 66 C4 85 C2 66 45 [07:26:04]GetLastDocTimeStamp 1724052285 [07:26:04]current date 1724052366 [07:26:04]FM_GetShiftState [07:26:04]SAM_PROTO_GetShiftState [07:26:04]wFMCommunicate request_size=4 [07:26:04]MH_SAM_APDU [07:26:04]CAPDU: 80 13 01 00 [07:26:04]Write to MH i2c: E2 08 00 2E 06 80 13 01 00 00 00 00 00 B1 [07:26:04]Write i2c OK [07:26:04]MH_I2C_Read... [07:26:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:04]Read from MH i2c: E2 [07:26:04]MH_I2C_Read... [07:26:04]Read from MH i2c: E2 0E 00 [07:26:04]MH_I2C_Read... [07:26:04]Read from MH i2c: E2 0E 00 2E 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 6B [07:26:04]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [07:26:04]wFMCommunicate OK [07:26:04]SAM_PROTO_GetShiftState done [07:26:04]FM_GetShiftState done [07:26:04]opened in 1724026361 [07:26:04]opened+sec_in_day 1724112761 [07:26:04]quantity*price = 5900 [07:26:04]sum+1 = 5901 [07:26:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 189.00 НСП 1% : 1.67 НДС 12% : 20.06 Наличными: 189.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 13 19.08.2024 07:26 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49906 ФПД: 134809721714695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T072606&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49906&fm=134809721714695&tin=02508201610067®Number=0000000000092546&sum=18900 0 [07:26:05]StoreToDocumentArchive [07:26:05]shift 467 fd 49906 [07:26:05]save to /storage/0467/doc_00049906 [07:26:05]save last doc name /storage/0467/doc_00049906 to /storage/kkm_last_doc_name [07:26:05]save OK [07:26:05]Clear old archive folders... [07:26:05]ProcessDocumentItem done err = 0, tmpTLVsize=393 [07:26:05]tlvbuf is 010454B0 [07:26:05]SAM_PROTO_ClearQueue [07:26:05]wFMCommunicate request_size=4 [07:26:05]MH_SAM_APDU [07:26:05]CAPDU: 80 09 00 00 [07:26:05]Write to MH i2c: E2 08 00 3B 06 80 09 00 00 00 00 00 00 B3 [07:26:05]Write i2c OK [07:26:05]MH_I2C_Read... [07:26:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:26:05]Read from MH i2c: E2 [07:26:05]MH_I2C_Read... [07:26:05]Read from MH i2c: E2 03 00 [07:26:05]MH_I2C_Read... [07:26:05]Read from MH i2c: E2 03 00 3B 06 00 90 00 B5 [07:26:05]RAPDU: 90 00 [07:26:05]wFMCommunicate OK [07:26:05]SAM_PROTO_ClearQueue done [07:26:05]KKMCreateOFDPacket [07:26:05]OFDProtocolAddRootSTLVToBuf [07:26:05]FM_MakeSignedData [07:26:05]FM_MakeSignedData [07:26:05]SAM_PROTO_SignData [07:26:05]wFMCommunicate request_size=4 [07:26:05]MH_SAM_APDU [07:26:05]CAPDU: 80 0D 01 02 [07:26:05]Write to MH i2c: E2 08 00 3C 06 80 0D 01 02 00 00 00 00 BB [07:26:05]Write i2c OK [07:26:05]MH_I2C_Read... [07:26:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:26:05]Read from MH i2c: E2 [07:26:05]MH_I2C_Read... [07:26:05]Read from MH i2c: E2 03 00 [07:26:05]MH_I2C_Read... [07:26:05]Read from MH i2c: E2 03 00 3C 06 00 90 00 B6 [07:26:05]RAPDU: 90 00 [07:26:05]wFMCommunicate OK [07:26:05]wFMCommunicate request_size=255 [07:26:05]MH_SAM_APDU [07:26:05]CAPDU: 80 0D 02 02 FA 03 00 89 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 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 [07:26:05]Write to MH i2c: E2 02 01 3D 06 80 0D 02 02 FA 00 03 00 89 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 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 81 [07:26:05]Write i2c OK [07:26:05]MH_I2C_Read... [07:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:06]Read from MH i2c: E2 [07:26:06]MH_I2C_Read... [07:26:06]Read from MH i2c: E2 03 00 [07:26:06]MH_I2C_Read... [07:26:06]Read from MH i2c: E2 03 00 3D 06 00 90 00 B7 [07:26:06]RAPDU: 90 00 [07:26:06]wFMCommunicate OK [07:26:06]wFMCommunicate request_size=152 [07:26:06]MH_SAM_APDU [07:26:06]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 8E F3 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F2 C2 00 00 35 04 06 00 7A 9B D5 93 38 07 [07:26:06]Write to MH i2c: E2 9B 00 3E 06 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 8E F3 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F2 C2 00 00 35 04 06 00 7A 9B D5 93 38 07 00 00 A0 [07:26:06]Write i2c OK [07:26:06]MH_I2C_Read... [07:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:06]Read from MH i2c: E2 [07:26:06]MH_I2C_Read... [07:26:06]Read from MH i2c: E2 03 00 [07:26:06]MH_I2C_Read... [07:26:06]Read from MH i2c: E2 03 00 3E 06 00 90 00 B8 [07:26:06]RAPDU: 90 00 [07:26:06]wFMCommunicate OK [07:26:06]wFMCommunicate request_size=4 [07:26:06]MH_SAM_APDU [07:26:06]CAPDU: 80 0D 03 02 [07:26:06]Write to MH i2c: E2 08 00 3F 06 80 0D 03 02 00 00 00 00 C0 [07:26:06]Write i2c OK [07:26:06]MH_I2C_Read... [07:26:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:26:06]Read from MH i2c: E2 [07:26:06]MH_I2C_Read... [07:26:06]Read from MH i2c: E2 0B 00 [07:26:06]MH_I2C_Read... [07:26:06]Read from MH i2c: E2 0B 00 3F 06 00 6B DB E4 D6 A3 6D 75 7C 90 00 C2 [07:26:06]RAPDU: 6B DB E4 D6 A3 6D 75 7C 90 00 [07:26:06]wFMCommunicate OK [07:26:06]SAM_PROTO_SignData done [07:26:06]FM_MakeSignedData done [07:26:06]CreateOFDProtocolMessage [07:26:06]wFMCommunicate request_size=4 [07:26:06]MH_SAM_APDU [07:26:06]CAPDU: 80 11 00 00 [07:26:06]Write to MH i2c: E2 08 00 40 06 80 11 00 00 00 00 00 00 C0 [07:26:06]Write i2c OK [07:26:06]MH_I2C_Read... [07:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:06]Read from MH i2c: E2 [07:26:06]MH_I2C_Read... [07:26:06]Read from MH i2c: E2 17 00 [07:26:06]MH_I2C_Read... [07:26:06]Read from MH i2c: E2 17 00 40 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0B [07:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:26:06]wFMCommunicate OK [07:26:06]CreateOFDProtocolMessage done [07:26:06]OFDSenderStorePacket 49906 [07:26:06]StoreOFDPacket docnum=49906 [07:26:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9D 01 00 00 A7 39 95 01 6E BF 5A 03 01 00 03 00 89 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 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 8E F3 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F2 C2 00 00 35 04 06 00 7A 9B D5 93 38 07 6B DB E4 D6 A3 6D 75 7C [07:26:06]CheckFolder [07:26:06]dirname=/storage/ofd_packets [07:26:06]CheckFolder done [07:26:06]ProducePacketName [07:26:06]name=ofd_packets/00049906 [07:26:06]NVStorageSaveData ofd_packets/00049906 [07:26:06]File name is /storage/ofd_packets/00049906 [07:26:06]Write 443 bytes [07:26:06]NVStorageSaveData done [07:26:06]OFDSenderStorePacket done [07:26:06]KKMCreateOFDPacket done [07:26:06]NVStorageSaveData kkm_last_timestamp [07:26:06]File name is /storage/kkm_last_timestamp [07:26:06]Write 4 bytes [07:26:06]NVStorageSaveData done [07:26:06]ExternCall_PrintAddStr [07:26:06]wPrintStart [07:26:06]Write to MH i2c: 01 00 00 41 06 47 [07:26:06]Write i2c OK [07:26:06]MH_I2C_Read... [07:26:06]Read from MH i2c: 01 [07:26:06]MH_I2C_Read... [07:26:06]Read from MH i2c: 01 07 00 [07:26:06]MH_I2C_Read... [07:26:06]Read from MH i2c: 01 07 00 41 06 00 00 00 00 00 FF 0F 5C [07:26:06]RasterBufferAndPrint [07:26:06]line Счет N : (3)190080 [07:26:06]line ИНН: 02508201610067 [07:26:06]line Контрольно-Кассовый Чек [07:26:06]line ПРОДАЖА [07:26:06]line Товар: 4607065001445 [07:26:06]line Шок батончик Snickers 50,5г [07:26:06]line 1.000 * 59.00 [07:26:06]line = 59.00 [07:26:06]line НДС 12% НСП 1% [07:26:06]line > о реализуемом товаре [07:26:06]line Товар: 2000036220012 [07:26:06]line Кофе Капучино XL(GABB TRADE) [07:26:06]line 1.000 * 130.00 [07:26:06]line = 130.00 [07:26:06]line НДС 12% НСП 1% [07:26:06]line > о реализуемом товаре [07:26:06]line ИТОГО: 189.00 [07:26:06]line НСП 1% : 1.67 [07:26:06]line НДС 12% : 20.06 [07:26:06]line Наличными: 189.00 [07:26:06]line Безнал.: 0.00 [07:26:06]line Место: АЗС № 95 "Партнер Нефть" [07:26:06]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [07:26:06]line СНО: Общий режим [07:26:06]line Чек 13 19.08.2024 07:26 [07:26:06]line Смена: 467 ФФД: 1.0 [07:26:06]line ЗНМ: 0300000078 [07:26:06]line РНМ: 0000000000092546 [07:26:06]line Версия ККМ: 001 [07:26:06]line ФМ: 0000000000871800 [07:26:06]line ФД: 49906 [07:26:06]line ФПД: 134809721714695 [07:26:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T072606&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49906&fm=134809721714695&tin=02508201610067®Number=0000000000092546&sum=18900 [07:26:06]line 0 [07:26:06]OFD Sender: Processing packet 49906 [packets to send 21, broken 20] [07:26:06]ProducePacketName [07:26:06]name=ofd_packets/00049906 [07:26:06]OFD Sender: To server: pG, [07:26:06]CommunicateWithHost lk.salyk.kg:30040 [07:26:06]ConnectInit lk.salyk.kg [07:26:06]written 0, free lines is 4095 [07:26:06]Connected sock=10 [07:26:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9D 01 00 00 A7 39 95 01 6E BF 5A 03 01 00 03 00 89 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 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 8E F3 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F2 C2 00 00 35 04 06 00 7A 9B D5 93 38 07 6B DB E4 D6 A3 6D 75 7C [07:26:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F2 F2 47 00 29 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F2 C2 00 00 F4 03 04 00 FC 9D C2 66 B6 04 01 00 00 43 55 22 1C C0 99 09 32 [07:26:07]CommunicateWithHost err = 0 [07:26:07]CheckOFDResponse [07:26:07]1017 (14) - 77093643461234 [07:26:07]1041 (16) - 0000000000871800 [07:26:07]1040 (4) - 49906 [07:26:07]1012 (4) - 19.08.2024 01:21 [07:26:07]1206 (1) - 0 [07:26:07]OFD Sender: Remove packet 49906 [07:26:07]ProducePacketName [07:26:07]name=ofd_packets/00049906 [07:26:07]NVStorageDeleteData [07:26:07]Write to MH i2c: 01 00 00 70 06 76 [07:26:07]Write i2c OK [07:26:07]MH_I2C_Read... [07:26:07]Read from MH i2c: 01 [07:26:07]MH_I2C_Read... [07:26:07]Read from MH i2c: 01 07 00 [07:26:07]MH_I2C_Read... [07:26:07]Read from MH i2c: 01 07 00 70 06 00 00 00 00 00 90 0C 19 [07:26:07]RasterBufferAndPrint [07:26:07]line [07:26:07]line [07:26:07]line [07:26:07]line [07:26:07]line [07:26:07]written 0, free lines is 3222 [07:26:07]MH_Cut [07:26:07]Write to MH i2c: D1 01 00 77 06 01 4F [07:26:07]Write i2c OK [07:26:07]MH_I2C_Read... [07:26:07]Read from MH i2c: D1 [07:26:07]MH_I2C_Read... [07:26:07]Read from MH i2c: D1 01 00 [07:26:07]MH_I2C_Read... [07:26:07]Read from MH i2c: D1 01 00 77 06 00 4E [07:26:07]Write to MH i2c: 01 00 00 78 06 7E [07:26:07]Write i2c OK [07:26:07]MH_I2C_Read... [07:26:07]OFD Sender: No OFD packet to send [07:26:08]*** Cut start [07:26:08]*** Purtial cut [07:26:08]*** Stage 1: CUTSNS_PIN = 1 [07:26:08]Read from MH i2c: 01 [07:26:08]MH_I2C_Read... [07:26:08]*** Stop cut motor [07:26:08]*** Cut end [07:26:08]Read from MH i2c: 01 07 00 [07:26:08]MH_I2C_Read... [07:26:08]Read from MH i2c: 01 07 00 78 06 00 00 00 00 00 FF 0F 93 [07:26:08]process_action close_receipt done [07:26:08]requested_data is exist [07:26:08]produce_requested_data [07:26:08]requested_item fm.sn is exist - process it [07:26:08]wFMCommunicate request_size=4 [07:26:08]MH_SAM_APDU [07:26:08]CAPDU: 80 11 00 00 [07:26:08]Write to MH i2c: E2 08 00 79 06 80 11 00 00 00 00 00 00 F9 [07:26:08]Write i2c OK [07:26:08]MH_I2C_Read... [07:26:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:08]Read from MH i2c: E2 [07:26:08]MH_I2C_Read... [07:26:08]Read from MH i2c: E2 17 00 [07:26:08]MH_I2C_Read... [07:26:08]Read from MH i2c: E2 17 00 79 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 44 [07:26:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:26:08]wFMCommunicate OK [07:26:08]requested_item fd.num is exist - process it [07:26:08]SAM_PROTO_GetFieldsCounters [07:26:08]wFMCommunicate request_size=4 [07:26:08]MH_SAM_APDU [07:26:08]CAPDU: 80 13 00 00 [07:26:08]Write to MH i2c: E2 08 00 7A 06 80 13 00 00 00 00 00 00 FC [07:26:08]Write i2c OK [07:26:08]MH_I2C_Read... [07:26:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:26:08]Read from MH i2c: E2 [07:26:08]MH_I2C_Read... [07:26:08]Read from MH i2c: E2 62 00 [07:26:08]MH_I2C_Read... [07:26:08]Read from MH i2c: E2 62 00 7A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F2 C2 00 00 0E 04 04 00 D3 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 C5 [07:26:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F2 C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:26:08]wFMCommunicate OK [07:26:08]SAM_PROTO_GetFieldsCounters done [07:26:08]requested_item shift.num is exist - process it [07:26:08]requested_item shift.opened is exist - process it [07:26:08]req_shift_opened [07:26:08]FM_GetShiftState [07:26:08]SAM_PROTO_GetShiftState [07:26:08]wFMCommunicate request_size=4 [07:26:08]MH_SAM_APDU [07:26:08]CAPDU: 80 13 01 00 [07:26:08]Write to MH i2c: E2 08 00 7B 06 80 13 01 00 00 00 00 00 FE [07:26:08]Write i2c OK [07:26:08]MH_I2C_Read... [07:26:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:08]Read from MH i2c: E2 [07:26:08]MH_I2C_Read... [07:26:08]Read from MH i2c: E2 0E 00 [07:26:08]MH_I2C_Read... [07:26:08]Read from MH i2c: E2 0E 00 7B 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B8 [07:26:08]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [07:26:08]wFMCommunicate OK [07:26:08]SAM_PROTO_GetShiftState done [07:26:08]FM_GetShiftState done [07:26:08]req_shift_opened done [07:26:08]requested_item shift.open_date is exist - process it [07:26:08]req_shift_open_date [07:26:08]req_shift_open_date done [07:26:08]produce_requested_data done [07:26:08]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49906,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [07:26:08]process_action_free close_receipt [07:26:08]json_value_free [07:26:08]json_value_free done [07:26:08]process_json_proto returns [07:26:08]Send response to host [07:26:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49906,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [07:26:08]free response buf [07:26:08]execute_script done [07:26:08]execute_script returns [07:26:08]free content buf [07:26:08]Sock 9.Close socket [07:26:08]Sock 9.Thread stoped [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:20]int [07:26:20]Write to MH i2c: 01 00 00 7C 06 82 [07:26:20]*** FLAG_PRN_KEY set [07:26:20]Write i2c OK [07:26:20]MH_I2C_Read... [07:26:20]Read from MH i2c: 01 [07:26:20]MH_I2C_Read... [07:26:20]Read from MH i2c: 01 07 00 [07:26:20]MH_I2C_Read... [07:26:20]Read from MH i2c: 01 07 00 7C 06 00 08 00 00 00 FF 0F 9F [07:26:20]state=0 [07:26:20]Key pressed [07:26:20]Feed [07:26:20]Write to MH i2c: D8 00 00 7D 06 5A [07:26:20]Write i2c OK [07:26:20]MH_I2C_Read... [07:26:20]Read from MH i2c: D8 [07:26:20]MH_I2C_Read... [07:26:20]Read from MH i2c: D8 01 00 [07:26:20]MH_I2C_Read... [07:26:20]Read from MH i2c: D8 01 00 7D 06 00 5B [07:26:20]int [07:26:20]Write to MH i2c: 01 00 00 7E 06 84 [07:26:20]Write i2c OK [07:26:20]MH_I2C_Read... [07:26:20]Read from MH i2c: 01 [07:26:20]MH_I2C_Read... [07:26:20]Read from MH i2c: 01 07 00 [07:26:20]MH_I2C_Read... [07:26:20]Read from MH i2c: 01 07 00 7E 06 00 48 00 00 00 3C 00 0F [07:26:20]state=2 [07:26:20]Key pressed [07:26:20]int [07:26:20]Write to MH i2c: 01 00 00 7F 06 85 [07:26:20]*** FLAG_PRN_KEY reset [07:26:20]Write i2c OK [07:26:20]MH_I2C_Read... [07:26:20]Read from MH i2c: 01 [07:26:20]MH_I2C_Read... [07:26:20]Read from MH i2c: 01 07 00 [07:26:20]MH_I2C_Read... [07:26:20]Read from MH i2c: 01 07 00 7F 06 00 00 00 00 00 FF 0F 9A [07:26:20]state=2 [07:26:20]Stop feed [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32: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:32]accept exits with 7 [07:36:32]New connection [07:36:32]New thread 3067354468 created [07:36:32]Thread 3067211108 joined [07:36:32]Waiting for new connection... [07:36:32] Sock 7.Parse request [07:36:32]Sock 7.Check first char [07:36:32]Sock 7.First char is OK [07:36:32]request: POST /json_proto HTTP/1.0 [07:36:32]Method: POST [07:36:32]URL: /json_proto [07:36:32]Method is POST - this is cgi request [07:36:32]url: /json_proto [07:36:32]query_string will be loaded in cgi processing [07:36:32]execute_cgi json_proto POST (null) [07:36:32]execute_cgi path=json_proto method=POST [07:36:32]POST find Content-Length [07:36:32]Host: 172.17.46.196:8080 [07:36:32]Content-Length: 879 [07:36:32]Content-Type: application/json [07:36:32] [07:36:32]POST finish read [07:36:32]Found Content-Length = 879 [07:36:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190081", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:32]execute_script... [07:36: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)190081", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:36:32]POST & json_proto [07:36:32]process_json_proto [07:36:32]json parsed OK: [07:36:32]protocol is kg_v1.0 [07:36:32]action value=close_receipt [07:36:32]process_action close_receipt [07:36:32]cmd_close_receipt [07:36:32]MH_GetDate [07:36:32]Write to MH i2c: F0 00 00 80 06 75 [07:36:32]Write i2c OK [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: F0 [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: F0 09 00 [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: F0 09 00 80 06 00 02 F6 C2 66 C4 85 C2 66 0F [07:36:32]GetLastDocTimeStamp 1724052366 [07:36:32]current date 1724052994 [07:36:32]FM_GetShiftState [07:36:32]SAM_PROTO_GetShiftState [07:36:32]wFMCommunicate request_size=4 [07:36:32]MH_SAM_APDU [07:36:32]CAPDU: 80 13 01 00 [07:36:32]Write to MH i2c: E2 08 00 81 06 80 13 01 00 00 00 00 00 04 [07:36:32]Write i2c OK [07:36:32]MH_I2C_Read... [07:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:32]Read from MH i2c: E2 [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: E2 0E 00 [07:36:32]MH_I2C_Read... [07:36:32]Read from MH i2c: E2 0E 00 81 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 BE [07:36:32]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [07:36:32]wFMCommunicate OK [07:36:32]SAM_PROTO_GetShiftState done [07:36:32]FM_GetShiftState done [07:36:32]opened in 1724026361 [07:36:32]opened+sec_in_day 1724112761 [07:36:32]quantity*price = 14000 [07:36:32]sum+1 = 14001 [07:36:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 14 19.08.2024 07:36 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49907 ФПД: 130436401055353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T073634&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49907&fm=130436401055353&tin=02508201610067®Number=0000000000092546&sum=27000 0 [07:36:33]StoreToDocumentArchive [07:36:33]shift 467 fd 49907 [07:36:33]save to /storage/0467/doc_00049907 [07:36:33]save last doc name /storage/0467/doc_00049907 to /storage/kkm_last_doc_name [07:36:33]save OK [07:36:33]Clear old archive folders... [07:36:33]ProcessDocumentItem done err = 0, tmpTLVsize=381 [07:36:33]tlvbuf is B6F0A510 [07:36:33]SAM_PROTO_ClearQueue [07:36:33]wFMCommunicate request_size=4 [07:36:33]MH_SAM_APDU [07:36:33]CAPDU: 80 09 00 00 [07:36:33]Write to MH i2c: E2 08 00 8E 06 80 09 00 00 00 00 00 00 06 [07:36:33]Write i2c OK [07:36:33]MH_I2C_Read... [07:36:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:36:33]Read from MH i2c: E2 [07:36:33]MH_I2C_Read... [07:36:33]Read from MH i2c: E2 03 00 [07:36:33]MH_I2C_Read... [07:36:33]Read from MH i2c: E2 03 00 8E 06 00 90 00 08 [07:36:33]RAPDU: 90 00 [07:36:33]wFMCommunicate OK [07:36:33]SAM_PROTO_ClearQueue done [07:36:33]KKMCreateOFDPacket [07:36:33]OFDProtocolAddRootSTLVToBuf [07:36:33]FM_MakeSignedData [07:36:33]FM_MakeSignedData [07:36:33]SAM_PROTO_SignData [07:36:33]wFMCommunicate request_size=4 [07:36:33]MH_SAM_APDU [07:36:33]CAPDU: 80 0D 01 02 [07:36:33]Write to MH i2c: E2 08 00 8F 06 80 0D 01 02 00 00 00 00 0E [07:36:33]Write i2c OK [07:36:33]MH_I2C_Read... [07:36:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:36:33]Read from MH i2c: E2 [07:36:33]MH_I2C_Read... [07:36:33]Read from MH i2c: E2 03 00 [07:36:33]MH_I2C_Read... [07:36:33]Read from MH i2c: E2 03 00 8F 06 00 90 00 09 [07:36:33]RAPDU: 90 00 [07:36:33]wFMCommunicate OK [07:36:33]wFMCommunicate request_size=255 [07:36:33]MH_SAM_APDU [07:36:33]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 [07:36:33]Write to MH i2c: E2 02 01 90 06 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 9A [07:36:33]Write i2c OK [07:36:33]MH_I2C_Read... [07:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:34]Read from MH i2c: E2 [07:36:34]MH_I2C_Read... [07:36:34]Read from MH i2c: E2 03 00 [07:36:34]MH_I2C_Read... [07:36:34]Read from MH i2c: E2 03 00 90 06 00 90 00 0A [07:36:34]RAPDU: 90 00 [07:36:34]wFMCommunicate OK [07:36:34]wFMCommunicate request_size=140 [07:36:34]MH_SAM_APDU [07:36:34]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 02 F6 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F3 C2 00 00 35 04 06 00 76 A1 97 59 C6 79 [07:36:34]Write to MH i2c: E2 8F 00 91 06 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 02 F6 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F3 C2 00 00 35 04 06 00 76 A1 97 59 C6 79 00 00 61 [07:36:34]Write i2c OK [07:36:34]MH_I2C_Read... [07:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:34]Read from MH i2c: E2 [07:36:34]MH_I2C_Read... [07:36:34]Read from MH i2c: E2 03 00 [07:36:34]MH_I2C_Read... [07:36:34]Read from MH i2c: E2 03 00 91 06 00 90 00 0B [07:36:34]RAPDU: 90 00 [07:36:34]wFMCommunicate OK [07:36:34]wFMCommunicate request_size=4 [07:36:34]MH_SAM_APDU [07:36:34]CAPDU: 80 0D 03 02 [07:36:34]Write to MH i2c: E2 08 00 92 06 80 0D 03 02 00 00 00 00 13 [07:36:34]Write i2c OK [07:36:34]MH_I2C_Read... [07:36:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:36:34]Read from MH i2c: E2 [07:36:34]MH_I2C_Read... [07:36:34]Read from MH i2c: E2 0B 00 [07:36:34]MH_I2C_Read... [07:36:34]Read from MH i2c: E2 0B 00 92 06 00 42 89 46 48 C1 8B 38 7A 90 00 6B [07:36:34]RAPDU: 42 89 46 48 C1 8B 38 7A 90 00 [07:36:34]wFMCommunicate OK [07:36:34]SAM_PROTO_SignData done [07:36:34]FM_MakeSignedData done [07:36:34]CreateOFDProtocolMessage [07:36:34]wFMCommunicate request_size=4 [07:36:34]MH_SAM_APDU [07:36:34]CAPDU: 80 11 00 00 [07:36:34]Write to MH i2c: E2 08 00 93 06 80 11 00 00 00 00 00 00 13 [07:36:34]Write i2c OK [07:36:34]MH_I2C_Read... [07:36:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:34]Read from MH i2c: E2 [07:36:34]MH_I2C_Read... [07:36:34]Read from MH i2c: E2 17 00 [07:36:34]MH_I2C_Read... [07:36:34]Read from MH i2c: E2 17 00 93 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5E [07:36:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:36:34]wFMCommunicate OK [07:36:34]CreateOFDProtocolMessage done [07:36:34]OFDSenderStorePacket 49907 [07:36:34]StoreOFDPacket docnum=49907 [07:36:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 91 01 00 00 92 DB 89 01 39 39 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 02 F6 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F3 C2 00 00 35 04 06 00 76 A1 97 59 C6 79 42 89 46 48 C1 8B 38 7A [07:36:34]CheckFolder [07:36:34]dirname=/storage/ofd_packets [07:36:34]CheckFolder done [07:36:34]ProducePacketName [07:36:34]name=ofd_packets/00049907 [07:36:34]NVStorageSaveData ofd_packets/00049907 [07:36:34]File name is /storage/ofd_packets/00049907 [07:36:34]Write 431 bytes [07:36:34]NVStorageSaveData done [07:36:34]OFDSenderStorePacket done [07:36:34]KKMCreateOFDPacket done [07:36:34]NVStorageSaveData kkm_last_timestamp [07:36:34]File name is /storage/kkm_last_timestamp [07:36:34]Write 4 bytes [07:36:34]NVStorageSaveData done [07:36:34]ExternCall_PrintAddStr [07:36:34]wPrintStart [07:36:34]Write to MH i2c: 01 00 00 94 06 9A [07:36:34]Write i2c OK [07:36:34]MH_I2C_Read... [07:36:34]Read from MH i2c: 01 [07:36:34]MH_I2C_Read... [07:36:34]Read from MH i2c: 01 07 00 [07:36:34]MH_I2C_Read... [07:36:34]Read from MH i2c: 01 07 00 94 06 00 00 00 00 00 FF 0F AF [07:36:34]RasterBufferAndPrint [07:36:34]line Счет N : (3)190081 [07:36:34]line ИНН: 02508201610067 [07:36:34]line Контрольно-Кассовый Чек [07:36:34]line ПРОДАЖА [07:36:34]line Товар: 47803008 [07:36:34]line Сигареты Winston XS Blue [07:36:34]line 1.000 * 140.00 [07:36:34]line = 140.00 [07:36:34]line НДС 12% НСП 1% [07:36:34]line > о реализуемом товаре [07:36:34]line Товар: 2000036220012 [07:36:34]line Кофе Капучино XL(GABB TRADE) [07:36:34]line 1.000 * 130.00 [07:36:34]line = 130.00 [07:36:34]line НДС 12% НСП 1% [07:36:34]line > о реализуемом товаре [07:36:34]line ИТОГО: 270.00 [07:36:34]line НСП 1% : 2.39 [07:36:34]line НДС 12% : 28.67 [07:36:34]line Наличными: 270.00 [07:36:34]line Безнал.: 0.00 [07:36:34]line Место: АЗС № 95 "Партнер Нефть" [07:36:34]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [07:36:34]line СНО: Общий режим [07:36:34]line Чек 14 19.08.2024 07:36 [07:36:34]line Смена: 467 ФФД: 1.0 [07:36:34]line ЗНМ: 0300000078 [07:36:34]line РНМ: 0000000000092546 [07:36:34]line Версия ККМ: 001 [07:36:34]line ФМ: 0000000000871800 [07:36:34]line ФД: 49907 [07:36:34]line ФПД: 130436401055353 [07:36:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T073634&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49907&fm=130436401055353&tin=02508201610067®Number=0000000000092546&sum=27000 [07:36:34]line 0 [07:36:34]OFD Sender: Processing packet 49907 [packets to send 21, broken 20] [07:36:34]ProducePacketName [07:36:34]name=ofd_packets/00049907 [07:36:34]OFD Sender: To server: pG, [07:36:34]CommunicateWithHost lk.salyk.kg:30040 [07:36:34]ConnectInit lk.salyk.kg [07:36:34]written 0, free lines is 4095 [07:36:34]Connected sock=10 [07:36:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 91 01 00 00 92 DB 89 01 39 39 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 02 F6 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F3 C2 00 00 35 04 06 00 76 A1 97 59 C6 79 42 89 46 48 C1 8B 38 7A [07:36:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D5 5B 47 00 E7 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F3 C2 00 00 F4 03 04 00 70 A0 C2 66 B6 04 01 00 00 FB F1 1B 05 70 81 8B 5C [07:36:35]CommunicateWithHost err = 0 [07:36:35]CheckOFDResponse [07:36:35]1017 (14) - 77093643461234 [07:36:35]1041 (16) - 0000000000871800 [07:36:35]1040 (4) - 49907 [07:36:35]1012 (4) - 19.08.2024 01:31 [07:36:35]1206 (1) - 0 [07:36:35]OFD Sender: Remove packet 49907 [07:36:35]ProducePacketName [07:36:35]name=ofd_packets/00049907 [07:36:35]NVStorageDeleteData [07:36:35]Write to MH i2c: 01 00 00 C3 06 C9 [07:36:35]Write i2c OK [07:36:35]MH_I2C_Read... [07:36:35]Read from MH i2c: 01 [07:36:35]MH_I2C_Read... [07:36:35]Read from MH i2c: 01 07 00 [07:36:35]MH_I2C_Read... [07:36:35]Read from MH i2c: 01 07 00 C3 06 00 00 00 00 00 97 0C 73 [07:36:35]RasterBufferAndPrint [07:36:35]line [07:36:35]line [07:36:35]line [07:36:35]line [07:36:35]line [07:36:35]written 0, free lines is 3228 [07:36:35]MH_Cut [07:36:35]Write to MH i2c: D1 01 00 CA 06 01 A2 [07:36:35]Write i2c OK [07:36:35]MH_I2C_Read... [07:36:35]Read from MH i2c: D1 [07:36:35]MH_I2C_Read... [07:36:35]Read from MH i2c: D1 01 00 [07:36:35]MH_I2C_Read... [07:36:35]Read from MH i2c: D1 01 00 CA 06 00 A1 [07:36:35]Write to MH i2c: 01 00 00 CB 06 D1 [07:36:35]Write i2c OK [07:36:35]MH_I2C_Read... [07:36:35]OFD Sender: No OFD packet to send [07:36:35]*** Cut start [07:36:35]*** Purtial cut [07:36:35]*** CUTSNS_PIN = 0 [07:36:36]*** Stage 1: CUTSNS_PIN = 1 [07:36:37]Read from MH i2c: 01 [07:36:37]MH_I2C_Read... [07:36:37]*** Stop cut motor [07:36:37]*** Cut end [07:36:37]Read from MH i2c: 01 07 00 [07:36:37]MH_I2C_Read... [07:36:37]Read from MH i2c: 01 07 00 CB 06 00 00 00 00 00 FF 0F E6 [07:36:37]process_action close_receipt done [07:36:37]requested_data is exist [07:36:37]produce_requested_data [07:36:37]requested_item fm.sn is exist - process it [07:36:37]wFMCommunicate request_size=4 [07:36:37]MH_SAM_APDU [07:36:37]CAPDU: 80 11 00 00 [07:36:37]Write to MH i2c: E2 08 00 CC 06 80 11 00 00 00 00 00 00 4C [07:36:37]Write i2c OK [07:36:37]MH_I2C_Read... [07:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:38]Read from MH i2c: E2 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: E2 17 00 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: E2 17 00 CC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 97 [07:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:36:38]wFMCommunicate OK [07:36:38]requested_item fd.num is exist - process it [07:36:38]SAM_PROTO_GetFieldsCounters [07:36:38]wFMCommunicate request_size=4 [07:36:38]MH_SAM_APDU [07:36:38]CAPDU: 80 13 00 00 [07:36:38]Write to MH i2c: E2 08 00 CD 06 80 13 00 00 00 00 00 00 4F [07:36:38]Write i2c OK [07:36:38]MH_I2C_Read... [07:36:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:36:38]Read from MH i2c: E2 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: E2 62 00 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: E2 62 00 CD 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F3 C2 00 00 0E 04 04 00 D3 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 1C [07:36:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F3 C2 00 00 0E 04 04 00 D3 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 [07:36:38]wFMCommunicate OK [07:36:38]SAM_PROTO_GetFieldsCounters done [07:36:38]requested_item shift.num is exist - process it [07:36:38]requested_item shift.opened is exist - process it [07:36:38]req_shift_opened [07:36:38]FM_GetShiftState [07:36:38]SAM_PROTO_GetShiftState [07:36:38]wFMCommunicate request_size=4 [07:36:38]MH_SAM_APDU [07:36:38]CAPDU: 80 13 01 00 [07:36:38]Write to MH i2c: E2 08 00 CE 06 80 13 01 00 00 00 00 00 51 [07:36:38]Write i2c OK [07:36:38]MH_I2C_Read... [07:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:38]Read from MH i2c: E2 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: E2 0E 00 [07:36:38]MH_I2C_Read... [07:36:38]Read from MH i2c: E2 0E 00 CE 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 0B [07:36:38]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [07:36:38]wFMCommunicate OK [07:36:38]SAM_PROTO_GetShiftState done [07:36:38]FM_GetShiftState done [07:36:38]req_shift_opened done [07:36:38]requested_item shift.open_date is exist - process it [07:36:38]req_shift_open_date [07:36:38]req_shift_open_date done [07:36:38]produce_requested_data done [07:36:38]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49907,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [07:36:38]process_action_free close_receipt [07:36:38]json_value_free [07:36:38]json_value_free done [07:36:38]process_json_proto returns [07:36:38]Send response to host [07:36:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49907,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [07:36:38]free response buf [07:36:38]execute_script done [07:36:38]execute_script returns [07:36:38]free content buf [07:36:38]Sock 7.Close socket [07:36:38]Sock 7.Thread stoped [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:33]accept exits with 9 [07:38:33]New connection [07:38:33]New thread 3067211108 created [07:38:33]Thread 3067354468 joined [07:38:33]Waiting for new connection... [07:38:33] Sock 9.Parse request [07:38:33]Sock 9.Check first char [07:38:33]Sock 9.First char is OK [07:38:33]request: POST /json_proto HTTP/1.0 [07:38:33]Method: POST [07:38:33]URL: /json_proto [07:38:33]Method is POST - this is cgi request [07:38:33]url: /json_proto [07:38:33]query_string will be loaded in cgi processing [07:38:33]execute_cgi json_proto POST (null) [07:38:33]execute_cgi path=json_proto method=POST [07:38:33]POST find Content-Length [07:38:33]Host: 172.17.46.196:8080 [07:38:33]Content-Length: 756 [07:38:33]Content-Type: application/json [07:38:33] [07:38:33]POST finish read [07:38:33]Found Content-Length = 756 [07:38:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30095204", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:33]execute_script... [07:38:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30095204", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:33]POST & json_proto [07:38:33]process_json_proto [07:38:33]json parsed OK: [07:38:33]protocol is kg_v1.0 [07:38:33]action value=close_receipt [07:38:33]process_action close_receipt [07:38:33]cmd_close_receipt [07:38:33]MH_GetDate [07:38:33]Write to MH i2c: F0 00 00 CF 06 C4 [07:38:33]Write i2c OK [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: F0 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: F0 09 00 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: F0 09 00 CF 06 00 7B F6 C2 66 C4 85 C2 66 D7 [07:38:33]GetLastDocTimeStamp 1724052994 [07:38:33]current date 1724053115 [07:38:33]FM_GetShiftState [07:38:33]SAM_PROTO_GetShiftState [07:38:33]wFMCommunicate request_size=4 [07:38:33]MH_SAM_APDU [07:38:33]CAPDU: 80 13 01 00 [07:38:33]Write to MH i2c: E2 08 00 D0 06 80 13 01 00 00 00 00 00 53 [07:38:33]Write i2c OK [07:38:33]MH_I2C_Read... [07:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:33]Read from MH i2c: E2 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: E2 0E 00 [07:38:33]MH_I2C_Read... [07:38:33]Read from MH i2c: E2 0E 00 D0 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 0D [07:38:33]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [07:38:33]wFMCommunicate OK [07:38:33]SAM_PROTO_GetShiftState done [07:38:33]FM_GetShiftState done [07:38:33]opened in 1724026361 [07:38:33]opened+sec_in_day 1724112761 [07:38:33]quantity*price = 0 [07:38:33]sum+1 = 1 [07:38:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 15 19.08.2024 07:38 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30095204 ФМ: 0000000000871800 ФД: 49908 ФПД: 249027654621122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T073835&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49908&fm=249027654621122&tin=02508201610067®Number=0000000000092546&sum=0 [07:38:34]StoreToDocumentArchive [07:38:34]shift 467 fd 49908 [07:38:34]save to /storage/0467/doc_00049908 [07:38:34]save last doc name /storage/0467/doc_00049908 to /storage/kkm_last_doc_name [07:38:34]save OK [07:38:34]Clear old archive folders... [07:38:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:38:34]tlvbuf is 0105A0B0 [07:38:34]SAM_PROTO_ClearQueue [07:38:34]wFMCommunicate request_size=4 [07:38:34]MH_SAM_APDU [07:38:34]CAPDU: 80 09 00 00 [07:38:34]Write to MH i2c: E2 08 00 DD 06 80 09 00 00 00 00 00 00 55 [07:38:34]Write i2c OK [07:38:34]MH_I2C_Read... [07:38:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:38:34]Read from MH i2c: E2 [07:38:34]MH_I2C_Read... [07:38:34]Read from MH i2c: E2 03 00 [07:38:34]MH_I2C_Read... [07:38:34]Read from MH i2c: E2 03 00 DD 06 00 90 00 57 [07:38:34]RAPDU: 90 00 [07:38:34]wFMCommunicate OK [07:38:34]SAM_PROTO_ClearQueue done [07:38:34]KKMCreateOFDPacket [07:38:34]OFDProtocolAddRootSTLVToBuf [07:38:34]FM_MakeSignedData [07:38:34]FM_MakeSignedData [07:38:34]SAM_PROTO_SignData [07:38:34]wFMCommunicate request_size=4 [07:38:34]MH_SAM_APDU [07:38:34]CAPDU: 80 0D 01 02 [07:38:34]Write to MH i2c: E2 08 00 DE 06 80 0D 01 02 00 00 00 00 5D [07:38:34]Write i2c OK [07:38:34]MH_I2C_Read... [07:38:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:38:34]Read from MH i2c: E2 [07:38:34]MH_I2C_Read... [07:38:34]Read from MH i2c: E2 03 00 [07:38:34]MH_I2C_Read... [07:38:34]Read from MH i2c: E2 03 00 DE 06 00 90 00 58 [07:38:34]RAPDU: 90 00 [07:38:34]wFMCommunicate OK [07:38:34]wFMCommunicate request_size=255 [07:38:34]MH_SAM_APDU [07:38: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 34 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 7B F6 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F4 C2 00 00 35 04 06 00 E2 [07:38:34]Write to MH i2c: E2 02 01 DF 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 7B F6 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F4 C2 00 00 35 04 06 00 E2 00 00 7C [07:38:34]Write i2c OK [07:38:34]MH_I2C_Read... [07:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:35]Read from MH i2c: E2 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 03 00 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 03 00 DF 06 00 90 00 59 [07:38:35]RAPDU: 90 00 [07:38:35]wFMCommunicate OK [07:38:35]wFMCommunicate request_size=10 [07:38:35]MH_SAM_APDU [07:38:35]CAPDU: 80 0D 02 02 05 7D 44 E4 97 C2 [07:38:35]Write to MH i2c: E2 0D 00 E0 06 80 0D 02 02 05 00 7D 44 E4 97 C2 00 00 68 [07:38:35]Write i2c OK [07:38:35]MH_I2C_Read... [07:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:35]Read from MH i2c: E2 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 03 00 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 03 00 E0 06 00 90 00 5A [07:38:35]RAPDU: 90 00 [07:38:35]wFMCommunicate OK [07:38:35]wFMCommunicate request_size=4 [07:38:35]MH_SAM_APDU [07:38:35]CAPDU: 80 0D 03 02 [07:38:35]Write to MH i2c: E2 08 00 E1 06 80 0D 03 02 00 00 00 00 62 [07:38:35]Write i2c OK [07:38:35]MH_I2C_Read... [07:38:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:38:35]Read from MH i2c: E2 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 0B 00 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 0B 00 E1 06 00 95 2B DB 49 5A 19 00 E4 90 00 9E [07:38:35]RAPDU: 95 2B DB 49 5A 19 00 E4 90 00 [07:38:35]wFMCommunicate OK [07:38:35]SAM_PROTO_SignData done [07:38:35]FM_MakeSignedData done [07:38:35]CreateOFDProtocolMessage [07:38:35]wFMCommunicate request_size=4 [07:38:35]MH_SAM_APDU [07:38:35]CAPDU: 80 11 00 00 [07:38:35]Write to MH i2c: E2 08 00 E2 06 80 11 00 00 00 00 00 00 62 [07:38:35]Write i2c OK [07:38:35]MH_I2C_Read... [07:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:35]Read from MH i2c: E2 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 17 00 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: E2 17 00 E2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AD [07:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:38:35]wFMCommunicate OK [07:38:35]CreateOFDProtocolMessage done [07:38:35]OFDSenderStorePacket 49908 [07:38:35]StoreOFDPacket docnum=49908 [07:38:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 15 E0 07 01 73 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 7B F6 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F4 C2 00 00 35 04 06 00 E2 7D 44 E4 97 C2 95 2B DB 49 5A 19 00 E4 [07:38:35]CheckFolder [07:38:35]dirname=/storage/ofd_packets [07:38:35]CheckFolder done [07:38:35]ProducePacketName [07:38:35]name=ofd_packets/00049908 [07:38:35]NVStorageSaveData ofd_packets/00049908 [07:38:35]File name is /storage/ofd_packets/00049908 [07:38:35]Write 301 bytes [07:38:35]NVStorageSaveData done [07:38:35]OFDSenderStorePacket done [07:38:35]KKMCreateOFDPacket done [07:38:35]NVStorageSaveData kkm_last_timestamp [07:38:35]File name is /storage/kkm_last_timestamp [07:38:35]Write 4 bytes [07:38:35]NVStorageSaveData done [07:38:35]ExternCall_PrintAddStr [07:38:35]wPrintStart [07:38:35]Write to MH i2c: 01 00 00 E3 06 E9 [07:38:35]Write i2c OK [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: 01 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: 01 07 00 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: 01 07 00 E3 06 00 00 00 00 00 FF 0F FE [07:38:35]RasterBufferAndPrint [07:38:35]line Счет N : (1)11327502 [07:38:35]line ИНН: 02508201610067 [07:38:35]line Контрольно-Кассовый Чек [07:38:35]line ПРОДАЖА [07:38:35]line ТРК (МРК, ГНК) : 32 [07:38:35]line Товар: 2710124130 [07:38:35]line Аи-92-К-4 [07:38:35]line 25.000 * 0.00 [07:38:35]line = 0.00 [07:38:35]line НДС 12% НСП 1% [07:38:35]line > о реализуемом товаре [07:38:35]line ИТОГО: 0.00 [07:38:35]line НСП 1% : 0.00 [07:38:35]line НДС 12% : 0.00 [07:38:35]line Наличными: 0.00 [07:38:35]line Безнал.: 0.00 [07:38:35]line Место: АЗС № 95 "Партнер Нефть" [07:38:35]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [07:38:35]line СНО: Общий режим [07:38:35]line Чек 15 19.08.2024 07:38 [07:38:35]line Смена: 467 ФФД: 1.0 [07:38:35]line ЗНМ: 0300000078 [07:38:35]line РНМ: 0000000000092546 [07:38:35]line Версия ККМ: 001 [07:38:35]line Талоны: ТК ГПНА Online [07:38:35]line 30095204 [07:38:35]line ФМ: 0000000000871800 [07:38:35]line ФД: 49908 [07:38:35]line ФПД: 249027654621122 [07:38:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T073835&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49908&fm=249027654621122&tin=02508201610067®Number=0000000000092546&sum=0 [07:38:35]written 0, free lines is 4095 [07:38:35]OFD Sender: Processing packet 49908 [packets to send 21, broken 20] [07:38:35]ProducePacketName [07:38:35]name=ofd_packets/00049908 [07:38:35]OFD Sender: To server: pG, [07:38:35]CommunicateWithHost lk.salyk.kg:30040 [07:38:35]ConnectInit lk.salyk.kg [07:38:35]Write to MH i2c: 01 00 00 0D 07 14 [07:38:35]Write i2c OK [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: 01 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: 01 07 00 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: 01 07 00 0D 07 00 00 00 00 00 CC 0C F3 [07:38:35]RasterBufferAndPrint [07:38:35]line [07:38:35]line [07:38:35]line [07:38:35]line [07:38:35]line [07:38:35]written 0, free lines is 3282 [07:38:35]MH_Cut [07:38:35]Write to MH i2c: D1 01 00 14 07 01 ED [07:38:35]Write i2c OK [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: D1 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: D1 01 00 [07:38:35]MH_I2C_Read... [07:38:35]Read from MH i2c: D1 01 00 14 07 00 EC [07:38:35]Write to MH i2c: 01 00 00 15 07 1C [07:38:35]Write i2c OK [07:38:35]MH_I2C_Read... [07:38:35]Connected sock=10 [07:38:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 15 E0 07 01 73 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 7B F6 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F4 C2 00 00 35 04 06 00 E2 7D 44 E4 97 C2 95 2B DB 49 5A 19 00 E4 [07:38:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 9E 07 47 00 E6 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F4 C2 00 00 F4 03 04 00 E9 A0 C2 66 B6 04 01 00 00 74 00 B6 F4 75 E1 BB A9 [07:38:36]CommunicateWithHost err = 0 [07:38:36]CheckOFDResponse [07:38:36]1017 (14) - 77093643461234 [07:38:36]1041 (16) - 0000000000871800 [07:38:36]1040 (4) - 49908 [07:38:36]1012 (4) - 19.08.2024 01:33 [07:38:36]1206 (1) - 0 [07:38:36]OFD Sender: Remove packet 49908 [07:38:36]ProducePacketName [07:38:36]name=ofd_packets/00049908 [07:38:36]NVStorageDeleteData [07:38:36]*** Cut start [07:38:36]*** Purtial cut [07:38:36]*** Stage 1: CUTSNS_PIN = 1 [07:38:36]OFD Sender: No OFD packet to send [07:38:36]Read from MH i2c: 01 [07:38:36]MH_I2C_Read... [07:38:36]*** Stop cut motor [07:38:36]*** Cut end [07:38:36]Read from MH i2c: 01 07 00 [07:38:36]MH_I2C_Read... [07:38:36]Read from MH i2c: 01 07 00 15 07 00 00 00 00 00 FF 0F 31 [07:38:36]process_action close_receipt done [07:38:36]requested_data is exist [07:38:36]produce_requested_data [07:38:36]requested_item fm.sn is exist - process it [07:38:36]wFMCommunicate request_size=4 [07:38:36]MH_SAM_APDU [07:38:36]CAPDU: 80 11 00 00 [07:38:36]Write to MH i2c: E2 08 00 16 07 80 11 00 00 00 00 00 00 97 [07:38:36]Write i2c OK [07:38:36]MH_I2C_Read... [07:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:36]Read from MH i2c: E2 [07:38:36]MH_I2C_Read... [07:38:36]Read from MH i2c: E2 17 00 [07:38:36]MH_I2C_Read... [07:38:36]Read from MH i2c: E2 17 00 16 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E2 [07:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:38:36]wFMCommunicate OK [07:38:36]requested_item fd.num is exist - process it [07:38:36]SAM_PROTO_GetFieldsCounters [07:38:36]wFMCommunicate request_size=4 [07:38:36]MH_SAM_APDU [07:38:36]CAPDU: 80 13 00 00 [07:38:36]Write to MH i2c: E2 08 00 17 07 80 13 00 00 00 00 00 00 9A [07:38:36]Write i2c OK [07:38:36]MH_I2C_Read... [07:38:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:38:37]Read from MH i2c: E2 [07:38:37]MH_I2C_Read... [07:38:37]Read from MH i2c: E2 62 00 [07:38:37]MH_I2C_Read... [07:38:37]Read from MH i2c: E2 62 00 17 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F4 C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [07:38:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F4 C2 00 00 0E 04 04 00 D3 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 [07:38:37]wFMCommunicate OK [07:38:37]SAM_PROTO_GetFieldsCounters done [07:38:37]requested_item shift.num is exist - process it [07:38:37]requested_item shift.opened is exist - process it [07:38:37]req_shift_opened [07:38:37]FM_GetShiftState [07:38:37]SAM_PROTO_GetShiftState [07:38:37]wFMCommunicate request_size=4 [07:38:37]MH_SAM_APDU [07:38:37]CAPDU: 80 13 01 00 [07:38:37]Write to MH i2c: E2 08 00 18 07 80 13 01 00 00 00 00 00 9C [07:38:37]Write i2c OK [07:38:37]MH_I2C_Read... [07:38:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:37]Read from MH i2c: E2 [07:38:37]MH_I2C_Read... [07:38:37]Read from MH i2c: E2 0E 00 [07:38:37]MH_I2C_Read... [07:38:37]Read from MH i2c: E2 0E 00 18 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 56 [07:38:37]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [07:38:37]wFMCommunicate OK [07:38:37]SAM_PROTO_GetShiftState done [07:38:37]FM_GetShiftState done [07:38:37]req_shift_opened done [07:38:37]requested_item shift.open_date is exist - process it [07:38:37]req_shift_open_date [07:38:37]req_shift_open_date done [07:38:37]produce_requested_data done [07:38:37]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49908,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [07:38:37]process_action_free close_receipt [07:38:37]json_value_free [07:38:37]json_value_free done [07:38:37]process_json_proto returns [07:38:37]Send response to host [07:38:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49908,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [07:38:37]free response buf [07:38:37]execute_script done [07:38:37]execute_script returns [07:38:37]free content buf [07:38:37]Sock 9.Close socket [07:38:37]Sock 9.Thread stoped [07:38:41]OFD Sender: No OFD packet to send [07:38:46]OFD Sender: No OFD packet to send [07:38:51]OFD Sender: No OFD packet to send [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:12]accept exits with 7 [07:39:12]New connection [07:39:12]New thread 3067354468 created [07:39:12]Thread 3067211108 joined [07:39:12]Waiting for new connection... [07:39:12] Sock 7.Parse request [07:39:12]Sock 7.Check first char [07:39:12]Sock 7.First char is OK [07:39:12]request: POST /json_proto HTTP/1.0 [07:39:12]Method: POST [07:39:12]URL: /json_proto [07:39:12]Method is POST - this is cgi request [07:39:12]url: /json_proto [07:39:12]query_string will be loaded in cgi processing [07:39:12]execute_cgi json_proto POST (null) [07:39:12]execute_cgi path=json_proto method=POST [07:39:12]POST find Content-Length [07:39:12]Host: 172.17.46.196:8080 [07:39:12]Content-Length: 754 [07:39:12]Content-Type: application/json [07:39:12] [07:39:12]POST finish read [07:39:12]Found Content-Length = 754 [07:39:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30059895.", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:12]execute_script... [07:39:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30059895.", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:12]POST & json_proto [07:39:12]process_json_proto [07:39:12]json parsed OK: [07:39:12]protocol is kg_v1.0 [07:39:12]action value=close_receipt [07:39:12]process_action close_receipt [07:39:12]cmd_close_receipt [07:39:12]MH_GetDate [07:39:12]Write to MH i2c: F0 00 00 19 07 0F [07:39:12]Write i2c OK [07:39:12]MH_I2C_Read... [07:39:12]Read from MH i2c: F0 [07:39:12]MH_I2C_Read... [07:39:12]Read from MH i2c: F0 09 00 [07:39:12]MH_I2C_Read... [07:39:12]Read from MH i2c: F0 09 00 19 07 00 A1 F6 C2 66 C4 85 C2 66 48 [07:39:12]GetLastDocTimeStamp 1724053115 [07:39:12]current date 1724053153 [07:39:12]FM_GetShiftState [07:39:12]SAM_PROTO_GetShiftState [07:39:12]wFMCommunicate request_size=4 [07:39:12]MH_SAM_APDU [07:39:12]CAPDU: 80 13 01 00 [07:39:12]Write to MH i2c: E2 08 00 1A 07 80 13 01 00 00 00 00 00 9E [07:39:12]Write i2c OK [07:39:12]MH_I2C_Read... [07:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:12]Read from MH i2c: E2 [07:39:12]MH_I2C_Read... [07:39:12]Read from MH i2c: E2 0E 00 [07:39:12]MH_I2C_Read... [07:39:12]Read from MH i2c: E2 0E 00 1A 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 58 [07:39:12]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [07:39:12]wFMCommunicate OK [07:39:12]SAM_PROTO_GetShiftState done [07:39:12]FM_GetShiftState done [07:39:12]opened in 1724026361 [07:39:12]opened+sec_in_day 1724112761 [07:39:12]quantity*price = 0 [07:39:12]sum+1 = 1 [07:39:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 16 19.08.2024 07:39 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30059895. ФМ: 0000000000871800 ФД: 49909 ФПД: 65693098138223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T073913&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49909&fm=65693098138223&tin=02508201610067®Number=0000000000092546&sum=0 [07:39:13]StoreToDocumentArchive [07:39:13]shift 467 fd 49909 [07:39:13]save to /storage/0467/doc_00049909 [07:39:13]save last doc name /storage/0467/doc_00049909 to /storage/kkm_last_doc_name [07:39:13]save OK [07:39:13]Clear old archive folders... [07:39:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:39:13]tlvbuf is 0105A0B0 [07:39:13]SAM_PROTO_ClearQueue [07:39:13]wFMCommunicate request_size=4 [07:39:13]MH_SAM_APDU [07:39:13]CAPDU: 80 09 00 00 [07:39:13]Write to MH i2c: E2 08 00 27 07 80 09 00 00 00 00 00 00 A0 [07:39:13]Write i2c OK [07:39:13]MH_I2C_Read... [07:39:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:39:13]Read from MH i2c: E2 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 03 00 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [07:39:13]RAPDU: 90 00 [07:39:13]wFMCommunicate OK [07:39:13]SAM_PROTO_ClearQueue done [07:39:13]KKMCreateOFDPacket [07:39:13]OFDProtocolAddRootSTLVToBuf [07:39:13]FM_MakeSignedData [07:39:13]FM_MakeSignedData [07:39:13]SAM_PROTO_SignData [07:39:13]wFMCommunicate request_size=4 [07:39:13]MH_SAM_APDU [07:39:13]CAPDU: 80 0D 01 02 [07:39:13]Write to MH i2c: E2 08 00 28 07 80 0D 01 02 00 00 00 00 A8 [07:39:13]Write i2c OK [07:39:13]MH_I2C_Read... [07:39:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:39:13]Read from MH i2c: E2 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 03 00 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 03 00 28 07 00 90 00 A3 [07:39:13]RAPDU: 90 00 [07:39:13]wFMCommunicate OK [07:39:13]wFMCommunicate request_size=255 [07:39:13]MH_SAM_APDU [07:39:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A1 F6 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F5 C2 00 00 35 04 06 00 3B BF 5D C7 [07:39:13]Write to MH i2c: E2 02 01 29 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A1 F6 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F5 C2 00 00 35 04 06 00 3B BF 5D C7 00 00 C0 [07:39:13]Write i2c OK [07:39:13]MH_I2C_Read... [07:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:13]Read from MH i2c: E2 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 03 00 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 03 00 29 07 00 90 00 A4 [07:39:13]RAPDU: 90 00 [07:39:13]wFMCommunicate OK [07:39:13]wFMCommunicate request_size=7 [07:39:13]MH_SAM_APDU [07:39:13]CAPDU: 80 0D 02 02 02 5A 6F [07:39:13]Write to MH i2c: E2 0A 00 2A 07 80 0D 02 02 02 00 5A 6F 00 00 78 [07:39:13]Write i2c OK [07:39:13]MH_I2C_Read... [07:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:13]Read from MH i2c: E2 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 03 00 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 03 00 2A 07 00 90 00 A5 [07:39:13]RAPDU: 90 00 [07:39:13]wFMCommunicate OK [07:39:13]wFMCommunicate request_size=4 [07:39:13]MH_SAM_APDU [07:39:13]CAPDU: 80 0D 03 02 [07:39:13]Write to MH i2c: E2 08 00 2B 07 80 0D 03 02 00 00 00 00 AD [07:39:13]Write i2c OK [07:39:13]MH_I2C_Read... [07:39:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:39:13]Read from MH i2c: E2 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 0B 00 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 0B 00 2B 07 00 13 23 F5 9D 32 B4 02 44 90 00 A2 [07:39:13]RAPDU: 13 23 F5 9D 32 B4 02 44 90 00 [07:39:13]wFMCommunicate OK [07:39:13]SAM_PROTO_SignData done [07:39:13]FM_MakeSignedData done [07:39:13]CreateOFDProtocolMessage [07:39:13]wFMCommunicate request_size=4 [07:39:13]MH_SAM_APDU [07:39:13]CAPDU: 80 11 00 00 [07:39:13]Write to MH i2c: E2 08 00 2C 07 80 11 00 00 00 00 00 00 AD [07:39:13]Write i2c OK [07:39:13]MH_I2C_Read... [07:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:13]Read from MH i2c: E2 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 17 00 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: E2 17 00 2C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F8 [07:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:39:13]wFMCommunicate OK [07:39:13]CreateOFDProtocolMessage done [07:39:13]OFDSenderStorePacket 49909 [07:39:13]StoreOFDPacket docnum=49909 [07:39:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 F7 16 04 01 62 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A1 F6 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F5 C2 00 00 35 04 06 00 3B BF 5D C7 5A 6F 13 23 F5 9D 32 B4 02 44 [07:39:13]CheckFolder [07:39:13]dirname=/storage/ofd_packets [07:39:13]CheckFolder done [07:39:13]ProducePacketName [07:39:13]name=ofd_packets/00049909 [07:39:13]NVStorageSaveData ofd_packets/00049909 [07:39:13]File name is /storage/ofd_packets/00049909 [07:39:13]Write 298 bytes [07:39:13]NVStorageSaveData done [07:39:13]OFDSenderStorePacket done [07:39:13]KKMCreateOFDPacket done [07:39:13]NVStorageSaveData kkm_last_timestamp [07:39:13]File name is /storage/kkm_last_timestamp [07:39:13]Write 4 bytes [07:39:13]NVStorageSaveData done [07:39:13]ExternCall_PrintAddStr [07:39:13]wPrintStart [07:39:13]Write to MH i2c: 01 00 00 2D 07 34 [07:39:13]Write i2c OK [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: 01 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: 01 07 00 [07:39:13]MH_I2C_Read... [07:39:13]Read from MH i2c: 01 07 00 2D 07 00 00 00 00 00 FF 0F 49 [07:39:13]RasterBufferAndPrint [07:39:13]line Счет N : (1)11327501 [07:39:13]line ИНН: 02508201610067 [07:39:13]line Контрольно-Кассовый Чек [07:39:13]line ПРОДАЖА [07:39:13]line ТРК (МРК, ГНК) : 51 [07:39:13]line Товар: 2710194210 [07:39:13]line ДТ-К-5 [07:39:13]line 60.000 * 0.00 [07:39:13]line = 0.00 [07:39:13]line НДС 12% НСП 1% [07:39:13]line > о реализуемом товаре [07:39:13]line ИТОГО: 0.00 [07:39:13]line НСП 1% : 0.00 [07:39:13]line НДС 12% : 0.00 [07:39:13]line Наличными: 0.00 [07:39:13]line Безнал.: 0.00 [07:39:13]line Место: АЗС № 95 "Партнер Нефть" [07:39:13]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [07:39:13]line СНО: Общий режим [07:39:13]line Чек 16 19.08.2024 07:39 [07:39:13]line Смена: 467 ФФД: 1.0 [07:39:13]line ЗНМ: 0300000078 [07:39:13]line РНМ: 0000000000092546 [07:39:13]line Версия ККМ: 001 [07:39:13]line Талоны: ТК ГПНА Online [07:39:13]line 30059895. [07:39:13]line ФМ: 0000000000871800 [07:39:13]line ФД: 49909 [07:39:13]line ФПД: 65693098138223 [07:39:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T073913&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49909&fm=65693098138223&tin=02508201610067®Number=0000000000092546&sum=0 [07:39:14]OFD Sender: Processing packet 49909 [packets to send 21, broken 20] [07:39:14]ProducePacketName [07:39:14]name=ofd_packets/00049909 [07:39:14]OFD Sender: To server: pG, [07:39:14]CommunicateWithHost lk.salyk.kg:30040 [07:39:14]ConnectInit lk.salyk.kg [07:39:14]written 0, free lines is 4095 [07:39:14]Connected sock=10 [07:39:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 F7 16 04 01 62 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A1 F6 C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F5 C2 00 00 35 04 06 00 3B BF 5D C7 5A 6F 13 23 F5 9D 32 B4 02 44 [07:39:14]Write to MH i2c: 01 00 00 57 07 5E [07:39:14]Write i2c OK [07:39:14]MH_I2C_Read... [07:39:14]Read from MH i2c: 01 [07:39:14]MH_I2C_Read... [07:39:14]Read from MH i2c: 01 07 00 [07:39:14]MH_I2C_Read... [07:39:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 12 C5 47 00 2C 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F5 C2 00 00 F4 03 04 00 0F A1 C2 66 B6 04 01 00 00 55 8F 67 5F 50 3F D0 98 [07:39:14]CommunicateWithHost err = 0 [07:39:14]CheckOFDResponse [07:39:14]1017 (14) - 77093643461234 [07:39:14]1041 (16) - 0000000000871800 [07:39:14]1040 (4) - 49909 [07:39:14]1012 (4) - 19.08.2024 01:34 [07:39:14]1206 (1) - 0 [07:39:14]OFD Sender: Remove packet 49909 [07:39:14]ProducePacketName [07:39:14]name=ofd_packets/00049909 [07:39:14]NVStorageDeleteData [07:39:14]Read from MH i2c: 01 07 00 57 07 00 00 00 00 00 D3 0C 44 [07:39:14]RasterBufferAndPrint [07:39:14]line [07:39:14]line [07:39:14]line [07:39:14]line [07:39:14]line [07:39:14]written 0, free lines is 3313 [07:39:14]MH_Cut [07:39:14]Write to MH i2c: D1 01 00 5E 07 01 37 [07:39:14]Write i2c OK [07:39:14]MH_I2C_Read... [07:39:14]Read from MH i2c: D1 [07:39:14]MH_I2C_Read... [07:39:14]Read from MH i2c: D1 01 00 [07:39:14]MH_I2C_Read... [07:39:14]Read from MH i2c: D1 01 00 5E 07 00 36 [07:39:14]Write to MH i2c: 01 00 00 5F 07 66 [07:39:14]Write i2c OK [07:39:14]MH_I2C_Read... [07:39:15]OFD Sender: No OFD packet to send [07:39:15]*** Cut start [07:39:15]*** Purtial cut [07:39:15]*** CUTSNS_PIN = 0 [07:39:15]*** Stage 1: CUTSNS_PIN = 1 [07:39:17]Read from MH i2c: 01 [07:39:17]MH_I2C_Read... [07:39:17]*** Stop cut motor [07:39:17]*** Cut end [07:39:17]Read from MH i2c: 01 07 00 [07:39:17]MH_I2C_Read... [07:39:17]Read from MH i2c: 01 07 00 5F 07 00 00 00 00 00 FF 0F 7B [07:39:17]process_action close_receipt done [07:39:17]requested_data is exist [07:39:17]produce_requested_data [07:39:17]requested_item fm.sn is exist - process it [07:39:17]wFMCommunicate request_size=4 [07:39:17]MH_SAM_APDU [07:39:17]CAPDU: 80 11 00 00 [07:39:17]Write to MH i2c: E2 08 00 60 07 80 11 00 00 00 00 00 00 E1 [07:39:17]Write i2c OK [07:39:17]MH_I2C_Read... [07:39:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:17]Read from MH i2c: E2 [07:39:17]MH_I2C_Read... [07:39:17]Read from MH i2c: E2 17 00 [07:39:17]MH_I2C_Read... [07:39:17]Read from MH i2c: E2 17 00 60 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2C [07:39:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:39:17]wFMCommunicate OK [07:39:17]requested_item fd.num is exist - process it [07:39:17]SAM_PROTO_GetFieldsCounters [07:39:17]wFMCommunicate request_size=4 [07:39:17]MH_SAM_APDU [07:39:17]CAPDU: 80 13 00 00 [07:39:17]Write to MH i2c: E2 08 00 61 07 80 13 00 00 00 00 00 00 E4 [07:39:17]Write i2c OK [07:39:17]MH_I2C_Read... [07:39:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:39:17]Read from MH i2c: E2 [07:39:17]MH_I2C_Read... [07:39:17]Read from MH i2c: E2 62 00 [07:39:17]MH_I2C_Read... [07:39:17]Read from MH i2c: E2 62 00 61 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F5 C2 00 00 0E 04 04 00 D3 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 B9 [07:39:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F5 C2 00 00 0E 04 04 00 D3 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 [07:39:17]wFMCommunicate OK [07:39:17]SAM_PROTO_GetFieldsCounters done [07:39:17]requested_item shift.num is exist - process it [07:39:17]requested_item shift.opened is exist - process it [07:39:17]req_shift_opened [07:39:17]FM_GetShiftState [07:39:17]SAM_PROTO_GetShiftState [07:39:17]wFMCommunicate request_size=4 [07:39:17]MH_SAM_APDU [07:39:17]CAPDU: 80 13 01 00 [07:39:17]Write to MH i2c: E2 08 00 62 07 80 13 01 00 00 00 00 00 E6 [07:39:17]Write i2c OK [07:39:17]MH_I2C_Read... [07:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:17]Read from MH i2c: E2 [07:39:17]MH_I2C_Read... [07:39:17]Read from MH i2c: E2 0E 00 [07:39:17]MH_I2C_Read... [07:39:17]Read from MH i2c: E2 0E 00 62 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A0 [07:39:17]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [07:39:17]wFMCommunicate OK [07:39:17]SAM_PROTO_GetShiftState done [07:39:17]FM_GetShiftState done [07:39:17]req_shift_opened done [07:39:17]requested_item shift.open_date is exist - process it [07:39:17]req_shift_open_date [07:39:17]req_shift_open_date done [07:39:17]produce_requested_data done [07:39:17]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49909,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [07:39:17]process_action_free close_receipt [07:39:17]json_value_free [07:39:17]json_value_free done [07:39:17]process_json_proto returns [07:39:17]Send response to host [07:39:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49909,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [07:39:17]free response buf [07:39:17]execute_script done [07:39:17]execute_script returns [07:39:17]free content buf [07:39:17]Sock 7.Close socket [07:39:17]Sock 7.Thread stoped [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]accept exits with 9 [07:54:40]New connection [07:54:40]New thread 3067211108 created [07:54:40]Thread 3067354468 joined [07:54:40]Waiting for new connection... [07:54:40] Sock 9.Parse request [07:54:40]Sock 9.Check first char [07:54:40]Sock 9.First char is OK [07:54:40]request: POST /json_proto HTTP/1.0 [07:54:40]Method: POST [07:54:40]URL: /json_proto [07:54:40]Method is POST - this is cgi request [07:54:40]url: /json_proto [07:54:40]query_string will be loaded in cgi processing [07:54:40]execute_cgi json_proto POST (null) [07:54:40]execute_cgi path=json_proto method=POST [07:54:40]POST find Content-Length [07:54:40]Host: 172.17.46.196:8080 [07:54:40]Content-Length: 753 [07:54:40]Content-Type: application/json [07:54:40] [07:54:40]POST finish read [07:54:40]Found Content-Length = 753 [07:54:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 14.430, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30062733", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:40]execute_script... [07:54:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 14.430, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30062733", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:40]POST & json_proto [07:54:40]process_json_proto [07:54:40]json parsed OK: [07:54:40]protocol is kg_v1.0 [07:54:40]action value=close_receipt [07:54:40]process_action close_receipt [07:54:40]cmd_close_receipt [07:54:40]MH_GetDate [07:54:40]Write to MH i2c: F0 00 00 63 07 59 [07:54:40]Write i2c OK [07:54:40]MH_I2C_Read... [07:54:40]Read from MH i2c: F0 [07:54:40]MH_I2C_Read... [07:54:40]Read from MH i2c: F0 09 00 [07:54:40]MH_I2C_Read... [07:54:40]Read from MH i2c: F0 09 00 63 07 00 42 FA C2 66 C4 85 C2 66 37 [07:54:40]GetLastDocTimeStamp 1724053153 [07:54:40]current date 1724054082 [07:54:40]FM_GetShiftState [07:54:40]SAM_PROTO_GetShiftState [07:54:40]wFMCommunicate request_size=4 [07:54:40]MH_SAM_APDU [07:54:40]CAPDU: 80 13 01 00 [07:54:40]Write to MH i2c: E2 08 00 64 07 80 13 01 00 00 00 00 00 E8 [07:54:40]Write i2c OK [07:54:40]MH_I2C_Read... [07:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:40]Read from MH i2c: E2 [07:54:40]MH_I2C_Read... [07:54:40]Read from MH i2c: E2 0E 00 [07:54:40]MH_I2C_Read... [07:54:40]Read from MH i2c: E2 0E 00 64 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A2 [07:54:40]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [07:54:40]wFMCommunicate OK [07:54:40]SAM_PROTO_GetShiftState done [07:54:40]FM_GetShiftState done [07:54:40]opened in 1724026361 [07:54:40]opened+sec_in_day 1724112761 [07:54:40]quantity*price = 0 [07:54:40]sum+1 = 1 [07:54:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 17 19.08.2024 07:54 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30062733 ФМ: 0000000000871800 ФД: 49910 ФПД: 154685510455864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T075442&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49910&fm=154685510455864&tin=02508201610067®Number=0000000000092546&sum=0 [07:54:41]StoreToDocumentArchive [07:54:41]shift 467 fd 49910 [07:54:41]save to /storage/0467/doc_00049910 [07:54:41]save last doc name /storage/0467/doc_00049910 to /storage/kkm_last_doc_name [07:54:41]save OK [07:54:41]Clear old archive folders... [07:54:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:54:41]tlvbuf is 0104D500 [07:54:41]SAM_PROTO_ClearQueue [07:54:41]wFMCommunicate request_size=4 [07:54:41]MH_SAM_APDU [07:54:41]CAPDU: 80 09 00 00 [07:54:41]Write to MH i2c: E2 08 00 71 07 80 09 00 00 00 00 00 00 EA [07:54:41]Write i2c OK [07:54:41]MH_I2C_Read... [07:54:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:41]Read from MH i2c: E2 [07:54:41]MH_I2C_Read... [07:54:41]Read from MH i2c: E2 03 00 [07:54:41]MH_I2C_Read... [07:54:41]Read from MH i2c: E2 03 00 71 07 00 90 00 EC [07:54:41]RAPDU: 90 00 [07:54:41]wFMCommunicate OK [07:54:41]SAM_PROTO_ClearQueue done [07:54:41]KKMCreateOFDPacket [07:54:41]OFDProtocolAddRootSTLVToBuf [07:54:41]FM_MakeSignedData [07:54:41]FM_MakeSignedData [07:54:41]SAM_PROTO_SignData [07:54:41]wFMCommunicate request_size=4 [07:54:41]MH_SAM_APDU [07:54:41]CAPDU: 80 0D 01 02 [07:54:41]Write to MH i2c: E2 08 00 72 07 80 0D 01 02 00 00 00 00 F2 [07:54:41]Write i2c OK [07:54:41]MH_I2C_Read... [07:54:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:42]Read from MH i2c: E2 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 03 00 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 03 00 72 07 00 90 00 ED [07:54:42]RAPDU: 90 00 [07:54:42]wFMCommunicate OK [07:54:42]wFMCommunicate request_size=255 [07:54:42]MH_SAM_APDU [07:54:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 42 FA C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F6 C2 00 00 35 04 06 00 8C AF 86 E7 [07:54:42]Write to MH i2c: E2 02 01 73 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 42 FA C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F6 C2 00 00 35 04 06 00 8C AF 86 E7 00 00 87 [07:54:42]Write i2c OK [07:54:42]MH_I2C_Read... [07:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:42]Read from MH i2c: E2 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 03 00 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 03 00 73 07 00 90 00 EE [07:54:42]RAPDU: 90 00 [07:54:42]wFMCommunicate OK [07:54:42]wFMCommunicate request_size=7 [07:54:42]MH_SAM_APDU [07:54:42]CAPDU: 80 0D 02 02 02 12 38 [07:54:42]Write to MH i2c: E2 0A 00 74 07 80 0D 02 02 02 00 12 38 00 00 43 [07:54:42]Write i2c OK [07:54:42]MH_I2C_Read... [07:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:42]Read from MH i2c: E2 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 03 00 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 03 00 74 07 00 90 00 EF [07:54:42]RAPDU: 90 00 [07:54:42]wFMCommunicate OK [07:54:42]wFMCommunicate request_size=4 [07:54:42]MH_SAM_APDU [07:54:42]CAPDU: 80 0D 03 02 [07:54:42]Write to MH i2c: E2 08 00 75 07 80 0D 03 02 00 00 00 00 F7 [07:54:42]Write i2c OK [07:54:42]MH_I2C_Read... [07:54:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:42]Read from MH i2c: E2 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 0B 00 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 0B 00 75 07 00 8C 71 9A 59 A8 E4 30 E5 90 00 89 [07:54:42]RAPDU: 8C 71 9A 59 A8 E4 30 E5 90 00 [07:54:42]wFMCommunicate OK [07:54:42]SAM_PROTO_SignData done [07:54:42]FM_MakeSignedData done [07:54:42]CreateOFDProtocolMessage [07:54:42]wFMCommunicate request_size=4 [07:54:42]MH_SAM_APDU [07:54:42]CAPDU: 80 11 00 00 [07:54:42]Write to MH i2c: E2 08 00 76 07 80 11 00 00 00 00 00 00 F7 [07:54:42]Write i2c OK [07:54:42]MH_I2C_Read... [07:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:42]Read from MH i2c: E2 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 17 00 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: E2 17 00 76 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 42 [07:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:54:42]wFMCommunicate OK [07:54:42]CreateOFDProtocolMessage done [07:54:42]OFDSenderStorePacket 49910 [07:54:42]StoreOFDPacket docnum=49910 [07:54:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 C7 19 04 01 64 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 42 FA C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F6 C2 00 00 35 04 06 00 8C AF 86 E7 12 38 8C 71 9A 59 A8 E4 30 E5 [07:54:42]CheckFolder [07:54:42]dirname=/storage/ofd_packets [07:54:42]CheckFolder done [07:54:42]ProducePacketName [07:54:42]name=ofd_packets/00049910 [07:54:42]NVStorageSaveData ofd_packets/00049910 [07:54:42]File name is /storage/ofd_packets/00049910 [07:54:42]Write 298 bytes [07:54:42]NVStorageSaveData done [07:54:42]OFDSenderStorePacket done [07:54:42]KKMCreateOFDPacket done [07:54:42]NVStorageSaveData kkm_last_timestamp [07:54:42]File name is /storage/kkm_last_timestamp [07:54:42]Write 4 bytes [07:54:42]NVStorageSaveData done [07:54:42]ExternCall_PrintAddStr [07:54:42]wPrintStart [07:54:42]Write to MH i2c: 01 00 00 77 07 7E [07:54:42]Write i2c OK [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: 01 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: 01 07 00 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: 01 07 00 77 07 00 00 00 00 00 FF 0F 93 [07:54:42]RasterBufferAndPrint [07:54:42]line Счет N : (1)11327509 [07:54:42]line ИНН: 02508201610067 [07:54:42]line Контрольно-Кассовый Чек [07:54:42]line ПРОДАЖА [07:54:42]line ТРК (МРК, ГНК) : 51 [07:54:42]line Товар: 2710194210 [07:54:42]line ДТ-К-5 [07:54:42]line 14.430 * 0.00 [07:54:42]line = 0.00 [07:54:42]line НДС 12% НСП 1% [07:54:42]line > о реализуемом товаре [07:54:42]line ИТОГО: 0.00 [07:54:42]line НСП 1% : 0.00 [07:54:42]line НДС 12% : 0.00 [07:54:42]line Наличными: 0.00 [07:54:42]line Безнал.: 0.00 [07:54:42]line Место: АЗС № 95 "Партнер Нефть" [07:54:42]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [07:54:42]line СНО: Общий режим [07:54:42]line Чек 17 19.08.2024 07:54 [07:54:42]line Смена: 467 ФФД: 1.0 [07:54:42]line ЗНМ: 0300000078 [07:54:42]line РНМ: 0000000000092546 [07:54:42]line Версия ККМ: 001 [07:54:42]line Талоны: ТК ГПНА Online [07:54:42]line 30062733 [07:54:42]line ФМ: 0000000000871800 [07:54:42]line ФД: 49910 [07:54:42]line ФПД: 154685510455864 [07:54:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T075442&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49910&fm=154685510455864&tin=02508201610067®Number=0000000000092546&sum=0 [07:54:42]written 0, free lines is 4095 [07:54:42]OFD Sender: Processing packet 49910 [packets to send 21, broken 20] [07:54:42]ProducePacketName [07:54:42]name=ofd_packets/00049910 [07:54:42]OFD Sender: To server: pG, [07:54:42]CommunicateWithHost lk.salyk.kg:30040 [07:54:42]ConnectInit lk.salyk.kg [07:54:42]Write to MH i2c: 01 00 00 A1 07 A8 [07:54:42]Write i2c OK [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: 01 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: 01 07 00 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: 01 07 00 A1 07 00 00 00 00 00 C8 0C 83 [07:54:42]RasterBufferAndPrint [07:54:42]line [07:54:42]line [07:54:42]line [07:54:42]line [07:54:42]line [07:54:42]written 0, free lines is 3276 [07:54:42]MH_Cut [07:54:42]Write to MH i2c: D1 01 00 A8 07 01 81 [07:54:42]Write i2c OK [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: D1 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: D1 01 00 [07:54:42]MH_I2C_Read... [07:54:42]Read from MH i2c: D1 01 00 A8 07 00 80 [07:54:42]Write to MH i2c: 01 00 00 A9 07 B0 [07:54:42]Write i2c OK [07:54:42]MH_I2C_Read... [07:54:43]*** Cut start [07:54:43]*** Purtial cut [07:54:43]*** Stage 1: CUTSNS_PIN = 1 [07:54:43]Read from MH i2c: 01 [07:54:43]MH_I2C_Read... [07:54:43]*** Stop cut motor [07:54:43]*** Cut end [07:54:43]Read from MH i2c: 01 07 00 [07:54:43]MH_I2C_Read... [07:54:43]Read from MH i2c: 01 07 00 A9 07 00 00 00 00 00 FF 0F C5 [07:54:43]process_action close_receipt done [07:54:43]requested_data is exist [07:54:43]produce_requested_data [07:54:43]requested_item fm.sn is exist - process it [07:54:43]wFMCommunicate request_size=4 [07:54:43]MH_SAM_APDU [07:54:43]CAPDU: 80 11 00 00 [07:54:43]Write to MH i2c: E2 08 00 AA 07 80 11 00 00 00 00 00 00 2B [07:54:43]Write i2c OK [07:54:43]MH_I2C_Read... [07:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:44]Read from MH i2c: E2 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 17 00 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 17 00 AA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 76 [07:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:54:44]wFMCommunicate OK [07:54:44]requested_item fd.num is exist - process it [07:54:44]SAM_PROTO_GetFieldsCounters [07:54:44]wFMCommunicate request_size=4 [07:54:44]MH_SAM_APDU [07:54:44]CAPDU: 80 13 00 00 [07:54:44]Write to MH i2c: E2 08 00 AB 07 80 13 00 00 00 00 00 00 2E [07:54:44]Write i2c OK [07:54:44]MH_I2C_Read... [07:54:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:44]Read from MH i2c: E2 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 62 00 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 62 00 AB 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F6 C2 00 00 0E 04 04 00 D3 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 07 [07:54:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F6 C2 00 00 0E 04 04 00 D3 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 [07:54:44]wFMCommunicate OK [07:54:44]SAM_PROTO_GetFieldsCounters done [07:54:44]requested_item shift.num is exist - process it [07:54:44]requested_item shift.opened is exist - process it [07:54:44]req_shift_opened [07:54:44]FM_GetShiftState [07:54:44]SAM_PROTO_GetShiftState [07:54:44]wFMCommunicate request_size=4 [07:54:44]MH_SAM_APDU [07:54:44]CAPDU: 80 13 01 00 [07:54:44]Write to MH i2c: E2 08 00 AC 07 80 13 01 00 00 00 00 00 30 [07:54:44]Write i2c OK [07:54:44]MH_I2C_Read... [07:54:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:44]Read from MH i2c: E2 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 0E 00 [07:54:44]MH_I2C_Read... [07:54:44]Read from MH i2c: E2 0E 00 AC 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 EA [07:54:44]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [07:54:44]wFMCommunicate OK [07:54:44]SAM_PROTO_GetShiftState done [07:54:44]FM_GetShiftState done [07:54:44]req_shift_opened done [07:54:44]requested_item shift.open_date is exist - process it [07:54:44]req_shift_open_date [07:54:44]req_shift_open_date done [07:54:44]produce_requested_data done [07:54:44]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49910,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [07:54:44]process_action_free close_receipt [07:54:44]json_value_free [07:54:44]json_value_free done [07:54:44]process_json_proto returns [07:54:44]Send response to host [07:54:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49910,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [07:54:44]free response buf [07:54:44]execute_script done [07:54:44]execute_script returns [07:54:44]free content buf [07:54:44]Sock 9.Close socket [07:54:44]Sock 9.Thread stoped [07:56:54]ConnectInit Can't connect to host [07:56:54]CommunicateWithHost connect error [07:56:54]CommunicateWithHost err = -1 [07:56:54]OFD Sender: Server communicate error [07:56:59]OFD Sender: Processing packet 49910 [packets to send 21, broken 20] [07:56:59]ProducePacketName [07:56:59]name=ofd_packets/00049910 [07:56:59]OFD Sender: To server: pG, [07:56:59]CommunicateWithHost lk.salyk.kg:30040 [07:56:59]ConnectInit lk.salyk.kg [07:56:59]Connected sock=9 [07:56:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 C7 19 04 01 64 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5E 38 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 42 FA C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F6 C2 00 00 35 04 06 00 8C AF 86 E7 12 38 8C 71 9A 59 A8 E4 30 E5 [07:56:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 EB CC 47 00 35 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F6 C2 00 00 F4 03 04 00 39 A5 C2 66 B6 04 01 00 00 61 39 1D 80 0C A8 FC 43 [07:56:59]CommunicateWithHost err = 0 [07:56:59]CheckOFDResponse [07:56:59]1017 (14) - 77093643461234 [07:56:59]1041 (16) - 0000000000871800 [07:56:59]1040 (4) - 49910 [07:56:59]1012 (4) - 19.08.2024 01:51 [07:56:59]1206 (1) - 0 [07:56:59]OFD Sender: Remove packet 49910 [07:56:59]ProducePacketName [07:56:59]name=ofd_packets/00049910 [07:56:59]NVStorageDeleteData [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:01]accept exits with 7 [08:00:01]New connection [08:00:01]New thread 3067354468 created [08:00:01]Thread 3067211108 joined [08:00:01]Waiting for new connection... [08:00:01] Sock 7.Parse request [08:00:01]Sock 7.Check first char [08:00:01]Sock 7.First char is OK [08:00:01]request: POST /json_proto HTTP/1.0 [08:00:01]Method: POST [08:00:01]URL: /json_proto [08:00:01]Method is POST - this is cgi request [08:00:01]url: /json_proto [08:00:01]query_string will be loaded in cgi processing [08:00:01]execute_cgi json_proto POST (null) [08:00:01]execute_cgi path=json_proto method=POST [08:00:01]POST find Content-Length [08:00:01]Host: 172.17.46.196:8080 [08:00:01]Content-Length: 756 [08:00:01]Content-Type: application/json [08:00:01] [08:00:01]POST finish read [08:00:01]Found Content-Length = 756 [08:00:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30094587", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:01]execute_script... [08:00:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30094587", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:01]POST & json_proto [08:00:01]process_json_proto [08:00:01]json parsed OK: [08:00:01]protocol is kg_v1.0 [08:00:01]action value=close_receipt [08:00:01]process_action close_receipt [08:00:01]cmd_close_receipt [08:00:01]MH_GetDate [08:00:01]Write to MH i2c: F0 00 00 AD 07 A3 [08:00:01]Write i2c OK [08:00:01]MH_I2C_Read... [08:00:01]Read from MH i2c: F0 [08:00:01]MH_I2C_Read... [08:00:01]Read from MH i2c: F0 09 00 [08:00:01]MH_I2C_Read... [08:00:01]Read from MH i2c: F0 09 00 AD 07 00 83 FB C2 66 C4 85 C2 66 C3 [08:00:01]GetLastDocTimeStamp 1724054082 [08:00:01]current date 1724054403 [08:00:01]FM_GetShiftState [08:00:01]SAM_PROTO_GetShiftState [08:00:01]wFMCommunicate request_size=4 [08:00:01]MH_SAM_APDU [08:00:01]CAPDU: 80 13 01 00 [08:00:01]Write to MH i2c: E2 08 00 AE 07 80 13 01 00 00 00 00 00 32 [08:00:01]Write i2c OK [08:00:01]MH_I2C_Read... [08:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:01]Read from MH i2c: E2 [08:00:01]MH_I2C_Read... [08:00:01]Read from MH i2c: E2 0E 00 [08:00:01]MH_I2C_Read... [08:00:01]Read from MH i2c: E2 0E 00 AE 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 EC [08:00:01]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:00:01]wFMCommunicate OK [08:00:01]SAM_PROTO_GetShiftState done [08:00:01]FM_GetShiftState done [08:00:01]opened in 1724026361 [08:00:01]opened+sec_in_day 1724112761 [08:00:01]quantity*price = 0 [08:00:01]sum+1 = 1 [08:00:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 18 19.08.2024 08:00 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30094587 ФМ: 0000000000871800 ФД: 49911 ФПД: 89034695226193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T080003&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49911&fm=89034695226193&tin=02508201610067®Number=0000000000092546&sum=0 [08:00:02]StoreToDocumentArchive [08:00:02]shift 467 fd 49911 [08:00:02]save to /storage/0467/doc_00049911 [08:00:02]save last doc name /storage/0467/doc_00049911 to /storage/kkm_last_doc_name [08:00:02]save OK [08:00:02]Clear old archive folders... [08:00:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:00:02]tlvbuf is 00F646C0 [08:00:02]SAM_PROTO_ClearQueue [08:00:02]wFMCommunicate request_size=4 [08:00:02]MH_SAM_APDU [08:00:02]CAPDU: 80 09 00 00 [08:00:02]Write to MH i2c: E2 08 00 BB 07 80 09 00 00 00 00 00 00 34 [08:00:02]Write i2c OK [08:00:02]MH_I2C_Read... [08:00:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:02]Read from MH i2c: E2 [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: E2 03 00 [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: E2 03 00 BB 07 00 90 00 36 [08:00:02]RAPDU: 90 00 [08:00:02]wFMCommunicate OK [08:00:02]SAM_PROTO_ClearQueue done [08:00:02]KKMCreateOFDPacket [08:00:02]OFDProtocolAddRootSTLVToBuf [08:00:02]FM_MakeSignedData [08:00:02]FM_MakeSignedData [08:00:02]SAM_PROTO_SignData [08:00:02]wFMCommunicate request_size=4 [08:00:02]MH_SAM_APDU [08:00:02]CAPDU: 80 0D 01 02 [08:00:02]Write to MH i2c: E2 08 00 BC 07 80 0D 01 02 00 00 00 00 3C [08:00:02]Write i2c OK [08:00:02]MH_I2C_Read... [08:00:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:02]Read from MH i2c: E2 [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: E2 03 00 [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: E2 03 00 BC 07 00 90 00 37 [08:00:02]RAPDU: 90 00 [08:00:02]wFMCommunicate OK [08:00:02]wFMCommunicate request_size=255 [08:00:02]MH_SAM_APDU [08:00:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 83 FB C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F7 C2 00 00 35 04 06 00 50 [08:00:02]Write to MH i2c: E2 02 01 BD 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 83 FB C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F7 C2 00 00 35 04 06 00 50 00 00 AF [08:00:02]Write i2c OK [08:00:02]MH_I2C_Read... [08:00:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:02]Read from MH i2c: E2 [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: E2 03 00 [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: E2 03 00 BD 07 00 90 00 38 [08:00:02]RAPDU: 90 00 [08:00:02]wFMCommunicate OK [08:00:02]wFMCommunicate request_size=10 [08:00:02]MH_SAM_APDU [08:00:02]CAPDU: 80 0D 02 02 05 FA 01 61 B3 51 [08:00:02]Write to MH i2c: E2 0D 00 BE 07 80 0D 02 02 05 00 FA 01 61 B3 51 00 00 A9 [08:00:02]Write i2c OK [08:00:02]MH_I2C_Read... [08:00:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:02]Read from MH i2c: E2 [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: E2 03 00 [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: E2 03 00 BE 07 00 90 00 39 [08:00:02]RAPDU: 90 00 [08:00:02]wFMCommunicate OK [08:00:02]wFMCommunicate request_size=4 [08:00:02]MH_SAM_APDU [08:00:02]CAPDU: 80 0D 03 02 [08:00:02]Write to MH i2c: E2 08 00 BF 07 80 0D 03 02 00 00 00 00 41 [08:00:02]Write i2c OK [08:00:02]MH_I2C_Read... [08:00:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:02]Read from MH i2c: E2 [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: E2 0B 00 [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: E2 0B 00 BF 07 00 B4 5B F3 6D E5 AD 45 9D 90 00 25 [08:00:02]RAPDU: B4 5B F3 6D E5 AD 45 9D 90 00 [08:00:02]wFMCommunicate OK [08:00:02]SAM_PROTO_SignData done [08:00:02]FM_MakeSignedData done [08:00:02]CreateOFDProtocolMessage [08:00:02]wFMCommunicate request_size=4 [08:00:02]MH_SAM_APDU [08:00:02]CAPDU: 80 11 00 00 [08:00:02]Write to MH i2c: E2 08 00 C0 07 80 11 00 00 00 00 00 00 41 [08:00:02]Write i2c OK [08:00:02]MH_I2C_Read... [08:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:02]Read from MH i2c: E2 [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: E2 17 00 [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: E2 17 00 C0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8C [08:00:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:00:02]wFMCommunicate OK [08:00:02]CreateOFDProtocolMessage done [08:00:02]OFDSenderStorePacket 49911 [08:00:02]StoreOFDPacket docnum=49911 [08:00:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 07 15 07 01 65 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 83 FB C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F7 C2 00 00 35 04 06 00 50 FA 01 61 B3 51 B4 5B F3 6D E5 AD 45 9D [08:00:02]CheckFolder [08:00:02]dirname=/storage/ofd_packets [08:00:02]CheckFolder done [08:00:02]ProducePacketName [08:00:02]name=ofd_packets/00049911 [08:00:02]NVStorageSaveData ofd_packets/00049911 [08:00:02]File name is /storage/ofd_packets/00049911 [08:00:02]Write 301 bytes [08:00:02]NVStorageSaveData done [08:00:02]OFDSenderStorePacket done [08:00:02]KKMCreateOFDPacket done [08:00:02]NVStorageSaveData kkm_last_timestamp [08:00:02]File name is /storage/kkm_last_timestamp [08:00:02]Write 4 bytes [08:00:02]NVStorageSaveData done [08:00:02]ExternCall_PrintAddStr [08:00:02]wPrintStart [08:00:02]Write to MH i2c: 01 00 00 C1 07 C8 [08:00:02]Write i2c OK [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: 01 [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: 01 07 00 [08:00:02]MH_I2C_Read... [08:00:02]Read from MH i2c: 01 07 00 C1 07 00 00 00 00 00 FF 0F DD [08:00:02]RasterBufferAndPrint [08:00:02]line Счет N : (1)11327513 [08:00:02]line ИНН: 02508201610067 [08:00:02]line Контрольно-Кассовый Чек [08:00:02]line ПРОДАЖА [08:00:02]line ТРК (МРК, ГНК) : 22 [08:00:02]line Товар: 2710124130 [08:00:02]line Аи-92-К-4 [08:00:02]line 40.000 * 0.00 [08:00:02]line = 0.00 [08:00:02]line НДС 12% НСП 1% [08:00:02]line > о реализуемом товаре [08:00:02]line ИТОГО: 0.00 [08:00:02]line НСП 1% : 0.00 [08:00:02]line НДС 12% : 0.00 [08:00:02]line Наличными: 0.00 [08:00:02]line Безнал.: 0.00 [08:00:02]line Место: АЗС № 95 "Партнер Нефть" [08:00:02]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:00:02]line СНО: Общий режим [08:00:02]line Чек 18 19.08.2024 08:00 [08:00:02]line Смена: 467 ФФД: 1.0 [08:00:02]line ЗНМ: 0300000078 [08:00:02]line РНМ: 0000000000092546 [08:00:02]line Версия ККМ: 001 [08:00:02]line Талоны: ТК ГПНА Online [08:00:02]line 30094587 [08:00:02]line ФМ: 0000000000871800 [08:00:02]line ФД: 49911 [08:00:02]line ФПД: 89034695226193 [08:00:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T080003&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49911&fm=89034695226193&tin=02508201610067®Number=0000000000092546&sum=0 [08:00:03]OFD Sender: Processing packet 49911 [packets to send 21, broken 20] [08:00:03]ProducePacketName [08:00:03]name=ofd_packets/00049911 [08:00:03]OFD Sender: To server: pG, [08:00:03]CommunicateWithHost lk.salyk.kg:30040 [08:00:03]ConnectInit lk.salyk.kg [08:00:03]written 0, free lines is 4095 [08:00:03]Connected sock=10 [08:00:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 07 15 07 01 65 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 83 FB C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F7 C2 00 00 35 04 06 00 50 FA 01 61 B3 51 B4 5B F3 6D E5 AD 45 9D [08:00:03]Write to MH i2c: 01 00 00 EB 07 F2 [08:00:03]Write i2c OK [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: 01 [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: 01 07 00 [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: 01 07 00 EB 07 00 00 00 00 00 D0 0C D5 [08:00:03]RasterBufferAndPrint [08:00:03]line [08:00:03]line [08:00:03]line [08:00:03]line [08:00:03]line [08:00:03]written 0, free lines is 3286 [08:00:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 9B 51 47 00 56 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F7 C2 00 00 F4 03 04 00 F0 A5 C2 66 B6 04 01 00 00 85 94 B5 6B 7C 6D 33 97 [08:00:03]CommunicateWithHost err = 0 [08:00:03]CheckOFDResponse [08:00:03]1017 (14) - 77093643461234 [08:00:03]1041 (16) - 0000000000871800 [08:00:03]1040 (4) - 49911 [08:00:03]1012 (4) - 19.08.2024 01:54 [08:00:03]1206 (1) - 0 [08:00:03]OFD Sender: Remove packet 49911 [08:00:03]ProducePacketName [08:00:03]name=ofd_packets/00049911 [08:00:03]NVStorageDeleteData [08:00:03]MH_Cut [08:00:03]Write to MH i2c: D1 01 00 F2 07 01 CB [08:00:03]Write i2c OK [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: D1 [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: D1 01 00 [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: D1 01 00 F2 07 00 CA [08:00:03]Write to MH i2c: 01 00 00 F3 07 FA [08:00:03]Write i2c OK [08:00:03]MH_I2C_Read... [08:00:04]OFD Sender: No OFD packet to send [08:00:04]*** Cut start [08:00:04]*** Purtial cut [08:00:04]*** CUTSNS_PIN = 0 [08:00:04]*** Stage 1: CUTSNS_PIN = 1 [08:00:06]Read from MH i2c: 01 [08:00:06]MH_I2C_Read... [08:00:06]*** Stop cut motor [08:00:06]*** Cut end [08:00:06]Read from MH i2c: 01 07 00 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: 01 07 00 F3 07 00 00 00 00 00 FF 0F 0F [08:00:06]process_action close_receipt done [08:00:06]requested_data is exist [08:00:06]produce_requested_data [08:00:06]requested_item fm.sn is exist - process it [08:00:06]wFMCommunicate request_size=4 [08:00:06]MH_SAM_APDU [08:00:06]CAPDU: 80 11 00 00 [08:00:06]Write to MH i2c: E2 08 00 F4 07 80 11 00 00 00 00 00 00 75 [08:00:06]Write i2c OK [08:00:06]MH_I2C_Read... [08:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:06]Read from MH i2c: E2 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 17 00 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 17 00 F4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C0 [08:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:00:06]wFMCommunicate OK [08:00:06]requested_item fd.num is exist - process it [08:00:06]SAM_PROTO_GetFieldsCounters [08:00:06]wFMCommunicate request_size=4 [08:00:06]MH_SAM_APDU [08:00:06]CAPDU: 80 13 00 00 [08:00:06]Write to MH i2c: E2 08 00 F5 07 80 13 00 00 00 00 00 00 78 [08:00:06]Write i2c OK [08:00:06]MH_I2C_Read... [08:00:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:06]Read from MH i2c: E2 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 62 00 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 62 00 F5 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F7 C2 00 00 0E 04 04 00 D3 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 55 [08:00:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F7 C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:00:06]wFMCommunicate OK [08:00:06]SAM_PROTO_GetFieldsCounters done [08:00:06]requested_item shift.num is exist - process it [08:00:06]requested_item shift.opened is exist - process it [08:00:06]req_shift_opened [08:00:06]FM_GetShiftState [08:00:06]SAM_PROTO_GetShiftState [08:00:06]wFMCommunicate request_size=4 [08:00:06]MH_SAM_APDU [08:00:06]CAPDU: 80 13 01 00 [08:00:06]Write to MH i2c: E2 08 00 F6 07 80 13 01 00 00 00 00 00 7A [08:00:06]Write i2c OK [08:00:06]MH_I2C_Read... [08:00:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:06]Read from MH i2c: E2 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 0E 00 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 0E 00 F6 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 34 [08:00:06]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:00:06]wFMCommunicate OK [08:00:06]SAM_PROTO_GetShiftState done [08:00:06]FM_GetShiftState done [08:00:06]req_shift_opened done [08:00:06]requested_item shift.open_date is exist - process it [08:00:06]req_shift_open_date [08:00:06]req_shift_open_date done [08:00:06]produce_requested_data done [08:00:06]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49911,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [08:00:06]process_action_free close_receipt [08:00:06]json_value_free [08:00:06]json_value_free done [08:00:06]process_json_proto returns [08:00:06]Send response to host [08:00:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49911,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [08:00:06]free response buf [08:00:06]execute_script done [08:00:06]execute_script returns [08:00:06]free content buf [08:00:06]Sock 7.Close socket [08:00:06]Sock 7.Thread stoped [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:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:05]accept exits with 9 [08:06:05]New connection [08:06:05]New thread 3067211108 created [08:06:05]Thread 3067354468 joined [08:06:05]Waiting for new connection... [08:06:05] Sock 9.Parse request [08:06:05]Sock 9.Check first char [08:06:05]Sock 9.First char is OK [08:06:05]request: POST /json_proto HTTP/1.0 [08:06:05]Method: POST [08:06:05]URL: /json_proto [08:06:05]Method is POST - this is cgi request [08:06:05]url: /json_proto [08:06:05]query_string will be loaded in cgi processing [08:06:05]execute_cgi json_proto POST (null) [08:06:05]execute_cgi path=json_proto method=POST [08:06:05]POST find Content-Length [08:06:05]Host: 172.17.46.196:8080 [08:06:05]Content-Length: 570 [08:06:05]Content-Type: application/json [08:06:05] [08:06:05]POST finish read [08:06:05]Found Content-Length = 570 [08:06:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190082", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:05]execute_script... [08:06: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)190082", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:05]POST & json_proto [08:06:05]process_json_proto [08:06:05]json parsed OK: [08:06:05]protocol is kg_v1.0 [08:06:05]action value=close_receipt [08:06:05]process_action close_receipt [08:06:05]cmd_close_receipt [08:06:05]MH_GetDate [08:06:05]Write to MH i2c: F0 00 00 F7 07 ED [08:06:05]Write i2c OK [08:06:05]MH_I2C_Read... [08:06:05]Read from MH i2c: F0 [08:06:05]MH_I2C_Read... [08:06:05]Read from MH i2c: F0 09 00 [08:06:05]MH_I2C_Read... [08:06:05]Read from MH i2c: F0 09 00 F7 07 00 EF FC C2 66 C4 85 C2 66 7A [08:06:05]GetLastDocTimeStamp 1724054403 [08:06:05]current date 1724054767 [08:06:05]FM_GetShiftState [08:06:05]SAM_PROTO_GetShiftState [08:06:05]wFMCommunicate request_size=4 [08:06:05]MH_SAM_APDU [08:06:05]CAPDU: 80 13 01 00 [08:06:05]Write to MH i2c: E2 08 00 F8 07 80 13 01 00 00 00 00 00 7C [08:06:05]Write i2c OK [08:06:05]MH_I2C_Read... [08:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:05]Read from MH i2c: E2 [08:06:05]MH_I2C_Read... [08:06:05]Read from MH i2c: E2 0E 00 [08:06:05]MH_I2C_Read... [08:06:05]Read from MH i2c: E2 0E 00 F8 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 36 [08:06:05]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:06:05]wFMCommunicate OK [08:06:05]SAM_PROTO_GetShiftState done [08:06:05]FM_GetShiftState done [08:06:05]opened in 1724026361 [08:06:05]opened+sec_in_day 1724112761 [08:06:05]quantity*price = 26000 [08:06:05]sum+1 = 26001 [08:06:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 19 19.08.2024 08:06 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49912 ФПД: 273972759999764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T080607&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49912&fm=273972759999764&tin=02508201610067®Number=0000000000092546&sum=26000 0 [08:06:06]StoreToDocumentArchive [08:06:06]shift 467 fd 49912 [08:06:06]save to /storage/0467/doc_00049912 [08:06:06]save last doc name /storage/0467/doc_00049912 to /storage/kkm_last_doc_name [08:06:06]save OK [08:06:06]Clear old archive folders... [08:06:06]ProcessDocumentItem done err = 0, tmpTLVsize=254 [08:06:06]tlvbuf is 0104E240 [08:06:06]SAM_PROTO_ClearQueue [08:06:06]wFMCommunicate request_size=4 [08:06:06]MH_SAM_APDU [08:06:06]CAPDU: 80 09 00 00 [08:06:06]Write to MH i2c: E2 08 00 05 08 80 09 00 00 00 00 00 00 7F [08:06:06]Write i2c OK [08:06:06]MH_I2C_Read... [08:06:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:06]Read from MH i2c: E2 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 03 00 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 03 00 05 08 00 90 00 81 [08:06:06]RAPDU: 90 00 [08:06:06]wFMCommunicate OK [08:06:06]SAM_PROTO_ClearQueue done [08:06:06]KKMCreateOFDPacket [08:06:06]OFDProtocolAddRootSTLVToBuf [08:06:06]FM_MakeSignedData [08:06:06]FM_MakeSignedData [08:06:06]SAM_PROTO_SignData [08:06:06]wFMCommunicate request_size=4 [08:06:06]MH_SAM_APDU [08:06:06]CAPDU: 80 0D 01 02 [08:06:06]Write to MH i2c: E2 08 00 06 08 80 0D 01 02 00 00 00 00 87 [08:06:06]Write i2c OK [08:06:06]MH_I2C_Read... [08:06:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:06]Read from MH i2c: E2 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 03 00 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 03 00 06 08 00 90 00 82 [08:06:06]RAPDU: 90 00 [08:06:06]wFMCommunicate OK [08:06:06]wFMCommunicate request_size=255 [08:06:06]MH_SAM_APDU [08:06:06]CAPDU: 80 0D 02 02 FA 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 EF FC C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F8 C2 00 00 35 04 [08:06:06]Write to MH i2c: E2 02 01 07 08 80 0D 02 02 FA 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 EF FC C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F8 C2 00 00 35 04 00 00 F2 [08:06:06]Write i2c OK [08:06:06]MH_I2C_Read... [08:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:06]Read from MH i2c: E2 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 03 00 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 03 00 07 08 00 90 00 83 [08:06:06]RAPDU: 90 00 [08:06:06]wFMCommunicate OK [08:06:06]wFMCommunicate request_size=13 [08:06:06]MH_SAM_APDU [08:06:06]CAPDU: 80 0D 02 02 08 06 00 F9 2D 41 09 B5 14 [08:06:06]Write to MH i2c: E2 10 00 08 08 80 0D 02 02 08 00 06 00 F9 2D 41 09 B5 14 00 00 D9 [08:06:06]Write i2c OK [08:06:06]MH_I2C_Read... [08:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:06]Read from MH i2c: E2 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 03 00 [08:06:06]MH_I2C_Read... [08:06:06]Read from MH i2c: E2 03 00 08 08 00 90 00 84 [08:06:06]RAPDU: 90 00 [08:06:06]wFMCommunicate OK [08:06:06]wFMCommunicate request_size=4 [08:06:06]MH_SAM_APDU [08:06:06]CAPDU: 80 0D 03 02 [08:06:06]Write to MH i2c: E2 08 00 09 08 80 0D 03 02 00 00 00 00 8C [08:06:06]Write i2c OK [08:06:06]MH_I2C_Read... [08:06:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:07]Read from MH i2c: E2 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: E2 0B 00 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: E2 0B 00 09 08 00 A8 B1 15 DA 0C 41 97 4F 90 00 08 [08:06:07]RAPDU: A8 B1 15 DA 0C 41 97 4F 90 00 [08:06:07]wFMCommunicate OK [08:06:07]SAM_PROTO_SignData done [08:06:07]FM_MakeSignedData done [08:06:07]CreateOFDProtocolMessage [08:06:07]wFMCommunicate request_size=4 [08:06:07]MH_SAM_APDU [08:06:07]CAPDU: 80 11 00 00 [08:06:07]Write to MH i2c: E2 08 00 0A 08 80 11 00 00 00 00 00 00 8C [08:06:07]Write i2c OK [08:06:07]MH_I2C_Read... [08:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:07]Read from MH i2c: E2 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: E2 17 00 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: E2 17 00 0A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D7 [08:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:06:07]wFMCommunicate OK [08:06:07]CreateOFDProtocolMessage done [08:06:07]OFDSenderStorePacket 49912 [08:06:07]StoreOFDPacket docnum=49912 [08:06:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 12 01 00 00 64 73 0A 01 AB 56 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 EF FC C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F8 C2 00 00 35 04 06 00 F9 2D 41 09 B5 14 A8 B1 15 DA 0C 41 97 4F [08:06:07]CheckFolder [08:06:07]dirname=/storage/ofd_packets [08:06:07]CheckFolder done [08:06:07]ProducePacketName [08:06:07]name=ofd_packets/00049912 [08:06:07]NVStorageSaveData ofd_packets/00049912 [08:06:07]File name is /storage/ofd_packets/00049912 [08:06:07]Write 304 bytes [08:06:07]NVStorageSaveData done [08:06:07]OFDSenderStorePacket done [08:06:07]KKMCreateOFDPacket done [08:06:07]NVStorageSaveData kkm_last_timestamp [08:06:07]File name is /storage/kkm_last_timestamp [08:06:07]Write 4 bytes [08:06:07]NVStorageSaveData done [08:06:07]ExternCall_PrintAddStr [08:06:07]wPrintStart [08:06:07]Write to MH i2c: 01 00 00 0B 08 13 [08:06:07]OFD Sender: Processing packet 49912 [packets to send 21, broken 20] [08:06:07]ProducePacketName [08:06:07]name=ofd_packets/00049912 [08:06:07]OFD Sender: To server: pG, [08:06:07]CommunicateWithHost lk.salyk.kg:30040 [08:06:07]ConnectInit lk.salyk.kg [08:06:07]Write i2c OK [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: 01 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: 01 07 00 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: 01 07 00 0B 08 00 00 00 00 00 FF 0F 28 [08:06:07]RasterBufferAndPrint [08:06:07]line Счет N : (3)190082 [08:06:07]line ИНН: 02508201610067 [08:06:07]line Контрольно-Кассовый Чек [08:06:07]line ПРОДАЖА [08:06:07]line Товар: 48744546 [08:06:07]line LD Compact Silver [08:06:07]line 2.000 * 130.00 [08:06:07]line = 260.00 [08:06:07]line НДС 12% НСП 1% [08:06:07]line > о реализуемом товаре [08:06:07]line ИТОГО: 260.00 [08:06:07]line НСП 1% : 2.30 [08:06:07]line НДС 12% : 27.61 [08:06:07]line Наличными: 260.00 [08:06:07]line Безнал.: 0.00 [08:06:07]line Место: АЗС № 95 "Партнер Нефть" [08:06:07]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:06:07]line СНО: Общий режим [08:06:07]line Чек 19 19.08.2024 08:06 [08:06:07]line Смена: 467 ФФД: 1.0 [08:06:07]line ЗНМ: 0300000078 [08:06:07]line РНМ: 0000000000092546 [08:06:07]line Версия ККМ: 001 [08:06:07]line ФМ: 0000000000871800 [08:06:07]line ФД: 49912 [08:06:07]line ФПД: 273972759999764 [08:06:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T080607&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49912&fm=273972759999764&tin=02508201610067®Number=0000000000092546&sum=26000 [08:06:07]line 0 [08:06:07]Connected sock=10 [08:06:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 12 01 00 00 64 73 0A 01 AB 56 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 EF FC C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F8 C2 00 00 35 04 06 00 F9 2D 41 09 B5 14 A8 B1 15 DA 0C 41 97 4F [08:06:07]written 0, free lines is 4095 [08:06:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5B 4A 47 00 A9 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F8 C2 00 00 F4 03 04 00 5C A7 C2 66 B6 04 01 00 00 06 31 39 27 EE 13 B3 C3 [08:06:07]CommunicateWithHost err = 0 [08:06:07]CheckOFDResponse [08:06:07]1017 (14) - 77093643461234 [08:06:07]1041 (16) - 0000000000871800 [08:06:07]1040 (4) - 49912 [08:06:07]1012 (4) - 19.08.2024 02:01 [08:06:07]1206 (1) - 0 [08:06:07]OFD Sender: Remove packet 49912 [08:06:07]ProducePacketName [08:06:07]name=ofd_packets/00049912 [08:06:07]NVStorageDeleteData [08:06:07]Write to MH i2c: 01 00 00 33 08 3B [08:06:07]Write i2c OK [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: 01 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: 01 07 00 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: 01 07 00 33 08 00 00 00 00 00 FE 0C 4C [08:06:07]RasterBufferAndPrint [08:06:07]line [08:06:07]line [08:06:07]line [08:06:07]line [08:06:07]line [08:06:07]written 0, free lines is 3332 [08:06:07]MH_Cut [08:06:07]Write to MH i2c: D1 01 00 3A 08 01 14 [08:06:07]Write i2c OK [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: D1 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: D1 01 00 [08:06:07]MH_I2C_Read... [08:06:07]Read from MH i2c: D1 01 00 3A 08 00 13 [08:06:07]Write to MH i2c: 01 00 00 3B 08 43 [08:06:07]Write i2c OK [08:06:07]MH_I2C_Read... [08:06:08]OFD Sender: No OFD packet to send [08:06:08]*** Cut start [08:06:08]*** Purtial cut [08:06:08]*** Stage 1: CUTSNS_PIN = 1 [08:06:08]Read from MH i2c: 01 [08:06:08]MH_I2C_Read... [08:06:08]*** Stop cut motor [08:06:08]*** Cut end [08:06:08]Read from MH i2c: 01 07 00 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: 01 07 00 3B 08 00 00 00 00 00 FF 0F 58 [08:06:08]process_action close_receipt done [08:06:08]requested_data is exist [08:06:08]produce_requested_data [08:06:08]requested_item fm.sn is exist - process it [08:06:08]wFMCommunicate request_size=4 [08:06:08]MH_SAM_APDU [08:06:08]CAPDU: 80 11 00 00 [08:06:08]Write to MH i2c: E2 08 00 3C 08 80 11 00 00 00 00 00 00 BE [08:06:08]Write i2c OK [08:06:08]MH_I2C_Read... [08:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:08]Read from MH i2c: E2 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: E2 17 00 [08:06:08]MH_I2C_Read... [08:06:08]Read from MH i2c: E2 17 00 3C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 09 [08:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:06:08]wFMCommunicate OK [08:06:08]requested_item fd.num is exist - process it [08:06:08]SAM_PROTO_GetFieldsCounters [08:06:08]wFMCommunicate request_size=4 [08:06:08]MH_SAM_APDU [08:06:08]CAPDU: 80 13 00 00 [08:06:08]Write to MH i2c: E2 08 00 3D 08 80 13 00 00 00 00 00 00 C1 [08:06:08]Write i2c OK [08:06:08]MH_I2C_Read... [08:06:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:09]Read from MH i2c: E2 [08:06:09]MH_I2C_Read... [08:06:09]Read from MH i2c: E2 62 00 [08:06:09]MH_I2C_Read... [08:06:09]Read from MH i2c: E2 62 00 3D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F8 C2 00 00 0E 04 04 00 D3 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 A2 [08:06:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F8 C2 00 00 0E 04 04 00 D3 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:06:09]wFMCommunicate OK [08:06:09]SAM_PROTO_GetFieldsCounters done [08:06:09]requested_item shift.num is exist - process it [08:06:09]requested_item shift.opened is exist - process it [08:06:09]req_shift_opened [08:06:09]FM_GetShiftState [08:06:09]SAM_PROTO_GetShiftState [08:06:09]wFMCommunicate request_size=4 [08:06:09]MH_SAM_APDU [08:06:09]CAPDU: 80 13 01 00 [08:06:09]Write to MH i2c: E2 08 00 3E 08 80 13 01 00 00 00 00 00 C3 [08:06:09]Write i2c OK [08:06:09]MH_I2C_Read... [08:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:09]Read from MH i2c: E2 [08:06:09]MH_I2C_Read... [08:06:09]Read from MH i2c: E2 0E 00 [08:06:09]MH_I2C_Read... [08:06:09]Read from MH i2c: E2 0E 00 3E 08 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 7D [08:06:09]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:06:09]wFMCommunicate OK [08:06:09]SAM_PROTO_GetShiftState done [08:06:09]FM_GetShiftState done [08:06:09]req_shift_opened done [08:06:09]requested_item shift.open_date is exist - process it [08:06:09]req_shift_open_date [08:06:09]req_shift_open_date done [08:06:09]produce_requested_data done [08:06:09]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49912,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [08:06:09]process_action_free close_receipt [08:06:09]json_value_free [08:06:09]json_value_free done [08:06:09]process_json_proto returns [08:06:09]Send response to host [08:06:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49912,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [08:06:09]free response buf [08:06:09]execute_script done [08:06:09]execute_script returns [08:06:09]free content buf [08:06:09]Sock 9.Close socket [08:06:09]Sock 9.Thread stoped [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:26]int [08:06:26]Write to MH i2c: 01 00 00 3F 08 47 [08:06:26]*** FLAG_PRN_KEY set [08:06:26]Write i2c OK [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: 01 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: 01 07 00 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: 01 07 00 3F 08 00 08 00 00 00 FF 0F 64 [08:06:26]state=0 [08:06:26]Key pressed [08:06:26]Feed [08:06:26]Write to MH i2c: D8 00 00 40 08 1F [08:06:26]Write i2c OK [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: D8 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: D8 01 00 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: D8 01 00 40 08 00 20 [08:06:26]int [08:06:26]Write to MH i2c: 01 00 00 41 08 49 [08:06:26]Write i2c OK [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: 01 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: 01 07 00 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: 01 07 00 41 08 00 48 00 00 00 3C 00 D4 [08:06:26]state=2 [08:06:26]Key pressed [08:06:26]int [08:06:26]Write to MH i2c: 01 00 00 42 08 4A [08:06:26]*** FLAG_PRN_KEY reset [08:06:26]Write i2c OK [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: 01 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: 01 07 00 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: 01 07 00 42 08 00 00 00 00 00 F5 0F 55 [08:06:26]state=2 [08:06:26]Stop feed [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:41]accept exits with 7 [08:18:41]New connection [08:18:41]New thread 3067354468 created [08:18:41]Thread 3067211108 joined [08:18:41]Waiting for new connection... [08:18:41] Sock 7.Parse request [08:18:41]Sock 7.Check first char [08:18:41]Sock 7.First char is OK [08:18:41]request: POST /json_proto HTTP/1.0 [08:18:41]Method: POST [08:18:41]URL: /json_proto [08:18:41]Method is POST - this is cgi request [08:18:41]url: /json_proto [08:18:41]query_string will be loaded in cgi processing [08:18:41]execute_cgi json_proto POST (null) [08:18:41]execute_cgi path=json_proto method=POST [08:18:41]POST find Content-Length [08:18:41]Host: 172.17.46.196:8080 [08:18:41]Content-Length: 893 [08:18:41]Content-Type: application/json [08:18:41] [08:18:41]POST finish read [08:18:41]Found Content-Length = 893 [08:18:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190083", "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 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:41]execute_script... [08:18: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)190083", "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 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:41]POST & json_proto [08:18:41]process_json_proto [08:18:41]json parsed OK: [08:18:41]protocol is kg_v1.0 [08:18:41]action value=close_receipt [08:18:41]process_action close_receipt [08:18:41]cmd_close_receipt [08:18:41]MH_GetDate [08:18:41]Write to MH i2c: F0 00 00 43 08 3A [08:18:41]Write i2c OK [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: F0 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: F0 09 00 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: F0 09 00 43 08 00 E3 FF C2 66 C4 85 C2 66 BE [08:18:41]GetLastDocTimeStamp 1724054767 [08:18:41]current date 1724055523 [08:18:41]FM_GetShiftState [08:18:41]SAM_PROTO_GetShiftState [08:18:41]wFMCommunicate request_size=4 [08:18:41]MH_SAM_APDU [08:18:41]CAPDU: 80 13 01 00 [08:18:41]Write to MH i2c: E2 08 00 44 08 80 13 01 00 00 00 00 00 C9 [08:18:41]Write i2c OK [08:18:41]MH_I2C_Read... [08:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:41]Read from MH i2c: E2 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: E2 0E 00 [08:18:41]MH_I2C_Read... [08:18:41]Read from MH i2c: E2 0E 00 44 08 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 83 [08:18:41]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:18:41]wFMCommunicate OK [08:18:41]SAM_PROTO_GetShiftState done [08:18:41]FM_GetShiftState done [08:18:41]opened in 1724026361 [08:18:41]opened+sec_in_day 1724112761 [08:18:41]quantity*price = 8500 [08:18:41]sum+1 = 8501 [08:18:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.90 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 20 19.08.2024 08:18 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49913 ФПД: 74250028004919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T081843&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49913&fm=74250028004919&tin=02508201610067®Number=0000000000092546&sum=22500 0 [08:18:42]StoreToDocumentArchive [08:18:42]shift 467 fd 49913 [08:18:42]save to /storage/0467/doc_00049913 [08:18:42]save last doc name /storage/0467/doc_00049913 to /storage/kkm_last_doc_name [08:18:42]save OK [08:18:42]Clear old archive folders... [08:18:42]ProcessDocumentItem done err = 0, tmpTLVsize=397 [08:18:42]tlvbuf is 0105B810 [08:18:42]SAM_PROTO_ClearQueue [08:18:42]wFMCommunicate request_size=4 [08:18:42]MH_SAM_APDU [08:18:42]CAPDU: 80 09 00 00 [08:18:42]Write to MH i2c: E2 08 00 51 08 80 09 00 00 00 00 00 00 CB [08:18:42]Write i2c OK [08:18:42]MH_I2C_Read... [08:18:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:42]Read from MH i2c: E2 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: E2 03 00 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: E2 03 00 51 08 00 90 00 CD [08:18:42]RAPDU: 90 00 [08:18:42]wFMCommunicate OK [08:18:42]SAM_PROTO_ClearQueue done [08:18:42]KKMCreateOFDPacket [08:18:42]OFDProtocolAddRootSTLVToBuf [08:18:42]FM_MakeSignedData [08:18:42]FM_MakeSignedData [08:18:42]SAM_PROTO_SignData [08:18:42]wFMCommunicate request_size=4 [08:18:42]MH_SAM_APDU [08:18:42]CAPDU: 80 0D 01 02 [08:18:42]Write to MH i2c: E2 08 00 52 08 80 0D 01 02 00 00 00 00 D3 [08:18:42]Write i2c OK [08:18:42]MH_I2C_Read... [08:18:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:42]Read from MH i2c: E2 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: E2 03 00 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: E2 03 00 52 08 00 90 00 CE [08:18:42]RAPDU: 90 00 [08:18:42]wFMCommunicate OK [08:18:42]wFMCommunicate request_size=255 [08:18:42]MH_SAM_APDU [08:18:42]CAPDU: 80 0D 02 02 FA 03 00 8D 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 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 [08:18:42]Write to MH i2c: E2 02 01 53 08 80 0D 02 02 FA 00 03 00 8D 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 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 00 00 D4 [08:18:42]Write i2c OK [08:18:42]MH_I2C_Read... [08:18:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:42]Read from MH i2c: E2 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: E2 03 00 [08:18:42]MH_I2C_Read... [08:18:42]Read from MH i2c: E2 03 00 53 08 00 90 00 CF [08:18:42]RAPDU: 90 00 [08:18:42]wFMCommunicate OK [08:18:42]wFMCommunicate request_size=156 [08:18:42]MH_SAM_APDU [08:18:42]CAPDU: 80 0D 02 02 97 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 14 00 00 00 F4 03 04 00 E3 FF C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F9 C2 00 00 35 04 06 00 43 87 AE 8B 36 37 [08:18:42]Write to MH i2c: E2 9F 00 54 08 80 0D 02 02 97 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 14 00 00 00 F4 03 04 00 E3 FF C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F9 C2 00 00 35 04 06 00 43 87 AE 8B 36 37 00 00 A4 [08:18:43]Write i2c OK [08:18:43]MH_I2C_Read... [08:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:43]Read from MH i2c: E2 [08:18:43]MH_I2C_Read... [08:18:43]Read from MH i2c: E2 03 00 [08:18:43]MH_I2C_Read... [08:18:43]Read from MH i2c: E2 03 00 54 08 00 90 00 D0 [08:18:43]RAPDU: 90 00 [08:18:43]wFMCommunicate OK [08:18:43]wFMCommunicate request_size=4 [08:18:43]MH_SAM_APDU [08:18:43]CAPDU: 80 0D 03 02 [08:18:43]Write to MH i2c: E2 08 00 55 08 80 0D 03 02 00 00 00 00 D8 [08:18:43]Write i2c OK [08:18:43]MH_I2C_Read... [08:18:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:43]Read from MH i2c: E2 [08:18:43]MH_I2C_Read... [08:18:43]Read from MH i2c: E2 0B 00 [08:18:43]MH_I2C_Read... [08:18:43]Read from MH i2c: E2 0B 00 55 08 00 F1 E2 A5 6A 83 72 13 07 90 00 CA [08:18:43]RAPDU: F1 E2 A5 6A 83 72 13 07 90 00 [08:18:43]wFMCommunicate OK [08:18:43]SAM_PROTO_SignData done [08:18:43]FM_MakeSignedData done [08:18:43]CreateOFDProtocolMessage [08:18:43]wFMCommunicate request_size=4 [08:18:43]MH_SAM_APDU [08:18:43]CAPDU: 80 11 00 00 [08:18:43]Write to MH i2c: E2 08 00 56 08 80 11 00 00 00 00 00 00 D8 [08:18:43]Write i2c OK [08:18:43]MH_I2C_Read... [08:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:43]Read from MH i2c: E2 [08:18:43]MH_I2C_Read... [08:18:43]Read from MH i2c: E2 17 00 [08:18:43]MH_I2C_Read... [08:18:43]Read from MH i2c: E2 17 00 56 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 23 [08:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:18:43]wFMCommunicate OK [08:18:43]CreateOFDProtocolMessage done [08:18:43]OFDSenderStorePacket 49913 [08:18:43]StoreOFDPacket docnum=49913 [08:18:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A1 01 00 00 2F 0C 99 01 E3 DB 5A 03 01 00 03 00 8D 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 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 14 00 00 00 F4 03 04 00 E3 FF C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F9 C2 00 00 35 04 06 00 43 87 AE 8B 36 37 F1 E2 A5 6A 83 72 13 07 [08:18:43]CheckFolder [08:18:43]dirname=/storage/ofd_packets [08:18:43]CheckFolder done [08:18:43]ProducePacketName [08:18:43]name=ofd_packets/00049913 [08:18:43]NVStorageSaveData ofd_packets/00049913 [08:18:43]File name is /storage/ofd_packets/00049913 [08:18:43]Write 447 bytes [08:18:43]NVStorageSaveData done [08:18:43]OFDSenderStorePacket done [08:18:43]KKMCreateOFDPacket done [08:18:43]NVStorageSaveData kkm_last_timestamp [08:18:43]File name is /storage/kkm_last_timestamp [08:18:43]Write 4 bytes [08:18:43]NVStorageSaveData done [08:18:43]ExternCall_PrintAddStr [08:18:43]wPrintStart [08:18:43]Write to MH i2c: 01 00 00 57 08 5F [08:18:43]Write i2c OK [08:18:43]MH_I2C_Read... [08:18:43]Read from MH i2c: 01 [08:18:43]MH_I2C_Read... [08:18:43]Read from MH i2c: 01 07 00 [08:18:43]MH_I2C_Read... [08:18:43]Read from MH i2c: 01 07 00 57 08 00 00 00 00 00 FF 0F 74 [08:18:43]RasterBufferAndPrint [08:18:43]line Счет N : (3)190083 [08:18:43]line ИНН: 02508201610067 [08:18:43]line Контрольно-Кассовый Чек [08:18:43]line ПРОДАЖА [08:18:43]line Товар: 4600682557456 [08:18:43]line Напиток FLash up energy эн ж/б 0,5/0,45л [08:18:43]line 1.000 * 85.00 [08:18:43]line = 85.00 [08:18:43]line НДС 12% НСП 1% [08:18:43]line > о реализуемом товаре [08:18:43]line Товар: 48743570 [08:18:43]line Сигареты Winston XStyle Blue [08:18:43]line 1.000 * 140.00 [08:18:43]line = 140.00 [08:18:43]line НДС 12% НСП 1% [08:18:43]line > о реализуемом товаре [08:18:43]line ИТОГО: 225.00 [08:18:43]line НСП 1% : 1.99 [08:18:43]line НДС 12% : 23.90 [08:18:43]line Наличными: 225.00 [08:18:43]line Безнал.: 0.00 [08:18:43]line Место: АЗС № 95 "Партнер Нефть" [08:18:43]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:18:43]line СНО: Общий режим [08:18:43]line Чек 20 19.08.2024 08:18 [08:18:43]line Смена: 467 ФФД: 1.0 [08:18:43]line ЗНМ: 0300000078 [08:18:43]line РНМ: 0000000000092546 [08:18:43]line Версия ККМ: 001 [08:18:43]line ФМ: 0000000000871800 [08:18:43]line ФД: 49913 [08:18:43]line ФПД: 74250028004919 [08:18:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T081843&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49913&fm=74250028004919&tin=02508201610067®Number=0000000000092546&sum=22500 [08:18:43]OFD Sender: Processing packet 49913 [packets to send 21, broken 20] [08:18:43]ProducePacketName [08:18:43]name=ofd_packets/00049913 [08:18:43]OFD Sender: To server: pG, [08:18:43]CommunicateWithHost lk.salyk.kg:30040 [08:18:43]ConnectInit lk.salyk.kg [08:18:43]line 0 [08:18:43]written 0, free lines is 4095 [08:18:43]Connected sock=11 [08:18:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A1 01 00 00 2F 0C 99 01 E3 DB 5A 03 01 00 03 00 8D 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 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 14 00 00 00 F4 03 04 00 E3 FF C2 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F9 C2 00 00 35 04 06 00 43 87 AE 8B 36 37 F1 E2 A5 6A 83 72 13 07 [08:18:44]Write to MH i2c: 01 00 00 86 08 8E [08:18:44]Write i2c OK [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: 01 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: 01 07 00 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: 01 07 00 86 08 00 00 00 00 00 6C 0C 0D [08:18:44]RasterBufferAndPrint [08:18:44]line [08:18:44]line [08:18:44]line [08:18:44]line [08:18:44]line [08:18:44]written 0, free lines is 3184 [08:18:44]MH_Cut [08:18:44]Write to MH i2c: D1 01 00 8D 08 01 67 [08:18:44]Write i2c OK [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: D1 [08:18:44]MH_I2C_Read... [08:18:44]Read from MH i2c: D1 01 00 [08:18:44]MH_I2C_Read... [08:18:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B8 42 47 00 EE 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F9 C2 00 00 F4 03 04 00 51 AA C2 66 B6 04 01 00 00 A1 28 D0 35 40 D0 87 0A [08:18:44]CommunicateWithHost err = 0 [08:18:44]CheckOFDResponse [08:18:44]1017 (14) - 77093643461234 [08:18:44]1041 (16) - 0000000000871800 [08:18:44]1040 (4) - 49913 [08:18:44]1012 (4) - 19.08.2024 02:13 [08:18:44]1206 (1) - 0 [08:18:44]OFD Sender: Remove packet 49913 [08:18:44]ProducePacketName [08:18:44]name=ofd_packets/00049913 [08:18:44]NVStorageDeleteData [08:18:44]Read from MH i2c: D1 01 00 8D 08 00 66 [08:18:44]Write to MH i2c: 01 00 00 8E 08 96 [08:18:44]Write i2c OK [08:18:44]MH_I2C_Read... [08:18:44]OFD Sender: No OFD packet to send [08:18:44]*** Cut start [08:18:44]*** Purtial cut [08:18:44]*** CUTSNS_PIN = 0 [08:18:45]*** Stage 1: CUTSNS_PIN = 1 [08:18:46]Read from MH i2c: 01 [08:18:46]MH_I2C_Read... [08:18:46]*** Stop cut motor [08:18:46]*** Cut end [08:18:46]Read from MH i2c: 01 07 00 [08:18:46]MH_I2C_Read... [08:18:46]Read from MH i2c: 01 07 00 8E 08 00 00 00 00 00 FF 0F AB [08:18:46]process_action close_receipt done [08:18:46]requested_data is exist [08:18:46]produce_requested_data [08:18:46]requested_item fm.sn is exist - process it [08:18:46]wFMCommunicate request_size=4 [08:18:46]MH_SAM_APDU [08:18:46]CAPDU: 80 11 00 00 [08:18:46]Write to MH i2c: E2 08 00 8F 08 80 11 00 00 00 00 00 00 11 [08:18:46]Write i2c OK [08:18:46]MH_I2C_Read... [08:18:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:47]Read from MH i2c: E2 [08:18:47]MH_I2C_Read... [08:18:47]Read from MH i2c: E2 17 00 [08:18:47]MH_I2C_Read... [08:18:47]Read from MH i2c: E2 17 00 8F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5C [08:18:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:18:47]wFMCommunicate OK [08:18:47]requested_item fd.num is exist - process it [08:18:47]SAM_PROTO_GetFieldsCounters [08:18:47]wFMCommunicate request_size=4 [08:18:47]MH_SAM_APDU [08:18:47]CAPDU: 80 13 00 00 [08:18:47]Write to MH i2c: E2 08 00 90 08 80 13 00 00 00 00 00 00 14 [08:18:47]Write i2c OK [08:18:47]MH_I2C_Read... [08:18:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:47]Read from MH i2c: E2 [08:18:47]MH_I2C_Read... [08:18:47]Read from MH i2c: E2 62 00 [08:18:47]MH_I2C_Read... [08:18:47]Read from MH i2c: E2 62 00 90 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F9 C2 00 00 0E 04 04 00 D3 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 F9 [08:18:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F9 C2 00 00 0E 04 04 00 D3 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:18:47]wFMCommunicate OK [08:18:47]SAM_PROTO_GetFieldsCounters done [08:18:47]requested_item shift.num is exist - process it [08:18:47]requested_item shift.opened is exist - process it [08:18:47]req_shift_opened [08:18:47]FM_GetShiftState [08:18:47]SAM_PROTO_GetShiftState [08:18:47]wFMCommunicate request_size=4 [08:18:47]MH_SAM_APDU [08:18:47]CAPDU: 80 13 01 00 [08:18:47]Write to MH i2c: E2 08 00 91 08 80 13 01 00 00 00 00 00 16 [08:18:47]Write i2c OK [08:18:47]MH_I2C_Read... [08:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:47]Read from MH i2c: E2 [08:18:47]MH_I2C_Read... [08:18:47]Read from MH i2c: E2 0E 00 [08:18:47]MH_I2C_Read... [08:18:47]Read from MH i2c: E2 0E 00 91 08 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 D0 [08:18:47]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:18:47]wFMCommunicate OK [08:18:47]SAM_PROTO_GetShiftState done [08:18:47]FM_GetShiftState done [08:18:47]req_shift_opened done [08:18:47]requested_item shift.open_date is exist - process it [08:18:47]req_shift_open_date [08:18:47]req_shift_open_date done [08:18:47]produce_requested_data done [08:18:47]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49913,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [08:18:47]process_action_free close_receipt [08:18:47]json_value_free [08:18:47]json_value_free done [08:18:47]process_json_proto returns [08:18:47]Send response to host [08:18:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49913,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [08:18:47]free response buf [08:18:47]execute_script done [08:18:47]execute_script returns [08:18:47]free content buf [08:18:47]Sock 7.Close socket [08:18:47]Sock 7.Thread stoped [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]accept exits with 9 [08:19:19]New connection [08:19:19]New thread 3067211108 created [08:19:19]Thread 3067354468 joined [08:19:19]Waiting for new connection... [08:19:19] Sock 9.Parse request [08:19:19]Sock 9.Check first char [08:19:19]Sock 9.First char is OK [08:19:19]request: POST /json_proto HTTP/1.0 [08:19:19]Method: POST [08:19:19]URL: /json_proto [08:19:19]Method is POST - this is cgi request [08:19:19]url: /json_proto [08:19:19]query_string will be loaded in cgi processing [08:19:19]execute_cgi json_proto POST (null) [08:19:19]execute_cgi path=json_proto method=POST [08:19:19]POST find Content-Length [08:19:19]Host: 172.17.46.196:8080 [08:19:19]Content-Length: 753 [08:19:19]Content-Type: application/json [08:19:19] [08:19:19]POST finish read [08:19:19]Found Content-Length = 753 [08:19:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 33.360, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097911", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:19]execute_script... [08:19:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 33.360, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097911", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:19]POST & json_proto [08:19:19]process_json_proto [08:19:19]json parsed OK: [08:19:19]protocol is kg_v1.0 [08:19:19]action value=close_receipt [08:19:19]process_action close_receipt [08:19:19]cmd_close_receipt [08:19:19]MH_GetDate [08:19:19]Write to MH i2c: F0 00 00 92 08 89 [08:19:19]Write i2c OK [08:19:19]MH_I2C_Read... [08:19:19]Read from MH i2c: F0 [08:19:19]MH_I2C_Read... [08:19:19]Read from MH i2c: F0 09 00 [08:19:19]MH_I2C_Read... [08:19:19]Read from MH i2c: F0 09 00 92 08 00 09 00 C3 66 C4 85 C2 66 35 [08:19:19]GetLastDocTimeStamp 1724055523 [08:19:19]current date 1724055561 [08:19:19]FM_GetShiftState [08:19:19]SAM_PROTO_GetShiftState [08:19:19]wFMCommunicate request_size=4 [08:19:19]MH_SAM_APDU [08:19:19]CAPDU: 80 13 01 00 [08:19:19]Write to MH i2c: E2 08 00 93 08 80 13 01 00 00 00 00 00 18 [08:19:19]Write i2c OK [08:19:19]MH_I2C_Read... [08:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:19]Read from MH i2c: E2 [08:19:19]MH_I2C_Read... [08:19:19]Read from MH i2c: E2 0E 00 [08:19:19]MH_I2C_Read... [08:19:19]Read from MH i2c: E2 0E 00 93 08 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 D2 [08:19:19]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:19:19]wFMCommunicate OK [08:19:19]SAM_PROTO_GetShiftState done [08:19:19]FM_GetShiftState done [08:19:19]opened in 1724026361 [08:19:19]opened+sec_in_day 1724112761 [08:19:19]quantity*price = 0 [08:19:19]sum+1 = 1 [08:19:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 21 19.08.2024 08:19 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30097911 ФМ: 0000000000871800 ФД: 49914 ФПД: 165588233372266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T081921&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49914&fm=165588233372266&tin=02508201610067®Number=0000000000092546&sum=0 [08:19:20]StoreToDocumentArchive [08:19:20]shift 467 fd 49914 [08:19:20]save to /storage/0467/doc_00049914 [08:19:20]save last doc name /storage/0467/doc_00049914 to /storage/kkm_last_doc_name [08:19:20]save OK [08:19:20]Clear old archive folders... [08:19:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:19:20]tlvbuf is 0104D190 [08:19:20]SAM_PROTO_ClearQueue [08:19:20]wFMCommunicate request_size=4 [08:19:20]MH_SAM_APDU [08:19:20]CAPDU: 80 09 00 00 [08:19:20]Write to MH i2c: E2 08 00 A0 08 80 09 00 00 00 00 00 00 1A [08:19:20]Write i2c OK [08:19:20]MH_I2C_Read... [08:19:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:20]Read from MH i2c: E2 [08:19:20]MH_I2C_Read... [08:19:20]Read from MH i2c: E2 03 00 [08:19:20]MH_I2C_Read... [08:19:20]Read from MH i2c: E2 03 00 A0 08 00 90 00 1C [08:19:20]RAPDU: 90 00 [08:19:20]wFMCommunicate OK [08:19:20]SAM_PROTO_ClearQueue done [08:19:20]KKMCreateOFDPacket [08:19:20]OFDProtocolAddRootSTLVToBuf [08:19:20]FM_MakeSignedData [08:19:20]FM_MakeSignedData [08:19:20]SAM_PROTO_SignData [08:19:20]wFMCommunicate request_size=4 [08:19:20]MH_SAM_APDU [08:19:20]CAPDU: 80 0D 01 02 [08:19:20]Write to MH i2c: E2 08 00 A1 08 80 0D 01 02 00 00 00 00 22 [08:19:20]Write i2c OK [08:19:20]MH_I2C_Read... [08:19:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:20]Read from MH i2c: E2 [08:19:20]MH_I2C_Read... [08:19:20]Read from MH i2c: E2 03 00 [08:19:20]MH_I2C_Read... [08:19:20]Read from MH i2c: E2 03 00 A1 08 00 90 00 1D [08:19:20]RAPDU: 90 00 [08:19:20]wFMCommunicate OK [08:19:20]wFMCommunicate request_size=255 [08:19:20]MH_SAM_APDU [08:19:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 82 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 09 00 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FA C2 00 00 35 04 06 00 96 9A 03 D4 [08:19:20]Write to MH i2c: E2 02 01 A2 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 82 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 09 00 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FA C2 00 00 35 04 06 00 96 9A 03 D4 00 00 28 [08:19:20]Write i2c OK [08:19:20]MH_I2C_Read... [08:19:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:21]Read from MH i2c: E2 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: E2 03 00 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: E2 03 00 A2 08 00 90 00 1E [08:19:21]RAPDU: 90 00 [08:19:21]wFMCommunicate OK [08:19:21]wFMCommunicate request_size=7 [08:19:21]MH_SAM_APDU [08:19:21]CAPDU: 80 0D 02 02 02 42 6A [08:19:21]Write to MH i2c: E2 0A 00 A3 08 80 0D 02 02 02 00 42 6A 00 00 D5 [08:19:21]Write i2c OK [08:19:21]MH_I2C_Read... [08:19:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:21]Read from MH i2c: E2 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: E2 03 00 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: E2 03 00 A3 08 00 90 00 1F [08:19:21]RAPDU: 90 00 [08:19:21]wFMCommunicate OK [08:19:21]wFMCommunicate request_size=4 [08:19:21]MH_SAM_APDU [08:19:21]CAPDU: 80 0D 03 02 [08:19:21]Write to MH i2c: E2 08 00 A4 08 80 0D 03 02 00 00 00 00 27 [08:19:21]Write i2c OK [08:19:21]MH_I2C_Read... [08:19:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:21]Read from MH i2c: E2 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: E2 0B 00 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: E2 0B 00 A4 08 00 07 C1 7B 3A 69 AD 1F 79 90 00 53 [08:19:21]RAPDU: 07 C1 7B 3A 69 AD 1F 79 90 00 [08:19:21]wFMCommunicate OK [08:19:21]SAM_PROTO_SignData done [08:19:21]FM_MakeSignedData done [08:19:21]CreateOFDProtocolMessage [08:19:21]wFMCommunicate request_size=4 [08:19:21]MH_SAM_APDU [08:19:21]CAPDU: 80 11 00 00 [08:19:21]Write to MH i2c: E2 08 00 A5 08 80 11 00 00 00 00 00 00 27 [08:19:21]Write i2c OK [08:19:21]MH_I2C_Read... [08:19:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:21]Read from MH i2c: E2 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: E2 17 00 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: E2 17 00 A5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 72 [08:19:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:19:21]wFMCommunicate OK [08:19:21]CreateOFDProtocolMessage done [08:19:21]OFDSenderStorePacket 49914 [08:19:21]StoreOFDPacket docnum=49914 [08:19:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 13 3B 04 01 55 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 82 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 09 00 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FA C2 00 00 35 04 06 00 96 9A 03 D4 42 6A 07 C1 7B 3A 69 AD 1F 79 [08:19:21]CheckFolder [08:19:21]dirname=/storage/ofd_packets [08:19:21]CheckFolder done [08:19:21]ProducePacketName [08:19:21]name=ofd_packets/00049914 [08:19:21]NVStorageSaveData ofd_packets/00049914 [08:19:21]File name is /storage/ofd_packets/00049914 [08:19:21]Write 298 bytes [08:19:21]NVStorageSaveData done [08:19:21]OFDSenderStorePacket done [08:19:21]KKMCreateOFDPacket done [08:19:21]NVStorageSaveData kkm_last_timestamp [08:19:21]File name is /storage/kkm_last_timestamp [08:19:21]Write 4 bytes [08:19:21]NVStorageSaveData done [08:19:21]ExternCall_PrintAddStr [08:19:21]wPrintStart [08:19:21]Write to MH i2c: 01 00 00 A6 08 AE [08:19:21]Write i2c OK [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: 01 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: 01 07 00 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: 01 07 00 A6 08 00 00 00 00 00 FF 0F C3 [08:19:21]RasterBufferAndPrint [08:19:21]line Счет N : (1)11327532 [08:19:21]line ИНН: 02508201610067 [08:19:21]line Контрольно-Кассовый Чек [08:19:21]line ПРОДАЖА [08:19:21]line ТРК (МРК, ГНК) : 61 [08:19:21]line Товар: 2710194210 [08:19:21]line ДТ-К-5 [08:19:21]line 33.360 * 0.00 [08:19:21]line = 0.00 [08:19:21]line НДС 12% НСП 1% [08:19:21]line > о реализуемом товаре [08:19:21]line ИТОГО: 0.00 [08:19:21]line НСП 1% : 0.00 [08:19:21]line НДС 12% : 0.00 [08:19:21]line Наличными: 0.00 [08:19:21]line Безнал.: 0.00 [08:19:21]line Место: АЗС № 95 "Партнер Нефть" [08:19:21]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:19:21]line СНО: Общий режим [08:19:21]line Чек 21 19.08.2024 08:19 [08:19:21]line Смена: 467 ФФД: 1.0 [08:19:21]line ЗНМ: 0300000078 [08:19:21]line РНМ: 0000000000092546 [08:19:21]line Версия ККМ: 001 [08:19:21]line Талоны: ТК ГПНА Online [08:19:21]line 30097911 [08:19:21]line ФМ: 0000000000871800 [08:19:21]line ФД: 49914 [08:19:21]line ФПД: 165588233372266 [08:19:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T081921&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49914&fm=165588233372266&tin=02508201610067®Number=0000000000092546&sum=0 [08:19:21]OFD Sender: Processing packet 49914 [packets to send 21, broken 20] [08:19:21]ProducePacketName [08:19:21]name=ofd_packets/00049914 [08:19:21]OFD Sender: To server: pG, [08:19:21]CommunicateWithHost lk.salyk.kg:30040 [08:19:21]ConnectInit lk.salyk.kg [08:19:21]written 0, free lines is 4095 [08:19:21]Connected sock=11 [08:19:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 13 3B 04 01 55 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 82 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 09 00 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FA C2 00 00 35 04 06 00 96 9A 03 D4 42 6A 07 C1 7B 3A 69 AD 1F 79 [08:19:21]Write to MH i2c: 01 00 00 D0 08 D8 [08:19:21]Write i2c OK [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: 01 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: 01 07 00 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: 01 07 00 D0 08 00 00 00 00 00 CB 0C B6 [08:19:21]RasterBufferAndPrint [08:19:21]line [08:19:21]line [08:19:21]line [08:19:21]line [08:19:21]line [08:19:21]written 0, free lines is 3282 [08:19:21]MH_Cut [08:19:21]Write to MH i2c: D1 01 00 D7 08 01 B1 [08:19:21]Write i2c OK [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: D1 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: D1 01 00 [08:19:21]MH_I2C_Read... [08:19:21]Read from MH i2c: D1 01 00 D7 08 00 B0 [08:19:21]Write to MH i2c: 01 00 00 D8 08 E0 [08:19:21]Write i2c OK [08:19:21]MH_I2C_Read... [08:19:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 35 F5 47 00 84 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 31 38 30 30 10 04 04 00 FA C2 00 00 F4 03 04 00 77 AA C2 66 B6 04 01 00 00 86 67 2B 93 4B DD 32 4A [08:19:21]CommunicateWithHost err = 0 [08:19:21]CheckOFDResponse [08:19:21]1017 (14) - 77093643461234 [08:19:21]1041 (16) - 0000000000871800 [08:19:21]1040 (4) - 49914 [08:19:21]1012 (4) - 19.08.2024 02:14 [08:19:21]1206 (1) - 0 [08:19:21]OFD Sender: Remove packet 49914 [08:19:21]ProducePacketName [08:19:21]name=ofd_packets/00049914 [08:19:21]NVStorageDeleteData [08:19:22]OFD Sender: No OFD packet to send [08:19:22]*** Cut start [08:19:22]*** Purtial cut [08:19:22]*** Stage 1: CUTSNS_PIN = 1 [08:19:22]Read from MH i2c: 01 [08:19:22]MH_I2C_Read... [08:19:22]*** Stop cut motor [08:19:22]*** Cut end [08:19:22]Read from MH i2c: 01 07 00 [08:19:22]MH_I2C_Read... [08:19:22]Read from MH i2c: 01 07 00 D8 08 00 00 00 00 00 FF 0F F5 [08:19:22]process_action close_receipt done [08:19:22]requested_data is exist [08:19:22]produce_requested_data [08:19:22]requested_item fm.sn is exist - process it [08:19:22]wFMCommunicate request_size=4 [08:19:22]MH_SAM_APDU [08:19:22]CAPDU: 80 11 00 00 [08:19:22]Write to MH i2c: E2 08 00 D9 08 80 11 00 00 00 00 00 00 5B [08:19:22]Write i2c OK [08:19:22]MH_I2C_Read... [08:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:23]Read from MH i2c: E2 [08:19:23]MH_I2C_Read... [08:19:23]Read from MH i2c: E2 17 00 [08:19:23]MH_I2C_Read... [08:19:23]Read from MH i2c: E2 17 00 D9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A6 [08:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:19:23]wFMCommunicate OK [08:19:23]requested_item fd.num is exist - process it [08:19:23]SAM_PROTO_GetFieldsCounters [08:19:23]wFMCommunicate request_size=4 [08:19:23]MH_SAM_APDU [08:19:23]CAPDU: 80 13 00 00 [08:19:23]Write to MH i2c: E2 08 00 DA 08 80 13 00 00 00 00 00 00 5E [08:19:23]Write i2c OK [08:19:23]MH_I2C_Read... [08:19:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:23]Read from MH i2c: E2 [08:19:23]MH_I2C_Read... [08:19:23]Read from MH i2c: E2 62 00 [08:19:23]MH_I2C_Read... [08:19:23]Read from MH i2c: E2 62 00 DA 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FA C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [08:19:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FA C2 00 00 0E 04 04 00 D3 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:19:23]wFMCommunicate OK [08:19:23]SAM_PROTO_GetFieldsCounters done [08:19:23]requested_item shift.num is exist - process it [08:19:23]requested_item shift.opened is exist - process it [08:19:23]req_shift_opened [08:19:23]FM_GetShiftState [08:19:23]SAM_PROTO_GetShiftState [08:19:23]wFMCommunicate request_size=4 [08:19:23]MH_SAM_APDU [08:19:23]CAPDU: 80 13 01 00 [08:19:23]Write to MH i2c: E2 08 00 DB 08 80 13 01 00 00 00 00 00 60 [08:19:23]Write i2c OK [08:19:23]MH_I2C_Read... [08:19:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:23]Read from MH i2c: E2 [08:19:23]MH_I2C_Read... [08:19:23]Read from MH i2c: E2 0E 00 [08:19:23]MH_I2C_Read... [08:19:23]Read from MH i2c: E2 0E 00 DB 08 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 1A [08:19:23]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:19:23]wFMCommunicate OK [08:19:23]SAM_PROTO_GetShiftState done [08:19:23]FM_GetShiftState done [08:19:23]req_shift_opened done [08:19:23]requested_item shift.open_date is exist - process it [08:19:23]req_shift_open_date [08:19:23]req_shift_open_date done [08:19:23]produce_requested_data done [08:19:23]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49914,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [08:19:23]process_action_free close_receipt [08:19:23]json_value_free [08:19:23]json_value_free done [08:19:23]process_json_proto returns [08:19:23]Send response to host [08:19:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49914,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [08:19:23]free response buf [08:19:23]execute_script done [08:19:23]execute_script returns [08:19:23]free content buf [08:19:23]Sock 9.Close socket [08:19:23]Sock 9.Thread stoped [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:24]accept exits with 7 [08:21:24]New connection [08:21:24]New thread 3067354468 created [08:21:24]Thread 3067211108 joined [08:21:24]Waiting for new connection... [08:21:24] Sock 7.Parse request [08:21:24]Sock 7.Check first char [08:21:24]Sock 7.First char is OK [08:21:24]request: POST /json_proto HTTP/1.0 [08:21:24]Method: POST [08:21:24]URL: /json_proto [08:21:24]Method is POST - this is cgi request [08:21:24]url: /json_proto [08:21:24]query_string will be loaded in cgi processing [08:21:24]execute_cgi json_proto POST (null) [08:21:24]execute_cgi path=json_proto method=POST [08:21:24]POST find Content-Length [08:21:24]Host: 172.17.46.196:8080 [08:21:24]Content-Length: 620 [08:21:24]Content-Type: application/json [08:21:24] [08:21:24]POST finish read [08:21:24]Found Content-Length = 620 [08:21:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190084", "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:21:24]execute_script... [08:21: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)190084", "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:21:24]POST & json_proto [08:21:24]process_json_proto [08:21:24]json parsed OK: [08:21:24]protocol is kg_v1.0 [08:21:24]action value=close_receipt [08:21:24]process_action close_receipt [08:21:24]cmd_close_receipt [08:21:24]MH_GetDate [08:21:24]Write to MH i2c: F0 00 00 DC 08 D3 [08:21:24]Write i2c OK [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: F0 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: F0 09 00 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: F0 09 00 DC 08 00 86 00 C3 66 C4 85 C2 66 FC [08:21:24]GetLastDocTimeStamp 1724055561 [08:21:24]current date 1724055686 [08:21:24]FM_GetShiftState [08:21:24]SAM_PROTO_GetShiftState [08:21:24]wFMCommunicate request_size=4 [08:21:24]MH_SAM_APDU [08:21:24]CAPDU: 80 13 01 00 [08:21:24]Write to MH i2c: E2 08 00 DD 08 80 13 01 00 00 00 00 00 62 [08:21:24]Write i2c OK [08:21:24]MH_I2C_Read... [08:21:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:24]Read from MH i2c: E2 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 0E 00 [08:21:24]MH_I2C_Read... [08:21:24]Read from MH i2c: E2 0E 00 DD 08 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 1C [08:21:24]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:21:24]wFMCommunicate OK [08:21:24]SAM_PROTO_GetShiftState done [08:21:24]FM_GetShiftState done [08:21:24]opened in 1724026361 [08:21:24]opened+sec_in_day 1724112761 [08:21:24]quantity*price = 13500 [08:21:24]sum+1 = 13501 [08:21:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 22 19.08.2024 08:21 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49915 ФПД: 123634771110738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T082126&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49915&fm=123634771110738&tin=02508201610067®Number=0000000000092546&sum=13500 0 [08:21:25]StoreToDocumentArchive [08:21:25]shift 467 fd 49915 [08:21:25]save to /storage/0467/doc_00049915 [08:21:25]save last doc name /storage/0467/doc_00049915 to /storage/kkm_last_doc_name [08:21:25]save OK [08:21:25]Clear old archive folders... [08:21:25]ProcessDocumentItem done err = 0, tmpTLVsize=272 [08:21:25]tlvbuf is 00F677E0 [08:21:25]SAM_PROTO_ClearQueue [08:21:25]wFMCommunicate request_size=4 [08:21:25]MH_SAM_APDU [08:21:25]CAPDU: 80 09 00 00 [08:21:25]Write to MH i2c: E2 08 00 EA 08 80 09 00 00 00 00 00 00 64 [08:21:25]Write i2c OK [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 03 00 [08:21:25]MH_I2C_Read... [08:21:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:25]Read from MH i2c: E2 03 00 EA 08 00 90 00 66 [08:21:25]RAPDU: 90 00 [08:21:25]wFMCommunicate OK [08:21:25]SAM_PROTO_ClearQueue done [08:21:25]KKMCreateOFDPacket [08:21:25]OFDProtocolAddRootSTLVToBuf [08:21:25]FM_MakeSignedData [08:21:25]FM_MakeSignedData [08:21:25]SAM_PROTO_SignData [08:21:25]wFMCommunicate request_size=4 [08:21:25]MH_SAM_APDU [08:21:25]CAPDU: 80 0D 01 02 [08:21:25]Write to MH i2c: E2 08 00 EB 08 80 0D 01 02 00 00 00 00 6C [08:21:25]Write i2c OK [08:21:25]MH_I2C_Read... [08:21:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:25]Read from MH i2c: E2 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 03 00 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 03 00 EB 08 00 90 00 67 [08:21:25]RAPDU: 90 00 [08:21:25]wFMCommunicate OK [08:21:25]wFMCommunicate request_size=255 [08:21:25]MH_SAM_APDU [08:21:25]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 16 00 00 00 F4 03 04 00 86 00 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 [08:21:25]Write to MH i2c: E2 02 01 EC 08 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 16 00 00 00 F4 03 04 00 86 00 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 C1 [08:21:25]Write i2c OK [08:21:25]MH_I2C_Read... [08:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:25]Read from MH i2c: E2 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 03 00 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 03 00 EC 08 00 90 00 68 [08:21:25]RAPDU: 90 00 [08:21:25]wFMCommunicate OK [08:21:25]wFMCommunicate request_size=31 [08:21:25]MH_SAM_APDU [08:21:25]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 30 30 10 04 04 00 FB C2 00 00 35 04 06 00 70 71 F6 9D 2B 52 [08:21:25]Write to MH i2c: E2 22 00 ED 08 80 0D 02 02 1A 00 30 30 38 37 31 38 30 30 10 04 04 00 FB C2 00 00 35 04 06 00 70 71 F6 9D 2B 52 00 00 40 [08:21:25]Write i2c OK [08:21:25]MH_I2C_Read... [08:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:25]Read from MH i2c: E2 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 03 00 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 03 00 ED 08 00 90 00 69 [08:21:25]RAPDU: 90 00 [08:21:25]wFMCommunicate OK [08:21:25]wFMCommunicate request_size=4 [08:21:25]MH_SAM_APDU [08:21:25]CAPDU: 80 0D 03 02 [08:21:25]Write to MH i2c: E2 08 00 EE 08 80 0D 03 02 00 00 00 00 71 [08:21:25]Write i2c OK [08:21:25]MH_I2C_Read... [08:21:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:25]Read from MH i2c: E2 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 0B 00 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 0B 00 EE 08 00 2F 7A 12 56 9F 09 03 B7 90 00 E5 [08:21:25]RAPDU: 2F 7A 12 56 9F 09 03 B7 90 00 [08:21:25]wFMCommunicate OK [08:21:25]SAM_PROTO_SignData done [08:21:25]FM_MakeSignedData done [08:21:25]CreateOFDProtocolMessage [08:21:25]wFMCommunicate request_size=4 [08:21:25]MH_SAM_APDU [08:21:25]CAPDU: 80 11 00 00 [08:21:25]Write to MH i2c: E2 08 00 EF 08 80 11 00 00 00 00 00 00 71 [08:21:25]Write i2c OK [08:21:25]MH_I2C_Read... [08:21:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:25]Read from MH i2c: E2 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 17 00 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: E2 17 00 EF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BC [08:21:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:21:25]wFMCommunicate OK [08:21:25]CreateOFDProtocolMessage done [08:21:25]OFDSenderStorePacket 49915 [08:21:25]StoreOFDPacket docnum=49915 [08:21:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 7E 30 1C 01 FF 5B 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 16 00 00 00 F4 03 04 00 86 00 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FB C2 00 00 35 04 06 00 70 71 F6 9D 2B 52 2F 7A 12 56 9F 09 03 B7 [08:21:25]CheckFolder [08:21:25]dirname=/storage/ofd_packets [08:21:25]CheckFolder done [08:21:25]ProducePacketName [08:21:25]name=ofd_packets/00049915 [08:21:25]NVStorageSaveData ofd_packets/00049915 [08:21:25]File name is /storage/ofd_packets/00049915 [08:21:25]Write 322 bytes [08:21:25]NVStorageSaveData done [08:21:25]OFDSenderStorePacket done [08:21:25]KKMCreateOFDPacket done [08:21:25]NVStorageSaveData kkm_last_timestamp [08:21:25]File name is /storage/kkm_last_timestamp [08:21:25]Write 4 bytes [08:21:25]NVStorageSaveData done [08:21:25]ExternCall_PrintAddStr [08:21:25]wPrintStart [08:21:25]Write to MH i2c: 01 00 00 F0 08 F8 [08:21:25]Write i2c OK [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: 01 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: 01 07 00 [08:21:25]MH_I2C_Read... [08:21:25]Read from MH i2c: 01 07 00 F0 08 00 00 00 00 00 FF 0F 0D [08:21:25]RasterBufferAndPrint [08:21:25]line Счет N : (3)190084 [08:21:25]line ИНН: 02508201610067 [08:21:25]line Контрольно-Кассовый Чек [08:21:25]line ПРОДАЖА [08:21:25]line Товар: 48745000 [08:21:25]line Сигареты Winston Purple Mix [08:21:25]line 1.000 * 135.00 [08:21:25]line = 135.00 [08:21:25]line НДС 12% НСП 1% [08:21:25]line > о реализуемом товаре [08:21:25]line ИТОГО: 135.00 [08:21:25]line НСП 1% : 1.19 [08:21:25]line НДС 12% : 14.34 [08:21:25]line Наличными: 135.00 [08:21:25]line Безнал.: 0.00 [08:21:25]line Место: АЗС № 95 "Партнер Нефть" [08:21:25]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:21:25]line СНО: Общий режим [08:21:25]line Чек 22 19.08.2024 08:21 [08:21:25]line Смена: 467 ФФД: 1.0 [08:21:25]line ЗНМ: 0300000078 [08:21:25]line РНМ: 0000000000092546 [08:21:25]line Версия ККМ: 001 [08:21:25]line ФМ: 0000000000871800 [08:21:25]line ФД: 49915 [08:21:25]line ФПД: 123634771110738 [08:21:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T082126&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49915&fm=123634771110738&tin=02508201610067®Number=0000000000092546&sum=13500 [08:21:26]line 0 [08:21:26]OFD Sender: Processing packet 49915 [packets to send 21, broken 20] [08:21:26]ProducePacketName [08:21:26]name=ofd_packets/00049915 [08:21:26]OFD Sender: To server: pG, [08:21:26]CommunicateWithHost lk.salyk.kg:30040 [08:21:26]ConnectInit lk.salyk.kg [08:21:26]written 0, free lines is 4095 [08:21:26]Connected sock=10 [08:21:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 7E 30 1C 01 FF 5B 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 16 00 00 00 F4 03 04 00 86 00 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FB C2 00 00 35 04 06 00 70 71 F6 9D 2B 52 2F 7A 12 56 9F 09 03 B7 [08:21:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B4 DD 47 00 B7 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FB C2 00 00 F4 03 04 00 F3 AA C2 66 B6 04 01 00 00 D3 97 5D 49 CC 01 6E C4 [08:21:26]CommunicateWithHost err = 0 [08:21:26]CheckOFDResponse [08:21:26]1017 (14) - 77093643461234 [08:21:26]1041 (16) - 0000000000871800 [08:21:26]1040 (4) - 49915 [08:21:26]1012 (4) - 19.08.2024 02:16 [08:21:26]1206 (1) - 0 [08:21:26]OFD Sender: Remove packet 49915 [08:21:26]ProducePacketName [08:21:26]name=ofd_packets/00049915 [08:21:26]NVStorageDeleteData [08:21:26]Write to MH i2c: 01 00 00 18 09 21 [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: 01 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: 01 07 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: 01 07 00 18 09 00 00 00 00 00 E0 0C 14 [08:21:26]RasterBufferAndPrint [08:21:26]line [08:21:26]line [08:21:26]line [08:21:26]line [08:21:26]line [08:21:26]written 0, free lines is 3302 [08:21:26]MH_Cut [08:21:26]Write to MH i2c: D1 01 00 1F 09 01 FA [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: D1 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: D1 01 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: D1 01 00 1F 09 00 F9 [08:21:26]Write to MH i2c: 01 00 00 20 09 29 [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:27]OFD Sender: No OFD packet to send [08:21:27]*** Cut start [08:21:27]*** Purtial cut [08:21:27]*** CUTSNS_PIN = 0 [08:21:27]*** Stage 1: CUTSNS_PIN = 1 [08:21:29]Read from MH i2c: 01 [08:21:29]MH_I2C_Read... [08:21:29]*** Stop cut motor [08:21:29]*** Cut end [08:21:29]Read from MH i2c: 01 07 00 [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: 01 07 00 20 09 00 00 00 00 00 FF 0F 3E [08:21:29]process_action close_receipt done [08:21:29]requested_data is exist [08:21:29]produce_requested_data [08:21:29]requested_item fm.sn is exist - process it [08:21:29]wFMCommunicate request_size=4 [08:21:29]MH_SAM_APDU [08:21:29]CAPDU: 80 11 00 00 [08:21:29]Write to MH i2c: E2 08 00 21 09 80 11 00 00 00 00 00 00 A4 [08:21:29]Write i2c OK [08:21:29]MH_I2C_Read... [08:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:29]Read from MH i2c: E2 [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: E2 17 00 [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: E2 17 00 21 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EF [08:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:21:29]wFMCommunicate OK [08:21:29]requested_item fd.num is exist - process it [08:21:29]SAM_PROTO_GetFieldsCounters [08:21:29]wFMCommunicate request_size=4 [08:21:29]MH_SAM_APDU [08:21:29]CAPDU: 80 13 00 00 [08:21:29]Write to MH i2c: E2 08 00 22 09 80 13 00 00 00 00 00 00 A7 [08:21:29]Write i2c OK [08:21:29]MH_I2C_Read... [08:21:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:29]Read from MH i2c: E2 [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: E2 62 00 [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: E2 62 00 22 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FB C2 00 00 0E 04 04 00 D3 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 94 [08:21:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FB C2 00 00 0E 04 04 00 D3 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 [08:21:29]wFMCommunicate OK [08:21:29]SAM_PROTO_GetFieldsCounters done [08:21:29]requested_item shift.num is exist - process it [08:21:29]requested_item shift.opened is exist - process it [08:21:29]req_shift_opened [08:21:29]FM_GetShiftState [08:21:29]SAM_PROTO_GetShiftState [08:21:29]wFMCommunicate request_size=4 [08:21:29]MH_SAM_APDU [08:21:29]CAPDU: 80 13 01 00 [08:21:29]Write to MH i2c: E2 08 00 23 09 80 13 01 00 00 00 00 00 A9 [08:21:29]Write i2c OK [08:21:29]MH_I2C_Read... [08:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:29]Read from MH i2c: E2 [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: E2 0E 00 [08:21:29]MH_I2C_Read... [08:21:29]Read from MH i2c: E2 0E 00 23 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 63 [08:21:29]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:21:29]wFMCommunicate OK [08:21:29]SAM_PROTO_GetShiftState done [08:21:29]FM_GetShiftState done [08:21:29]req_shift_opened done [08:21:29]requested_item shift.open_date is exist - process it [08:21:29]req_shift_open_date [08:21:29]req_shift_open_date done [08:21:29]produce_requested_data done [08:21:29]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49915,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [08:21:29]process_action_free close_receipt [08:21:29]json_value_free [08:21:29]json_value_free done [08:21:29]process_json_proto returns [08:21:29]Send response to host [08:21:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49915,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [08:21:29]free response buf [08:21:29]execute_script done [08:21:29]execute_script returns [08:21:29]free content buf [08:21:29]Sock 7.Close socket [08:21:29]Sock 7.Thread stoped [08:21:32]OFD Sender: No OFD packet to send [08:21:34]int [08:21:34]Write to MH i2c: 01 00 00 24 09 2D [08:21:34]*** FLAG_PRN_KEY set [08:21:34]Write i2c OK [08:21:34]MH_I2C_Read... [08:21:34]Read from MH i2c: 01 [08:21:34]MH_I2C_Read... [08:21:34]Read from MH i2c: 01 07 00 [08:21:34]MH_I2C_Read... [08:21:34]Read from MH i2c: 01 07 00 24 09 00 08 00 00 00 FF 0F 4A [08:21:34]state=0 [08:21:34]Key pressed [08:21:34]Feed [08:21:34]Write to MH i2c: D8 00 00 25 09 05 [08:21:34]Write i2c OK [08:21:34]MH_I2C_Read... [08:21:34]Read from MH i2c: D8 [08:21:34]MH_I2C_Read... [08:21:34]Read from MH i2c: D8 01 00 [08:21:34]MH_I2C_Read... [08:21:34]Read from MH i2c: D8 01 00 25 09 00 06 [08:21:34]int [08:21:34]Write to MH i2c: 01 00 00 26 09 2F [08:21:34]Write i2c OK [08:21:34]MH_I2C_Read... [08:21:34]Read from MH i2c: 01 [08:21:34]MH_I2C_Read... [08:21:34]Read from MH i2c: 01 07 00 [08:21:34]MH_I2C_Read... [08:21:34]Read from MH i2c: 01 07 00 26 09 00 48 00 00 00 3C 00 BA [08:21:34]state=2 [08:21:34]Key pressed [08:21:35]int [08:21:35]Write to MH i2c: 01 00 00 27 09 30 [08:21:35]*** FLAG_PRN_KEY reset [08:21:35]Write i2c OK [08:21:35]MH_I2C_Read... [08:21:35]Read from MH i2c: 01 [08:21:35]MH_I2C_Read... [08:21:35]Read from MH i2c: 01 07 00 [08:21:35]MH_I2C_Read... [08:21:35]Read from MH i2c: 01 07 00 27 09 00 00 00 00 00 FF 0F 45 [08:21:35]state=2 [08:21:35]Stop feed [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:19]accept exits with 9 [08:29:19]New connection [08:29:19]New thread 3067211108 created [08:29:19]Thread 3067354468 joined [08:29:19]Waiting for new connection... [08:29:19] Sock 9.Parse request [08:29:19]Sock 9.Check first char [08:29:19]Sock 9.First char is OK [08:29:19]request: POST /json_proto HTTP/1.0 [08:29:19]Method: POST [08:29:19]URL: /json_proto [08:29:19]Method is POST - this is cgi request [08:29:19]url: /json_proto [08:29:19]query_string will be loaded in cgi processing [08:29:19]execute_cgi json_proto POST (null) [08:29:19]execute_cgi path=json_proto method=POST [08:29:19]POST find Content-Length [08:29:19]Host: 172.17.46.196:8080 [08:29:19]Content-Length: 756 [08:29:19]Content-Type: application/json [08:29:19] [08:29:19]POST finish read [08:29:19]Found Content-Length = 756 [08:29:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30039434", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:19]execute_script... [08:29:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30039434", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:19]POST & json_proto [08:29:19]process_json_proto [08:29:19]json parsed OK: [08:29:19]protocol is kg_v1.0 [08:29:19]action value=close_receipt [08:29:19]process_action close_receipt [08:29:19]cmd_close_receipt [08:29:19]MH_GetDate [08:29:19]Write to MH i2c: F0 00 00 28 09 20 [08:29:19]Write i2c OK [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: F0 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: F0 09 00 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: F0 09 00 28 09 00 61 02 C3 66 C4 85 C2 66 26 [08:29:19]GetLastDocTimeStamp 1724055686 [08:29:19]current date 1724056161 [08:29:19]FM_GetShiftState [08:29:19]SAM_PROTO_GetShiftState [08:29:19]wFMCommunicate request_size=4 [08:29:19]MH_SAM_APDU [08:29:19]CAPDU: 80 13 01 00 [08:29:19]Write to MH i2c: E2 08 00 29 09 80 13 01 00 00 00 00 00 AF [08:29:19]Write i2c OK [08:29:19]MH_I2C_Read... [08:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:19]Read from MH i2c: E2 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 0E 00 [08:29:19]MH_I2C_Read... [08:29:19]Read from MH i2c: E2 0E 00 29 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 69 [08:29:19]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:29:19]wFMCommunicate OK [08:29:19]SAM_PROTO_GetShiftState done [08:29:19]FM_GetShiftState done [08:29:19]opened in 1724026361 [08:29:19]opened+sec_in_day 1724112761 [08:29:19]quantity*price = 0 [08:29:19]sum+1 = 1 [08:29:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 23 19.08.2024 08:29 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30039434 ФМ: 0000000000871800 ФД: 49916 ФПД: 197119367224131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T082921&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49916&fm=197119367224131&tin=02508201610067®Number=0000000000092546&sum=0 [08:29:20]StoreToDocumentArchive [08:29:20]shift 467 fd 49916 [08:29:20]save to /storage/0467/doc_00049916 [08:29:20]save last doc name /storage/0467/doc_00049916 to /storage/kkm_last_doc_name [08:29:20]save OK [08:29:20]Clear old archive folders... [08:29:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:20]tlvbuf is 0103E320 [08:29:20]SAM_PROTO_ClearQueue [08:29:20]wFMCommunicate request_size=4 [08:29:20]MH_SAM_APDU [08:29:20]CAPDU: 80 09 00 00 [08:29:20]Write to MH i2c: E2 08 00 36 09 80 09 00 00 00 00 00 00 B1 [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:20]Read from MH i2c: E2 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 03 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 03 00 36 09 00 90 00 B3 [08:29:20]RAPDU: 90 00 [08:29:20]wFMCommunicate OK [08:29:20]SAM_PROTO_ClearQueue done [08:29:20]KKMCreateOFDPacket [08:29:20]OFDProtocolAddRootSTLVToBuf [08:29:20]FM_MakeSignedData [08:29:20]FM_MakeSignedData [08:29:20]SAM_PROTO_SignData [08:29:20]wFMCommunicate request_size=4 [08:29:20]MH_SAM_APDU [08:29:20]CAPDU: 80 0D 01 02 [08:29:20]Write to MH i2c: E2 08 00 37 09 80 0D 01 02 00 00 00 00 B9 [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:20]Read from MH i2c: E2 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 03 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 03 00 37 09 00 90 00 B4 [08:29:20]RAPDU: 90 00 [08:29:20]wFMCommunicate OK [08:29:20]wFMCommunicate request_size=255 [08:29:20]MH_SAM_APDU [08:29:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 61 02 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FC C2 00 00 35 04 06 00 B3 [08:29:20]Write to MH i2c: E2 02 01 38 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 61 02 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FC C2 00 00 35 04 06 00 B3 00 00 48 [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:20]Read from MH i2c: E2 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 03 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 03 00 38 09 00 90 00 B5 [08:29:20]RAPDU: 90 00 [08:29:20]wFMCommunicate OK [08:29:20]wFMCommunicate request_size=10 [08:29:20]MH_SAM_APDU [08:29:20]CAPDU: 80 0D 02 02 05 47 6D DC 9B 43 [08:29:20]Write to MH i2c: E2 0D 00 39 09 80 0D 02 02 05 00 47 6D DC 9B 43 00 00 34 [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:20]Read from MH i2c: E2 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 03 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 03 00 39 09 00 90 00 B6 [08:29:20]RAPDU: 90 00 [08:29:20]wFMCommunicate OK [08:29:20]wFMCommunicate request_size=4 [08:29:20]MH_SAM_APDU [08:29:20]CAPDU: 80 0D 03 02 [08:29:20]Write to MH i2c: E2 08 00 3A 09 80 0D 03 02 00 00 00 00 BE [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:20]Read from MH i2c: E2 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 0B 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 0B 00 3A 09 00 DD DC 42 75 10 35 96 FD 90 00 07 [08:29:20]RAPDU: DD DC 42 75 10 35 96 FD 90 00 [08:29:20]wFMCommunicate OK [08:29:20]SAM_PROTO_SignData done [08:29:20]FM_MakeSignedData done [08:29:20]CreateOFDProtocolMessage [08:29:20]wFMCommunicate request_size=4 [08:29:20]MH_SAM_APDU [08:29:20]CAPDU: 80 11 00 00 [08:29:20]Write to MH i2c: E2 08 00 3B 09 80 11 00 00 00 00 00 00 BE [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:20]Read from MH i2c: E2 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 17 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: E2 17 00 3B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 09 [08:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:29:20]wFMCommunicate OK [08:29:20]CreateOFDProtocolMessage done [08:29:20]OFDSenderStorePacket 49916 [08:29:20]StoreOFDPacket docnum=49916 [08:29:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 97 C7 07 01 2D 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 61 02 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FC C2 00 00 35 04 06 00 B3 47 6D DC 9B 43 DD DC 42 75 10 35 96 FD [08:29:20]CheckFolder [08:29:20]dirname=/storage/ofd_packets [08:29:20]CheckFolder done [08:29:20]ProducePacketName [08:29:20]name=ofd_packets/00049916 [08:29:20]NVStorageSaveData ofd_packets/00049916 [08:29:20]File name is /storage/ofd_packets/00049916 [08:29:20]Write 301 bytes [08:29:20]NVStorageSaveData done [08:29:20]OFDSenderStorePacket done [08:29:20]KKMCreateOFDPacket done [08:29:20]NVStorageSaveData kkm_last_timestamp [08:29:20]File name is /storage/kkm_last_timestamp [08:29:20]Write 4 bytes [08:29:20]NVStorageSaveData done [08:29:20]ExternCall_PrintAddStr [08:29:20]wPrintStart [08:29:20]Write to MH i2c: 01 00 00 3C 09 45 [08:29:20]Write i2c OK [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: 01 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: 01 07 00 [08:29:20]MH_I2C_Read... [08:29:20]Read from MH i2c: 01 07 00 3C 09 00 00 00 00 00 FF 0F 5A [08:29:20]RasterBufferAndPrint [08:29:20]line Счет N : (1)11327541 [08:29:20]line ИНН: 02508201610067 [08:29:20]line Контрольно-Кассовый Чек [08:29:20]line ПРОДАЖА [08:29:20]line ТРК (МРК, ГНК) : 12 [08:29:20]line Товар: 2710124130 [08:29:20]line Аи-92-К-4 [08:29:20]line 30.000 * 0.00 [08:29:20]line = 0.00 [08:29:20]line НДС 12% НСП 1% [08:29:20]line > о реализуемом товаре [08:29:20]line ИТОГО: 0.00 [08:29:20]line НСП 1% : 0.00 [08:29:20]line НДС 12% : 0.00 [08:29:20]line Наличными: 0.00 [08:29:20]line Безнал.: 0.00 [08:29:20]line Место: АЗС № 95 "Партнер Нефть" [08:29:20]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:29:20]line СНО: Общий режим [08:29:20]line Чек 23 19.08.2024 08:29 [08:29:20]line Смена: 467 ФФД: 1.0 [08:29:20]line ЗНМ: 0300000078 [08:29:20]line РНМ: 0000000000092546 [08:29:20]line Версия ККМ: 001 [08:29:20]line Талоны: ТК ГПНА Online [08:29:20]line 30039434 [08:29:20]line ФМ: 0000000000871800 [08:29:20]line ФД: 49916 [08:29:20]line ФПД: 197119367224131 [08:29:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T082921&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49916&fm=197119367224131&tin=02508201610067®Number=0000000000092546&sum=0 [08:29:20]written 0, free lines is 4095 [08:29:20]OFD Sender: Processing packet 49916 [packets to send 21, broken 20] [08:29:20]ProducePacketName [08:29:20]name=ofd_packets/00049916 [08:29:20]OFD Sender: To server: pG, [08:29:21]CommunicateWithHost lk.salyk.kg:30040 [08:29:21]ConnectInit lk.salyk.kg [08:29:21]Write to MH i2c: 01 00 00 66 09 6F [08:29:21]Write i2c OK [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: 01 [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: 01 07 00 [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: 01 07 00 66 09 00 00 00 00 00 D5 0C 57 [08:29:21]RasterBufferAndPrint [08:29:21]line [08:29:21]line [08:29:21]line [08:29:21]line [08:29:21]line [08:29:21]written 0, free lines is 3291 [08:29:21]MH_Cut [08:29:21]Write to MH i2c: D1 01 00 6D 09 01 48 [08:29:21]Write i2c OK [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: D1 [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: D1 01 00 [08:29:21]MH_I2C_Read... [08:29:21]Read from MH i2c: D1 01 00 6D 09 00 47 [08:29:21]Write to MH i2c: 01 00 00 6E 09 77 [08:29:21]Write i2c OK [08:29:21]MH_I2C_Read... [08:29:21]Connected sock=10 [08:29:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 97 C7 07 01 2D 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 61 02 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FC C2 00 00 35 04 06 00 B3 47 6D DC 9B 43 DD DC 42 75 10 35 96 FD [08:29:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 78 D8 47 00 62 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FC C2 00 00 F4 03 04 00 CE AC C2 66 B6 04 01 00 00 7D 25 4C 0F 1A CC F2 2C [08:29:21]CommunicateWithHost err = 0 [08:29:21]CheckOFDResponse [08:29:21]1017 (14) - 77093643461234 [08:29:21]1041 (16) - 0000000000871800 [08:29:21]1040 (4) - 49916 [08:29:21]1012 (4) - 19.08.2024 02:24 [08:29:21]1206 (1) - 0 [08:29:21]OFD Sender: Remove packet 49916 [08:29:21]ProducePacketName [08:29:21]name=ofd_packets/00049916 [08:29:21]NVStorageDeleteData [08:29:22]*** Cut start [08:29:22]*** Purtial cut [08:29:22]*** Stage 1: CUTSNS_PIN = 1 [08:29:22]OFD Sender: No OFD packet to send [08:29:22]Read from MH i2c: 01 [08:29:22]MH_I2C_Read... [08:29:22]*** Stop cut motor [08:29:22]*** Cut end [08:29:22]Read from MH i2c: 01 07 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: 01 07 00 6E 09 00 00 00 00 00 FF 0F 8C [08:29:22]process_action close_receipt done [08:29:22]requested_data is exist [08:29:22]produce_requested_data [08:29:22]requested_item fm.sn is exist - process it [08:29:22]wFMCommunicate request_size=4 [08:29:22]MH_SAM_APDU [08:29:22]CAPDU: 80 11 00 00 [08:29:22]Write to MH i2c: E2 08 00 6F 09 80 11 00 00 00 00 00 00 F2 [08:29:22]Write i2c OK [08:29:22]MH_I2C_Read... [08:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:22]Read from MH i2c: E2 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 17 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 17 00 6F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3D [08:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:29:22]wFMCommunicate OK [08:29:22]requested_item fd.num is exist - process it [08:29:22]SAM_PROTO_GetFieldsCounters [08:29:22]wFMCommunicate request_size=4 [08:29:22]MH_SAM_APDU [08:29:22]CAPDU: 80 13 00 00 [08:29:22]Write to MH i2c: E2 08 00 70 09 80 13 00 00 00 00 00 00 F5 [08:29:22]Write i2c OK [08:29:22]MH_I2C_Read... [08:29:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:22]Read from MH i2c: E2 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 62 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 62 00 70 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FC C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [08:29:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FC C2 00 00 0E 04 04 00 D3 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 [08:29:22]wFMCommunicate OK [08:29:22]SAM_PROTO_GetFieldsCounters done [08:29:22]requested_item shift.num is exist - process it [08:29:22]requested_item shift.opened is exist - process it [08:29:22]req_shift_opened [08:29:22]FM_GetShiftState [08:29:22]SAM_PROTO_GetShiftState [08:29:22]wFMCommunicate request_size=4 [08:29:22]MH_SAM_APDU [08:29:22]CAPDU: 80 13 01 00 [08:29:22]Write to MH i2c: E2 08 00 71 09 80 13 01 00 00 00 00 00 F7 [08:29:22]Write i2c OK [08:29:22]MH_I2C_Read... [08:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:22]Read from MH i2c: E2 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 0E 00 [08:29:22]MH_I2C_Read... [08:29:22]Read from MH i2c: E2 0E 00 71 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B1 [08:29:22]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:29:22]wFMCommunicate OK [08:29:22]SAM_PROTO_GetShiftState done [08:29:22]FM_GetShiftState done [08:29:22]req_shift_opened done [08:29:22]requested_item shift.open_date is exist - process it [08:29:22]req_shift_open_date [08:29:22]req_shift_open_date done [08:29:22]produce_requested_data done [08:29:22]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49916,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [08:29:22]process_action_free close_receipt [08:29:22]json_value_free [08:29:22]json_value_free done [08:29:22]process_json_proto returns [08:29:22]Send response to host [08:29:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49916,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [08:29:22]free response buf [08:29:22]execute_script done [08:29:22]execute_script returns [08:29:22]free content buf [08:29:22]Sock 9.Close socket [08:29:22]Sock 9.Thread stoped [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:11]accept exits with 7 [08:30:11]New connection [08:30:11]New thread 3067354468 created [08:30:11]Thread 3067211108 joined [08:30:11]Waiting for new connection... [08:30:11] Sock 7.Parse request [08:30:11]Sock 7.Check first char [08:30:11]Sock 7.First char is OK [08:30:11]request: POST /json_proto HTTP/1.0 [08:30:11]Method: POST [08:30:11]URL: /json_proto [08:30:11]Method is POST - this is cgi request [08:30:11]url: /json_proto [08:30:11]query_string will be loaded in cgi processing [08:30:11]execute_cgi json_proto POST (null) [08:30:11]execute_cgi path=json_proto method=POST [08:30:11]POST find Content-Length [08:30:11]Host: 172.17.46.196:8080 [08:30:11]Content-Length: 755 [08:30:11]Content-Type: application/json [08:30:11] [08:30:11]POST finish read [08:30:11]Found Content-Length = 755 [08:30:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 8.410, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30149266", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:11]execute_script... [08:30:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 8.410, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30149266", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:11]POST & json_proto [08:30:11]process_json_proto [08:30:11]json parsed OK: [08:30:11]protocol is kg_v1.0 [08:30:11]action value=close_receipt [08:30:11]process_action close_receipt [08:30:11]cmd_close_receipt [08:30:11]MH_GetDate [08:30:11]Write to MH i2c: F0 00 00 72 09 6A [08:30:11]Write i2c OK [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: F0 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: F0 09 00 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: F0 09 00 72 09 00 94 02 C3 66 C4 85 C2 66 A3 [08:30:11]GetLastDocTimeStamp 1724056161 [08:30:11]current date 1724056212 [08:30:11]FM_GetShiftState [08:30:11]SAM_PROTO_GetShiftState [08:30:11]wFMCommunicate request_size=4 [08:30:11]MH_SAM_APDU [08:30:11]CAPDU: 80 13 01 00 [08:30:11]Write to MH i2c: E2 08 00 73 09 80 13 01 00 00 00 00 00 F9 [08:30:11]Write i2c OK [08:30:11]MH_I2C_Read... [08:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:11]Read from MH i2c: E2 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 0E 00 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 0E 00 73 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B3 [08:30:11]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:30:11]wFMCommunicate OK [08:30:11]SAM_PROTO_GetShiftState done [08:30:11]FM_GetShiftState done [08:30:11]opened in 1724026361 [08:30:11]opened+sec_in_day 1724112761 [08:30:11]quantity*price = 0 [08:30:11]sum+1 = 1 [08:30:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 24 19.08.2024 08:30 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30149266 ФМ: 0000000000871800 ФД: 49917 ФПД: 266901953410208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T083012&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49917&fm=266901953410208&tin=02508201610067®Number=0000000000092546&sum=0 [08:30:12]StoreToDocumentArchive [08:30:12]shift 467 fd 49917 [08:30:12]save to /storage/0467/doc_00049917 [08:30:12]save last doc name /storage/0467/doc_00049917 to /storage/kkm_last_doc_name [08:30:12]save OK [08:30:12]Clear old archive folders... [08:30:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:12]tlvbuf is 0105B070 [08:30:12]SAM_PROTO_ClearQueue [08:30:12]wFMCommunicate request_size=4 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 09 00 00 [08:30:12]Write to MH i2c: E2 08 00 80 09 80 09 00 00 00 00 00 00 FB [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 80 09 00 90 00 FD [08:30:12]RAPDU: 90 00 [08:30:12]wFMCommunicate OK [08:30:12]SAM_PROTO_ClearQueue done [08:30:12]KKMCreateOFDPacket [08:30:12]OFDProtocolAddRootSTLVToBuf [08:30:12]FM_MakeSignedData [08:30:12]FM_MakeSignedData [08:30:12]SAM_PROTO_SignData [08:30:12]wFMCommunicate request_size=4 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 0D 01 02 [08:30:12]Write to MH i2c: E2 08 00 81 09 80 0D 01 02 00 00 00 00 03 [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 81 09 00 90 00 FE [08:30:12]RAPDU: 90 00 [08:30:12]wFMCommunicate OK [08:30:12]wFMCommunicate request_size=255 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 20 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 94 02 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FD C2 00 00 35 04 06 00 F2 [08:30:12]Write to MH i2c: E2 02 01 82 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 20 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 94 02 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FD C2 00 00 35 04 06 00 F2 00 00 5B [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 82 09 00 90 00 FF [08:30:12]RAPDU: 90 00 [08:30:12]wFMCommunicate OK [08:30:12]wFMCommunicate request_size=10 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 0D 02 02 05 BE F4 1F 74 A0 [08:30:12]Write to MH i2c: E2 0D 00 83 09 80 0D 02 02 05 00 BE F4 1F 74 A0 00 00 F5 [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 83 09 00 90 00 00 [08:30:12]RAPDU: 90 00 [08:30:12]wFMCommunicate OK [08:30:12]wFMCommunicate request_size=4 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 0D 03 02 [08:30:12]Write to MH i2c: E2 08 00 84 09 80 0D 03 02 00 00 00 00 08 [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 0B 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 0B 00 84 09 00 BB 0C 9C 48 D7 8E 19 54 90 00 86 [08:30:12]RAPDU: BB 0C 9C 48 D7 8E 19 54 90 00 [08:30:12]wFMCommunicate OK [08:30:12]SAM_PROTO_SignData done [08:30:12]FM_MakeSignedData done [08:30:12]CreateOFDProtocolMessage [08:30:12]wFMCommunicate request_size=4 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 11 00 00 [08:30:12]Write to MH i2c: E2 08 00 85 09 80 11 00 00 00 00 00 00 08 [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 17 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 17 00 85 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 53 [08:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:30:12]wFMCommunicate OK [08:30:12]CreateOFDProtocolMessage done [08:30:12]OFDSenderStorePacket 49917 [08:30:12]StoreOFDPacket docnum=49917 [08:30:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 5B B5 07 01 0E 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 20 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 94 02 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FD C2 00 00 35 04 06 00 F2 BE F4 1F 74 A0 BB 0C 9C 48 D7 8E 19 54 [08:30:12]CheckFolder [08:30:12]dirname=/storage/ofd_packets [08:30:12]CheckFolder done [08:30:12]ProducePacketName [08:30:12]name=ofd_packets/00049917 [08:30:12]NVStorageSaveData ofd_packets/00049917 [08:30:12]File name is /storage/ofd_packets/00049917 [08:30:12]Write 301 bytes [08:30:12]NVStorageSaveData done [08:30:12]OFDSenderStorePacket done [08:30:12]KKMCreateOFDPacket done [08:30:12]NVStorageSaveData kkm_last_timestamp [08:30:12]File name is /storage/kkm_last_timestamp [08:30:12]Write 4 bytes [08:30:12]NVStorageSaveData done [08:30:12]ExternCall_PrintAddStr [08:30:12]wPrintStart [08:30:12]Write to MH i2c: 01 00 00 86 09 8F [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: 01 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: 01 07 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: 01 07 00 86 09 00 00 00 00 00 FF 0F A4 [08:30:12]RasterBufferAndPrint [08:30:12]line Счет N : (1)11327544 [08:30:12]line ИНН: 02508201610067 [08:30:12]line Контрольно-Кассовый Чек [08:30:12]line ПРОДАЖА [08:30:12]line ТРК (МРК, ГНК) : 42 [08:30:12]line Товар: 2710124130 [08:30:12]line Аи-92-К-4 [08:30:12]line 8.410 * 0.00 [08:30:12]line = 0.00 [08:30:12]line НДС 12% НСП 1% [08:30:12]line > о реализуемом товаре [08:30:12]line ИТОГО: 0.00 [08:30:12]line НСП 1% : 0.00 [08:30:12]line НДС 12% : 0.00 [08:30:12]line Наличными: 0.00 [08:30:12]line Безнал.: 0.00 [08:30:12]line Место: АЗС № 95 "Партнер Нефть" [08:30:12]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:30:12]line СНО: Общий режим [08:30:12]line Чек 24 19.08.2024 08:30 [08:30:12]line Смена: 467 ФФД: 1.0 [08:30:12]line ЗНМ: 0300000078 [08:30:12]line РНМ: 0000000000092546 [08:30:12]line Версия ККМ: 001 [08:30:12]line Талоны: ТК ГПНА Online [08:30:12]line 30149266 [08:30:12]line ФМ: 0000000000871800 [08:30:12]line ФД: 49917 [08:30:12]line ФПД: 266901953410208 [08:30:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T083012&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49917&fm=266901953410208&tin=02508201610067®Number=0000000000092546&sum=0 [08:30:13]OFD Sender: Processing packet 49917 [packets to send 21, broken 20] [08:30:13]ProducePacketName [08:30:13]name=ofd_packets/00049917 [08:30:13]OFD Sender: To server: pG, [08:30:13]CommunicateWithHost lk.salyk.kg:30040 [08:30:13]ConnectInit lk.salyk.kg [08:30:13]written 0, free lines is 4095 [08:30:13]Connected sock=10 [08:30:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 5B B5 07 01 0E 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 20 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 94 02 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FD C2 00 00 35 04 06 00 F2 BE F4 1F 74 A0 BB 0C 9C 48 D7 8E 19 54 [08:30:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 17 87 47 00 F7 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FD C2 00 00 F4 03 04 00 02 AD C2 66 B6 04 01 00 00 BD 2D D9 35 1F 35 B5 D6 [08:30:13]CommunicateWithHost err = 0 [08:30:13]CheckOFDResponse [08:30:13]1017 (14) - 77093643461234 [08:30:13]1041 (16) - 0000000000871800 [08:30:13]1040 (4) - 49917 [08:30:13]1012 (4) - 19.08.2024 02:25 [08:30:13]1206 (1) - 0 [08:30:13]OFD Sender: Remove packet 49917 [08:30:13]ProducePacketName [08:30:13]name=ofd_packets/00049917 [08:30:13]NVStorageDeleteData [08:30:13]Write to MH i2c: 01 00 00 B0 09 B9 [08:30:13]Write i2c OK [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: 01 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: 01 07 00 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: 01 07 00 B0 09 00 00 00 00 00 D3 0C 9F [08:30:13]RasterBufferAndPrint [08:30:13]line [08:30:13]line [08:30:13]line [08:30:13]line [08:30:13]line [08:30:13]written 0, free lines is 3289 [08:30:13]MH_Cut [08:30:13]Write to MH i2c: D1 01 00 B7 09 01 92 [08:30:13]Write i2c OK [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: D1 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: D1 01 00 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: D1 01 00 B7 09 00 91 [08:30:13]Write to MH i2c: 01 00 00 B8 09 C1 [08:30:13]Write i2c OK [08:30:13]MH_I2C_Read... [08:30:13]OFD Sender: No OFD packet to send [08:30:14]*** Cut start [08:30:14]*** Purtial cut [08:30:14]*** CUTSNS_PIN = 0 [08:30:14]*** Stage 1: CUTSNS_PIN = 1 [08:30:16]Read from MH i2c: 01 [08:30:16]MH_I2C_Read... [08:30:16]*** Stop cut motor [08:30:16]*** Cut end [08:30:16]Read from MH i2c: 01 07 00 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: 01 07 00 B8 09 00 00 00 00 00 FF 0F D6 [08:30:16]process_action close_receipt done [08:30:16]requested_data is exist [08:30:16]produce_requested_data [08:30:16]requested_item fm.sn is exist - process it [08:30:16]wFMCommunicate request_size=4 [08:30:16]MH_SAM_APDU [08:30:16]CAPDU: 80 11 00 00 [08:30:16]Write to MH i2c: E2 08 00 B9 09 80 11 00 00 00 00 00 00 3C [08:30:16]Write i2c OK [08:30:16]MH_I2C_Read... [08:30:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:16]Read from MH i2c: E2 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 17 00 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 17 00 B9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 87 [08:30:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:30:16]wFMCommunicate OK [08:30:16]requested_item fd.num is exist - process it [08:30:16]SAM_PROTO_GetFieldsCounters [08:30:16]wFMCommunicate request_size=4 [08:30:16]MH_SAM_APDU [08:30:16]CAPDU: 80 13 00 00 [08:30:16]Write to MH i2c: E2 08 00 BA 09 80 13 00 00 00 00 00 00 3F [08:30:16]Write i2c OK [08:30:16]MH_I2C_Read... [08:30:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:16]Read from MH i2c: E2 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 62 00 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 62 00 BA 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FD C2 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [08:30:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FD C2 00 00 0E 04 04 00 D3 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 [08:30:16]wFMCommunicate OK [08:30:16]SAM_PROTO_GetFieldsCounters done [08:30:16]requested_item shift.num is exist - process it [08:30:16]requested_item shift.opened is exist - process it [08:30:16]req_shift_opened [08:30:16]FM_GetShiftState [08:30:16]SAM_PROTO_GetShiftState [08:30:16]wFMCommunicate request_size=4 [08:30:16]MH_SAM_APDU [08:30:16]CAPDU: 80 13 01 00 [08:30:16]Write to MH i2c: E2 08 00 BB 09 80 13 01 00 00 00 00 00 41 [08:30:16]Write i2c OK [08:30:16]MH_I2C_Read... [08:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:16]Read from MH i2c: E2 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 0E 00 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: E2 0E 00 BB 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 FB [08:30:16]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:30:16]wFMCommunicate OK [08:30:16]SAM_PROTO_GetShiftState done [08:30:16]FM_GetShiftState done [08:30:16]req_shift_opened done [08:30:16]requested_item shift.open_date is exist - process it [08:30:16]req_shift_open_date [08:30:16]req_shift_open_date done [08:30:16]produce_requested_data done [08:30:16]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49917,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [08:30:16]process_action_free close_receipt [08:30:16]json_value_free [08:30:16]json_value_free done [08:30:16]process_json_proto returns [08:30:16]Send response to host [08:30:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49917,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [08:30:16]free response buf [08:30:16]execute_script done [08:30:16]execute_script returns [08:30:16]free content buf [08:30:16]Sock 7.Close socket [08:30:16]Sock 7.Thread stoped [08:30:18]OFD Sender: No OFD packet to send [08:30:24]OFD Sender: No OFD packet to send [08:30:29]OFD Sender: No OFD packet to send [08:30:34]OFD Sender: No OFD packet to send [08:30:39]OFD Sender: No OFD packet to send [08:30:44]OFD Sender: No OFD packet to send [08:30:49]OFD Sender: No OFD packet to send [08:30:54]OFD Sender: No OFD packet to send [08:30:59]OFD Sender: No OFD packet to send [08:31:04]OFD Sender: No OFD packet to send [08:31:09]OFD Sender: No OFD packet to send [08:31:14]OFD Sender: No OFD packet to send [08:31:19]OFD Sender: No OFD packet to send [08:31:24]OFD Sender: No OFD packet to send [08:31:29]OFD Sender: No OFD packet to send [08:31:34]OFD Sender: No OFD packet to send [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:51]accept exits with 9 [08:31:51]New connection [08:31:51]New thread 3067211108 created [08:31:51]Thread 3067354468 joined [08:31:51]Waiting for new connection... [08:31:51] Sock 9.Parse request [08:31:51]Sock 9.Check first char [08:31:51]Sock 9.First char is OK [08:31:51]request: POST /json_proto HTTP/1.0 [08:31:51]Method: POST [08:31:51]URL: /json_proto [08:31:51]Method is POST - this is cgi request [08:31:51]url: /json_proto [08:31:51]query_string will be loaded in cgi processing [08:31:51]execute_cgi json_proto POST (null) [08:31:51]execute_cgi path=json_proto method=POST [08:31:51]POST find Content-Length [08:31:51]Host: 172.17.46.196:8080 [08:31:51]Content-Length: 644 [08:31:51]Content-Type: application/json [08:31:51] [08:31:51]POST finish read [08:31:51]Found Content-Length = 644 [08:31:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190085", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:51]execute_script... [08: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 : (3)190085", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:51]POST & json_proto [08:31:51]process_json_proto [08:31:51]json parsed OK: [08:31:51]protocol is kg_v1.0 [08:31:51]action value=close_receipt [08:31:51]process_action close_receipt [08:31:51]cmd_close_receipt [08:31:51]MH_GetDate [08:31:51]Write to MH i2c: F0 00 00 BC 09 B4 [08:31:51]Write i2c OK [08:31:51]MH_I2C_Read... [08:31:51]Read from MH i2c: F0 [08:31:51]MH_I2C_Read... [08:31:51]Read from MH i2c: F0 09 00 [08:31:51]MH_I2C_Read... [08:31:51]Read from MH i2c: F0 09 00 BC 09 00 F9 02 C3 66 C4 85 C2 66 52 [08:31:51]GetLastDocTimeStamp 1724056212 [08:31:51]current date 1724056313 [08:31:51]FM_GetShiftState [08:31:51]SAM_PROTO_GetShiftState [08:31:51]wFMCommunicate request_size=4 [08:31:51]MH_SAM_APDU [08:31:51]CAPDU: 80 13 01 00 [08:31:51]Write to MH i2c: E2 08 00 BD 09 80 13 01 00 00 00 00 00 43 [08:31:51]Write i2c OK [08:31:51]MH_I2C_Read... [08:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:51]Read from MH i2c: E2 [08:31:51]MH_I2C_Read... [08:31:51]Read from MH i2c: E2 0E 00 [08:31:51]MH_I2C_Read... [08:31:51]Read from MH i2c: E2 0E 00 BD 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 FD [08:31:51]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:31:51]wFMCommunicate OK [08:31:51]SAM_PROTO_GetShiftState done [08:31:51]FM_GetShiftState done [08:31:51]opened in 1724026361 [08:31:51]opened+sec_in_day 1724112761 [08:31:51]quantity*price = 11500 [08:31:51]sum+1 = 11501 [08:31:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 25 19.08.2024 08:31 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49918 ФПД: 79198702033720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T083153&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49918&fm=79198702033720&tin=02508201610067®Number=0000000000092546&sum=11500 0 [08:31:52]StoreToDocumentArchive [08:31:52]shift 467 fd 49918 [08:31:52]save to /storage/0467/doc_00049918 [08:31:52]save last doc name /storage/0467/doc_00049918 to /storage/kkm_last_doc_name [08:31:52]save OK [08:31:52]Clear old archive folders... [08:31:52]ProcessDocumentItem done err = 0, tmpTLVsize=280 [08:31:52]tlvbuf is 01037A20 [08:31:52]SAM_PROTO_ClearQueue [08:31:52]wFMCommunicate request_size=4 [08:31:52]MH_SAM_APDU [08:31:52]CAPDU: 80 09 00 00 [08:31:52]Write to MH i2c: E2 08 00 CA 09 80 09 00 00 00 00 00 00 45 [08:31:52]Write i2c OK [08:31:52]MH_I2C_Read... [08:31:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:52]Read from MH i2c: E2 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 03 00 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 03 00 CA 09 00 90 00 47 [08:31:52]RAPDU: 90 00 [08:31:52]wFMCommunicate OK [08:31:52]SAM_PROTO_ClearQueue done [08:31:52]KKMCreateOFDPacket [08:31:52]OFDProtocolAddRootSTLVToBuf [08:31:52]FM_MakeSignedData [08:31:52]FM_MakeSignedData [08:31:52]SAM_PROTO_SignData [08:31:52]wFMCommunicate request_size=4 [08:31:52]MH_SAM_APDU [08:31:52]CAPDU: 80 0D 01 02 [08:31:52]Write to MH i2c: E2 08 00 CB 09 80 0D 01 02 00 00 00 00 4D [08:31:52]Write i2c OK [08:31:52]MH_I2C_Read... [08:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:52]Read from MH i2c: E2 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 03 00 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 03 00 CB 09 00 90 00 48 [08:31:52]RAPDU: 90 00 [08:31:52]wFMCommunicate OK [08:31:52]wFMCommunicate request_size=255 [08:31:52]MH_SAM_APDU [08:31:52]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 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 F9 02 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [08:31:52]Write to MH i2c: E2 02 01 CC 09 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 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 F9 02 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 9F [08:31:52]Write i2c OK [08:31:52]MH_I2C_Read... [08:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:52]Read from MH i2c: E2 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 03 00 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 03 00 CC 09 00 90 00 49 [08:31:52]RAPDU: 90 00 [08:31:52]wFMCommunicate OK [08:31:52]wFMCommunicate request_size=39 [08:31:52]MH_SAM_APDU [08:31:52]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FE C2 00 00 35 04 06 00 48 07 E2 80 5B 38 [08:31:52]Write to MH i2c: E2 2A 00 CD 09 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FE C2 00 00 35 04 06 00 48 07 E2 80 5B 38 00 00 07 [08:31:52]Write i2c OK [08:31:52]MH_I2C_Read... [08:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:52]Read from MH i2c: E2 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 03 00 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 03 00 CD 09 00 90 00 4A [08:31:52]RAPDU: 90 00 [08:31:52]wFMCommunicate OK [08:31:52]wFMCommunicate request_size=4 [08:31:52]MH_SAM_APDU [08:31:52]CAPDU: 80 0D 03 02 [08:31:52]Write to MH i2c: E2 08 00 CE 09 80 0D 03 02 00 00 00 00 52 [08:31:52]Write i2c OK [08:31:52]MH_I2C_Read... [08:31:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:52]Read from MH i2c: E2 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 0B 00 [08:31:52]MH_I2C_Read... [08:31:52]Read from MH i2c: E2 0B 00 CE 09 00 1B AC FD BA E6 E7 AB 5B 90 00 A4 [08:31:52]RAPDU: 1B AC FD BA E6 E7 AB 5B 90 00 [08:31:52]wFMCommunicate OK [08:31:52]SAM_PROTO_SignData done [08:31:52]FM_MakeSignedData done [08:31:52]CreateOFDProtocolMessage [08:31:52]wFMCommunicate request_size=4 [08:31:52]MH_SAM_APDU [08:31:52]CAPDU: 80 11 00 00 [08:31:52]Write to MH i2c: E2 08 00 CF 09 80 11 00 00 00 00 00 00 52 [08:31:52]Write i2c OK [08:31:52]MH_I2C_Read... [08:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:53]Read from MH i2c: E2 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: E2 17 00 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: E2 17 00 CF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9D [08:31:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:31:53]wFMCommunicate OK [08:31:53]CreateOFDProtocolMessage done [08:31:53]OFDSenderStorePacket 49918 [08:31:53]StoreOFDPacket docnum=49918 [08:31:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 BC 2D 24 01 1C 07 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 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 F9 02 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FE C2 00 00 35 04 06 00 48 07 E2 80 5B 38 1B AC FD BA E6 E7 AB 5B [08:31:53]CheckFolder [08:31:53]dirname=/storage/ofd_packets [08:31:53]CheckFolder done [08:31:53]ProducePacketName [08:31:53]name=ofd_packets/00049918 [08:31:53]NVStorageSaveData ofd_packets/00049918 [08:31:53]File name is /storage/ofd_packets/00049918 [08:31:53]Write 330 bytes [08:31:53]NVStorageSaveData done [08:31:53]OFDSenderStorePacket done [08:31:53]KKMCreateOFDPacket done [08:31:53]NVStorageSaveData kkm_last_timestamp [08:31:53]File name is /storage/kkm_last_timestamp [08:31:53]Write 4 bytes [08:31:53]NVStorageSaveData done [08:31:53]ExternCall_PrintAddStr [08:31:53]wPrintStart [08:31:53]Write to MH i2c: 01 00 00 D0 09 D9 [08:31:53]Write i2c OK [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: 01 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: 01 07 00 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: 01 07 00 D0 09 00 00 00 00 00 FF 0F EE [08:31:53]RasterBufferAndPrint [08:31:53]line Счет N : (3)190085 [08:31:53]line ИНН: 02508201610067 [08:31:53]line Контрольно-Кассовый Чек [08:31:53]line ПРОДАЖА [08:31:53]line Товар: 2000036210013 [08:31:53]line Кофе Капучино (GABB TRADE) [08:31:53]line 1.000 * 115.00 [08:31:53]line = 115.00 [08:31:53]line НДС 12% НСП 1% [08:31:53]line > о реализуемом товаре [08:31:53]line ИТОГО: 115.00 [08:31:53]line НСП 1% : 1.02 [08:31:53]line НДС 12% : 12.21 [08:31:53]line Наличными: 115.00 [08:31:53]line Безнал.: 0.00 [08:31:53]line Место: АЗС № 95 "Партнер Нефть" [08:31:53]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:31:53]line СНО: Общий режим [08:31:53]line Чек 25 19.08.2024 08:31 [08:31:53]line Смена: 467 ФФД: 1.0 [08:31:53]line ЗНМ: 0300000078 [08:31:53]line РНМ: 0000000000092546 [08:31:53]line Версия ККМ: 001 [08:31:53]line ФМ: 0000000000871800 [08:31:53]line ФД: 49918 [08:31:53]line ФПД: 79198702033720 [08:31:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T083153&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49918&fm=79198702033720&tin=02508201610067®Number=0000000000092546&sum=11500 [08:31:53]OFD Sender: Processing packet 49918 [packets to send 21, broken 20] [08:31:53]ProducePacketName [08:31:53]name=ofd_packets/00049918 [08:31:53]OFD Sender: To server: pG, [08:31:53]CommunicateWithHost lk.salyk.kg:30040 [08:31:53]ConnectInit lk.salyk.kg [08:31:53]line 0 [08:31:53]written 0, free lines is 4095 [08:31:53]Connected sock=10 [08:31:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 BC 2D 24 01 1C 07 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 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 F9 02 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FE C2 00 00 35 04 06 00 48 07 E2 80 5B 38 1B AC FD BA E6 E7 AB 5B [08:31:53]Write to MH i2c: 01 00 00 F8 09 01 [08:31:53]Write i2c OK [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: 01 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: 01 07 00 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: 01 07 00 F8 09 00 00 00 00 00 F7 0C 0B [08:31:53]RasterBufferAndPrint [08:31:53]line [08:31:53]line [08:31:53]line [08:31:53]line [08:31:53]line [08:31:53]written 0, free lines is 3328 [08:31:53]MH_Cut [08:31:53]Write to MH i2c: D1 01 00 FF 09 01 DA [08:31:53]Write i2c OK [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: D1 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: D1 01 00 [08:31:53]MH_I2C_Read... [08:31:53]Read from MH i2c: D1 01 00 FF 09 00 D9 [08:31:53]Write to MH i2c: 01 00 00 00 0A 0A [08:31:53]Write i2c OK [08:31:53]MH_I2C_Read... [08:31:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0D BA 47 00 DE 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FE C2 00 00 F4 03 04 00 67 AD C2 66 B6 04 01 00 00 4F 1A 90 CF 93 09 C0 A2 [08:31:53]CommunicateWithHost err = 0 [08:31:53]CheckOFDResponse [08:31:53]1017 (14) - 77093643461234 [08:31:53]1041 (16) - 0000000000871800 [08:31:53]1040 (4) - 49918 [08:31:53]1012 (4) - 19.08.2024 02:26 [08:31:53]1206 (1) - 0 [08:31:53]OFD Sender: Remove packet 49918 [08:31:53]ProducePacketName [08:31:53]name=ofd_packets/00049918 [08:31:53]NVStorageDeleteData [08:31:54]OFD Sender: No OFD packet to send [08:31:54]*** Cut start [08:31:54]*** Purtial cut [08:31:54]*** Stage 1: CUTSNS_PIN = 1 [08:31:54]Read from MH i2c: 01 [08:31:54]MH_I2C_Read... [08:31:54]*** Stop cut motor [08:31:54]*** Cut end [08:31:54]Read from MH i2c: 01 07 00 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: 01 07 00 00 0A 00 00 00 00 00 FF 0F 1F [08:31:54]process_action close_receipt done [08:31:54]requested_data is exist [08:31:54]produce_requested_data [08:31:54]requested_item fm.sn is exist - process it [08:31:54]wFMCommunicate request_size=4 [08:31:54]MH_SAM_APDU [08:31:54]CAPDU: 80 11 00 00 [08:31:54]Write to MH i2c: E2 08 00 01 0A 80 11 00 00 00 00 00 00 85 [08:31:54]Write i2c OK [08:31:54]MH_I2C_Read... [08:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:54]Read from MH i2c: E2 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: E2 17 00 [08:31:54]MH_I2C_Read... [08:31:54]Read from MH i2c: E2 17 00 01 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D0 [08:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:31:54]wFMCommunicate OK [08:31:54]requested_item fd.num is exist - process it [08:31:54]SAM_PROTO_GetFieldsCounters [08:31:54]wFMCommunicate request_size=4 [08:31:54]MH_SAM_APDU [08:31:54]CAPDU: 80 13 00 00 [08:31:54]Write to MH i2c: E2 08 00 02 0A 80 13 00 00 00 00 00 00 88 [08:31:54]Write i2c OK [08:31:54]MH_I2C_Read... [08:31:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:55]Read from MH i2c: E2 [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: E2 62 00 [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: E2 62 00 02 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FE C2 00 00 0E 04 04 00 D3 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 81 [08:31:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FE C2 00 00 0E 04 04 00 D3 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 [08:31:55]wFMCommunicate OK [08:31:55]SAM_PROTO_GetFieldsCounters done [08:31:55]requested_item shift.num is exist - process it [08:31:55]requested_item shift.opened is exist - process it [08:31:55]req_shift_opened [08:31:55]FM_GetShiftState [08:31:55]SAM_PROTO_GetShiftState [08:31:55]wFMCommunicate request_size=4 [08:31:55]MH_SAM_APDU [08:31:55]CAPDU: 80 13 01 00 [08:31:55]Write to MH i2c: E2 08 00 03 0A 80 13 01 00 00 00 00 00 8A [08:31:55]Write i2c OK [08:31:55]MH_I2C_Read... [08:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:55]Read from MH i2c: E2 [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: E2 0E 00 [08:31:55]MH_I2C_Read... [08:31:55]Read from MH i2c: E2 0E 00 03 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 44 [08:31:55]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:31:55]wFMCommunicate OK [08:31:55]SAM_PROTO_GetShiftState done [08:31:55]FM_GetShiftState done [08:31:55]req_shift_opened done [08:31:55]requested_item shift.open_date is exist - process it [08:31:55]req_shift_open_date [08:31:55]req_shift_open_date done [08:31:55]produce_requested_data done [08:31:55]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49918,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [08:31:55]process_action_free close_receipt [08:31:55]json_value_free [08:31:55]json_value_free done [08:31:55]process_json_proto returns [08:31:55]Send response to host [08:31:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49918,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [08:31:55]free response buf [08:31:55]execute_script done [08:31:55]execute_script returns [08:31:55]free content buf [08:31:55]Sock 9.Close socket [08:31:55]Sock 9.Thread stoped [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:49]OFD Sender: No OFD packet to send [08:32:54]OFD Sender: No OFD packet to send [08:32:59]OFD Sender: No OFD packet to send [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]accept exits with 7 [08:37:39]New connection [08:37:39]New thread 3067354468 created [08:37:39]Thread 3067211108 joined [08:37:39]Waiting for new connection... [08:37:39] Sock 7.Parse request [08:37:39]Sock 7.Check first char [08:37:39]Sock 7.First char is OK [08:37:39]request: POST /json_proto HTTP/1.0 [08:37:39]Method: POST [08:37:39]URL: /json_proto [08:37:39]Method is POST - this is cgi request [08:37:39]url: /json_proto [08:37:39]query_string will be loaded in cgi processing [08:37:39]execute_cgi json_proto POST (null) [08:37:39]execute_cgi path=json_proto method=POST [08:37:39]POST find Content-Length [08:37:39]Host: 172.17.46.196:8080 [08:37:39]Content-Length: 890 [08:37:39]Content-Type: application/json [08:37:39] [08:37:39]POST finish read [08:37:39]Found Content-Length = 890 [08:37:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190086", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039440011", "name": "\u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:39]execute_script... [08:37: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)190086", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039440011", "name": "\u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:39]POST & json_proto [08:37:39]process_json_proto [08:37:39]json parsed OK: [08:37:39]protocol is kg_v1.0 [08:37:39]action value=close_receipt [08:37:39]process_action close_receipt [08:37:39]cmd_close_receipt [08:37:39]MH_GetDate [08:37:39]Write to MH i2c: F0 00 00 04 0A FD [08:37:39]Write i2c OK [08:37:39]MH_I2C_Read... [08:37:39]Read from MH i2c: F0 [08:37:39]MH_I2C_Read... [08:37:39]Read from MH i2c: F0 09 00 [08:37:39]MH_I2C_Read... [08:37:39]Read from MH i2c: F0 09 00 04 0A 00 55 04 C3 66 C4 85 C2 66 F9 [08:37:39]GetLastDocTimeStamp 1724056313 [08:37:39]current date 1724056661 [08:37:39]FM_GetShiftState [08:37:39]SAM_PROTO_GetShiftState [08:37:39]wFMCommunicate request_size=4 [08:37:39]MH_SAM_APDU [08:37:39]CAPDU: 80 13 01 00 [08:37:39]Write to MH i2c: E2 08 00 05 0A 80 13 01 00 00 00 00 00 8C [08:37:39]Write i2c OK [08:37:39]MH_I2C_Read... [08:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:39]Read from MH i2c: E2 [08:37:39]MH_I2C_Read... [08:37:39]Read from MH i2c: E2 0E 00 [08:37:39]MH_I2C_Read... [08:37:39]Read from MH i2c: E2 0E 00 05 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 46 [08:37:39]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:37:39]wFMCommunicate OK [08:37:39]SAM_PROTO_GetShiftState done [08:37:39]FM_GetShiftState done [08:37:39]opened in 1724026361 [08:37:39]opened+sec_in_day 1724112761 [08:37:39]quantity*price = 13000 [08:37:39]sum+1 = 13001 [08:37:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000039440011 Чай черный 200 мл 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 26 19.08.2024 08:37 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49919 ФПД: 236585013597903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T083741&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49919&fm=236585013597903&tin=02508201610067®Number=0000000000092546&sum=17000 0 [08:37:40]StoreToDocumentArchive [08:37:40]shift 467 fd 49919 [08:37:40]save to /storage/0467/doc_00049919 [08:37:40]save last doc name /storage/0467/doc_00049919 to /storage/kkm_last_doc_name [08:37:40]save OK [08:37:40]Clear old archive folders... [08:37:40]ProcessDocumentItem done err = 0, tmpTLVsize=382 [08:37:40]tlvbuf is 01053A50 [08:37:40]SAM_PROTO_ClearQueue [08:37:40]wFMCommunicate request_size=4 [08:37:40]MH_SAM_APDU [08:37:40]CAPDU: 80 09 00 00 [08:37:40]Write to MH i2c: E2 08 00 12 0A 80 09 00 00 00 00 00 00 8E [08:37:40]Write i2c OK [08:37:40]MH_I2C_Read... [08:37:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:40]Read from MH i2c: E2 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 03 00 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 03 00 12 0A 00 90 00 90 [08:37:40]RAPDU: 90 00 [08:37:40]wFMCommunicate OK [08:37:40]SAM_PROTO_ClearQueue done [08:37:40]KKMCreateOFDPacket [08:37:40]OFDProtocolAddRootSTLVToBuf [08:37:40]FM_MakeSignedData [08:37:40]FM_MakeSignedData [08:37:40]SAM_PROTO_SignData [08:37:40]wFMCommunicate request_size=4 [08:37:40]MH_SAM_APDU [08:37:40]CAPDU: 80 0D 01 02 [08:37:40]Write to MH i2c: E2 08 00 13 0A 80 0D 01 02 00 00 00 00 96 [08:37:40]Write i2c OK [08:37:40]MH_I2C_Read... [08:37:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:40]Read from MH i2c: E2 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 03 00 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 03 00 13 0A 00 90 00 91 [08:37:40]RAPDU: 90 00 [08:37:40]wFMCommunicate OK [08:37:40]wFMCommunicate request_size=255 [08:37:40]MH_SAM_APDU [08:37:40]CAPDU: 80 0D 02 02 FA 03 00 7E 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 [08:37:40]Write to MH i2c: E2 02 01 14 0A 80 0D 02 02 FA 00 03 00 7E 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 34 [08:37:40]Write i2c OK [08:37:40]MH_I2C_Read... [08:37:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:40]Read from MH i2c: E2 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 03 00 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 03 00 14 0A 00 90 00 92 [08:37:40]RAPDU: 90 00 [08:37:40]wFMCommunicate OK [08:37:40]wFMCommunicate request_size=141 [08:37:40]MH_SAM_APDU [08:37:40]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 55 04 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FF C2 00 00 35 04 06 00 D7 2C 3D B1 D6 CF [08:37:40]Write to MH i2c: E2 90 00 15 0A 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 55 04 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FF C2 00 00 35 04 06 00 D7 2C 3D B1 D6 CF 00 00 54 [08:37:40]Write i2c OK [08:37:40]MH_I2C_Read... [08:37:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:41]Read from MH i2c: E2 [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: E2 03 00 [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: E2 03 00 15 0A 00 90 00 93 [08:37:41]RAPDU: 90 00 [08:37:41]wFMCommunicate OK [08:37:41]wFMCommunicate request_size=4 [08:37:41]MH_SAM_APDU [08:37:41]CAPDU: 80 0D 03 02 [08:37:41]Write to MH i2c: E2 08 00 16 0A 80 0D 03 02 00 00 00 00 9B [08:37:41]Write i2c OK [08:37:41]MH_I2C_Read... [08:37:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:41]Read from MH i2c: E2 [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: E2 0B 00 [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: E2 0B 00 16 0A 00 91 AD 49 83 91 A2 8A D0 90 00 33 [08:37:41]RAPDU: 91 AD 49 83 91 A2 8A D0 90 00 [08:37:41]wFMCommunicate OK [08:37:41]SAM_PROTO_SignData done [08:37:41]FM_MakeSignedData done [08:37:41]CreateOFDProtocolMessage [08:37:41]wFMCommunicate request_size=4 [08:37:41]MH_SAM_APDU [08:37:41]CAPDU: 80 11 00 00 [08:37:41]Write to MH i2c: E2 08 00 17 0A 80 11 00 00 00 00 00 00 9B [08:37:41]Write i2c OK [08:37:41]MH_I2C_Read... [08:37:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:41]Read from MH i2c: E2 [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: E2 17 00 [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: E2 17 00 17 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E6 [08:37:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:37:41]wFMCommunicate OK [08:37:41]CreateOFDProtocolMessage done [08:37:41]OFDSenderStorePacket 49919 [08:37:41]StoreOFDPacket docnum=49919 [08:37:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 92 01 00 00 50 76 8A 01 B7 30 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 55 04 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FF C2 00 00 35 04 06 00 D7 2C 3D B1 D6 CF 91 AD 49 83 91 A2 8A D0 [08:37:41]CheckFolder [08:37:41]dirname=/storage/ofd_packets [08:37:41]CheckFolder done [08:37:41]ProducePacketName [08:37:41]name=ofd_packets/00049919 [08:37:41]NVStorageSaveData ofd_packets/00049919 [08:37:41]File name is /storage/ofd_packets/00049919 [08:37:41]Write 432 bytes [08:37:41]NVStorageSaveData done [08:37:41]OFDSenderStorePacket done [08:37:41]KKMCreateOFDPacket done [08:37:41]NVStorageSaveData kkm_last_timestamp [08:37:41]File name is /storage/kkm_last_timestamp [08:37:41]Write 4 bytes [08:37:41]NVStorageSaveData done [08:37:41]ExternCall_PrintAddStr [08:37:41]wPrintStart [08:37:41]Write to MH i2c: 01 00 00 18 0A 22 [08:37:41]Write i2c OK [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: 01 [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: 01 07 00 [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: 01 07 00 18 0A 00 00 00 00 00 FF 0F 37 [08:37:41]RasterBufferAndPrint [08:37:41]line Счет N : (3)190086 [08:37:41]line ИНН: 02508201610067 [08:37:41]line Контрольно-Кассовый Чек [08:37:41]line ПРОДАЖА [08:37:41]line Товар: 2000036220012 [08:37:41]line Кофе Капучино XL(GABB TRADE) [08:37:41]line 1.000 * 130.00 [08:37:41]line = 130.00 [08:37:41]line НДС 12% НСП 1% [08:37:41]line > о реализуемом товаре [08:37:41]line Товар: 2000039440011 [08:37:41]line Чай черный 200 мл [08:37:41]line 1.000 * 40.00 [08:37:41]line = 40.00 [08:37:41]line НДС 12% НСП 1% [08:37:41]line > о реализуемом товаре [08:37:41]line ИТОГО: 170.00 [08:37:41]line НСП 1% : 1.50 [08:37:41]line НДС 12% : 18.05 [08:37:41]line Наличными: 170.00 [08:37:41]line Безнал.: 0.00 [08:37:41]line Место: АЗС № 95 "Партнер Нефть" [08:37:41]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:37:41]line СНО: Общий режим [08:37:41]line Чек 26 19.08.2024 08:37 [08:37:41]line Смена: 467 ФФД: 1.0 [08:37:41]line ЗНМ: 0300000078 [08:37:41]line РНМ: 0000000000092546 [08:37:41]line Версия ККМ: 001 [08:37:41]line ФМ: 0000000000871800 [08:37:41]line ФД: 49919 [08:37:41]line ФПД: 236585013597903 [08:37:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T083741&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49919&fm=236585013597903&tin=02508201610067®Number=0000000000092546&sum=17000 [08:37:41]line 0 [08:37:41]OFD Sender: Processing packet 49919 [packets to send 21, broken 20] [08:37:41]ProducePacketName [08:37:41]name=ofd_packets/00049919 [08:37:41]OFD Sender: To server: pG, [08:37:41]CommunicateWithHost lk.salyk.kg:30040 [08:37:41]ConnectInit lk.salyk.kg [08:37:41]written 0, free lines is 4095 [08:37:41]Connected sock=11 [08:37:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 92 01 00 00 50 76 8A 01 B7 30 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 55 04 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FF C2 00 00 35 04 06 00 D7 2C 3D B1 D6 CF 91 AD 49 83 91 A2 8A D0 [08:37:42]Write to MH i2c: 01 00 00 47 0A 51 [08:37:42]Write i2c OK [08:37:42]MH_I2C_Read... [08:37:42]Read from MH i2c: 01 [08:37:42]MH_I2C_Read... [08:37:42]Read from MH i2c: 01 07 00 [08:37:42]MH_I2C_Read... [08:37:42]Read from MH i2c: 01 07 00 47 0A 00 00 00 00 00 9C 0C 00 [08:37:42]RasterBufferAndPrint [08:37:42]line [08:37:42]line [08:37:42]line [08:37:42]line [08:37:42]line [08:37:42]written 0, free lines is 3234 [08:37:42]MH_Cut [08:37:42]Write to MH i2c: D1 01 00 4E 0A 01 2A [08:37:42]Write i2c OK [08:37:42]MH_I2C_Read... [08:37:42]Read from MH i2c: D1 [08:37:42]MH_I2C_Read... [08:37:42]Read from MH i2c: D1 01 00 [08:37:42]MH_I2C_Read... [08:37:42]Read from MH i2c: D1 01 00 4E 0A 00 29 [08:37:42]Write to MH i2c: 01 00 00 4F 0A 59 [08:37:42]Write i2c OK [08:37:42]MH_I2C_Read... [08:37:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0E A1 47 00 9B 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FF C2 00 00 F4 03 04 00 C3 AE C2 66 B6 04 01 00 00 06 1A 49 6B D1 9C 94 94 [08:37:42]CommunicateWithHost err = 0 [08:37:42]CheckOFDResponse [08:37:42]1017 (14) - 77093643461234 [08:37:42]1041 (16) - 0000000000871800 [08:37:42]1040 (4) - 49919 [08:37:42]1012 (4) - 19.08.2024 02:32 [08:37:42]1206 (1) - 0 [08:37:42]OFD Sender: Remove packet 49919 [08:37:42]ProducePacketName [08:37:42]name=ofd_packets/00049919 [08:37:42]NVStorageDeleteData [08:37:42]OFD Sender: No OFD packet to send [08:37:42]*** Cut start [08:37:42]*** Purtial cut [08:37:42]*** CUTSNS_PIN = 0 [08:37:43]*** Stage 1: CUTSNS_PIN = 1 [08:37:44]Read from MH i2c: 01 [08:37:44]MH_I2C_Read... [08:37:44]*** Stop cut motor [08:37:44]*** Cut end [08:37:44]Read from MH i2c: 01 07 00 [08:37:44]MH_I2C_Read... [08:37:44]Read from MH i2c: 01 07 00 4F 0A 00 00 00 00 00 FF 0F 6E [08:37:44]process_action close_receipt done [08:37:44]requested_data is exist [08:37:44]produce_requested_data [08:37:44]requested_item fm.sn is exist - process it [08:37:44]wFMCommunicate request_size=4 [08:37:44]MH_SAM_APDU [08:37:44]CAPDU: 80 11 00 00 [08:37:44]Write to MH i2c: E2 08 00 50 0A 80 11 00 00 00 00 00 00 D4 [08:37:44]Write i2c OK [08:37:44]MH_I2C_Read... [08:37:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:44]Read from MH i2c: E2 [08:37:44]MH_I2C_Read... [08:37:44]Read from MH i2c: E2 17 00 [08:37:44]MH_I2C_Read... [08:37:44]Read from MH i2c: E2 17 00 50 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1F [08:37:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:37:44]wFMCommunicate OK [08:37:44]requested_item fd.num is exist - process it [08:37:44]SAM_PROTO_GetFieldsCounters [08:37:44]wFMCommunicate request_size=4 [08:37:44]MH_SAM_APDU [08:37:44]CAPDU: 80 13 00 00 [08:37:44]Write to MH i2c: E2 08 00 51 0A 80 13 00 00 00 00 00 00 D7 [08:37:44]Write i2c OK [08:37:44]MH_I2C_Read... [08:37:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:45]Read from MH i2c: E2 [08:37:45]MH_I2C_Read... [08:37:45]Read from MH i2c: E2 62 00 [08:37:45]MH_I2C_Read... [08:37:45]Read from MH i2c: E2 62 00 51 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FF C2 00 00 0E 04 04 00 D3 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 D4 [08:37:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FF C2 00 00 0E 04 04 00 D3 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 [08:37:45]wFMCommunicate OK [08:37:45]SAM_PROTO_GetFieldsCounters done [08:37:45]requested_item shift.num is exist - process it [08:37:45]requested_item shift.opened is exist - process it [08:37:45]req_shift_opened [08:37:45]FM_GetShiftState [08:37:45]SAM_PROTO_GetShiftState [08:37:45]wFMCommunicate request_size=4 [08:37:45]MH_SAM_APDU [08:37:45]CAPDU: 80 13 01 00 [08:37:45]Write to MH i2c: E2 08 00 52 0A 80 13 01 00 00 00 00 00 D9 [08:37:45]Write i2c OK [08:37:45]MH_I2C_Read... [08:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:45]Read from MH i2c: E2 [08:37:45]MH_I2C_Read... [08:37:45]Read from MH i2c: E2 0E 00 [08:37:45]MH_I2C_Read... [08:37:45]Read from MH i2c: E2 0E 00 52 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 93 [08:37:45]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:37:45]wFMCommunicate OK [08:37:45]SAM_PROTO_GetShiftState done [08:37:45]FM_GetShiftState done [08:37:45]req_shift_opened done [08:37:45]requested_item shift.open_date is exist - process it [08:37:45]req_shift_open_date [08:37:45]req_shift_open_date done [08:37:45]produce_requested_data done [08:37:45]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49919,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [08:37:45]process_action_free close_receipt [08:37:45]json_value_free [08:37:45]json_value_free done [08:37:45]process_json_proto returns [08:37:45]Send response to host [08:37:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49919,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [08:37:45]free response buf [08:37:45]execute_script done [08:37:45]execute_script returns [08:37:45]free content buf [08:37:45]Sock 7.Close socket [08:37:45]Sock 7.Thread stoped [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]accept exits with 9 [08:40:52]New connection [08:40:52]New thread 3067211108 created [08:40:52]Thread 3067354468 joined [08:40:52]Waiting for new connection... [08:40:52] Sock 9.Parse request [08:40:52]Sock 9.Check first char [08:40:52]Sock 9.First char is OK [08:40:52]request: POST /json_proto HTTP/1.0 [08:40:52]Method: POST [08:40:52]URL: /json_proto [08:40:52]Method is POST - this is cgi request [08:40:52]url: /json_proto [08:40:52]query_string will be loaded in cgi processing [08:40:52]execute_cgi json_proto POST (null) [08:40:52]execute_cgi path=json_proto method=POST [08:40:52]POST find Content-Length [08:40:52]Host: 172.17.46.196:8080 [08:40:52]Content-Length: 976 [08:40:52]Content-Type: application/json [08:40:52] [08:40:52]POST finish read [08:40:52]Found Content-Length = 976 [08:40:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190087", "tax_sys" : 0, "items" : [ { "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 193.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:52]execute_script... [08:40:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190087", "tax_sys" : 0, "items" : [ { "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 193.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:52]POST & json_proto [08:40:52]process_json_proto [08:40:52]json parsed OK: [08:40:52]protocol is kg_v1.0 [08:40:52]action value=close_receipt [08:40:52]process_action close_receipt [08:40:52]cmd_close_receipt [08:40:52]MH_GetDate [08:40:52]Write to MH i2c: F0 00 00 53 0A 4C [08:40:52]Write i2c OK [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: F0 [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: F0 09 00 [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: F0 09 00 53 0A 00 16 05 C3 66 C4 85 C2 66 0A [08:40:52]GetLastDocTimeStamp 1724056661 [08:40:52]current date 1724056854 [08:40:52]FM_GetShiftState [08:40:52]SAM_PROTO_GetShiftState [08:40:52]wFMCommunicate request_size=4 [08:40:52]MH_SAM_APDU [08:40:52]CAPDU: 80 13 01 00 [08:40:52]Write to MH i2c: E2 08 00 54 0A 80 13 01 00 00 00 00 00 DB [08:40:52]Write i2c OK [08:40:52]MH_I2C_Read... [08:40:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:52]Read from MH i2c: E2 [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: E2 0E 00 [08:40:52]MH_I2C_Read... [08:40:52]Read from MH i2c: E2 0E 00 54 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 95 [08:40:52]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:40:52]wFMCommunicate OK [08:40:52]SAM_PROTO_GetShiftState done [08:40:52]FM_GetShiftState done [08:40:52]opened in 1724026361 [08:40:52]opened+sec_in_day 1724112761 [08:40:52]quantity*price = 9300 [08:40:52]sum+1 = 9301 [08:40:52]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010032 Чай хол Let`s Go! чер персик ПЭТ 0,5л 2.000 * 50.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 193.00 НСП 1% : 1.70 НДС 12% : 20.50 Наличными: 193.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 27 19.08.2024 08:40 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49920 ФПД: 10427500595988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T084054&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49920&fm=10427500595988&tin=02508201610067®Number=0000000000092546&sum=19300 0 [08:40:53]StoreToDocumentArchive [08:40:53]shift 467 fd 49920 [08:40:53]save to /storage/0467/doc_00049920 [08:40:53]save last doc name /storage/0467/doc_00049920 to /storage/kkm_last_doc_name [08:40:53]save OK [08:40:53]Clear old archive folders... [08:40:53]ProcessDocumentItem done err = 0, tmpTLVsize=417 [08:40:53]tlvbuf is 010528F0 [08:40:53]SAM_PROTO_ClearQueue [08:40:53]wFMCommunicate request_size=4 [08:40:53]MH_SAM_APDU [08:40:53]CAPDU: 80 09 00 00 [08:40:53]Write to MH i2c: E2 08 00 61 0A 80 09 00 00 00 00 00 00 DD [08:40:53]Write i2c OK [08:40:53]MH_I2C_Read... [08:40:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:53]Read from MH i2c: E2 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 03 00 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 03 00 61 0A 00 90 00 DF [08:40:53]RAPDU: 90 00 [08:40:53]wFMCommunicate OK [08:40:53]SAM_PROTO_ClearQueue done [08:40:53]KKMCreateOFDPacket [08:40:53]OFDProtocolAddRootSTLVToBuf [08:40:53]FM_MakeSignedData [08:40:53]FM_MakeSignedData [08:40:53]SAM_PROTO_SignData [08:40:53]wFMCommunicate request_size=4 [08:40:53]MH_SAM_APDU [08:40:53]CAPDU: 80 0D 01 02 [08:40:53]Write to MH i2c: E2 08 00 62 0A 80 0D 01 02 00 00 00 00 E5 [08:40:53]Write i2c OK [08:40:53]MH_I2C_Read... [08:40:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:53]Read from MH i2c: E2 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 03 00 [08:40:53]MH_I2C_Read... [08:40:53]Read from MH i2c: E2 03 00 62 0A 00 90 00 E0 [08:40:53]RAPDU: 90 00 [08:40:53]wFMCommunicate OK [08:40:53]wFMCommunicate request_size=255 [08:40:53]MH_SAM_APDU [08:40:53]CAPDU: 80 0D 02 02 FA 03 00 A1 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [08:40:53]Write to MH i2c: E2 02 01 63 0A 80 0D 02 02 FA 00 03 00 A1 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 92 [08:40:53]Write i2c OK [08:40:53]MH_I2C_Read... [08:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:54]Read from MH i2c: E2 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 03 00 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 03 00 63 0A 00 90 00 E1 [08:40:54]RAPDU: 90 00 [08:40:54]wFMCommunicate OK [08:40:54]wFMCommunicate request_size=176 [08:40:54]MH_SAM_APDU [08:40:54]CAPDU: 80 0D 02 02 AB 01 BC 04 01 00 01 FC 03 06 00 64 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 08 00 00 00 00 07 04 06 00 64 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 16 05 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 00 C3 00 00 35 04 06 00 09 7B D7 78 0B 14 [08:40:54]Write to MH i2c: E2 B3 00 64 0A 80 0D 02 02 AB 00 01 BC 04 01 00 01 FC 03 06 00 64 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 08 00 00 00 00 07 04 06 00 64 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 16 05 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 00 C3 00 00 35 04 06 00 09 7B D7 78 0B 14 00 00 36 [08:40:54]Write i2c OK [08:40:54]MH_I2C_Read... [08:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:54]Read from MH i2c: E2 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 03 00 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 03 00 64 0A 00 90 00 E2 [08:40:54]RAPDU: 90 00 [08:40:54]wFMCommunicate OK [08:40:54]wFMCommunicate request_size=4 [08:40:54]MH_SAM_APDU [08:40:54]CAPDU: 80 0D 03 02 [08:40:54]Write to MH i2c: E2 08 00 65 0A 80 0D 03 02 00 00 00 00 EA [08:40:54]Write i2c OK [08:40:54]MH_I2C_Read... [08:40:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:54]Read from MH i2c: E2 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 0B 00 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 0B 00 65 0A 00 C4 A3 8B 42 66 6B 8C 04 90 00 80 [08:40:54]RAPDU: C4 A3 8B 42 66 6B 8C 04 90 00 [08:40:54]wFMCommunicate OK [08:40:54]SAM_PROTO_SignData done [08:40:54]FM_MakeSignedData done [08:40:54]CreateOFDProtocolMessage [08:40:54]wFMCommunicate request_size=4 [08:40:54]MH_SAM_APDU [08:40:54]CAPDU: 80 11 00 00 [08:40:54]Write to MH i2c: E2 08 00 66 0A 80 11 00 00 00 00 00 00 EA [08:40:54]Write i2c OK [08:40:54]MH_I2C_Read... [08:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:54]Read from MH i2c: E2 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 17 00 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: E2 17 00 66 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 35 [08:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:40:54]wFMCommunicate OK [08:40:54]CreateOFDProtocolMessage done [08:40:54]OFDSenderStorePacket 49920 [08:40:54]StoreOFDPacket docnum=49920 [08:40:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B5 01 00 00 B1 37 AD 01 46 55 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 08 00 00 00 00 07 04 06 00 64 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 16 05 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 00 C3 00 00 35 04 06 00 09 7B D7 78 0B 14 C4 A3 8B 42 66 6B 8C 04 [08:40:54]CheckFolder [08:40:54]dirname=/storage/ofd_packets [08:40:54]CheckFolder done [08:40:54]ProducePacketName [08:40:54]name=ofd_packets/00049920 [08:40:54]NVStorageSaveData ofd_packets/00049920 [08:40:54]File name is /storage/ofd_packets/00049920 [08:40:54]Write 467 bytes [08:40:54]NVStorageSaveData done [08:40:54]OFDSenderStorePacket done [08:40:54]KKMCreateOFDPacket done [08:40:54]NVStorageSaveData kkm_last_timestamp [08:40:54]File name is /storage/kkm_last_timestamp [08:40:54]Write 4 bytes [08:40:54]NVStorageSaveData done [08:40:54]ExternCall_PrintAddStr [08:40:54]wPrintStart [08:40:54]Write to MH i2c: 01 00 00 67 0A 71 [08:40:54]Write i2c OK [08:40:54]MH_I2C_Read... [08:40:54]OFD Sender: Processing packet 49920 [packets to send 21, broken 20] [08:40:54]ProducePacketName [08:40:54]name=ofd_packets/00049920 [08:40:54]OFD Sender: To server: pG, [08:40:54]CommunicateWithHost lk.salyk.kg:30040 [08:40:54]ConnectInit lk.salyk.kg [08:40:54]Read from MH i2c: 01 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: 01 07 00 [08:40:54]MH_I2C_Read... [08:40:54]Read from MH i2c: 01 07 00 67 0A 00 00 00 00 00 FF 0F 86 [08:40:54]RasterBufferAndPrint [08:40:54]line Счет N : (3)190087 [08:40:54]line ИНН: 02508201610067 [08:40:54]line Контрольно-Кассовый Чек [08:40:54]line ПРОДАЖА [08:40:54]line Товар: 4603290004862 [08:40:54]line Печ.сах.FORSITE Сэнд.шок-ор.вк [08:40:54]line 1.000 * 93.00 [08:40:54]line = 93.00 [08:40:54]line НДС 12% НСП 1% [08:40:54]line > о реализуемом товаре [08:40:54]line Товар: 4700003010032 [08:40:54]line Чай хол Let`s Go! чер персик ПЭТ 0,5л [08:40:54]line 2.000 * 50.00 [08:40:54]line = 100.00 [08:40:54]line НДС 12% НСП 1% [08:40:54]line > о реализуемом товаре [08:40:54]line ИТОГО: 193.00 [08:40:54]line НСП 1% : 1.70 [08:40:54]line НДС 12% : 20.50 [08:40:54]line Наличными: 193.00 [08:40:54]line Безнал.: 0.00 [08:40:54]line Место: АЗС № 95 "Партнер Нефть" [08:40:54]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:40:54]line СНО: Общий режим [08:40:54]line Чек 27 19.08.2024 08:40 [08:40:54]line Смена: 467 ФФД: 1.0 [08:40:54]line ЗНМ: 0300000078 [08:40:54]line РНМ: 0000000000092546 [08:40:54]line Версия ККМ: 001 [08:40:54]line ФМ: 0000000000871800 [08:40:54]line ФД: 49920 [08:40:54]line ФПД: 10427500595988 [08:40:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T084054&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49920&fm=10427500595988&tin=02508201610067®Number=0000000000092546&sum=19300 [08:40:54]line 0 [08:40:54]written 0, free lines is 4095 [08:40:54]Connected sock=7 [08:40:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B5 01 00 00 B1 37 AD 01 46 55 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 08 00 00 00 00 07 04 06 00 64 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 16 05 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 00 C3 00 00 35 04 06 00 09 7B D7 78 0B 14 C4 A3 8B 42 66 6B 8C 04 [08:40:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 53 BD 47 00 F3 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 00 C3 00 00 F4 03 04 00 84 AF C2 66 B6 04 01 00 00 9D DE FD 70 AC DE C4 6D [08:40:55]CommunicateWithHost err = 0 [08:40:55]CheckOFDResponse [08:40:55]1017 (14) - 77093643461234 [08:40:55]1041 (16) - 0000000000871800 [08:40:55]1040 (4) - 49920 [08:40:55]1012 (4) - 19.08.2024 02:35 [08:40:55]1206 (1) - 0 [08:40:55]OFD Sender: Remove packet 49920 [08:40:55]ProducePacketName [08:40:55]name=ofd_packets/00049920 [08:40:55]NVStorageDeleteData [08:40:55]Write to MH i2c: 01 00 00 97 0A A1 [08:40:55]Write i2c OK [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: 01 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: 01 07 00 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: 01 07 00 97 0A 00 00 00 00 00 78 0C 2C [08:40:55]RasterBufferAndPrint [08:40:55]line [08:40:55]line [08:40:55]line [08:40:55]line [08:40:55]line [08:40:55]written 0, free lines is 3198 [08:40:55]MH_Cut [08:40:55]Write to MH i2c: D1 01 00 9E 0A 01 7A [08:40:55]Write i2c OK [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: D1 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: D1 01 00 [08:40:55]MH_I2C_Read... [08:40:55]Read from MH i2c: D1 01 00 9E 0A 00 79 [08:40:55]Write to MH i2c: 01 00 00 9F 0A A9 [08:40:55]Write i2c OK [08:40:55]MH_I2C_Read... [08:40:55]OFD Sender: No OFD packet to send [08:40:56]*** Cut start [08:40:56]*** Purtial cut [08:40:56]*** Stage 1: CUTSNS_PIN = 1 [08:40:56]Read from MH i2c: 01 [08:40:56]MH_I2C_Read... [08:40:56]*** Stop cut motor [08:40:56]*** Cut end [08:40:56]Read from MH i2c: 01 07 00 [08:40:56]MH_I2C_Read... [08:40:56]Read from MH i2c: 01 07 00 9F 0A 00 00 00 00 00 FF 0F BE [08:40:56]process_action close_receipt done [08:40:56]requested_data is exist [08:40:56]produce_requested_data [08:40:56]requested_item fm.sn is exist - process it [08:40:56]wFMCommunicate request_size=4 [08:40:56]MH_SAM_APDU [08:40:56]CAPDU: 80 11 00 00 [08:40:56]Write to MH i2c: E2 08 00 A0 0A 80 11 00 00 00 00 00 00 24 [08:40:56]Write i2c OK [08:40:56]MH_I2C_Read... [08:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:56]Read from MH i2c: E2 [08:40:56]MH_I2C_Read... [08:40:56]Read from MH i2c: E2 17 00 [08:40:56]MH_I2C_Read... [08:40:56]Read from MH i2c: E2 17 00 A0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6F [08:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:40:56]wFMCommunicate OK [08:40:56]requested_item fd.num is exist - process it [08:40:56]SAM_PROTO_GetFieldsCounters [08:40:56]wFMCommunicate request_size=4 [08:40:56]MH_SAM_APDU [08:40:56]CAPDU: 80 13 00 00 [08:40:56]Write to MH i2c: E2 08 00 A1 0A 80 13 00 00 00 00 00 00 27 [08:40:56]Write i2c OK [08:40:56]MH_I2C_Read... [08:40:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:56]Read from MH i2c: E2 [08:40:56]MH_I2C_Read... [08:40:56]Read from MH i2c: E2 62 00 [08:40:56]MH_I2C_Read... [08:40:56]Read from MH i2c: E2 62 00 A1 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 00 C3 00 00 0E 04 04 00 D3 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 29 [08:40:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 00 C3 00 00 0E 04 04 00 D3 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 [08:40:56]wFMCommunicate OK [08:40:56]SAM_PROTO_GetFieldsCounters done [08:40:56]requested_item shift.num is exist - process it [08:40:56]requested_item shift.opened is exist - process it [08:40:56]req_shift_opened [08:40:56]FM_GetShiftState [08:40:56]SAM_PROTO_GetShiftState [08:40:56]wFMCommunicate request_size=4 [08:40:56]MH_SAM_APDU [08:40:56]CAPDU: 80 13 01 00 [08:40:56]Write to MH i2c: E2 08 00 A2 0A 80 13 01 00 00 00 00 00 29 [08:40:56]Write i2c OK [08:40:56]MH_I2C_Read... [08:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:56]Read from MH i2c: E2 [08:40:56]MH_I2C_Read... [08:40:56]Read from MH i2c: E2 0E 00 [08:40:56]MH_I2C_Read... [08:40:56]Read from MH i2c: E2 0E 00 A2 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 E3 [08:40:56]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:40:56]wFMCommunicate OK [08:40:56]SAM_PROTO_GetShiftState done [08:40:56]FM_GetShiftState done [08:40:56]req_shift_opened done [08:40:56]requested_item shift.open_date is exist - process it [08:40:56]req_shift_open_date [08:40:56]req_shift_open_date done [08:40:56]produce_requested_data done [08:40:56]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49920,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [08:40:56]process_action_free close_receipt [08:40:56]json_value_free [08:40:56]json_value_free done [08:40:56]process_json_proto returns [08:40:56]Send response to host [08:40:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49920,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [08:40:56]free response buf [08:40:56]execute_script done [08:40:56]execute_script returns [08:40:56]free content buf [08:40:56]Sock 9.Close socket [08:40:56]Sock 9.Thread stoped [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:09]accept exits with 10 [08:43:09]New connection [08:43:09]New thread 3067354468 created [08:43:09]Thread 3067211108 joined [08:43:09]Waiting for new connection... [08:43:09] Sock 10.Parse request [08:43:09]Sock 10.Check first char [08:43:09]Sock 10.First char is OK [08:43:09]request: POST /json_proto HTTP/1.0 [08:43:09]Method: POST [08:43:09]URL: /json_proto [08:43:09]Method is POST - this is cgi request [08:43:09]url: /json_proto [08:43:09]query_string will be loaded in cgi processing [08:43:09]execute_cgi json_proto POST (null) [08:43:09]execute_cgi path=json_proto method=POST [08:43:09]POST find Content-Length [08:43:09]Host: 172.17.46.196:8080 [08:43:09]Content-Length: 623 [08:43:09]Content-Type: application/json [08:43:09] [08:43:09]POST finish read [08:43:09]Found Content-Length = 623 [08:43:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190088", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:09]execute_script... [08:43: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)190088", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:09]POST & json_proto [08:43:09]process_json_proto [08:43:09]json parsed OK: [08:43:09]protocol is kg_v1.0 [08:43:09]action value=close_receipt [08:43:09]process_action close_receipt [08:43:09]cmd_close_receipt [08:43:09]MH_GetDate [08:43:09]Write to MH i2c: F0 00 00 A3 0A 9C [08:43:09]Write i2c OK [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: F0 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: F0 09 00 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: F0 09 00 A3 0A 00 9F 05 C3 66 C4 85 C2 66 E3 [08:43:09]GetLastDocTimeStamp 1724056854 [08:43:09]current date 1724056991 [08:43:09]FM_GetShiftState [08:43:09]SAM_PROTO_GetShiftState [08:43:09]wFMCommunicate request_size=4 [08:43:09]MH_SAM_APDU [08:43:09]CAPDU: 80 13 01 00 [08:43:09]Write to MH i2c: E2 08 00 A4 0A 80 13 01 00 00 00 00 00 2B [08:43:09]Write i2c OK [08:43:09]MH_I2C_Read... [08:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:09]Read from MH i2c: E2 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: E2 0E 00 [08:43:09]MH_I2C_Read... [08:43:09]Read from MH i2c: E2 0E 00 A4 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 E5 [08:43:09]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:43:09]wFMCommunicate OK [08:43:09]SAM_PROTO_GetShiftState done [08:43:09]FM_GetShiftState done [08:43:09]opened in 1724026361 [08:43:09]opened+sec_in_day 1724112761 [08:43:09]quantity*price = 14000 [08:43:09]sum+1 = 14001 [08:43:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 28 19.08.2024 08:43 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49921 ФПД: 276568226336542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T084311&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49921&fm=276568226336542&tin=02508201610067®Number=0000000000092546&sum=14000 0 [08:43:10]StoreToDocumentArchive [08:43:10]shift 467 fd 49921 [08:43:10]save to /storage/0467/doc_00049921 [08:43:10]save last doc name /storage/0467/doc_00049921 to /storage/kkm_last_doc_name [08:43:10]save OK [08:43:10]Clear old archive folders... [08:43:10]ProcessDocumentItem done err = 0, tmpTLVsize=275 [08:43:10]tlvbuf is 00F64C10 [08:43:10]SAM_PROTO_ClearQueue [08:43:10]wFMCommunicate request_size=4 [08:43:10]MH_SAM_APDU [08:43:10]CAPDU: 80 09 00 00 [08:43:10]Write to MH i2c: E2 08 00 B1 0A 80 09 00 00 00 00 00 00 2D [08:43:10]Write i2c OK [08:43:10]MH_I2C_Read... [08:43:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:10]Read from MH i2c: E2 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 03 00 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 03 00 B1 0A 00 90 00 2F [08:43:10]RAPDU: 90 00 [08:43:10]wFMCommunicate OK [08:43:10]SAM_PROTO_ClearQueue done [08:43:10]KKMCreateOFDPacket [08:43:10]OFDProtocolAddRootSTLVToBuf [08:43:10]FM_MakeSignedData [08:43:10]FM_MakeSignedData [08:43:10]SAM_PROTO_SignData [08:43:10]wFMCommunicate request_size=4 [08:43:10]MH_SAM_APDU [08:43:10]CAPDU: 80 0D 01 02 [08:43:10]Write to MH i2c: E2 08 00 B2 0A 80 0D 01 02 00 00 00 00 35 [08:43:10]Write i2c OK [08:43:10]MH_I2C_Read... [08:43:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:10]Read from MH i2c: E2 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 03 00 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 03 00 B2 0A 00 90 00 30 [08:43:10]RAPDU: 90 00 [08:43:10]wFMCommunicate OK [08:43:10]wFMCommunicate request_size=255 [08:43:10]MH_SAM_APDU [08:43:10]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 9F 05 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [08:43:10]Write to MH i2c: E2 02 01 B3 0A 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 9F 05 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 83 [08:43:10]Write i2c OK [08:43:10]MH_I2C_Read... [08:43:10]OFD Sender: No OFD packet to send [08:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:10]Read from MH i2c: E2 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 03 00 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 03 00 B3 0A 00 90 00 31 [08:43:10]RAPDU: 90 00 [08:43:10]wFMCommunicate OK [08:43:10]wFMCommunicate request_size=34 [08:43:10]MH_SAM_APDU [08:43:10]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 01 C3 00 00 35 04 06 00 FB 89 8E E3 0F 1E [08:43:10]Write to MH i2c: E2 25 00 B4 0A 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 01 C3 00 00 35 04 06 00 FB 89 8E E3 0F 1E 00 00 D7 [08:43:10]Write i2c OK [08:43:10]MH_I2C_Read... [08:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:10]Read from MH i2c: E2 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 03 00 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 03 00 B4 0A 00 90 00 32 [08:43:10]RAPDU: 90 00 [08:43:10]wFMCommunicate OK [08:43:10]wFMCommunicate request_size=4 [08:43:10]MH_SAM_APDU [08:43:10]CAPDU: 80 0D 03 02 [08:43:10]Write to MH i2c: E2 08 00 B5 0A 80 0D 03 02 00 00 00 00 3A [08:43:10]Write i2c OK [08:43:10]MH_I2C_Read... [08:43:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:10]Read from MH i2c: E2 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 0B 00 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 0B 00 B5 0A 00 DE EA A2 C5 B2 D0 F3 38 90 00 17 [08:43:10]RAPDU: DE EA A2 C5 B2 D0 F3 38 90 00 [08:43:10]wFMCommunicate OK [08:43:10]SAM_PROTO_SignData done [08:43:10]FM_MakeSignedData done [08:43:10]CreateOFDProtocolMessage [08:43:10]wFMCommunicate request_size=4 [08:43:10]MH_SAM_APDU [08:43:10]CAPDU: 80 11 00 00 [08:43:10]Write to MH i2c: E2 08 00 B6 0A 80 11 00 00 00 00 00 00 3A [08:43:10]Write i2c OK [08:43:10]MH_I2C_Read... [08:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:10]Read from MH i2c: E2 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 17 00 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: E2 17 00 B6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 85 [08:43:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:43:10]wFMCommunicate OK [08:43:10]CreateOFDProtocolMessage done [08:43:10]OFDSenderStorePacket 49921 [08:43:10]StoreOFDPacket docnum=49921 [08:43:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 E5 29 1F 01 32 A7 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 9F 05 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 01 C3 00 00 35 04 06 00 FB 89 8E E3 0F 1E DE EA A2 C5 B2 D0 F3 38 [08:43:10]CheckFolder [08:43:10]dirname=/storage/ofd_packets [08:43:10]CheckFolder done [08:43:10]ProducePacketName [08:43:10]name=ofd_packets/00049921 [08:43:10]NVStorageSaveData ofd_packets/00049921 [08:43:10]File name is /storage/ofd_packets/00049921 [08:43:10]Write 325 bytes [08:43:10]NVStorageSaveData done [08:43:10]OFDSenderStorePacket done [08:43:10]KKMCreateOFDPacket done [08:43:10]NVStorageSaveData kkm_last_timestamp [08:43:10]File name is /storage/kkm_last_timestamp [08:43:10]Write 4 bytes [08:43:10]NVStorageSaveData done [08:43:10]ExternCall_PrintAddStr [08:43:10]wPrintStart [08:43:10]Write to MH i2c: 01 00 00 B7 0A C1 [08:43:10]Write i2c OK [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: 01 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: 01 07 00 [08:43:10]MH_I2C_Read... [08:43:10]Read from MH i2c: 01 07 00 B7 0A 00 00 00 00 00 FF 0F D6 [08:43:10]RasterBufferAndPrint [08:43:10]line Счет N : (3)190088 [08:43:10]line ИНН: 02508201610067 [08:43:10]line Контрольно-Кассовый Чек [08:43:10]line ПРОДАЖА [08:43:10]line Товар: 48743587 [08:43:10]line Сигареты Winston XStyle Silver [08:43:10]line 1.000 * 140.00 [08:43:10]line = 140.00 [08:43:10]line НДС 12% НСП 1% [08:43:10]line > о реализуемом товаре [08:43:10]line ИТОГО: 140.00 [08:43:10]line НСП 1% : 1.24 [08:43:10]line НДС 12% : 14.87 [08:43:10]line Наличными: 140.00 [08:43:10]line Безнал.: 0.00 [08:43:10]line Место: АЗС № 95 "Партнер Нефть" [08:43:10]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:43:10]line СНО: Общий режим [08:43:10]line Чек 28 19.08.2024 08:43 [08:43:10]line Смена: 467 ФФД: 1.0 [08:43:10]line ЗНМ: 0300000078 [08:43:10]line РНМ: 0000000000092546 [08:43:10]line Версия ККМ: 001 [08:43:10]line ФМ: 0000000000871800 [08:43:10]line ФД: 49921 [08:43:10]line ФПД: 276568226336542 [08:43:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T084311&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49921&fm=276568226336542&tin=02508201610067®Number=0000000000092546&sum=14000 [08:43:11]line 0 [08:43:11]OFD Sender: Processing packet 49921 [packets to send 21, broken 20] [08:43:11]ProducePacketName [08:43:11]name=ofd_packets/00049921 [08:43:11]OFD Sender: To server: pG, [08:43:11]CommunicateWithHost lk.salyk.kg:30040 [08:43:11]ConnectInit lk.salyk.kg [08:43:11]written 0, free lines is 4095 [08:43:11]Connected sock=9 [08:43:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 E5 29 1F 01 32 A7 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 9F 05 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 01 C3 00 00 35 04 06 00 FB 89 8E E3 0F 1E DE EA A2 C5 B2 D0 F3 38 [08:43:11]Write to MH i2c: 01 00 00 E0 0A EA [08:43:11]Write i2c OK [08:43:11]MH_I2C_Read... [08:43:11]Read from MH i2c: 01 [08:43:11]MH_I2C_Read... [08:43:11]Read from MH i2c: 01 07 00 [08:43:11]MH_I2C_Read... [08:43:11]Read from MH i2c: 01 07 00 E0 0A 00 00 00 00 00 E2 0C DF [08:43:11]RasterBufferAndPrint [08:43:11]line [08:43:11]line [08:43:11]line [08:43:11]line [08:43:11]line [08:43:11]written 0, free lines is 3303 [08:43:11]MH_Cut [08:43:11]Write to MH i2c: D1 01 00 E7 0A 01 C3 [08:43:11]Write i2c OK [08:43:11]MH_I2C_Read... [08:43:11]Read from MH i2c: D1 [08:43:11]MH_I2C_Read... [08:43:11]Read from MH i2c: D1 01 00 [08:43:11]MH_I2C_Read... [08:43:11]Read from MH i2c: D1 01 00 E7 0A 00 C2 [08:43:11]Write to MH i2c: 01 00 00 E8 0A F2 [08:43:11]Write i2c OK [08:43:11]MH_I2C_Read... [08:43:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 8B 9A 47 00 92 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 01 C3 00 00 F4 03 04 00 0D B0 C2 66 B6 04 01 00 00 56 AA DA 40 CD 8E 1C 6A [08:43:12]CommunicateWithHost err = 0 [08:43:12]CheckOFDResponse [08:43:12]1017 (14) - 77093643461234 [08:43:12]1041 (16) - 0000000000871800 [08:43:12]1040 (4) - 49921 [08:43:12]1012 (4) - 19.08.2024 02:38 [08:43:12]1206 (1) - 0 [08:43:12]OFD Sender: Remove packet 49921 [08:43:12]ProducePacketName [08:43:12]name=ofd_packets/00049921 [08:43:12]NVStorageDeleteData [08:43:12]*** Cut start [08:43:12]*** Purtial cut [08:43:12]*** CUTSNS_PIN = 0 [08:43:12]OFD Sender: No OFD packet to send [08:43:12]*** Stage 1: CUTSNS_PIN = 1 [08:43:14]Read from MH i2c: 01 [08:43:14]MH_I2C_Read... [08:43:14]*** Stop cut motor [08:43:14]*** Cut end [08:43:14]Read from MH i2c: 01 07 00 [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: 01 07 00 E8 0A 00 00 00 00 00 FF 0F 07 [08:43:14]process_action close_receipt done [08:43:14]requested_data is exist [08:43:14]produce_requested_data [08:43:14]requested_item fm.sn is exist - process it [08:43:14]wFMCommunicate request_size=4 [08:43:14]MH_SAM_APDU [08:43:14]CAPDU: 80 11 00 00 [08:43:14]Write to MH i2c: E2 08 00 E9 0A 80 11 00 00 00 00 00 00 6D [08:43:14]Write i2c OK [08:43:14]MH_I2C_Read... [08:43:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:14]Read from MH i2c: E2 [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: E2 17 00 [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: E2 17 00 E9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B8 [08:43:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:43:14]wFMCommunicate OK [08:43:14]requested_item fd.num is exist - process it [08:43:14]SAM_PROTO_GetFieldsCounters [08:43:14]wFMCommunicate request_size=4 [08:43:14]MH_SAM_APDU [08:43:14]CAPDU: 80 13 00 00 [08:43:14]Write to MH i2c: E2 08 00 EA 0A 80 13 00 00 00 00 00 00 70 [08:43:14]Write i2c OK [08:43:14]MH_I2C_Read... [08:43:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:14]Read from MH i2c: E2 [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: E2 62 00 [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: E2 62 00 EA 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 01 C3 00 00 0E 04 04 00 D3 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 76 [08:43:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 01 C3 00 00 0E 04 04 00 D3 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 [08:43:14]wFMCommunicate OK [08:43:14]SAM_PROTO_GetFieldsCounters done [08:43:14]requested_item shift.num is exist - process it [08:43:14]requested_item shift.opened is exist - process it [08:43:14]req_shift_opened [08:43:14]FM_GetShiftState [08:43:14]SAM_PROTO_GetShiftState [08:43:14]wFMCommunicate request_size=4 [08:43:14]MH_SAM_APDU [08:43:14]CAPDU: 80 13 01 00 [08:43:14]Write to MH i2c: E2 08 00 EB 0A 80 13 01 00 00 00 00 00 72 [08:43:14]Write i2c OK [08:43:14]MH_I2C_Read... [08:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:14]Read from MH i2c: E2 [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: E2 0E 00 [08:43:14]MH_I2C_Read... [08:43:14]Read from MH i2c: E2 0E 00 EB 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 2C [08:43:14]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:43:14]wFMCommunicate OK [08:43:14]SAM_PROTO_GetShiftState done [08:43:14]FM_GetShiftState done [08:43:14]req_shift_opened done [08:43:14]requested_item shift.open_date is exist - process it [08:43:14]req_shift_open_date [08:43:14]req_shift_open_date done [08:43:14]produce_requested_data done [08:43:14]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49921,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [08:43:14]process_action_free close_receipt [08:43:14]json_value_free [08:43:14]json_value_free done [08:43:14]process_json_proto returns [08:43:14]Send response to host [08:43:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49921,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [08:43:14]free response buf [08:43:14]execute_script done [08:43:14]execute_script returns [08:43:14]free content buf [08:43:14]Sock 10.Close socket [08:43:14]Sock 10.Thread stoped [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]accept exits with 7 [08:47:17]New connection [08:47:17]New thread 3067211108 created [08:47:17]Thread 3067354468 joined [08:47:17]Waiting for new connection... [08:47:17] Sock 7.Parse request [08:47:17]Sock 7.Check first char [08:47:17]Sock 7.First char is OK [08:47:17]request: POST /json_proto HTTP/1.0 [08:47:17]Method: POST [08:47:17]URL: /json_proto [08:47:17]Method is POST - this is cgi request [08:47:17]url: /json_proto [08:47:17]query_string will be loaded in cgi processing [08:47:17]execute_cgi json_proto POST (null) [08:47:17]execute_cgi path=json_proto method=POST [08:47:17]POST find Content-Length [08:47:17]Host: 172.17.46.196:8080 [08:47:17]Content-Length: 756 [08:47:17]Content-Type: application/json [08:47:17] [08:47:17]POST finish read [08:47:17]Found Content-Length = 756 [08:47:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30093910", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:17]execute_script... [08:47:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30093910", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:17]POST & json_proto [08:47:17]process_json_proto [08:47:17]json parsed OK: [08:47:17]protocol is kg_v1.0 [08:47:17]action value=close_receipt [08:47:17]process_action close_receipt [08:47:17]cmd_close_receipt [08:47:17]MH_GetDate [08:47:17]Write to MH i2c: F0 00 00 EC 0A E5 [08:47:17]Write i2c OK [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: F0 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: F0 09 00 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: F0 09 00 EC 0A 00 97 06 C3 66 C4 85 C2 66 25 [08:47:17]GetLastDocTimeStamp 1724056991 [08:47:17]current date 1724057239 [08:47:17]FM_GetShiftState [08:47:17]SAM_PROTO_GetShiftState [08:47:17]wFMCommunicate request_size=4 [08:47:17]MH_SAM_APDU [08:47:17]CAPDU: 80 13 01 00 [08:47:17]Write to MH i2c: E2 08 00 ED 0A 80 13 01 00 00 00 00 00 74 [08:47:17]Write i2c OK [08:47:17]MH_I2C_Read... [08:47:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:17]Read from MH i2c: E2 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: E2 0E 00 [08:47:17]MH_I2C_Read... [08:47:17]Read from MH i2c: E2 0E 00 ED 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 2E [08:47:17]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:47:17]wFMCommunicate OK [08:47:17]SAM_PROTO_GetShiftState done [08:47:17]FM_GetShiftState done [08:47:17]opened in 1724026361 [08:47:17]opened+sec_in_day 1724112761 [08:47:17]quantity*price = 0 [08:47:17]sum+1 = 1 [08:47:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 29 19.08.2024 08:47 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30093910 ФМ: 0000000000871800 ФД: 49922 ФПД: 261924248832610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T084719&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49922&fm=261924248832610&tin=02508201610067®Number=0000000000092546&sum=0 [08:47:18]StoreToDocumentArchive [08:47:18]shift 467 fd 49922 [08:47:18]save to /storage/0467/doc_00049922 [08:47:18]save last doc name /storage/0467/doc_00049922 to /storage/kkm_last_doc_name [08:47:18]save OK [08:47:18]Clear old archive folders... [08:47:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:47:18]tlvbuf is 0105FF20 [08:47:18]SAM_PROTO_ClearQueue [08:47:18]wFMCommunicate request_size=4 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 09 00 00 [08:47:18]Write to MH i2c: E2 08 00 FA 0A 80 09 00 00 00 00 00 00 76 [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 FA 0A 00 90 00 78 [08:47:18]RAPDU: 90 00 [08:47:18]wFMCommunicate OK [08:47:18]SAM_PROTO_ClearQueue done [08:47:18]KKMCreateOFDPacket [08:47:18]OFDProtocolAddRootSTLVToBuf [08:47:18]FM_MakeSignedData [08:47:18]FM_MakeSignedData [08:47:18]SAM_PROTO_SignData [08:47:18]wFMCommunicate request_size=4 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 0D 01 02 [08:47:18]Write to MH i2c: E2 08 00 FB 0A 80 0D 01 02 00 00 00 00 7E [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 FB 0A 00 90 00 79 [08:47:18]RAPDU: 90 00 [08:47:18]wFMCommunicate OK [08:47:18]wFMCommunicate request_size=255 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 97 06 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 02 C3 00 00 35 04 06 00 EE [08:47:18]Write to MH i2c: E2 02 01 FC 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 97 06 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 02 C3 00 00 35 04 06 00 EE 00 00 94 [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 FC 0A 00 90 00 7A [08:47:18]RAPDU: 90 00 [08:47:18]wFMCommunicate OK [08:47:18]wFMCommunicate request_size=10 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 0D 02 02 05 37 FD CF 4A 62 [08:47:18]Write to MH i2c: E2 0D 00 FD 0A 80 0D 02 02 05 00 37 FD CF 4A 62 00 00 3A [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 03 00 FD 0A 00 90 00 7B [08:47:18]RAPDU: 90 00 [08:47:18]wFMCommunicate OK [08:47:18]wFMCommunicate request_size=4 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 0D 03 02 [08:47:18]Write to MH i2c: E2 08 00 FE 0A 80 0D 03 02 00 00 00 00 83 [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:18]Read from MH i2c: E2 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 0B 00 [08:47:18]MH_I2C_Read... [08:47:18]Read from MH i2c: E2 0B 00 FE 0A 00 B1 C6 CF 0C 4C 76 F3 92 90 00 1D [08:47:18]RAPDU: B1 C6 CF 0C 4C 76 F3 92 90 00 [08:47:18]wFMCommunicate OK [08:47:18]SAM_PROTO_SignData done [08:47:18]FM_MakeSignedData done [08:47:18]CreateOFDProtocolMessage [08:47:18]wFMCommunicate request_size=4 [08:47:18]MH_SAM_APDU [08:47:18]CAPDU: 80 11 00 00 [08:47:18]Write to MH i2c: E2 08 00 FF 0A 80 11 00 00 00 00 00 00 83 [08:47:18]Write i2c OK [08:47:18]MH_I2C_Read... [08:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:19]Read from MH i2c: E2 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 17 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: E2 17 00 FF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CE [08:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:47:19]wFMCommunicate OK [08:47:19]CreateOFDProtocolMessage done [08:47:19]OFDSenderStorePacket 49922 [08:47:19]StoreOFDPacket docnum=49922 [08:47:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 17 A3 07 01 4F 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 97 06 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 02 C3 00 00 35 04 06 00 EE 37 FD CF 4A 62 B1 C6 CF 0C 4C 76 F3 92 [08:47:19]CheckFolder [08:47:19]dirname=/storage/ofd_packets [08:47:19]CheckFolder done [08:47:19]ProducePacketName [08:47:19]name=ofd_packets/00049922 [08:47:19]NVStorageSaveData ofd_packets/00049922 [08:47:19]File name is /storage/ofd_packets/00049922 [08:47:19]Write 301 bytes [08:47:19]NVStorageSaveData done [08:47:19]OFDSenderStorePacket done [08:47:19]KKMCreateOFDPacket done [08:47:19]NVStorageSaveData kkm_last_timestamp [08:47:19]File name is /storage/kkm_last_timestamp [08:47:19]Write 4 bytes [08:47:19]NVStorageSaveData done [08:47:19]ExternCall_PrintAddStr [08:47:19]wPrintStart [08:47:19]Write to MH i2c: 01 00 00 00 0B 0B [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 07 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 07 00 00 0B 00 00 00 00 00 FF 0F 20 [08:47:19]RasterBufferAndPrint [08:47:19]line Счет N : (1)11327563 [08:47:19]line ИНН: 02508201610067 [08:47:19]line Контрольно-Кассовый Чек [08:47:19]line ПРОДАЖА [08:47:19]line ТРК (МРК, ГНК) : 11 [08:47:19]line Товар: 2710124500 [08:47:19]line Аи-95-К-5 [08:47:19]line 30.000 * 0.00 [08:47:19]line = 0.00 [08:47:19]line НДС 12% НСП 1% [08:47:19]line > о реализуемом товаре [08:47:19]line ИТОГО: 0.00 [08:47:19]line НСП 1% : 0.00 [08:47:19]line НДС 12% : 0.00 [08:47:19]line Наличными: 0.00 [08:47:19]line Безнал.: 0.00 [08:47:19]line Место: АЗС № 95 "Партнер Нефть" [08:47:19]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:47:19]line СНО: Общий режим [08:47:19]line Чек 29 19.08.2024 08:47 [08:47:19]line Смена: 467 ФФД: 1.0 [08:47:19]line ЗНМ: 0300000078 [08:47:19]line РНМ: 0000000000092546 [08:47:19]line Версия ККМ: 001 [08:47:19]line Талоны: ТК ГПНА Online [08:47:19]line 30093910 [08:47:19]line ФМ: 0000000000871800 [08:47:19]line ФД: 49922 [08:47:19]line ФПД: 261924248832610 [08:47:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T084719&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49922&fm=261924248832610&tin=02508201610067®Number=0000000000092546&sum=0 [08:47:19]written 0, free lines is 4095 [08:47:19]OFD Sender: Processing packet 49922 [packets to send 21, broken 20] [08:47:19]ProducePacketName [08:47:19]name=ofd_packets/00049922 [08:47:19]OFD Sender: To server: pG, [08:47:19]CommunicateWithHost lk.salyk.kg:30040 [08:47:19]ConnectInit lk.salyk.kg [08:47:19]Write to MH i2c: 01 00 00 2A 0B 35 [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 07 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: 01 07 00 2A 0B 00 00 00 00 00 DB 0C 23 [08:47:19]RasterBufferAndPrint [08:47:19]line [08:47:19]line [08:47:19]line [08:47:19]line [08:47:19]line [08:47:19]written 0, free lines is 3297 [08:47:19]MH_Cut [08:47:19]Write to MH i2c: D1 01 00 31 0B 01 0E [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: D1 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: D1 01 00 [08:47:19]MH_I2C_Read... [08:47:19]Read from MH i2c: D1 01 00 31 0B 00 0D [08:47:19]Write to MH i2c: 01 00 00 32 0B 3D [08:47:19]Write i2c OK [08:47:19]MH_I2C_Read... [08:47:19]Connected sock=11 [08:47:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 17 A3 07 01 4F 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 97 06 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 02 C3 00 00 35 04 06 00 EE 37 FD CF 4A 62 B1 C6 CF 0C 4C 76 F3 92 [08:47:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 BB 42 47 00 4A AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 02 C3 00 00 F4 03 04 00 05 B1 C2 66 B6 04 01 00 00 CF 01 70 D6 AF 08 38 61 [08:47:19]CommunicateWithHost err = 0 [08:47:19]CheckOFDResponse [08:47:19]1017 (14) - 77093643461234 [08:47:19]1041 (16) - 0000000000871800 [08:47:19]1040 (4) - 49922 [08:47:19]1012 (4) - 19.08.2024 02:42 [08:47:19]1206 (1) - 0 [08:47:19]OFD Sender: Remove packet 49922 [08:47:19]ProducePacketName [08:47:19]name=ofd_packets/00049922 [08:47:19]NVStorageDeleteData [08:47:20]*** Cut start [08:47:20]*** Purtial cut [08:47:20]*** Stage 1: CUTSNS_PIN = 1 [08:47:20]OFD Sender: No OFD packet to send [08:47:20]Read from MH i2c: 01 [08:47:20]MH_I2C_Read... [08:47:20]*** Stop cut motor [08:47:20]*** Cut end [08:47:20]Read from MH i2c: 01 07 00 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: 01 07 00 32 0B 00 00 00 00 00 FF 0F 52 [08:47:20]process_action close_receipt done [08:47:20]requested_data is exist [08:47:20]produce_requested_data [08:47:20]requested_item fm.sn is exist - process it [08:47:20]wFMCommunicate request_size=4 [08:47:20]MH_SAM_APDU [08:47:20]CAPDU: 80 11 00 00 [08:47:20]Write to MH i2c: E2 08 00 33 0B 80 11 00 00 00 00 00 00 B8 [08:47:20]Write i2c OK [08:47:20]MH_I2C_Read... [08:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:20]Read from MH i2c: E2 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: E2 17 00 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: E2 17 00 33 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 03 [08:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:47:20]wFMCommunicate OK [08:47:20]requested_item fd.num is exist - process it [08:47:20]SAM_PROTO_GetFieldsCounters [08:47:20]wFMCommunicate request_size=4 [08:47:20]MH_SAM_APDU [08:47:20]CAPDU: 80 13 00 00 [08:47:20]Write to MH i2c: E2 08 00 34 0B 80 13 00 00 00 00 00 00 BB [08:47:20]Write i2c OK [08:47:20]MH_I2C_Read... [08:47:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:20]Read from MH i2c: E2 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: E2 62 00 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: E2 62 00 34 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 02 C3 00 00 0E 04 04 00 D3 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 C5 [08:47:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 02 C3 00 00 0E 04 04 00 D3 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 [08:47:20]wFMCommunicate OK [08:47:20]SAM_PROTO_GetFieldsCounters done [08:47:20]requested_item shift.num is exist - process it [08:47:20]requested_item shift.opened is exist - process it [08:47:20]req_shift_opened [08:47:20]FM_GetShiftState [08:47:20]SAM_PROTO_GetShiftState [08:47:20]wFMCommunicate request_size=4 [08:47:20]MH_SAM_APDU [08:47:20]CAPDU: 80 13 01 00 [08:47:20]Write to MH i2c: E2 08 00 35 0B 80 13 01 00 00 00 00 00 BD [08:47:20]Write i2c OK [08:47:20]MH_I2C_Read... [08:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:20]Read from MH i2c: E2 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: E2 0E 00 [08:47:20]MH_I2C_Read... [08:47:20]Read from MH i2c: E2 0E 00 35 0B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 77 [08:47:20]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:47:20]wFMCommunicate OK [08:47:20]SAM_PROTO_GetShiftState done [08:47:20]FM_GetShiftState done [08:47:20]req_shift_opened done [08:47:20]requested_item shift.open_date is exist - process it [08:47:20]req_shift_open_date [08:47:20]req_shift_open_date done [08:47:20]produce_requested_data done [08:47:20]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49922,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [08:47:20]process_action_free close_receipt [08:47:20]json_value_free [08:47:20]json_value_free done [08:47:20]process_json_proto returns [08:47:20]Send response to host [08:47:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49922,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [08:47:20]free response buf [08:47:20]execute_script done [08:47:20]execute_script returns [08:47:20]free content buf [08:47:20]Sock 7.Close socket [08:47:20]Sock 7.Thread stoped [08:47:25]OFD Sender: No OFD packet to send [08:47:27]accept exits with 9 [08:47:27]New connection [08:47:27]New thread 3067354468 created [08:47:27]Thread 3067211108 joined [08:47:27]Waiting for new connection... [08:47:27] Sock 9.Parse request [08:47:27]Sock 9.Check first char [08:47:27]Sock 9.First char is OK [08:47:27]request: POST /json_proto HTTP/1.0 [08:47:27]Method: POST [08:47:27]URL: /json_proto [08:47:27]Method is POST - this is cgi request [08:47:27]url: /json_proto [08:47:27]query_string will be loaded in cgi processing [08:47:27]execute_cgi json_proto POST (null) [08:47:27]execute_cgi path=json_proto method=POST [08:47:27]POST find Content-Length [08:47:27]Host: 172.17.46.196:8080 [08:47:27]Content-Length: 1093 [08:47:27]Content-Type: application/json [08:47:27] [08:47:27]POST finish read [08:47:27]Found Content-Length = 1093 [08:47:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190089", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46234964", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C \u0427\u0427 XXL 4D \u0411\u0410\u041D\u041A\u0410 PLAYLIST 8*60*2", "price" : 39.00, "quantity" : 1.000, "sum" : 39.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 124.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:27]execute_script... [08:47: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)190089", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46234964", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C \u0427\u0427 XXL 4D \u0411\u0410\u041D\u041A\u0410 PLAYLIST 8*60*2", "price" : 39.00, "quantity" : 1.000, "sum" : 39.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 124.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:27]POST & json_proto [08:47:27]process_json_proto [08:47:27]json parsed OK: [08:47:27]protocol is kg_v1.0 [08:47:27]action value=close_receipt [08:47:27]process_action close_receipt [08:47:27]cmd_close_receipt [08:47:27]MH_GetDate [08:47:27]Write to MH i2c: F0 00 00 36 0B 30 [08:47:27]Write i2c OK [08:47:27]MH_I2C_Read... [08:47:27]Read from MH i2c: F0 [08:47:27]MH_I2C_Read... [08:47:27]Read from MH i2c: F0 09 00 [08:47:27]MH_I2C_Read... [08:47:27]Read from MH i2c: F0 09 00 36 0B 00 A1 06 C3 66 C4 85 C2 66 7A [08:47:27]GetLastDocTimeStamp 1724057239 [08:47:27]current date 1724057249 [08:47:27]FM_GetShiftState [08:47:27]SAM_PROTO_GetShiftState [08:47:27]wFMCommunicate request_size=4 [08:47:27]MH_SAM_APDU [08:47:27]CAPDU: 80 13 01 00 [08:47:27]Write to MH i2c: E2 08 00 37 0B 80 13 01 00 00 00 00 00 BF [08:47:27]Write i2c OK [08:47:27]MH_I2C_Read... [08:47:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:27]Read from MH i2c: E2 [08:47:27]MH_I2C_Read... [08:47:27]Read from MH i2c: E2 0E 00 [08:47:27]MH_I2C_Read... [08:47:27]Read from MH i2c: E2 0E 00 37 0B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 79 [08:47:27]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:47:27]wFMCommunicate OK [08:47:27]SAM_PROTO_GetShiftState done [08:47:27]FM_GetShiftState done [08:47:27]opened in 1724026361 [08:47:27]opened+sec_in_day 1724112761 [08:47:27]quantity*price = 8500 [08:47:27]sum+1 = 8501 [08:47:27]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46234964 Карамель ЧЧ XXL 4D БАНКА PLAYLIST 8*60*2 1.000 * 39.00 = 39.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 124.00 НСП 1% : 1.09 НДС 12% : 13.17 Наличными: 0.00 Безнал.: 124.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 30 19.08.2024 08:47 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49923 ФПД: 65140850862458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T084729&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49923&fm=65140850862458&tin=02508201610067®Number=0000000000092546&sum=12400 0 [08:47:28]StoreToDocumentArchive [08:47:28]shift 467 fd 49923 [08:47:28]save to /storage/0467/doc_00049923 [08:47:28]save last doc name /storage/0467/doc_00049923 to /storage/kkm_last_doc_name [08:47:28]save OK [08:47:28]Clear old archive folders... [08:47:28]ProcessDocumentItem done err = 0, tmpTLVsize=402 [08:47:28]tlvbuf is 010641F0 [08:47:28]SAM_PROTO_ClearQueue [08:47:28]wFMCommunicate request_size=4 [08:47:28]MH_SAM_APDU [08:47:28]CAPDU: 80 09 00 00 [08:47:28]Write to MH i2c: E2 08 00 44 0B 80 09 00 00 00 00 00 00 C1 [08:47:28]Write i2c OK [08:47:28]MH_I2C_Read... [08:47:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:28]Read from MH i2c: E2 [08:47:28]MH_I2C_Read... [08:47:28]Read from MH i2c: E2 03 00 [08:47:28]MH_I2C_Read... [08:47:28]Read from MH i2c: E2 03 00 44 0B 00 90 00 C3 [08:47:28]RAPDU: 90 00 [08:47:28]wFMCommunicate OK [08:47:28]SAM_PROTO_ClearQueue done [08:47:28]KKMCreateOFDPacket [08:47:28]OFDProtocolAddRootSTLVToBuf [08:47:28]FM_MakeSignedData [08:47:28]FM_MakeSignedData [08:47:28]SAM_PROTO_SignData [08:47:28]wFMCommunicate request_size=4 [08:47:28]MH_SAM_APDU [08:47:28]CAPDU: 80 0D 01 02 [08:47:28]Write to MH i2c: E2 08 00 45 0B 80 0D 01 02 00 00 00 00 C9 [08:47:28]Write i2c OK [08:47:28]MH_I2C_Read... [08:47:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:28]Read from MH i2c: E2 [08:47:28]MH_I2C_Read... [08:47:28]Read from MH i2c: E2 03 00 [08:47:28]MH_I2C_Read... [08:47:28]Read from MH i2c: E2 03 00 45 0B 00 90 00 C4 [08:47:28]RAPDU: 90 00 [08:47:28]wFMCommunicate OK [08:47:28]wFMCommunicate request_size=255 [08:47:28]MH_SAM_APDU [08:47:28]CAPDU: 80 0D 02 02 FA 03 00 92 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 08 00 34 36 32 33 34 39 36 34 06 04 37 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 58 58 4C 20 34 44 20 D0 91 D0 90 D0 9D D0 9A D0 90 20 50 4C 41 59 4C 49 53 54 20 38 2A 36 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 [08:47:28]Write to MH i2c: E2 02 01 46 0B 80 0D 02 02 FA 00 03 00 92 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 08 00 34 36 32 33 34 39 36 34 06 04 37 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 58 58 4C 20 34 44 20 D0 91 D0 90 D0 9D D0 9A D0 90 20 50 4C 41 59 4C 49 53 54 20 38 2A 36 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 00 CF [08:47:28]Write i2c OK [08:47:28]MH_I2C_Read... [08:47:28]Read from MH i2c: E2 [08:47:28]MH_I2C_Read... [08:47:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:29]Read from MH i2c: E2 03 00 [08:47:29]MH_I2C_Read... [08:47:29]Read from MH i2c: E2 03 00 46 0B 00 90 00 C5 [08:47:29]RAPDU: 90 00 [08:47:29]wFMCommunicate OK [08:47:29]wFMCommunicate request_size=161 [08:47:29]MH_SAM_APDU [08:47:29]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A1 06 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 03 C3 00 00 35 04 06 00 3B 3E C9 46 A9 7A [08:47:29]Write to MH i2c: E2 A4 00 47 0B 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A1 06 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 03 C3 00 00 35 04 06 00 3B 3E C9 46 A9 7A 00 00 A4 [08:47:29]Write i2c OK [08:47:29]MH_I2C_Read... [08:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:29]Read from MH i2c: E2 [08:47:29]MH_I2C_Read... [08:47:29]Read from MH i2c: E2 03 00 [08:47:29]MH_I2C_Read... [08:47:29]Read from MH i2c: E2 03 00 47 0B 00 90 00 C6 [08:47:29]RAPDU: 90 00 [08:47:29]wFMCommunicate OK [08:47:29]wFMCommunicate request_size=4 [08:47:29]MH_SAM_APDU [08:47:29]CAPDU: 80 0D 03 02 [08:47:29]Write to MH i2c: E2 08 00 48 0B 80 0D 03 02 00 00 00 00 CE [08:47:29]Write i2c OK [08:47:29]MH_I2C_Read... [08:47:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:29]Read from MH i2c: E2 [08:47:29]MH_I2C_Read... [08:47:29]Read from MH i2c: E2 0B 00 [08:47:29]MH_I2C_Read... [08:47:29]Read from MH i2c: E2 0B 00 48 0B 00 B4 8E FD F5 F3 8B 71 45 90 00 37 [08:47:29]RAPDU: B4 8E FD F5 F3 8B 71 45 90 00 [08:47:29]wFMCommunicate OK [08:47:29]SAM_PROTO_SignData done [08:47:29]FM_MakeSignedData done [08:47:29]CreateOFDProtocolMessage [08:47:29]wFMCommunicate request_size=4 [08:47:29]MH_SAM_APDU [08:47:29]CAPDU: 80 11 00 00 [08:47:29]Write to MH i2c: E2 08 00 49 0B 80 11 00 00 00 00 00 00 CE [08:47:29]Write i2c OK [08:47:29]MH_I2C_Read... [08:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:29]Read from MH i2c: E2 [08:47:29]MH_I2C_Read... [08:47:29]Read from MH i2c: E2 17 00 [08:47:29]MH_I2C_Read... [08:47:29]Read from MH i2c: E2 17 00 49 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 19 [08:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:47:29]wFMCommunicate OK [08:47:29]CreateOFDProtocolMessage done [08:47:29]OFDSenderStorePacket 49923 [08:47:29]StoreOFDPacket docnum=49923 [08:47:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A6 01 00 00 E0 80 9E 01 A5 A2 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 08 00 34 36 32 33 34 39 36 34 06 04 37 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 58 58 4C 20 34 44 20 D0 91 D0 90 D0 9D D0 9A D0 90 20 50 4C 41 59 4C 49 53 54 20 38 2A 36 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A1 06 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 03 C3 00 00 35 04 06 00 3B 3E C9 46 A9 7A B4 8E FD F5 F3 8B 71 45 [08:47:29]CheckFolder [08:47:29]dirname=/storage/ofd_packets [08:47:29]CheckFolder done [08:47:29]ProducePacketName [08:47:29]name=ofd_packets/00049923 [08:47:29]NVStorageSaveData ofd_packets/00049923 [08:47:29]File name is /storage/ofd_packets/00049923 [08:47:29]Write 452 bytes [08:47:29]NVStorageSaveData done [08:47:29]OFDSenderStorePacket done [08:47:29]KKMCreateOFDPacket done [08:47:29]NVStorageSaveData kkm_last_timestamp [08:47:29]File name is /storage/kkm_last_timestamp [08:47:29]Write 4 bytes [08:47:29]NVStorageSaveData done [08:47:29]ExternCall_PrintAddStr [08:47:29]wPrintStart [08:47:29]Write to MH i2c: 01 00 00 4A 0B 55 [08:47:29]Write i2c OK [08:47:29]MH_I2C_Read... [08:47:29]Read from MH i2c: 01 [08:47:29]MH_I2C_Read... [08:47:29]Read from MH i2c: 01 07 00 [08:47:29]MH_I2C_Read... [08:47:29]Read from MH i2c: 01 07 00 4A 0B 00 00 00 00 00 FF 0F 6A [08:47:29]RasterBufferAndPrint [08:47:29]line Счет N : (3)190089 [08:47:29]line ИНН: 02508201610067 [08:47:29]line Контрольно-Кассовый Чек [08:47:29]line ПРОДАЖА [08:47:29]line Товар: 4870227273831 [08:47:29]line Лимонад Sunbel Мохито 1л [08:47:29]line 1.000 * 85.00 [08:47:29]line = 85.00 [08:47:29]line НДС 12% НСП 1% [08:47:29]line > о реализуемом товаре [08:47:29]line Товар: 46234964 [08:47:29]line Карамель ЧЧ XXL 4D БАНКА PLAYLIST 8*60*2 [08:47:29]line 1.000 * 39.00 [08:47:29]line = 39.00 [08:47:29]line НДС 12% НСП 1% [08:47:29]line > о реализуемом товаре [08:47:29]line ИТОГО: 124.00 [08:47:29]line НСП 1% : 1.09 [08:47:29]line НДС 12% : 13.17 [08:47:29]line Наличными: 0.00 [08:47:29]line Безнал.: 124.00 [08:47:29]line Место: АЗС № 95 "Партнер Нефть" [08:47:29]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:47:29]line СНО: Общий режим [08:47:29]line Чек 30 19.08.2024 08:47 [08:47:29]line Смена: 467 ФФД: 1.0 [08:47:29]line ЗНМ: 0300000078 [08:47:29]line РНМ: 0000000000092546 [08:47:29]line Версия ККМ: 001 [08:47:29]line Платежная система: O! деньги [08:47:29]line ФМ: 0000000000871800 [08:47:29]line ФД: 49923 [08:47:29]line ФПД: 65140850862458 [08:47:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T084729&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49923&fm=65140850862458&tin=02508201610067®Number=0000000000092546&sum=12400 [08:47:29]line 0 [08:47:29]OFD Sender: Processing packet 49923 [packets to send 21, broken 20] [08:47:29]ProducePacketName [08:47:29]name=ofd_packets/00049923 [08:47:29]OFD Sender: To server: pG, [08:47:29]CommunicateWithHost lk.salyk.kg:30040 [08:47:29]ConnectInit lk.salyk.kg [08:47:29]written 0, free lines is 4095 [08:47:30]Connected sock=10 [08:47:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A6 01 00 00 E0 80 9E 01 A5 A2 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 08 00 34 36 32 33 34 39 36 34 06 04 37 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 58 58 4C 20 34 44 20 D0 91 D0 90 D0 9D D0 9A D0 90 20 50 4C 41 59 4C 49 53 54 20 38 2A 36 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A1 06 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 03 C3 00 00 35 04 06 00 3B 3E C9 46 A9 7A B4 8E FD F5 F3 8B 71 45 [08:47:30]Write to MH i2c: 01 00 00 7B 0B 86 [08:47:30]Write i2c OK [08:47:30]MH_I2C_Read... [08:47:30]Read from MH i2c: 01 [08:47:30]MH_I2C_Read... [08:47:30]Read from MH i2c: 01 07 00 [08:47:30]MH_I2C_Read... [08:47:30]Read from MH i2c: 01 07 00 7B 0B 00 00 00 00 00 8A 0C 23 [08:47:30]RasterBufferAndPrint [08:47:30]line [08:47:30]line [08:47:30]line [08:47:30]line [08:47:30]line [08:47:30]written 0, free lines is 3215 [08:47:30]MH_Cut [08:47:30]Write to MH i2c: D1 01 00 82 0B 01 5F [08:47:30]Write i2c OK [08:47:30]MH_I2C_Read... [08:47:30]Read from MH i2c: D1 [08:47:30]MH_I2C_Read... [08:47:30]Read from MH i2c: D1 01 00 [08:47:30]MH_I2C_Read... [08:47:30]Read from MH i2c: D1 01 00 82 0B 00 5E [08:47:30]Write to MH i2c: 01 00 00 83 0B 8E [08:47:30]Write i2c OK [08:47:30]MH_I2C_Read... [08:47:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 CC 1D 47 00 15 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 03 C3 00 00 F4 03 04 00 0F B1 C2 66 B6 04 01 00 00 2B 19 70 A6 B2 AC 89 58 [08:47:30]CommunicateWithHost err = 0 [08:47:30]CheckOFDResponse [08:47:30]1017 (14) - 77093643461234 [08:47:30]1041 (16) - 0000000000871800 [08:47:30]1040 (4) - 49923 [08:47:30]1012 (4) - 19.08.2024 02:42 [08:47:30]1206 (1) - 0 [08:47:30]OFD Sender: Remove packet 49923 [08:47:30]ProducePacketName [08:47:30]name=ofd_packets/00049923 [08:47:30]NVStorageDeleteData [08:47:30]OFD Sender: No OFD packet to send [08:47:30]*** Cut start [08:47:30]*** Purtial cut [08:47:31]*** CUTSNS_PIN = 0 [08:47:31]*** Stage 1: CUTSNS_PIN = 1 [08:47:33]Read from MH i2c: 01 [08:47:33]MH_I2C_Read... [08:47:33]*** Stop cut motor [08:47:33]*** Cut end [08:47:33]Read from MH i2c: 01 07 00 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: 01 07 00 83 0B 00 00 00 00 00 FF 0F A3 [08:47:33]process_action close_receipt done [08:47:33]requested_data is exist [08:47:33]produce_requested_data [08:47:33]requested_item fm.sn is exist - process it [08:47:33]wFMCommunicate request_size=4 [08:47:33]MH_SAM_APDU [08:47:33]CAPDU: 80 11 00 00 [08:47:33]Write to MH i2c: E2 08 00 84 0B 80 11 00 00 00 00 00 00 09 [08:47:33]Write i2c OK [08:47:33]MH_I2C_Read... [08:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:33]Read from MH i2c: E2 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 17 00 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 17 00 84 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 54 [08:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:47:33]wFMCommunicate OK [08:47:33]requested_item fd.num is exist - process it [08:47:33]SAM_PROTO_GetFieldsCounters [08:47:33]wFMCommunicate request_size=4 [08:47:33]MH_SAM_APDU [08:47:33]CAPDU: 80 13 00 00 [08:47:33]Write to MH i2c: E2 08 00 85 0B 80 13 00 00 00 00 00 00 0C [08:47:33]Write i2c OK [08:47:33]MH_I2C_Read... [08:47:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:33]Read from MH i2c: E2 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 62 00 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 62 00 85 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 03 C3 00 00 0E 04 04 00 D3 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 1A [08:47:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 03 C3 00 00 0E 04 04 00 D3 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 [08:47:33]wFMCommunicate OK [08:47:33]SAM_PROTO_GetFieldsCounters done [08:47:33]requested_item shift.num is exist - process it [08:47:33]requested_item shift.opened is exist - process it [08:47:33]req_shift_opened [08:47:33]FM_GetShiftState [08:47:33]SAM_PROTO_GetShiftState [08:47:33]wFMCommunicate request_size=4 [08:47:33]MH_SAM_APDU [08:47:33]CAPDU: 80 13 01 00 [08:47:33]Write to MH i2c: E2 08 00 86 0B 80 13 01 00 00 00 00 00 0E [08:47:33]Write i2c OK [08:47:33]MH_I2C_Read... [08:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:33]Read from MH i2c: E2 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 0E 00 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 0E 00 86 0B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 C8 [08:47:33]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:47:33]wFMCommunicate OK [08:47:33]SAM_PROTO_GetShiftState done [08:47:33]FM_GetShiftState done [08:47:33]req_shift_opened done [08:47:33]requested_item shift.open_date is exist - process it [08:47:33]req_shift_open_date [08:47:33]req_shift_open_date done [08:47:33]produce_requested_data done [08:47:33]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49923,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [08:47:33]process_action_free close_receipt [08:47:33]json_value_free [08:47:33]json_value_free done [08:47:33]process_json_proto returns [08:47:33]Send response to host [08:47:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49923,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [08:47:33]free response buf [08:47:33]execute_script done [08:47:33]execute_script returns [08:47:33]free content buf [08:47:33]Sock 9.Close socket [08:47:33]Sock 9.Thread stoped [08:47:35]OFD Sender: No OFD packet to send [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49: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:49:59]accept exits with 7 [08:49:59]New connection [08:49:59]New thread 3067211108 created [08:49:59]Thread 3067354468 joined [08:49:59]Waiting for new connection... [08:49:59] Sock 7.Parse request [08:49:59]Sock 7.Check first char [08:49:59]Sock 7.First char is OK [08:49:59]request: POST /json_proto HTTP/1.0 [08:49:59]Method: POST [08:49:59]URL: /json_proto [08:49:59]Method is POST - this is cgi request [08:49:59]url: /json_proto [08:49:59]query_string will be loaded in cgi processing [08:49:59]execute_cgi json_proto POST (null) [08:49:59]execute_cgi path=json_proto method=POST [08:49:59]POST find Content-Length [08:49:59]Host: 172.17.46.196:8080 [08:49:59]Content-Length: 756 [08:49:59]Content-Type: application/json [08:49:59] [08:49:59]POST finish read [08:49:59]Found Content-Length = 756 [08:49:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30154308", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:59]execute_script... [08:49:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30154308", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:59]POST & json_proto [08:49:59]process_json_proto [08:49:59]json parsed OK: [08:49:59]protocol is kg_v1.0 [08:49:59]action value=close_receipt [08:49:59]process_action close_receipt [08:49:59]cmd_close_receipt [08:49:59]MH_GetDate [08:49:59]Write to MH i2c: F0 00 00 87 0B 81 [08:49:59]Write i2c OK [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: F0 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: F0 09 00 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: F0 09 00 87 0B 00 39 07 C3 66 C4 85 C2 66 64 [08:49:59]GetLastDocTimeStamp 1724057249 [08:49:59]current date 1724057401 [08:49:59]FM_GetShiftState [08:49:59]SAM_PROTO_GetShiftState [08:49:59]wFMCommunicate request_size=4 [08:49:59]MH_SAM_APDU [08:49:59]CAPDU: 80 13 01 00 [08:49:59]Write to MH i2c: E2 08 00 88 0B 80 13 01 00 00 00 00 00 10 [08:49:59]Write i2c OK [08:49:59]MH_I2C_Read... [08:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:59]Read from MH i2c: E2 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: E2 0E 00 [08:49:59]MH_I2C_Read... [08:49:59]Read from MH i2c: E2 0E 00 88 0B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 CA [08:49:59]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:49:59]wFMCommunicate OK [08:49:59]SAM_PROTO_GetShiftState done [08:49:59]FM_GetShiftState done [08:49:59]opened in 1724026361 [08:49:59]opened+sec_in_day 1724112761 [08:49:59]quantity*price = 0 [08:49:59]sum+1 = 1 [08:49:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 31 19.08.2024 08:50 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30154308 ФМ: 0000000000871800 ФД: 49924 ФПД: 248964917174020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T085001&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49924&fm=248964917174020&tin=02508201610067®Number=0000000000092546&sum=0 [08:50:00]StoreToDocumentArchive [08:50:00]shift 467 fd 49924 [08:50:00]save to /storage/0467/doc_00049924 [08:50:00]save last doc name /storage/0467/doc_00049924 to /storage/kkm_last_doc_name [08:50:00]save OK [08:50:00]Clear old archive folders... [08:50:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:00]tlvbuf is 00F66AB0 [08:50:00]SAM_PROTO_ClearQueue [08:50:00]wFMCommunicate request_size=4 [08:50:00]MH_SAM_APDU [08:50:00]CAPDU: 80 09 00 00 [08:50:00]Write to MH i2c: E2 08 00 95 0B 80 09 00 00 00 00 00 00 12 [08:50:00]Write i2c OK [08:50:00]MH_I2C_Read... [08:50:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:00]Read from MH i2c: E2 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 03 00 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 03 00 95 0B 00 90 00 14 [08:50:00]RAPDU: 90 00 [08:50:00]wFMCommunicate OK [08:50:00]SAM_PROTO_ClearQueue done [08:50:00]KKMCreateOFDPacket [08:50:00]OFDProtocolAddRootSTLVToBuf [08:50:00]FM_MakeSignedData [08:50:00]FM_MakeSignedData [08:50:00]SAM_PROTO_SignData [08:50:00]wFMCommunicate request_size=4 [08:50:00]MH_SAM_APDU [08:50:00]CAPDU: 80 0D 01 02 [08:50:00]Write to MH i2c: E2 08 00 96 0B 80 0D 01 02 00 00 00 00 1A [08:50:00]Write i2c OK [08:50:00]MH_I2C_Read... [08:50:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:00]Read from MH i2c: E2 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 03 00 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 03 00 96 0B 00 90 00 15 [08:50:00]RAPDU: 90 00 [08:50:00]wFMCommunicate OK [08:50:00]wFMCommunicate request_size=255 [08:50:00]MH_SAM_APDU [08:50:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 39 07 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 04 C3 00 00 35 04 06 00 E2 [08:50:00]Write to MH i2c: E2 02 01 97 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 39 07 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 04 C3 00 00 35 04 06 00 E2 00 00 58 [08:50:00]Write i2c OK [08:50:00]MH_I2C_Read... [08:50:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:00]Read from MH i2c: E2 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 03 00 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 03 00 97 0B 00 90 00 16 [08:50:00]RAPDU: 90 00 [08:50:00]wFMCommunicate OK [08:50:00]wFMCommunicate request_size=10 [08:50:00]MH_SAM_APDU [08:50:00]CAPDU: 80 0D 02 02 05 6E A9 73 1F 04 [08:50:00]Write to MH i2c: E2 0D 00 98 0B 80 0D 02 02 05 00 6E A9 73 1F 04 00 00 D4 [08:50:00]Write i2c OK [08:50:00]MH_I2C_Read... [08:50:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:00]Read from MH i2c: E2 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 03 00 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 03 00 98 0B 00 90 00 17 [08:50:00]RAPDU: 90 00 [08:50:00]wFMCommunicate OK [08:50:00]wFMCommunicate request_size=4 [08:50:00]MH_SAM_APDU [08:50:00]CAPDU: 80 0D 03 02 [08:50:00]Write to MH i2c: E2 08 00 99 0B 80 0D 03 02 00 00 00 00 1F [08:50:00]Write i2c OK [08:50:00]MH_I2C_Read... [08:50:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:00]Read from MH i2c: E2 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 0B 00 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 0B 00 99 0B 00 7F 6F C2 41 C8 B0 B1 E6 90 00 20 [08:50:00]RAPDU: 7F 6F C2 41 C8 B0 B1 E6 90 00 [08:50:00]wFMCommunicate OK [08:50:00]SAM_PROTO_SignData done [08:50:00]FM_MakeSignedData done [08:50:00]CreateOFDProtocolMessage [08:50:00]wFMCommunicate request_size=4 [08:50:00]MH_SAM_APDU [08:50:00]CAPDU: 80 11 00 00 [08:50:00]Write to MH i2c: E2 08 00 9A 0B 80 11 00 00 00 00 00 00 1F [08:50:00]Write i2c OK [08:50:00]MH_I2C_Read... [08:50:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:00]Read from MH i2c: E2 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 17 00 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: E2 17 00 9A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6A [08:50:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:50:00]wFMCommunicate OK [08:50:00]CreateOFDProtocolMessage done [08:50:00]OFDSenderStorePacket 49924 [08:50:00]StoreOFDPacket docnum=49924 [08:50:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 26 10 07 01 09 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 39 07 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 04 C3 00 00 35 04 06 00 E2 6E A9 73 1F 04 7F 6F C2 41 C8 B0 B1 E6 [08:50:00]CheckFolder [08:50:00]dirname=/storage/ofd_packets [08:50:00]CheckFolder done [08:50:00]ProducePacketName [08:50:00]name=ofd_packets/00049924 [08:50:00]NVStorageSaveData ofd_packets/00049924 [08:50:00]File name is /storage/ofd_packets/00049924 [08:50:00]Write 301 bytes [08:50:00]NVStorageSaveData done [08:50:00]OFDSenderStorePacket done [08:50:00]KKMCreateOFDPacket done [08:50:00]NVStorageSaveData kkm_last_timestamp [08:50:00]File name is /storage/kkm_last_timestamp [08:50:00]Write 4 bytes [08:50:00]NVStorageSaveData done [08:50:00]ExternCall_PrintAddStr [08:50:00]wPrintStart [08:50:00]Write to MH i2c: 01 00 00 9B 0B A6 [08:50:00]OFD Sender: Processing packet 49924 [packets to send 21, broken 20] [08:50:00]ProducePacketName [08:50:00]name=ofd_packets/00049924 [08:50:00]OFD Sender: To server: pG, [08:50:00]CommunicateWithHost lk.salyk.kg:30040 [08:50:00]ConnectInit lk.salyk.kg [08:50:00]Write i2c OK [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: 01 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: 01 07 00 [08:50:00]MH_I2C_Read... [08:50:00]Read from MH i2c: 01 07 00 9B 0B 00 00 00 00 00 FF 0F BB [08:50:00]RasterBufferAndPrint [08:50:00]line Счет N : (1)11327565 [08:50:00]line ИНН: 02508201610067 [08:50:00]line Контрольно-Кассовый Чек [08:50:00]line ПРОДАЖА [08:50:00]line ТРК (МРК, ГНК) : 12 [08:50:00]line Товар: 2710124130 [08:50:00]line Аи-92-К-4 [08:50:00]line 10.000 * 0.00 [08:50:00]line = 0.00 [08:50:00]line НДС 12% НСП 1% [08:50:00]line > о реализуемом товаре [08:50:00]line ИТОГО: 0.00 [08:50:00]line НСП 1% : 0.00 [08:50:00]line НДС 12% : 0.00 [08:50:00]line Наличными: 0.00 [08:50:00]line Безнал.: 0.00 [08:50:00]line Место: АЗС № 95 "Партнер Нефть" [08:50:00]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:50:00]line СНО: Общий режим [08:50:00]line Чек 31 19.08.2024 08:50 [08:50:00]line Смена: 467 ФФД: 1.0 [08:50:00]line ЗНМ: 0300000078 [08:50:00]line РНМ: 0000000000092546 [08:50:00]line Версия ККМ: 001 [08:50:00]line Талоны: ТК ГПНА Online [08:50:00]line 30154308 [08:50:00]line ФМ: 0000000000871800 [08:50:00]line ФД: 49924 [08:50:00]line ФПД: 248964917174020 [08:50:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T085001&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49924&fm=248964917174020&tin=02508201610067®Number=0000000000092546&sum=0 [08:50:01]written 0, free lines is 4095 [08:50:01]Write to MH i2c: 01 00 00 C5 0B D0 [08:50:01]Write i2c OK [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: 01 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: 01 07 00 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: 01 07 00 C5 0B 00 00 00 00 00 DB 0C BE [08:50:01]RasterBufferAndPrint [08:50:01]line [08:50:01]line [08:50:01]line [08:50:01]line [08:50:01]line [08:50:01]written 0, free lines is 3297 [08:50:01]MH_Cut [08:50:01]Write to MH i2c: D1 01 00 CC 0B 01 A9 [08:50:01]Write i2c OK [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: D1 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: D1 01 00 [08:50:01]MH_I2C_Read... [08:50:01]Read from MH i2c: D1 01 00 CC 0B 00 A8 [08:50:01]Write to MH i2c: 01 00 00 CD 0B D8 [08:50:01]Write i2c OK [08:50:01]MH_I2C_Read... [08:50:02]*** Cut start [08:50:02]*** Purtial cut [08:50:02]*** Stage 1: CUTSNS_PIN = 1 [08:50:02]Read from MH i2c: 01 [08:50:02]MH_I2C_Read... [08:50:02]*** Stop cut motor [08:50:02]*** Cut end [08:50:02]Read from MH i2c: 01 07 00 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: 01 07 00 CD 0B 00 00 00 00 00 FF 0F ED [08:50:02]process_action close_receipt done [08:50:02]requested_data is exist [08:50:02]produce_requested_data [08:50:02]requested_item fm.sn is exist - process it [08:50:02]wFMCommunicate request_size=4 [08:50:02]MH_SAM_APDU [08:50:02]CAPDU: 80 11 00 00 [08:50:02]Write to MH i2c: E2 08 00 CE 0B 80 11 00 00 00 00 00 00 53 [08:50:02]Write i2c OK [08:50:02]MH_I2C_Read... [08:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:02]Read from MH i2c: E2 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 17 00 [08:50:02]MH_I2C_Read... [08:50:02]Read from MH i2c: E2 17 00 CE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9E [08:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:50:02]wFMCommunicate OK [08:50:02]requested_item fd.num is exist - process it [08:50:02]SAM_PROTO_GetFieldsCounters [08:50:02]wFMCommunicate request_size=4 [08:50:02]MH_SAM_APDU [08:50:02]CAPDU: 80 13 00 00 [08:50:02]Write to MH i2c: E2 08 00 CF 0B 80 13 00 00 00 00 00 00 56 [08:50:02]Write i2c OK [08:50:02]MH_I2C_Read... [08:50:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:03]Read from MH i2c: E2 [08:50:03]MH_I2C_Read... [08:50:03]Read from MH i2c: E2 62 00 [08:50:03]MH_I2C_Read... [08:50:03]Read from MH i2c: E2 62 00 CF 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 04 C3 00 00 0E 04 04 00 D3 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 68 [08:50:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 04 C3 00 00 0E 04 04 00 D3 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 [08:50:03]wFMCommunicate OK [08:50:03]SAM_PROTO_GetFieldsCounters done [08:50:03]requested_item shift.num is exist - process it [08:50:03]requested_item shift.opened is exist - process it [08:50:03]req_shift_opened [08:50:03]FM_GetShiftState [08:50:03]SAM_PROTO_GetShiftState [08:50:03]wFMCommunicate request_size=4 [08:50:03]MH_SAM_APDU [08:50:03]CAPDU: 80 13 01 00 [08:50:03]Write to MH i2c: E2 08 00 D0 0B 80 13 01 00 00 00 00 00 58 [08:50:03]Write i2c OK [08:50:03]MH_I2C_Read... [08:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:03]Read from MH i2c: E2 [08:50:03]MH_I2C_Read... [08:50:03]Read from MH i2c: E2 0E 00 [08:50:03]MH_I2C_Read... [08:50:03]Read from MH i2c: E2 0E 00 D0 0B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 12 [08:50:03]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:50:03]wFMCommunicate OK [08:50:03]SAM_PROTO_GetShiftState done [08:50:03]FM_GetShiftState done [08:50:03]req_shift_opened done [08:50:03]requested_item shift.open_date is exist - process it [08:50:03]req_shift_open_date [08:50:03]req_shift_open_date done [08:50:03]produce_requested_data done [08:50:03]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49924,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [08:50:03]process_action_free close_receipt [08:50:03]json_value_free [08:50:03]json_value_free done [08:50:03]process_json_proto returns [08:50:03]Send response to host [08:50:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49924,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [08:50:03]free response buf [08:50:03]execute_script done [08:50:03]execute_script returns [08:50:03]free content buf [08:50:03]Sock 7.Close socket [08:50:03]Sock 7.Thread stoped [08:50:03]Connected sock=11 [08:50:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 26 10 07 01 09 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 39 07 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 04 C3 00 00 35 04 06 00 E2 6E A9 73 1F 04 7F 6F C2 41 C8 B0 B1 E6 [08:50:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F3 E8 47 00 9D 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 04 C3 00 00 F4 03 04 00 AA B1 C2 66 B6 04 01 00 00 C5 02 69 24 3D 96 2E 6C [08:50:05]CommunicateWithHost err = 0 [08:50:05]CheckOFDResponse [08:50:05]1017 (14) - 77093643461234 [08:50:05]1041 (16) - 0000000000871800 [08:50:05]1040 (4) - 49924 [08:50:05]1012 (4) - 19.08.2024 02:44 [08:50:05]1206 (1) - 0 [08:50:05]OFD Sender: Remove packet 49924 [08:50:05]ProducePacketName [08:50:05]name=ofd_packets/00049924 [08:50:05]NVStorageDeleteData [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:18]accept exits with 9 [08:51:18]New connection [08:51:18]New thread 3067354468 created [08:51:18]Thread 3067211108 joined [08:51:18]Waiting for new connection... [08:51:18] Sock 9.Parse request [08:51:18]Sock 9.Check first char [08:51:18]Sock 9.First char is OK [08:51:18]request: POST /json_proto HTTP/1.0 [08:51:18]Method: POST [08:51:18]URL: /json_proto [08:51:18]Method is POST - this is cgi request [08:51:18]url: /json_proto [08:51:18]query_string will be loaded in cgi processing [08:51:18]execute_cgi json_proto POST (null) [08:51:18]execute_cgi path=json_proto method=POST [08:51:18]POST find Content-Length [08:51:18]Host: 172.17.46.196:8080 [08:51:18]Content-Length: 756 [08:51:18]Content-Type: application/json [08:51:18] [08:51:18]POST finish read [08:51:18]Found Content-Length = 756 [08:51:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106662", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:18]execute_script... [08:51:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106662", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:18]POST & json_proto [08:51:18]process_json_proto [08:51:18]json parsed OK: [08:51:18]protocol is kg_v1.0 [08:51:18]action value=close_receipt [08:51:18]process_action close_receipt [08:51:18]cmd_close_receipt [08:51:18]MH_GetDate [08:51:18]Write to MH i2c: F0 00 00 D1 0B CB [08:51:18]Write i2c OK [08:51:18]MH_I2C_Read... [08:51:18]Read from MH i2c: F0 [08:51:18]MH_I2C_Read... [08:51:18]Read from MH i2c: F0 09 00 [08:51:18]MH_I2C_Read... [08:51:18]Read from MH i2c: F0 09 00 D1 0B 00 88 07 C3 66 C4 85 C2 66 FD [08:51:18]GetLastDocTimeStamp 1724057401 [08:51:18]current date 1724057480 [08:51:18]FM_GetShiftState [08:51:18]SAM_PROTO_GetShiftState [08:51:18]wFMCommunicate request_size=4 [08:51:18]MH_SAM_APDU [08:51:18]CAPDU: 80 13 01 00 [08:51:18]Write to MH i2c: E2 08 00 D2 0B 80 13 01 00 00 00 00 00 5A [08:51:18]Write i2c OK [08:51:18]MH_I2C_Read... [08:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:18]Read from MH i2c: E2 [08:51:18]MH_I2C_Read... [08:51:18]Read from MH i2c: E2 0E 00 [08:51:18]MH_I2C_Read... [08:51:18]Read from MH i2c: E2 0E 00 D2 0B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 14 [08:51:18]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:51:18]wFMCommunicate OK [08:51:18]SAM_PROTO_GetShiftState done [08:51:18]FM_GetShiftState done [08:51:18]opened in 1724026361 [08:51:18]opened+sec_in_day 1724112761 [08:51:18]quantity*price = 0 [08:51:18]sum+1 = 1 [08:51:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 32 19.08.2024 08:51 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106662 ФМ: 0000000000871800 ФД: 49925 ФПД: 254459839056667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T085120&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49925&fm=254459839056667&tin=02508201610067®Number=0000000000092546&sum=0 [08:51:20]StoreToDocumentArchive [08:51:20]shift 467 fd 49925 [08:51:20]save to /storage/0467/doc_00049925 [08:51:20]save last doc name /storage/0467/doc_00049925 to /storage/kkm_last_doc_name [08:51:20]save OK [08:51:20]Clear old archive folders... [08:51:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:51:20]tlvbuf is 0104DBB0 [08:51:20]SAM_PROTO_ClearQueue [08:51:20]wFMCommunicate request_size=4 [08:51:20]MH_SAM_APDU [08:51:20]CAPDU: 80 09 00 00 [08:51:20]Write to MH i2c: E2 08 00 DF 0B 80 09 00 00 00 00 00 00 5C [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:20]Read from MH i2c: E2 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 03 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 03 00 DF 0B 00 90 00 5E [08:51:20]RAPDU: 90 00 [08:51:20]wFMCommunicate OK [08:51:20]SAM_PROTO_ClearQueue done [08:51:20]KKMCreateOFDPacket [08:51:20]OFDProtocolAddRootSTLVToBuf [08:51:20]FM_MakeSignedData [08:51:20]FM_MakeSignedData [08:51:20]SAM_PROTO_SignData [08:51:20]wFMCommunicate request_size=4 [08:51:20]MH_SAM_APDU [08:51:20]CAPDU: 80 0D 01 02 [08:51:20]Write to MH i2c: E2 08 00 E0 0B 80 0D 01 02 00 00 00 00 64 [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:20]Read from MH i2c: E2 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 03 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 03 00 E0 0B 00 90 00 5F [08:51:20]RAPDU: 90 00 [08:51:20]wFMCommunicate OK [08:51:20]wFMCommunicate request_size=255 [08:51:20]MH_SAM_APDU [08:51:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 88 07 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 05 C3 00 00 35 04 06 00 E7 [08:51:20]Write to MH i2c: E2 02 01 E1 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 88 07 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 05 C3 00 00 35 04 06 00 E7 00 00 93 [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:20]Read from MH i2c: E2 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 03 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 03 00 E1 0B 00 90 00 60 [08:51:20]RAPDU: 90 00 [08:51:20]wFMCommunicate OK [08:51:20]wFMCommunicate request_size=10 [08:51:20]MH_SAM_APDU [08:51:20]CAPDU: 80 0D 02 02 05 6E 0C 51 0B 1B [08:51:20]Write to MH i2c: E2 0D 00 E2 0B 80 0D 02 02 05 00 6E 0C 51 0B 1B 00 00 62 [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:20]Read from MH i2c: E2 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 03 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 03 00 E2 0B 00 90 00 61 [08:51:20]RAPDU: 90 00 [08:51:20]wFMCommunicate OK [08:51:20]wFMCommunicate request_size=4 [08:51:20]MH_SAM_APDU [08:51:20]CAPDU: 80 0D 03 02 [08:51:20]Write to MH i2c: E2 08 00 E3 0B 80 0D 03 02 00 00 00 00 69 [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:20]Read from MH i2c: E2 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 0B 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 0B 00 E3 0B 00 69 48 37 53 EE B8 A5 A0 90 00 90 [08:51:20]RAPDU: 69 48 37 53 EE B8 A5 A0 90 00 [08:51:20]wFMCommunicate OK [08:51:20]SAM_PROTO_SignData done [08:51:20]FM_MakeSignedData done [08:51:20]CreateOFDProtocolMessage [08:51:20]wFMCommunicate request_size=4 [08:51:20]MH_SAM_APDU [08:51:20]CAPDU: 80 11 00 00 [08:51:20]Write to MH i2c: E2 08 00 E4 0B 80 11 00 00 00 00 00 00 69 [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:20]Read from MH i2c: E2 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 17 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 17 00 E4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B4 [08:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:51:20]wFMCommunicate OK [08:51:20]CreateOFDProtocolMessage done [08:51:20]OFDSenderStorePacket 49925 [08:51:20]StoreOFDPacket docnum=49925 [08:51:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 B0 57 07 01 14 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 88 07 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 05 C3 00 00 35 04 06 00 E7 6E 0C 51 0B 1B 69 48 37 53 EE B8 A5 A0 [08:51:20]CheckFolder [08:51:20]dirname=/storage/ofd_packets [08:51:20]CheckFolder done [08:51:20]ProducePacketName [08:51:20]name=ofd_packets/00049925 [08:51:20]NVStorageSaveData ofd_packets/00049925 [08:51:20]File name is /storage/ofd_packets/00049925 [08:51:20]Write 301 bytes [08:51:20]NVStorageSaveData done [08:51:20]OFDSenderStorePacket done [08:51:20]KKMCreateOFDPacket done [08:51:20]NVStorageSaveData kkm_last_timestamp [08:51:20]File name is /storage/kkm_last_timestamp [08:51:20]Write 4 bytes [08:51:20]NVStorageSaveData done [08:51:20]ExternCall_PrintAddStr [08:51:20]wPrintStart [08:51:20]Write to MH i2c: 01 00 00 E5 0B F0 [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: 01 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: 01 07 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: 01 07 00 E5 0B 00 00 00 00 00 FF 0F 05 [08:51:20]RasterBufferAndPrint [08:51:20]line Счет N : (1)11327566 [08:51:20]line ИНН: 02508201610067 [08:51:20]line Контрольно-Кассовый Чек [08:51:20]line ПРОДАЖА [08:51:20]line ТРК (МРК, ГНК) : 42 [08:51:20]line Товар: 2710124130 [08:51:20]line Аи-92-К-4 [08:51:20]line 15.000 * 0.00 [08:51:20]line = 0.00 [08:51:20]line НДС 12% НСП 1% [08:51:20]line > о реализуемом товаре [08:51:20]line ИТОГО: 0.00 [08:51:20]line НСП 1% : 0.00 [08:51:20]line НДС 12% : 0.00 [08:51:20]line Наличными: 0.00 [08:51:20]line Безнал.: 0.00 [08:51:20]line Место: АЗС № 95 "Партнер Нефть" [08:51:20]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:51:20]line СНО: Общий режим [08:51:20]line Чек 32 19.08.2024 08:51 [08:51:20]line Смена: 467 ФФД: 1.0 [08:51:20]line ЗНМ: 0300000078 [08:51:20]line РНМ: 0000000000092546 [08:51:20]line Версия ККМ: 001 [08:51:20]line Талоны: ТК ГПНА Online [08:51:20]line 30106662 [08:51:20]line ФМ: 0000000000871800 [08:51:20]line ФД: 49925 [08:51:20]line ФПД: 254459839056667 [08:51:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T085120&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49925&fm=254459839056667&tin=02508201610067®Number=0000000000092546&sum=0 [08:51:20]written 0, free lines is 4095 [08:51:20]OFD Sender: Processing packet 49925 [packets to send 21, broken 20] [08:51:20]ProducePacketName [08:51:20]name=ofd_packets/00049925 [08:51:20]OFD Sender: To server: pG, [08:51:20]CommunicateWithHost lk.salyk.kg:30040 [08:51:20]ConnectInit lk.salyk.kg [08:51:21]Write to MH i2c: 01 00 00 0F 0C 1B [08:51:21]Write i2c OK [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: 01 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: 01 07 00 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: 01 07 00 0F 0C 00 00 00 00 00 DF 0C 0D [08:51:21]RasterBufferAndPrint [08:51:21]line [08:51:21]line [08:51:21]line [08:51:21]line [08:51:21]line [08:51:21]written 0, free lines is 3301 [08:51:21]MH_Cut [08:51:21]Write to MH i2c: D1 01 00 16 0C 01 F4 [08:51:21]Write i2c OK [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: D1 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: D1 01 00 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: D1 01 00 16 0C 00 F3 [08:51:21]Write to MH i2c: 01 00 00 17 0C 23 [08:51:21]Write i2c OK [08:51:21]MH_I2C_Read... [08:51:21]Connected sock=10 [08:51:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 B0 57 07 01 14 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 88 07 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 05 C3 00 00 35 04 06 00 E7 6E 0C 51 0B 1B 69 48 37 53 EE B8 A5 A0 [08:51:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 77 CA 47 00 F7 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 31 38 30 30 10 04 04 00 05 C3 00 00 F4 03 04 00 F6 B1 C2 66 B6 04 01 00 00 3F E6 A1 1A 1E 0F DD 01 [08:51:21]CommunicateWithHost err = 0 [08:51:21]CheckOFDResponse [08:51:21]1017 (14) - 77093643461234 [08:51:21]1041 (16) - 0000000000871800 [08:51:21]1040 (4) - 49925 [08:51:21]1012 (4) - 19.08.2024 02:46 [08:51:21]1206 (1) - 0 [08:51:21]OFD Sender: Remove packet 49925 [08:51:21]ProducePacketName [08:51:21]name=ofd_packets/00049925 [08:51:21]NVStorageDeleteData [08:51:21]*** Cut start [08:51:21]*** Purtial cut [08:51:21]*** CUTSNS_PIN = 0 [08:51:21]OFD Sender: No OFD packet to send [08:51:22]*** Stage 1: CUTSNS_PIN = 1 [08:51:23]Read from MH i2c: 01 [08:51:23]MH_I2C_Read... [08:51:23]*** Stop cut motor [08:51:23]*** Cut end [08:51:23]Read from MH i2c: 01 07 00 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: 01 07 00 17 0C 00 00 00 00 00 FF 0F 38 [08:51:23]process_action close_receipt done [08:51:23]requested_data is exist [08:51:23]produce_requested_data [08:51:23]requested_item fm.sn is exist - process it [08:51:23]wFMCommunicate request_size=4 [08:51:23]MH_SAM_APDU [08:51:23]CAPDU: 80 11 00 00 [08:51:23]Write to MH i2c: E2 08 00 18 0C 80 11 00 00 00 00 00 00 9E [08:51:23]Write i2c OK [08:51:23]MH_I2C_Read... [08:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:23]Read from MH i2c: E2 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: E2 17 00 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: E2 17 00 18 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E9 [08:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:51:23]wFMCommunicate OK [08:51:23]requested_item fd.num is exist - process it [08:51:23]SAM_PROTO_GetFieldsCounters [08:51:23]wFMCommunicate request_size=4 [08:51:23]MH_SAM_APDU [08:51:23]CAPDU: 80 13 00 00 [08:51:23]Write to MH i2c: E2 08 00 19 0C 80 13 00 00 00 00 00 00 A1 [08:51:23]Write i2c OK [08:51:23]MH_I2C_Read... [08:51:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:24]Read from MH i2c: E2 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 62 00 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 62 00 19 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 05 C3 00 00 0E 04 04 00 D3 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 B7 [08:51:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 05 C3 00 00 0E 04 04 00 D3 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 [08:51:24]wFMCommunicate OK [08:51:24]SAM_PROTO_GetFieldsCounters done [08:51:24]requested_item shift.num is exist - process it [08:51:24]requested_item shift.opened is exist - process it [08:51:24]req_shift_opened [08:51:24]FM_GetShiftState [08:51:24]SAM_PROTO_GetShiftState [08:51:24]wFMCommunicate request_size=4 [08:51:24]MH_SAM_APDU [08:51:24]CAPDU: 80 13 01 00 [08:51:24]Write to MH i2c: E2 08 00 1A 0C 80 13 01 00 00 00 00 00 A3 [08:51:24]Write i2c OK [08:51:24]MH_I2C_Read... [08:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:24]Read from MH i2c: E2 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 0E 00 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 0E 00 1A 0C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 5D [08:51:24]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:51:24]wFMCommunicate OK [08:51:24]SAM_PROTO_GetShiftState done [08:51:24]FM_GetShiftState done [08:51:24]req_shift_opened done [08:51:24]requested_item shift.open_date is exist - process it [08:51:24]req_shift_open_date [08:51:24]req_shift_open_date done [08:51:24]produce_requested_data done [08:51:24]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49925,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [08:51:24]process_action_free close_receipt [08:51:24]json_value_free [08:51:24]json_value_free done [08:51:24]process_json_proto returns [08:51:24]Send response to host [08:51:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49925,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [08:51:24]free response buf [08:51:24]execute_script done [08:51:24]execute_script returns [08:51:24]free content buf [08:51:24]Sock 9.Close socket [08:51:24]Sock 9.Thread stoped [08:51:24]accept exits with 7 [08:51:24]New connection [08:51:24]New thread 3067211108 created [08:51:24]Thread 3067354468 joined [08:51:24]Waiting for new connection... [08:51:24] Sock 7.Parse request [08:51:24]Sock 7.Check first char [08:51:24]Sock 7.First char is OK [08:51:24]request: POST /json_proto HTTP/1.0 [08:51:24]Method: POST [08:51:24]URL: /json_proto [08:51:24]Method is POST - this is cgi request [08:51:24]url: /json_proto [08:51:24]query_string will be loaded in cgi processing [08:51:24]execute_cgi json_proto POST (null) [08:51:24]execute_cgi path=json_proto method=POST [08:51:24]POST find Content-Length [08:51:24]Host: 172.17.46.196:8080 [08:51:24]Content-Length: 753 [08:51:24]Content-Type: application/json [08:51:24] [08:51:24]POST finish read [08:51:24]Found Content-Length = 753 [08:51:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104840", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:24]execute_script... [08: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 : (1)11327567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104840", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:24]POST & json_proto [08:51:24]process_json_proto [08:51:24]json parsed OK: [08:51:24]protocol is kg_v1.0 [08:51:24]action value=close_receipt [08:51:24]process_action close_receipt [08:51:24]cmd_close_receipt [08:51:24]MH_GetDate [08:51:24]Write to MH i2c: F0 00 00 1B 0C 16 [08:51:24]Write i2c OK [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: F0 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: F0 09 00 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: F0 09 00 1B 0C 00 8E 07 C3 66 C4 85 C2 66 4E [08:51:24]GetLastDocTimeStamp 1724057480 [08:51:24]current date 1724057486 [08:51:24]FM_GetShiftState [08:51:24]SAM_PROTO_GetShiftState [08:51:24]wFMCommunicate request_size=4 [08:51:24]MH_SAM_APDU [08:51:24]CAPDU: 80 13 01 00 [08:51:24]Write to MH i2c: E2 08 00 1C 0C 80 13 01 00 00 00 00 00 A5 [08:51:24]Write i2c OK [08:51:24]MH_I2C_Read... [08:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:24]Read from MH i2c: E2 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 0E 00 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 0E 00 1C 0C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 5F [08:51:24]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:51:24]wFMCommunicate OK [08:51:24]SAM_PROTO_GetShiftState done [08:51:24]FM_GetShiftState done [08:51:24]opened in 1724026361 [08:51:24]opened+sec_in_day 1724112761 [08:51:24]quantity*price = 0 [08:51:24]sum+1 = 1 [08:51:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 33 19.08.2024 08:51 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104840 ФМ: 0000000000871800 ФД: 49926 ФПД: 272618673372218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T085126&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49926&fm=272618673372218&tin=02508201610067®Number=0000000000092546&sum=0 [08:51:25]StoreToDocumentArchive [08:51:25]shift 467 fd 49926 [08:51:25]save to /storage/0467/doc_00049926 [08:51:25]save last doc name /storage/0467/doc_00049926 to /storage/kkm_last_doc_name [08:51:25]save OK [08:51:25]Clear old archive folders... [08:51:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:51:25]tlvbuf is 00F75250 [08:51:25]SAM_PROTO_ClearQueue [08:51:25]wFMCommunicate request_size=4 [08:51:25]MH_SAM_APDU [08:51:25]CAPDU: 80 09 00 00 [08:51:25]Write to MH i2c: E2 08 00 29 0C 80 09 00 00 00 00 00 00 A7 [08:51:25]Write i2c OK [08:51:25]MH_I2C_Read... [08:51:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:25]Read from MH i2c: E2 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: E2 03 00 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: E2 03 00 29 0C 00 90 00 A9 [08:51:25]RAPDU: 90 00 [08:51:25]wFMCommunicate OK [08:51:25]SAM_PROTO_ClearQueue done [08:51:25]KKMCreateOFDPacket [08:51:25]OFDProtocolAddRootSTLVToBuf [08:51:25]FM_MakeSignedData [08:51:25]FM_MakeSignedData [08:51:25]SAM_PROTO_SignData [08:51:25]wFMCommunicate request_size=4 [08:51:25]MH_SAM_APDU [08:51:25]CAPDU: 80 0D 01 02 [08:51:25]Write to MH i2c: E2 08 00 2A 0C 80 0D 01 02 00 00 00 00 AF [08:51:25]Write i2c OK [08:51:25]MH_I2C_Read... [08:51:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:25]Read from MH i2c: E2 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: E2 03 00 [08:51:25]MH_I2C_Read... [08:51:25]Read from MH i2c: E2 03 00 2A 0C 00 90 00 AA [08:51:25]RAPDU: 90 00 [08:51:25]wFMCommunicate OK [08:51:25]wFMCommunicate request_size=255 [08:51:25]MH_SAM_APDU [08:51:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 8E 07 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 06 C3 00 00 35 04 06 00 F7 F1 FB 2F [08:51:25]Write to MH i2c: E2 02 01 2B 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 8E 07 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 06 C3 00 00 35 04 06 00 F7 F1 FB 2F 00 00 65 [08:51:25]Write i2c OK [08:51:25]MH_I2C_Read... [08:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:26]Read from MH i2c: E2 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 03 00 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 03 00 2B 0C 00 90 00 AB [08:51:26]RAPDU: 90 00 [08:51:26]wFMCommunicate OK [08:51:26]wFMCommunicate request_size=7 [08:51:26]MH_SAM_APDU [08:51:26]CAPDU: 80 0D 02 02 02 7C 3A [08:51:26]Write to MH i2c: E2 0A 00 2C 0C 80 0D 02 02 02 00 7C 3A 00 00 6C [08:51:26]Write i2c OK [08:51:26]MH_I2C_Read... [08:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:26]Read from MH i2c: E2 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 03 00 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 03 00 2C 0C 00 90 00 AC [08:51:26]RAPDU: 90 00 [08:51:26]wFMCommunicate OK [08:51:26]wFMCommunicate request_size=4 [08:51:26]MH_SAM_APDU [08:51:26]CAPDU: 80 0D 03 02 [08:51:26]Write to MH i2c: E2 08 00 2D 0C 80 0D 03 02 00 00 00 00 B4 [08:51:26]Write i2c OK [08:51:26]MH_I2C_Read... [08:51:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:26]Read from MH i2c: E2 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 0B 00 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 0B 00 2D 0C 00 A2 61 CC C6 57 04 44 59 90 00 42 [08:51:26]RAPDU: A2 61 CC C6 57 04 44 59 90 00 [08:51:26]wFMCommunicate OK [08:51:26]SAM_PROTO_SignData done [08:51:26]FM_MakeSignedData done [08:51:26]CreateOFDProtocolMessage [08:51:26]wFMCommunicate request_size=4 [08:51:26]MH_SAM_APDU [08:51:26]CAPDU: 80 11 00 00 [08:51:26]Write to MH i2c: E2 08 00 2E 0C 80 11 00 00 00 00 00 00 B4 [08:51:26]Write i2c OK [08:51:26]MH_I2C_Read... [08:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:26]Read from MH i2c: E2 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 17 00 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: E2 17 00 2E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FF [08:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:51:26]wFMCommunicate OK [08:51:26]CreateOFDProtocolMessage done [08:51:26]OFDSenderStorePacket 49926 [08:51:26]StoreOFDPacket docnum=49926 [08:51:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 CE C7 04 01 A5 F1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 8E 07 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 06 C3 00 00 35 04 06 00 F7 F1 FB 2F 7C 3A A2 61 CC C6 57 04 44 59 [08:51:26]CheckFolder [08:51:26]dirname=/storage/ofd_packets [08:51:26]CheckFolder done [08:51:26]ProducePacketName [08:51:26]name=ofd_packets/00049926 [08:51:26]NVStorageSaveData ofd_packets/00049926 [08:51:26]File name is /storage/ofd_packets/00049926 [08:51:26]Write 298 bytes [08:51:26]NVStorageSaveData done [08:51:26]OFDSenderStorePacket done [08:51:26]KKMCreateOFDPacket done [08:51:26]NVStorageSaveData kkm_last_timestamp [08:51:26]File name is /storage/kkm_last_timestamp [08:51:26]Write 4 bytes [08:51:26]NVStorageSaveData done [08:51:26]ExternCall_PrintAddStr [08:51:26]wPrintStart [08:51:26]Write to MH i2c: 01 00 00 2F 0C 3B [08:51:26]Write i2c OK [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: 01 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: 01 07 00 [08:51:26]MH_I2C_Read... [08:51:26]OFD Sender: Processing packet 49926 [packets to send 21, broken 20] [08:51:26]ProducePacketName [08:51:26]name=ofd_packets/00049926 [08:51:26]OFD Sender: To server: pG, [08:51:26]CommunicateWithHost lk.salyk.kg:30040 [08:51:26]ConnectInit lk.salyk.kg [08:51:26]Read from MH i2c: 01 07 00 2F 0C 00 00 00 00 00 FF 0F 50 [08:51:26]RasterBufferAndPrint [08:51:26]line Счет N : (1)11327567 [08:51:26]line ИНН: 02508201610067 [08:51:26]line Контрольно-Кассовый Чек [08:51:26]line ПРОДАЖА [08:51:26]line ТРК (МРК, ГНК) : 51 [08:51:26]line Товар: 2710194210 [08:51:26]line ДТ-К-5 [08:51:26]line 15.000 * 0.00 [08:51:26]line = 0.00 [08:51:26]line НДС 12% НСП 1% [08:51:26]line > о реализуемом товаре [08:51:26]line ИТОГО: 0.00 [08:51:26]line НСП 1% : 0.00 [08:51:26]line НДС 12% : 0.00 [08:51:26]line Наличными: 0.00 [08:51:26]line Безнал.: 0.00 [08:51:26]line Место: АЗС № 95 "Партнер Нефть" [08:51:26]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:51:26]line СНО: Общий режим [08:51:26]line Чек 33 19.08.2024 08:51 [08:51:26]line Смена: 467 ФФД: 1.0 [08:51:26]line ЗНМ: 0300000078 [08:51:26]line РНМ: 0000000000092546 [08:51:26]line Версия ККМ: 001 [08:51:26]line Талоны: ТК ГПНА Online [08:51:26]line 30104840 [08:51:26]line ФМ: 0000000000871800 [08:51:26]line ФД: 49926 [08:51:26]line ФПД: 272618673372218 [08:51:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T085126&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49926&fm=272618673372218&tin=02508201610067®Number=0000000000092546&sum=0 [08:51:26]written 0, free lines is 4095 [08:51:26]Connected sock=10 [08:51:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 CE C7 04 01 A5 F1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 8E 07 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 06 C3 00 00 35 04 06 00 F7 F1 FB 2F 7C 3A A2 61 CC C6 57 04 44 59 [08:51:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 2B D7 47 00 AF 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 31 38 30 30 10 04 04 00 06 C3 00 00 F4 03 04 00 FC B1 C2 66 B6 04 01 00 00 42 7E BB 69 58 9D 2C 4C [08:51:26]CommunicateWithHost err = 0 [08:51:26]CheckOFDResponse [08:51:26]1017 (14) - 77093643461234 [08:51:26]1041 (16) - 0000000000871800 [08:51:26]1040 (4) - 49926 [08:51:26]1012 (4) - 19.08.2024 02:46 [08:51:26]1206 (1) - 0 [08:51:26]OFD Sender: Remove packet 49926 [08:51:26]ProducePacketName [08:51:26]name=ofd_packets/00049926 [08:51:26]NVStorageDeleteData [08:51:26]Write to MH i2c: 01 00 00 59 0C 65 [08:51:26]Write i2c OK [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: 01 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: 01 07 00 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: 01 07 00 59 0C 00 00 00 00 00 05 0D 7E [08:51:26]RasterBufferAndPrint [08:51:26]line [08:51:26]line [08:51:26]line [08:51:26]line [08:51:26]line [08:51:26]written 0, free lines is 3353 [08:51:26]MH_Cut [08:51:26]Write to MH i2c: D1 01 00 60 0C 01 3E [08:51:26]Write i2c OK [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: D1 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: D1 01 00 [08:51:26]MH_I2C_Read... [08:51:26]Read from MH i2c: D1 01 00 60 0C 00 3D [08:51:26]Write to MH i2c: 01 00 00 61 0C 6D [08:51:26]Write i2c OK [08:51:26]MH_I2C_Read... [08:51:27]OFD Sender: No OFD packet to send [08:51:27]*** Cut start [08:51:27]*** Purtial cut [08:51:27]*** Stage 1: CUTSNS_PIN = 1 [08:51:27]Read from MH i2c: 01 [08:51:27]MH_I2C_Read... [08:51:27]*** Stop cut motor [08:51:27]*** Cut end [08:51:27]Read from MH i2c: 01 07 00 [08:51:27]MH_I2C_Read... [08:51:27]Read from MH i2c: 01 07 00 61 0C 00 00 00 00 00 FF 0F 82 [08:51:27]process_action close_receipt done [08:51:27]requested_data is exist [08:51:27]produce_requested_data [08:51:27]requested_item fm.sn is exist - process it [08:51:27]wFMCommunicate request_size=4 [08:51:27]MH_SAM_APDU [08:51:27]CAPDU: 80 11 00 00 [08:51:27]Write to MH i2c: E2 08 00 62 0C 80 11 00 00 00 00 00 00 E8 [08:51:27]Write i2c OK [08:51:27]MH_I2C_Read... [08:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:27]Read from MH i2c: E2 [08:51:27]MH_I2C_Read... [08:51:27]Read from MH i2c: E2 17 00 [08:51:27]MH_I2C_Read... [08:51:27]Read from MH i2c: E2 17 00 62 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 33 [08:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:51:27]wFMCommunicate OK [08:51:27]requested_item fd.num is exist - process it [08:51:27]SAM_PROTO_GetFieldsCounters [08:51:27]wFMCommunicate request_size=4 [08:51:27]MH_SAM_APDU [08:51:27]CAPDU: 80 13 00 00 [08:51:27]Write to MH i2c: E2 08 00 63 0C 80 13 00 00 00 00 00 00 EB [08:51:27]Write i2c OK [08:51:27]MH_I2C_Read... [08:51:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:28]Read from MH i2c: E2 [08:51:28]MH_I2C_Read... [08:51:28]Read from MH i2c: E2 62 00 [08:51:28]MH_I2C_Read... [08:51:28]Read from MH i2c: E2 62 00 63 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 06 C3 00 00 0E 04 04 00 D3 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 05 [08:51:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 06 C3 00 00 0E 04 04 00 D3 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 [08:51:28]wFMCommunicate OK [08:51:28]SAM_PROTO_GetFieldsCounters done [08:51:28]requested_item shift.num is exist - process it [08:51:28]requested_item shift.opened is exist - process it [08:51:28]req_shift_opened [08:51:28]FM_GetShiftState [08:51:28]SAM_PROTO_GetShiftState [08:51:28]wFMCommunicate request_size=4 [08:51:28]MH_SAM_APDU [08:51:28]CAPDU: 80 13 01 00 [08:51:28]Write to MH i2c: E2 08 00 64 0C 80 13 01 00 00 00 00 00 ED [08:51:28]Write i2c OK [08:51:28]MH_I2C_Read... [08:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:28]Read from MH i2c: E2 [08:51:28]MH_I2C_Read... [08:51:28]Read from MH i2c: E2 0E 00 [08:51:28]MH_I2C_Read... [08:51:28]Read from MH i2c: E2 0E 00 64 0C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A7 [08:51:28]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:51:28]wFMCommunicate OK [08:51:28]SAM_PROTO_GetShiftState done [08:51:28]FM_GetShiftState done [08:51:28]req_shift_opened done [08:51:28]requested_item shift.open_date is exist - process it [08:51:28]req_shift_open_date [08:51:28]req_shift_open_date done [08:51:28]produce_requested_data done [08:51:28]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49926,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [08:51:28]process_action_free close_receipt [08:51:28]json_value_free [08:51:28]json_value_free done [08:51:28]process_json_proto returns [08:51:28]Send response to host [08:51:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49926,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [08:51:28]free response buf [08:51:28]execute_script done [08:51:28]execute_script returns [08:51:28]free content buf [08:51:28]Sock 7.Close socket [08:51:28]Sock 7.Thread stoped [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:45]accept exits with 9 [08:51:45]New connection [08:51:45]New thread 3067354468 created [08:51:45]Thread 3067211108 joined [08:51:45]Waiting for new connection... [08:51:45] Sock 9.Parse request [08:51:45]Sock 9.Check first char [08:51:45]Sock 9.First char is OK [08:51:45]request: POST /json_proto HTTP/1.0 [08:51:45]Method: POST [08:51:45]URL: /json_proto [08:51:45]Method is POST - this is cgi request [08:51:45]url: /json_proto [08:51:45]query_string will be loaded in cgi processing [08:51:45]execute_cgi json_proto POST (null) [08:51:45]execute_cgi path=json_proto method=POST [08:51:45]POST find Content-Length [08:51:45]Host: 172.17.46.196:8080 [08:51:45]Content-Length: 644 [08:51:45]Content-Type: application/json [08:51:45] [08:51:45]POST finish read [08:51:45]Found Content-Length = 644 [08:51:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190090", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:45]execute_script... [08:51:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190090", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:45]POST & json_proto [08:51:45]process_json_proto [08:51:45]json parsed OK: [08:51:45]protocol is kg_v1.0 [08:51:45]action value=close_receipt [08:51:45]process_action close_receipt [08:51:45]cmd_close_receipt [08:51:45]MH_GetDate [08:51:45]Write to MH i2c: F0 00 00 65 0C 60 [08:51:45]Write i2c OK [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: F0 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: F0 09 00 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: F0 09 00 65 0C 00 A3 07 C3 66 C4 85 C2 66 AD [08:51:45]GetLastDocTimeStamp 1724057486 [08:51:45]current date 1724057507 [08:51:45]FM_GetShiftState [08:51:45]SAM_PROTO_GetShiftState [08:51:45]wFMCommunicate request_size=4 [08:51:45]MH_SAM_APDU [08:51:45]CAPDU: 80 13 01 00 [08:51:45]Write to MH i2c: E2 08 00 66 0C 80 13 01 00 00 00 00 00 EF [08:51:45]Write i2c OK [08:51:45]MH_I2C_Read... [08:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:45]Read from MH i2c: E2 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: E2 0E 00 [08:51:45]MH_I2C_Read... [08:51:45]Read from MH i2c: E2 0E 00 66 0C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A9 [08:51:45]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:51:45]wFMCommunicate OK [08:51:45]SAM_PROTO_GetShiftState done [08:51:45]FM_GetShiftState done [08:51:45]opened in 1724026361 [08:51:45]opened+sec_in_day 1724112761 [08:51:45]quantity*price = 11500 [08:51:45]sum+1 = 11501 [08:51:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 34 19.08.2024 08:51 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49927 ФПД: 226612037863379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T085147&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49927&fm=226612037863379&tin=02508201610067®Number=0000000000092546&sum=11500 0 [08:51:46]StoreToDocumentArchive [08:51:46]shift 467 fd 49927 [08:51:46]save to /storage/0467/doc_00049927 [08:51:46]save last doc name /storage/0467/doc_00049927 to /storage/kkm_last_doc_name [08:51:46]save OK [08:51:46]Clear old archive folders... [08:51:46]ProcessDocumentItem done err = 0, tmpTLVsize=280 [08:51:46]tlvbuf is 00F94A90 [08:51:46]SAM_PROTO_ClearQueue [08:51:46]wFMCommunicate request_size=4 [08:51:46]MH_SAM_APDU [08:51:46]CAPDU: 80 09 00 00 [08:51:46]Write to MH i2c: E2 08 00 73 0C 80 09 00 00 00 00 00 00 F1 [08:51:46]Write i2c OK [08:51:46]MH_I2C_Read... [08:51:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:46]Read from MH i2c: E2 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: E2 03 00 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: E2 03 00 73 0C 00 90 00 F3 [08:51:46]RAPDU: 90 00 [08:51:46]wFMCommunicate OK [08:51:46]SAM_PROTO_ClearQueue done [08:51:46]KKMCreateOFDPacket [08:51:46]OFDProtocolAddRootSTLVToBuf [08:51:46]FM_MakeSignedData [08:51:46]FM_MakeSignedData [08:51:46]SAM_PROTO_SignData [08:51:46]wFMCommunicate request_size=4 [08:51:46]MH_SAM_APDU [08:51:46]CAPDU: 80 0D 01 02 [08:51:46]Write to MH i2c: E2 08 00 74 0C 80 0D 01 02 00 00 00 00 F9 [08:51:46]Write i2c OK [08:51:46]MH_I2C_Read... [08:51:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:46]Read from MH i2c: E2 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: E2 03 00 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: E2 03 00 74 0C 00 90 00 F4 [08:51:46]RAPDU: 90 00 [08:51:46]wFMCommunicate OK [08:51:46]wFMCommunicate request_size=255 [08:51:46]MH_SAM_APDU [08:51:46]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 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 A3 07 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [08:51:46]Write to MH i2c: E2 02 01 75 0C 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 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 A3 07 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 03 [08:51:46]Write i2c OK [08:51:46]MH_I2C_Read... [08:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:46]Read from MH i2c: E2 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: E2 03 00 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: E2 03 00 75 0C 00 90 00 F5 [08:51:46]RAPDU: 90 00 [08:51:46]wFMCommunicate OK [08:51:46]wFMCommunicate request_size=39 [08:51:46]MH_SAM_APDU [08:51:46]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 07 C3 00 00 35 04 06 00 CE 1A 3A 04 C7 D3 [08:51:46]Write to MH i2c: E2 2A 00 76 0C 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 07 C3 00 00 35 04 06 00 CE 1A 3A 04 C7 D3 00 00 39 [08:51:46]Write i2c OK [08:51:46]MH_I2C_Read... [08:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:46]Read from MH i2c: E2 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: E2 03 00 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: E2 03 00 76 0C 00 90 00 F6 [08:51:46]RAPDU: 90 00 [08:51:46]wFMCommunicate OK [08:51:46]wFMCommunicate request_size=4 [08:51:46]MH_SAM_APDU [08:51:46]CAPDU: 80 0D 03 02 [08:51:46]Write to MH i2c: E2 08 00 77 0C 80 0D 03 02 00 00 00 00 FE [08:51:46]Write i2c OK [08:51:46]MH_I2C_Read... [08:51:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:46]Read from MH i2c: E2 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: E2 0B 00 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: E2 0B 00 77 0C 00 D3 03 BB 4C AA 31 0B CA 90 00 8C [08:51:46]RAPDU: D3 03 BB 4C AA 31 0B CA 90 00 [08:51:46]wFMCommunicate OK [08:51:46]SAM_PROTO_SignData done [08:51:46]FM_MakeSignedData done [08:51:46]CreateOFDProtocolMessage [08:51:46]wFMCommunicate request_size=4 [08:51:46]MH_SAM_APDU [08:51:46]CAPDU: 80 11 00 00 [08:51:46]Write to MH i2c: E2 08 00 78 0C 80 11 00 00 00 00 00 00 FE [08:51:46]Write i2c OK [08:51:46]MH_I2C_Read... [08:51:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:46]Read from MH i2c: E2 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: E2 17 00 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: E2 17 00 78 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 49 [08:51:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:51:46]wFMCommunicate OK [08:51:46]CreateOFDProtocolMessage done [08:51:46]OFDSenderStorePacket 49927 [08:51:46]StoreOFDPacket docnum=49927 [08:51:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 49 ED 24 01 F1 61 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 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 A3 07 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 07 C3 00 00 35 04 06 00 CE 1A 3A 04 C7 D3 D3 03 BB 4C AA 31 0B CA [08:51:46]CheckFolder [08:51:46]dirname=/storage/ofd_packets [08:51:46]CheckFolder done [08:51:46]ProducePacketName [08:51:46]name=ofd_packets/00049927 [08:51:46]NVStorageSaveData ofd_packets/00049927 [08:51:46]File name is /storage/ofd_packets/00049927 [08:51:46]Write 330 bytes [08:51:46]NVStorageSaveData done [08:51:46]OFDSenderStorePacket done [08:51:46]KKMCreateOFDPacket done [08:51:46]NVStorageSaveData kkm_last_timestamp [08:51:46]File name is /storage/kkm_last_timestamp [08:51:46]Write 4 bytes [08:51:46]NVStorageSaveData done [08:51:46]ExternCall_PrintAddStr [08:51:46]wPrintStart [08:51:46]Write to MH i2c: 01 00 00 79 0C 85 [08:51:46]Write i2c OK [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: 01 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: 01 07 00 [08:51:46]MH_I2C_Read... [08:51:46]Read from MH i2c: 01 07 00 79 0C 00 00 00 00 00 FF 0F 9A [08:51:46]RasterBufferAndPrint [08:51:46]line Счет N : (3)190090 [08:51:46]line ИНН: 02508201610067 [08:51:46]line Контрольно-Кассовый Чек [08:51:46]line ПРОДАЖА [08:51:46]line Товар: 2000036210013 [08:51:46]line Кофе Капучино (GABB TRADE) [08:51:46]line 1.000 * 115.00 [08:51:46]line = 115.00 [08:51:46]line НДС 12% НСП 1% [08:51:46]line > о реализуемом товаре [08:51:46]line ИТОГО: 115.00 [08:51:46]line НСП 1% : 1.02 [08:51:46]line НДС 12% : 12.21 [08:51:46]line Наличными: 115.00 [08:51:46]line Безнал.: 0.00 [08:51:46]line Место: АЗС № 95 "Партнер Нефть" [08:51:46]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:51:46]line СНО: Общий режим [08:51:46]line Чек 34 19.08.2024 08:51 [08:51:46]line Смена: 467 ФФД: 1.0 [08:51:46]line ЗНМ: 0300000078 [08:51:46]line РНМ: 0000000000092546 [08:51:46]line Версия ККМ: 001 [08:51:46]line ФМ: 0000000000871800 [08:51:46]line ФД: 49927 [08:51:46]line ФПД: 226612037863379 [08:51:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T085147&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49927&fm=226612037863379&tin=02508201610067®Number=0000000000092546&sum=11500 [08:51:46]line 0 [08:51:46]written 0, free lines is 4095 [08:51:46]OFD Sender: Processing packet 49927 [packets to send 21, broken 20] [08:51:46]ProducePacketName [08:51:46]name=ofd_packets/00049927 [08:51:46]OFD Sender: To server: pG, [08:51:46]CommunicateWithHost lk.salyk.kg:30040 [08:51:46]ConnectInit lk.salyk.kg [08:51:47]Connected sock=10 [08:51:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 49 ED 24 01 F1 61 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 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 A3 07 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 07 C3 00 00 35 04 06 00 CE 1A 3A 04 C7 D3 D3 03 BB 4C AA 31 0B CA [08:51:47]Write to MH i2c: 01 00 00 A1 0C AD [08:51:47]Write i2c OK [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: 01 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: 01 07 00 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: 01 07 00 A1 0C 00 00 00 00 00 07 0D C8 [08:51:47]RasterBufferAndPrint [08:51:47]line [08:51:47]line [08:51:47]line [08:51:47]line [08:51:47]line [08:51:47]written 0, free lines is 3347 [08:51:47]MH_Cut [08:51:47]Write to MH i2c: D1 01 00 A8 0C 01 86 [08:51:47]Write i2c OK [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: D1 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: D1 01 00 [08:51:47]MH_I2C_Read... [08:51:47]Read from MH i2c: D1 01 00 A8 0C 00 85 [08:51:47]Write to MH i2c: 01 00 00 A9 0C B5 [08:51:47]Write i2c OK [08:51:47]MH_I2C_Read... [08:51:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 12 BD 47 00 E1 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 07 C3 00 00 F4 03 04 00 10 B2 C2 66 B6 04 01 00 00 56 EF 1D 8F FA B4 65 C2 [08:51:47]CommunicateWithHost err = 0 [08:51:47]CheckOFDResponse [08:51:47]1017 (14) - 77093643461234 [08:51:47]1041 (16) - 0000000000871800 [08:51:47]1040 (4) - 49927 [08:51:47]1012 (4) - 19.08.2024 02:46 [08:51:47]1206 (1) - 0 [08:51:47]OFD Sender: Remove packet 49927 [08:51:47]ProducePacketName [08:51:47]name=ofd_packets/00049927 [08:51:47]NVStorageDeleteData [08:51:47]OFD Sender: No OFD packet to send [08:51:48]*** Cut start [08:51:48]*** Purtial cut [08:51:48]*** CUTSNS_PIN = 0 [08:51:48]*** Stage 1: CUTSNS_PIN = 1 [08:51:50]Read from MH i2c: 01 [08:51:50]MH_I2C_Read... [08:51:50]*** Stop cut motor [08:51:50]*** Cut end [08:51:50]Read from MH i2c: 01 07 00 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: 01 07 00 A9 0C 00 00 00 00 00 FF 0F CA [08:51:50]process_action close_receipt done [08:51:50]requested_data is exist [08:51:50]produce_requested_data [08:51:50]requested_item fm.sn is exist - process it [08:51:50]wFMCommunicate request_size=4 [08:51:50]MH_SAM_APDU [08:51:50]CAPDU: 80 11 00 00 [08:51:50]Write to MH i2c: E2 08 00 AA 0C 80 11 00 00 00 00 00 00 30 [08:51:50]Write i2c OK [08:51:50]MH_I2C_Read... [08:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:50]Read from MH i2c: E2 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 17 00 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 17 00 AA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7B [08:51:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:51:50]wFMCommunicate OK [08:51:50]requested_item fd.num is exist - process it [08:51:50]SAM_PROTO_GetFieldsCounters [08:51:50]wFMCommunicate request_size=4 [08:51:50]MH_SAM_APDU [08:51:50]CAPDU: 80 13 00 00 [08:51:50]Write to MH i2c: E2 08 00 AB 0C 80 13 00 00 00 00 00 00 33 [08:51:50]Write i2c OK [08:51:50]MH_I2C_Read... [08:51:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:50]Read from MH i2c: E2 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 62 00 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 62 00 AB 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 07 C3 00 00 0E 04 04 00 D3 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 51 [08:51:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 07 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:50]wFMCommunicate OK [08:51:50]SAM_PROTO_GetFieldsCounters done [08:51:50]requested_item shift.num is exist - process it [08:51:50]requested_item shift.opened is exist - process it [08:51:50]req_shift_opened [08:51:50]FM_GetShiftState [08:51:50]SAM_PROTO_GetShiftState [08:51:50]wFMCommunicate request_size=4 [08:51:50]MH_SAM_APDU [08:51:50]CAPDU: 80 13 01 00 [08:51:50]Write to MH i2c: E2 08 00 AC 0C 80 13 01 00 00 00 00 00 35 [08:51:50]Write i2c OK [08:51:50]MH_I2C_Read... [08:51:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:50]Read from MH i2c: E2 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 0E 00 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 0E 00 AC 0C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 EF [08:51:50]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [08:51:50]wFMCommunicate OK [08:51:50]SAM_PROTO_GetShiftState done [08:51:50]FM_GetShiftState done [08:51:50]req_shift_opened done [08:51:50]requested_item shift.open_date is exist - process it [08:51:50]req_shift_open_date [08:51:50]req_shift_open_date done [08:51:50]produce_requested_data done [08:51:50]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49927,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [08:51:50]process_action_free close_receipt [08:51:50]json_value_free [08:51:50]json_value_free done [08:51:50]process_json_proto returns [08:51:50]Send response to host [08:51:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49927,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [08:51:50]free response buf [08:51:50]execute_script done [08:51:50]execute_script returns [08:51:50]free content buf [08:51:50]Sock 9.Close socket [08:51:50]Sock 9.Thread stoped [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:02]accept exits with 7 [09:02:02]New connection [09:02:02]New thread 3067211108 created [09:02:02]Thread 3067354468 joined [09:02:02]Waiting for new connection... [09:02:02] Sock 7.Parse request [09:02:02]Sock 7.Check first char [09:02:02]Sock 7.First char is OK [09:02:02]request: POST /json_proto HTTP/1.0 [09:02:02]Method: POST [09:02:02]URL: /json_proto [09:02:02]Method is POST - this is cgi request [09:02:02]url: /json_proto [09:02:02]query_string will be loaded in cgi processing [09:02:02]execute_cgi json_proto POST (null) [09:02:02]execute_cgi path=json_proto method=POST [09:02:02]POST find Content-Length [09:02:02]Host: 172.17.46.196:8080 [09:02:02]Content-Length: 753 [09:02:02]Content-Type: application/json [09:02:02] [09:02:02]POST finish read [09:02:02]Found Content-Length = 753 [09:02:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.370, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30148458", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:02]execute_script... [09:02:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.370, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30148458", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:02]POST & json_proto [09:02:02]process_json_proto [09:02:02]json parsed OK: [09:02:02]protocol is kg_v1.0 [09:02:02]action value=close_receipt [09:02:02]process_action close_receipt [09:02:02]cmd_close_receipt [09:02:02]MH_GetDate [09:02:02]Write to MH i2c: F0 00 00 AD 0C A8 [09:02:02]Write i2c OK [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: F0 [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: F0 09 00 [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: F0 09 00 AD 0C 00 0C 0A C3 66 C4 85 C2 66 61 [09:02:02]GetLastDocTimeStamp 1724057507 [09:02:02]current date 1724058124 [09:02:02]FM_GetShiftState [09:02:02]SAM_PROTO_GetShiftState [09:02:02]wFMCommunicate request_size=4 [09:02:02]MH_SAM_APDU [09:02:02]CAPDU: 80 13 01 00 [09:02:02]Write to MH i2c: E2 08 00 AE 0C 80 13 01 00 00 00 00 00 37 [09:02:02]Write i2c OK [09:02:02]MH_I2C_Read... [09:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:02]Read from MH i2c: E2 [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: E2 0E 00 [09:02:02]MH_I2C_Read... [09:02:02]Read from MH i2c: E2 0E 00 AE 0C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 F1 [09:02:02]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:02:02]wFMCommunicate OK [09:02:02]SAM_PROTO_GetShiftState done [09:02:02]FM_GetShiftState done [09:02:02]opened in 1724026361 [09:02:02]opened+sec_in_day 1724112761 [09:02:02]quantity*price = 0 [09:02:02]sum+1 = 1 [09:02:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 35 19.08.2024 09:02 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30148458 ФМ: 0000000000871800 ФД: 49928 ФПД: 210512759260657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090204&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49928&fm=210512759260657&tin=02508201610067®Number=0000000000092546&sum=0 [09:02:03]StoreToDocumentArchive [09:02:03]shift 467 fd 49928 [09:02:03]save to /storage/0467/doc_00049928 [09:02:03]save last doc name /storage/0467/doc_00049928 to /storage/kkm_last_doc_name [09:02:03]save OK [09:02:03]Clear old archive folders... [09:02:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:02:03]tlvbuf is 0104C480 [09:02:03]SAM_PROTO_ClearQueue [09:02:03]wFMCommunicate request_size=4 [09:02:03]MH_SAM_APDU [09:02:03]CAPDU: 80 09 00 00 [09:02:03]Write to MH i2c: E2 08 00 BB 0C 80 09 00 00 00 00 00 00 39 [09:02:03]Write i2c OK [09:02:03]MH_I2C_Read... [09:02:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:03]Read from MH i2c: E2 [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: E2 03 00 [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: E2 03 00 BB 0C 00 90 00 3B [09:02:03]RAPDU: 90 00 [09:02:03]wFMCommunicate OK [09:02:03]SAM_PROTO_ClearQueue done [09:02:03]KKMCreateOFDPacket [09:02:03]OFDProtocolAddRootSTLVToBuf [09:02:03]FM_MakeSignedData [09:02:03]FM_MakeSignedData [09:02:03]SAM_PROTO_SignData [09:02:03]wFMCommunicate request_size=4 [09:02:03]MH_SAM_APDU [09:02:03]CAPDU: 80 0D 01 02 [09:02:03]Write to MH i2c: E2 08 00 BC 0C 80 0D 01 02 00 00 00 00 41 [09:02:03]Write i2c OK [09:02:03]MH_I2C_Read... [09:02:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:03]Read from MH i2c: E2 [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: E2 03 00 [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: E2 03 00 BC 0C 00 90 00 3C [09:02:03]RAPDU: 90 00 [09:02:03]wFMCommunicate OK [09:02:03]wFMCommunicate request_size=255 [09:02:03]MH_SAM_APDU [09:02:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 0C 0A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 08 C3 00 00 35 04 06 00 BF 75 D2 3C [09:02:03]Write to MH i2c: E2 02 01 BD 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 0C 0A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 08 C3 00 00 35 04 06 00 BF 75 D2 3C 00 00 3D [09:02:03]Write i2c OK [09:02:03]MH_I2C_Read... [09:02:03]OFD Sender: No OFD packet to send [09:02:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:03]Read from MH i2c: E2 [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: E2 03 00 [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: E2 03 00 BD 0C 00 90 00 3D [09:02:03]RAPDU: 90 00 [09:02:03]wFMCommunicate OK [09:02:03]wFMCommunicate request_size=7 [09:02:03]MH_SAM_APDU [09:02:03]CAPDU: 80 0D 02 02 02 85 F1 [09:02:03]Write to MH i2c: E2 0A 00 BE 0C 80 0D 02 02 02 00 85 F1 00 00 BE [09:02:03]Write i2c OK [09:02:03]MH_I2C_Read... [09:02:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:03]Read from MH i2c: E2 [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: E2 03 00 [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: E2 03 00 BE 0C 00 90 00 3E [09:02:03]RAPDU: 90 00 [09:02:03]wFMCommunicate OK [09:02:03]wFMCommunicate request_size=4 [09:02:03]MH_SAM_APDU [09:02:03]CAPDU: 80 0D 03 02 [09:02:03]Write to MH i2c: E2 08 00 BF 0C 80 0D 03 02 00 00 00 00 46 [09:02:03]Write i2c OK [09:02:03]MH_I2C_Read... [09:02:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:03]Read from MH i2c: E2 [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: E2 0B 00 [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: E2 0B 00 BF 0C 00 2B 03 E0 BF 69 F0 D1 52 90 00 90 [09:02:03]RAPDU: 2B 03 E0 BF 69 F0 D1 52 90 00 [09:02:03]wFMCommunicate OK [09:02:03]SAM_PROTO_SignData done [09:02:03]FM_MakeSignedData done [09:02:03]CreateOFDProtocolMessage [09:02:03]wFMCommunicate request_size=4 [09:02:03]MH_SAM_APDU [09:02:03]CAPDU: 80 11 00 00 [09:02:03]Write to MH i2c: E2 08 00 C0 0C 80 11 00 00 00 00 00 00 46 [09:02:03]Write i2c OK [09:02:03]MH_I2C_Read... [09:02:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:03]Read from MH i2c: E2 [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: E2 17 00 [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: E2 17 00 C0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 91 [09:02:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:02:03]wFMCommunicate OK [09:02:03]CreateOFDProtocolMessage done [09:02:03]OFDSenderStorePacket 49928 [09:02:03]StoreOFDPacket docnum=49928 [09:02:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 ED 56 04 01 A7 DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 0C 0A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 08 C3 00 00 35 04 06 00 BF 75 D2 3C 85 F1 2B 03 E0 BF 69 F0 D1 52 [09:02:03]CheckFolder [09:02:03]dirname=/storage/ofd_packets [09:02:03]CheckFolder done [09:02:03]ProducePacketName [09:02:03]name=ofd_packets/00049928 [09:02:03]NVStorageSaveData ofd_packets/00049928 [09:02:03]File name is /storage/ofd_packets/00049928 [09:02:03]Write 298 bytes [09:02:03]NVStorageSaveData done [09:02:03]OFDSenderStorePacket done [09:02:03]KKMCreateOFDPacket done [09:02:03]NVStorageSaveData kkm_last_timestamp [09:02:03]File name is /storage/kkm_last_timestamp [09:02:03]Write 4 bytes [09:02:03]NVStorageSaveData done [09:02:03]ExternCall_PrintAddStr [09:02:03]wPrintStart [09:02:03]Write to MH i2c: 01 00 00 C1 0C CD [09:02:03]Write i2c OK [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: 01 [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: 01 07 00 [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: 01 07 00 C1 0C 00 00 00 00 00 FF 0F E2 [09:02:03]RasterBufferAndPrint [09:02:03]line Счет N : (1)11327576 [09:02:03]line ИНН: 02508201610067 [09:02:03]line Контрольно-Кассовый Чек [09:02:03]line ПРОДАЖА [09:02:03]line ТРК (МРК, ГНК) : 51 [09:02:03]line Товар: 2710194210 [09:02:03]line ДТ-К-5 [09:02:03]line 39.370 * 0.00 [09:02:03]line = 0.00 [09:02:03]line НДС 12% НСП 1% [09:02:03]line > о реализуемом товаре [09:02:03]line ИТОГО: 0.00 [09:02:03]line НСП 1% : 0.00 [09:02:03]line НДС 12% : 0.00 [09:02:03]line Наличными: 0.00 [09:02:03]line Безнал.: 0.00 [09:02:03]line Место: АЗС № 95 "Партнер Нефть" [09:02:03]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:02:03]line СНО: Общий режим [09:02:03]line Чек 35 19.08.2024 09:02 [09:02:03]line Смена: 467 ФФД: 1.0 [09:02:03]line ЗНМ: 0300000078 [09:02:03]line РНМ: 0000000000092546 [09:02:03]line Версия ККМ: 001 [09:02:03]line Талоны: ТК ГПНА Online [09:02:03]line 30148458 [09:02:03]line ФМ: 0000000000871800 [09:02:03]line ФД: 49928 [09:02:03]line ФПД: 210512759260657 [09:02:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090204&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49928&fm=210512759260657&tin=02508201610067®Number=0000000000092546&sum=0 [09:02:04]OFD Sender: Processing packet 49928 [packets to send 21, broken 20] [09:02:04]ProducePacketName [09:02:04]name=ofd_packets/00049928 [09:02:04]OFD Sender: To server: pG, [09:02:04]CommunicateWithHost lk.salyk.kg:30040 [09:02:04]ConnectInit lk.salyk.kg [09:02:04]written 0, free lines is 4095 [09:02:04]Connected sock=10 [09:02:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 ED 56 04 01 A7 DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 0C 0A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 08 C3 00 00 35 04 06 00 BF 75 D2 3C 85 F1 2B 03 E0 BF 69 F0 D1 52 [09:02:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 DB 6C 47 00 66 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 08 C3 00 00 F4 03 04 00 79 B4 C2 66 B6 04 01 00 00 13 ED A3 5E 0F 65 D7 92 [09:02:04]CommunicateWithHost err = 0 [09:02:04]CheckOFDResponse [09:02:04]1017 (14) - 77093643461234 [09:02:04]1041 (16) - 0000000000871800 [09:02:04]1040 (4) - 49928 [09:02:04]1012 (4) - 19.08.2024 02:56 [09:02:04]1206 (1) - 0 [09:02:04]OFD Sender: Remove packet 49928 [09:02:04]ProducePacketName [09:02:04]name=ofd_packets/00049928 [09:02:04]NVStorageDeleteData [09:02:04]Write to MH i2c: 01 00 00 EB 0C F7 [09:02:04]Write i2c OK [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: 01 [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: 01 07 00 [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: 01 07 00 EB 0C 00 00 00 00 00 ED 0C F7 [09:02:04]RasterBufferAndPrint [09:02:04]line [09:02:04]line [09:02:04]line [09:02:04]line [09:02:04]line [09:02:04]written 0, free lines is 3316 [09:02:04]MH_Cut [09:02:04]Write to MH i2c: D1 01 00 F2 0C 01 D0 [09:02:04]Write i2c OK [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: D1 [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: D1 01 00 [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: D1 01 00 F2 0C 00 CF [09:02:04]Write to MH i2c: 01 00 00 F3 0C FF [09:02:04]Write i2c OK [09:02:04]MH_I2C_Read... [09:02:05]OFD Sender: No OFD packet to send [09:02:05]*** Cut start [09:02:05]*** Purtial cut [09:02:05]*** Stage 1: CUTSNS_PIN = 1 [09:02:05]Read from MH i2c: 01 [09:02:05]MH_I2C_Read... [09:02:05]*** Stop cut motor [09:02:05]*** Cut end [09:02:05]Read from MH i2c: 01 07 00 [09:02:05]MH_I2C_Read... [09:02:05]Read from MH i2c: 01 07 00 F3 0C 00 00 00 00 00 FF 0F 14 [09:02:05]process_action close_receipt done [09:02:05]requested_data is exist [09:02:05]produce_requested_data [09:02:05]requested_item fm.sn is exist - process it [09:02:05]wFMCommunicate request_size=4 [09:02:05]MH_SAM_APDU [09:02:05]CAPDU: 80 11 00 00 [09:02:05]Write to MH i2c: E2 08 00 F4 0C 80 11 00 00 00 00 00 00 7A [09:02:05]Write i2c OK [09:02:05]MH_I2C_Read... [09:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:05]Read from MH i2c: E2 [09:02:05]MH_I2C_Read... [09:02:05]Read from MH i2c: E2 17 00 [09:02:05]MH_I2C_Read... [09:02:05]Read from MH i2c: E2 17 00 F4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C5 [09:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:02:05]wFMCommunicate OK [09:02:05]requested_item fd.num is exist - process it [09:02:05]SAM_PROTO_GetFieldsCounters [09:02:05]wFMCommunicate request_size=4 [09:02:05]MH_SAM_APDU [09:02:05]CAPDU: 80 13 00 00 [09:02:05]Write to MH i2c: E2 08 00 F5 0C 80 13 00 00 00 00 00 00 7D [09:02:05]Write i2c OK [09:02:05]MH_I2C_Read... [09:02:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:05]Read from MH i2c: E2 [09:02:05]MH_I2C_Read... [09:02:05]Read from MH i2c: E2 62 00 [09:02:05]MH_I2C_Read... [09:02:05]Read from MH i2c: E2 62 00 F5 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 08 C3 00 00 0E 04 04 00 D3 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 9F [09:02:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 08 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:05]wFMCommunicate OK [09:02:05]SAM_PROTO_GetFieldsCounters done [09:02:05]requested_item shift.num is exist - process it [09:02:05]requested_item shift.opened is exist - process it [09:02:05]req_shift_opened [09:02:05]FM_GetShiftState [09:02:05]SAM_PROTO_GetShiftState [09:02:05]wFMCommunicate request_size=4 [09:02:05]MH_SAM_APDU [09:02:05]CAPDU: 80 13 01 00 [09:02:05]Write to MH i2c: E2 08 00 F6 0C 80 13 01 00 00 00 00 00 7F [09:02:05]Write i2c OK [09:02:05]MH_I2C_Read... [09:02:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:05]Read from MH i2c: E2 [09:02:05]MH_I2C_Read... [09:02:05]Read from MH i2c: E2 0E 00 [09:02:05]MH_I2C_Read... [09:02:05]Read from MH i2c: E2 0E 00 F6 0C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 39 [09:02:05]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:02:05]wFMCommunicate OK [09:02:05]SAM_PROTO_GetShiftState done [09:02:05]FM_GetShiftState done [09:02:05]req_shift_opened done [09:02:05]requested_item shift.open_date is exist - process it [09:02:05]req_shift_open_date [09:02:05]req_shift_open_date done [09:02:05]produce_requested_data done [09:02:05]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49928,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [09:02:05]process_action_free close_receipt [09:02:05]json_value_free [09:02:05]json_value_free done [09:02:05]process_json_proto returns [09:02:05]Send response to host [09:02:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49928,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [09:02:05]free response buf [09:02:05]execute_script done [09:02:05]execute_script returns [09:02:05]free content buf [09:02:05]Sock 7.Close socket [09:02:05]Sock 7.Thread stoped [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:29]accept exits with 9 [09:03:29]New connection [09:03:29]New thread 3067354468 created [09:03:29]Thread 3067211108 joined [09:03:29]Waiting for new connection... [09:03:29] Sock 9.Parse request [09:03:29]Sock 9.Check first char [09:03:29]Sock 9.First char is OK [09:03:29]request: POST /json_proto HTTP/1.0 [09:03:29]Method: POST [09:03:29]URL: /json_proto [09:03:29]Method is POST - this is cgi request [09:03:29]url: /json_proto [09:03:29]query_string will be loaded in cgi processing [09:03:29]execute_cgi json_proto POST (null) [09:03:29]execute_cgi path=json_proto method=POST [09:03:29]POST find Content-Length [09:03:29]Host: 172.17.46.196:8080 [09:03:29]Content-Length: 755 [09:03:29]Content-Type: application/json [09:03:29] [09:03:29]POST finish read [09:03:29]Found Content-Length = 755 [09:03:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30039392", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:29]execute_script... [09:03: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)11327579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30039392", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:29]POST & json_proto [09:03:29]process_json_proto [09:03:29]json parsed OK: [09:03:29]protocol is kg_v1.0 [09:03:29]action value=close_receipt [09:03:29]process_action close_receipt [09:03:29]cmd_close_receipt [09:03:29]MH_GetDate [09:03:29]Write to MH i2c: F0 00 00 F7 0C F2 [09:03:29]Write i2c OK [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: F0 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: F0 09 00 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: F0 09 00 F7 0C 00 63 0A C3 66 C4 85 C2 66 02 [09:03:29]GetLastDocTimeStamp 1724058124 [09:03:29]current date 1724058211 [09:03:29]FM_GetShiftState [09:03:29]SAM_PROTO_GetShiftState [09:03:29]wFMCommunicate request_size=4 [09:03:29]MH_SAM_APDU [09:03:29]CAPDU: 80 13 01 00 [09:03:29]Write to MH i2c: E2 08 00 F8 0C 80 13 01 00 00 00 00 00 81 [09:03:29]Write i2c OK [09:03:29]MH_I2C_Read... [09:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:29]Read from MH i2c: E2 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: E2 0E 00 [09:03:29]MH_I2C_Read... [09:03:29]Read from MH i2c: E2 0E 00 F8 0C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 3B [09:03:29]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:03:29]wFMCommunicate OK [09:03:29]SAM_PROTO_GetShiftState done [09:03:29]FM_GetShiftState done [09:03:29]opened in 1724026361 [09:03:29]opened+sec_in_day 1724112761 [09:03:29]quantity*price = 0 [09:03:29]sum+1 = 1 [09:03:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 36 19.08.2024 09:03 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30039392 ФМ: 0000000000871800 ФД: 49929 ФПД: 52071676531576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090331&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49929&fm=52071676531576&tin=02508201610067®Number=0000000000092546&sum=0 [09:03:31]StoreToDocumentArchive [09:03:31]shift 467 fd 49929 [09:03:31]save to /storage/0467/doc_00049929 [09:03:31]save last doc name /storage/0467/doc_00049929 to /storage/kkm_last_doc_name [09:03:31]save OK [09:03:31]Clear old archive folders... [09:03:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:31]tlvbuf is 01037C20 [09:03:31]SAM_PROTO_ClearQueue [09:03:31]wFMCommunicate request_size=4 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 09 00 00 [09:03:31]Write to MH i2c: E2 08 00 05 0D 80 09 00 00 00 00 00 00 84 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 03 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 03 00 05 0D 00 90 00 86 [09:03:31]RAPDU: 90 00 [09:03:31]wFMCommunicate OK [09:03:31]SAM_PROTO_ClearQueue done [09:03:31]KKMCreateOFDPacket [09:03:31]OFDProtocolAddRootSTLVToBuf [09:03:31]FM_MakeSignedData [09:03:31]FM_MakeSignedData [09:03:31]SAM_PROTO_SignData [09:03:31]wFMCommunicate request_size=4 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 0D 01 02 [09:03:31]Write to MH i2c: E2 08 00 06 0D 80 0D 01 02 00 00 00 00 8C [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 03 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 03 00 06 0D 00 90 00 87 [09:03:31]RAPDU: 90 00 [09:03:31]wFMCommunicate OK [09:03:31]wFMCommunicate request_size=255 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 63 0A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 09 C3 00 00 35 04 06 00 2F [09:03:31]Write to MH i2c: E2 02 01 07 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 63 0A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 09 C3 00 00 35 04 06 00 2F 00 00 B2 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 03 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 03 00 07 0D 00 90 00 88 [09:03:31]RAPDU: 90 00 [09:03:31]wFMCommunicate OK [09:03:31]wFMCommunicate request_size=10 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 0D 02 02 05 5B E1 C8 53 78 [09:03:31]Write to MH i2c: E2 0D 00 08 0D 80 0D 02 02 05 00 5B E1 C8 53 78 00 00 68 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 03 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 03 00 08 0D 00 90 00 89 [09:03:31]RAPDU: 90 00 [09:03:31]wFMCommunicate OK [09:03:31]wFMCommunicate request_size=4 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 0D 03 02 [09:03:31]Write to MH i2c: E2 08 00 09 0D 80 0D 03 02 00 00 00 00 91 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 0B 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 0B 00 09 0D 00 99 ED E1 21 E6 06 48 AA 90 00 F8 [09:03:31]RAPDU: 99 ED E1 21 E6 06 48 AA 90 00 [09:03:31]wFMCommunicate OK [09:03:31]SAM_PROTO_SignData done [09:03:31]FM_MakeSignedData done [09:03:31]CreateOFDProtocolMessage [09:03:31]wFMCommunicate request_size=4 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 11 00 00 [09:03:31]Write to MH i2c: E2 08 00 0A 0D 80 11 00 00 00 00 00 00 91 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 17 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 17 00 0A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DC [09:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:03:31]wFMCommunicate OK [09:03:31]CreateOFDProtocolMessage done [09:03:31]OFDSenderStorePacket 49929 [09:03:31]StoreOFDPacket docnum=49929 [09:03:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 BF 52 07 01 33 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 63 0A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 09 C3 00 00 35 04 06 00 2F 5B E1 C8 53 78 99 ED E1 21 E6 06 48 AA [09:03:31]CheckFolder [09:03:31]dirname=/storage/ofd_packets [09:03:31]CheckFolder done [09:03:31]ProducePacketName [09:03:31]name=ofd_packets/00049929 [09:03:31]NVStorageSaveData ofd_packets/00049929 [09:03:31]File name is /storage/ofd_packets/00049929 [09:03:31]Write 301 bytes [09:03:31]NVStorageSaveData done [09:03:31]OFDSenderStorePacket done [09:03:31]KKMCreateOFDPacket done [09:03:31]NVStorageSaveData kkm_last_timestamp [09:03:31]File name is /storage/kkm_last_timestamp [09:03:31]Write 4 bytes [09:03:31]NVStorageSaveData done [09:03:31]ExternCall_PrintAddStr [09:03:31]wPrintStart [09:03:31]Write to MH i2c: 01 00 00 0B 0D 18 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: 01 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: 01 07 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: 01 07 00 0B 0D 00 00 00 00 00 FF 0F 2D [09:03:31]RasterBufferAndPrint [09:03:31]line Счет N : (1)11327579 [09:03:31]line ИНН: 02508201610067 [09:03:31]line Контрольно-Кассовый Чек [09:03:31]line ПРОДАЖА [09:03:31]line ТРК (МРК, ГНК) : 22 [09:03:31]line Товар: 2710124130 [09:03:31]line Аи-92-К-4 [09:03:31]line 5.000 * 0.00 [09:03:31]line = 0.00 [09:03:31]line НДС 12% НСП 1% [09:03:31]line > о реализуемом товаре [09:03:31]line ИТОГО: 0.00 [09:03:31]line НСП 1% : 0.00 [09:03:31]line НДС 12% : 0.00 [09:03:31]line Наличными: 0.00 [09:03:31]line Безнал.: 0.00 [09:03:31]line Место: АЗС № 95 "Партнер Нефть" [09:03:31]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:03:31]line СНО: Общий режим [09:03:31]line Чек 36 19.08.2024 09:03 [09:03:31]line Смена: 467 ФФД: 1.0 [09:03:31]line ЗНМ: 0300000078 [09:03:31]line РНМ: 0000000000092546 [09:03:31]line Версия ККМ: 001 [09:03:31]line Талоны: ТК ГПНА Online [09:03:31]line 30039392 [09:03:31]line ФМ: 0000000000871800 [09:03:31]line ФД: 49929 [09:03:31]line ФПД: 52071676531576 [09:03:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090331&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49929&fm=52071676531576&tin=02508201610067®Number=0000000000092546&sum=0 [09:03:31]written 0, free lines is 4095 [09:03:31]OFD Sender: Processing packet 49929 [packets to send 21, broken 20] [09:03:31]ProducePacketName [09:03:31]name=ofd_packets/00049929 [09:03:31]OFD Sender: To server: pG, [09:03:31]CommunicateWithHost lk.salyk.kg:30040 [09:03:31]ConnectInit lk.salyk.kg [09:03:32]Write to MH i2c: 01 00 00 35 0D 42 [09:03:32]Write i2c OK [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: 01 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: 01 07 00 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: 01 07 00 35 0D 00 00 00 00 00 DE 0C 33 [09:03:32]RasterBufferAndPrint [09:03:32]line [09:03:32]line [09:03:32]line [09:03:32]line [09:03:32]line [09:03:32]written 0, free lines is 3300 [09:03:32]MH_Cut [09:03:32]Write to MH i2c: D1 01 00 3C 0D 01 1B [09:03:32]Write i2c OK [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: D1 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: D1 01 00 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: D1 01 00 3C 0D 00 1A [09:03:32]Write to MH i2c: 01 00 00 3D 0D 4A [09:03:32]Write i2c OK [09:03:32]MH_I2C_Read... [09:03:32]Connected sock=10 [09:03:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 BF 52 07 01 33 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 63 0A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 09 C3 00 00 35 04 06 00 2F 5B E1 C8 53 78 99 ED E1 21 E6 06 48 AA [09:03:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C9 C9 47 00 01 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 09 C3 00 00 F4 03 04 00 D1 B4 C2 66 B6 04 01 00 00 21 51 AA 31 84 1E B6 FA [09:03:32]CommunicateWithHost err = 0 [09:03:32]CheckOFDResponse [09:03:32]1017 (14) - 77093643461234 [09:03:32]1041 (16) - 0000000000871800 [09:03:32]1040 (4) - 49929 [09:03:32]1012 (4) - 19.08.2024 02:58 [09:03:32]1206 (1) - 0 [09:03:32]OFD Sender: Remove packet 49929 [09:03:32]ProducePacketName [09:03:32]name=ofd_packets/00049929 [09:03:32]NVStorageDeleteData [09:03:32]*** Cut start [09:03:32]*** Purtial cut [09:03:32]*** CUTSNS_PIN = 0 [09:03:32]OFD Sender: No OFD packet to send [09:03:32]*** Stage 1: CUTSNS_PIN = 1 [09:03:34]Read from MH i2c: 01 [09:03:34]MH_I2C_Read... [09:03:34]*** Stop cut motor [09:03:34]*** Cut end [09:03:34]Read from MH i2c: 01 07 00 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: 01 07 00 3D 0D 00 00 00 00 00 FF 0F 5F [09:03:34]process_action close_receipt done [09:03:34]requested_data is exist [09:03:34]produce_requested_data [09:03:34]requested_item fm.sn is exist - process it [09:03:34]wFMCommunicate request_size=4 [09:03:34]MH_SAM_APDU [09:03:34]CAPDU: 80 11 00 00 [09:03:34]Write to MH i2c: E2 08 00 3E 0D 80 11 00 00 00 00 00 00 C5 [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:34]Read from MH i2c: E2 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 17 00 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: E2 17 00 3E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 10 [09:03:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:03:34]wFMCommunicate OK [09:03:34]requested_item fd.num is exist - process it [09:03:34]SAM_PROTO_GetFieldsCounters [09:03:34]wFMCommunicate request_size=4 [09:03:34]MH_SAM_APDU [09:03:34]CAPDU: 80 13 00 00 [09:03:34]Write to MH i2c: E2 08 00 3F 0D 80 13 00 00 00 00 00 00 C8 [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:35]Read from MH i2c: E2 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: E2 62 00 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: E2 62 00 3F 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 09 C3 00 00 0E 04 04 00 D3 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 EE [09:03:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 09 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:35]wFMCommunicate OK [09:03:35]SAM_PROTO_GetFieldsCounters done [09:03:35]requested_item shift.num is exist - process it [09:03:35]requested_item shift.opened is exist - process it [09:03:35]req_shift_opened [09:03:35]FM_GetShiftState [09:03:35]SAM_PROTO_GetShiftState [09:03:35]wFMCommunicate request_size=4 [09:03:35]MH_SAM_APDU [09:03:35]CAPDU: 80 13 01 00 [09:03:35]Write to MH i2c: E2 08 00 40 0D 80 13 01 00 00 00 00 00 CA [09:03:35]Write i2c OK [09:03:35]MH_I2C_Read... [09:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:35]Read from MH i2c: E2 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: E2 0E 00 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: E2 0E 00 40 0D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 84 [09:03:35]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:03:35]wFMCommunicate OK [09:03:35]SAM_PROTO_GetShiftState done [09:03:35]FM_GetShiftState done [09:03:35]req_shift_opened done [09:03:35]requested_item shift.open_date is exist - process it [09:03:35]req_shift_open_date [09:03:35]req_shift_open_date done [09:03:35]produce_requested_data done [09:03:35]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49929,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [09:03:35]process_action_free close_receipt [09:03:35]json_value_free [09:03:35]json_value_free done [09:03:35]process_json_proto returns [09:03:35]Send response to host [09:03:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49929,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [09:03:35]free response buf [09:03:35]execute_script done [09:03:35]execute_script returns [09:03:35]free content buf [09:03:35]Sock 9.Close socket [09:03:35]Sock 9.Thread stoped [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:08]accept exits with 7 [09:06:08]New connection [09:06:08]New thread 3067211108 created [09:06:08]Thread 3067354468 joined [09:06:08]Waiting for new connection... [09:06:08] Sock 7.Parse request [09:06:08]Sock 7.Check first char [09:06:08]Sock 7.First char is OK [09:06:08]request: POST /json_proto HTTP/1.0 [09:06:08]Method: POST [09:06:08]URL: /json_proto [09:06:08]Method is POST - this is cgi request [09:06:08]url: /json_proto [09:06:08]query_string will be loaded in cgi processing [09:06:08]execute_cgi json_proto POST (null) [09:06:08]execute_cgi path=json_proto method=POST [09:06:08]POST find Content-Length [09:06:08]Host: 172.17.46.196:8080 [09:06:08]Content-Length: 623 [09:06:08]Content-Type: application/json [09:06:08] [09:06:08]POST finish read [09:06:08]Found Content-Length = 623 [09:06:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190091", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:08]execute_script... [09:06:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190091", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:08]POST & json_proto [09:06:08]process_json_proto [09:06:08]json parsed OK: [09:06:08]protocol is kg_v1.0 [09:06:08]action value=close_receipt [09:06:08]process_action close_receipt [09:06:08]cmd_close_receipt [09:06:08]MH_GetDate [09:06:08]Write to MH i2c: F0 00 00 41 0D 3D [09:06:08]Write i2c OK [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: F0 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: F0 09 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: F0 09 00 41 0D 00 02 0B C3 66 C4 85 C2 66 ED [09:06:08]GetLastDocTimeStamp 1724058211 [09:06:08]current date 1724058370 [09:06:08]FM_GetShiftState [09:06:08]SAM_PROTO_GetShiftState [09:06:08]wFMCommunicate request_size=4 [09:06:08]MH_SAM_APDU [09:06:08]CAPDU: 80 13 01 00 [09:06:08]Write to MH i2c: E2 08 00 42 0D 80 13 01 00 00 00 00 00 CC [09:06:08]Write i2c OK [09:06:08]MH_I2C_Read... [09:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:08]Read from MH i2c: E2 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 0E 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 0E 00 42 0D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 86 [09:06:08]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:06:08]wFMCommunicate OK [09:06:08]SAM_PROTO_GetShiftState done [09:06:08]FM_GetShiftState done [09:06:08]opened in 1724026361 [09:06:08]opened+sec_in_day 1724112761 [09:06:08]quantity*price = 14000 [09:06:08]sum+1 = 14001 [09:06:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 37 19.08.2024 09:06 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49930 ФПД: 221627523307410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090610&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49930&fm=221627523307410&tin=02508201610067®Number=0000000000092546&sum=14000 0 [09:06:09]StoreToDocumentArchive [09:06:09]shift 467 fd 49930 [09:06:09]save to /storage/0467/doc_00049930 [09:06:09]save last doc name /storage/0467/doc_00049930 to /storage/kkm_last_doc_name [09:06:09]save OK [09:06:09]Clear old archive folders... [09:06:09]ProcessDocumentItem done err = 0, tmpTLVsize=275 [09:06:09]tlvbuf is 00F71800 [09:06:09]SAM_PROTO_ClearQueue [09:06:09]wFMCommunicate request_size=4 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 09 00 00 [09:06:09]Write to MH i2c: E2 08 00 4F 0D 80 09 00 00 00 00 00 00 CE [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 4F 0D 00 90 00 D0 [09:06:09]RAPDU: 90 00 [09:06:09]wFMCommunicate OK [09:06:09]SAM_PROTO_ClearQueue done [09:06:09]KKMCreateOFDPacket [09:06:09]OFDProtocolAddRootSTLVToBuf [09:06:09]FM_MakeSignedData [09:06:09]FM_MakeSignedData [09:06:09]SAM_PROTO_SignData [09:06:09]wFMCommunicate request_size=4 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 0D 01 02 [09:06:09]Write to MH i2c: E2 08 00 50 0D 80 0D 01 02 00 00 00 00 D6 [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 50 0D 00 90 00 D1 [09:06:09]RAPDU: 90 00 [09:06:09]wFMCommunicate OK [09:06:09]wFMCommunicate request_size=255 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 02 0B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [09:06:09]Write to MH i2c: E2 02 01 51 0D 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 02 0B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 96 [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 51 0D 00 90 00 D2 [09:06:09]RAPDU: 90 00 [09:06:09]wFMCommunicate OK [09:06:09]wFMCommunicate request_size=34 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0A C3 00 00 35 04 06 00 C9 91 AD CC 97 92 [09:06:09]Write to MH i2c: E2 25 00 52 0D 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0A C3 00 00 35 04 06 00 C9 91 AD CC 97 92 00 00 5B [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 52 0D 00 90 00 D3 [09:06:09]RAPDU: 90 00 [09:06:09]wFMCommunicate OK [09:06:09]wFMCommunicate request_size=4 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 0D 03 02 [09:06:09]Write to MH i2c: E2 08 00 53 0D 80 0D 03 02 00 00 00 00 DB [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 0B 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 0B 00 53 0D 00 37 2B 76 DC E2 32 25 05 90 00 CE [09:06:09]RAPDU: 37 2B 76 DC E2 32 25 05 90 00 [09:06:09]wFMCommunicate OK [09:06:09]SAM_PROTO_SignData done [09:06:09]FM_MakeSignedData done [09:06:09]CreateOFDProtocolMessage [09:06:09]wFMCommunicate request_size=4 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 11 00 00 [09:06:09]Write to MH i2c: E2 08 00 54 0D 80 11 00 00 00 00 00 00 DB [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 17 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 17 00 54 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 26 [09:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:06:09]wFMCommunicate OK [09:06:09]CreateOFDProtocolMessage done [09:06:09]OFDSenderStorePacket 49930 [09:06:09]StoreOFDPacket docnum=49930 [09:06:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 4D 24 1F 01 00 68 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 02 0B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0A C3 00 00 35 04 06 00 C9 91 AD CC 97 92 37 2B 76 DC E2 32 25 05 [09:06:09]CheckFolder [09:06:09]dirname=/storage/ofd_packets [09:06:09]CheckFolder done [09:06:09]ProducePacketName [09:06:09]name=ofd_packets/00049930 [09:06:09]NVStorageSaveData ofd_packets/00049930 [09:06:09]File name is /storage/ofd_packets/00049930 [09:06:09]Write 325 bytes [09:06:09]NVStorageSaveData done [09:06:09]OFDSenderStorePacket done [09:06:09]KKMCreateOFDPacket done [09:06:09]NVStorageSaveData kkm_last_timestamp [09:06:09]File name is /storage/kkm_last_timestamp [09:06:09]Write 4 bytes [09:06:09]NVStorageSaveData done [09:06:09]ExternCall_PrintAddStr [09:06:09]wPrintStart [09:06:09]Write to MH i2c: 01 00 00 55 0D 62 [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: 01 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: 01 07 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: 01 07 00 55 0D 00 00 00 00 00 FF 0F 77 [09:06:09]RasterBufferAndPrint [09:06:09]line Счет N : (3)190091 [09:06:09]line ИНН: 02508201610067 [09:06:09]line Контрольно-Кассовый Чек [09:06:09]line ПРОДАЖА [09:06:09]line Товар: 48743587 [09:06:09]line Сигареты Winston XStyle Silver [09:06:09]line 1.000 * 140.00 [09:06:09]line = 140.00 [09:06:09]line НДС 12% НСП 1% [09:06:09]line > о реализуемом товаре [09:06:09]line ИТОГО: 140.00 [09:06:09]line НСП 1% : 1.24 [09:06:09]line НДС 12% : 14.87 [09:06:09]line Наличными: 140.00 [09:06:09]line Безнал.: 0.00 [09:06:09]line Место: АЗС № 95 "Партнер Нефть" [09:06:09]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:06:09]line СНО: Общий режим [09:06:09]line Чек 37 19.08.2024 09:06 [09:06:09]line Смена: 467 ФФД: 1.0 [09:06:09]line ЗНМ: 0300000078 [09:06:09]line РНМ: 0000000000092546 [09:06:09]line Версия ККМ: 001 [09:06:09]line ФМ: 0000000000871800 [09:06:09]line ФД: 49930 [09:06:09]line ФПД: 221627523307410 [09:06:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T090610&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49930&fm=221627523307410&tin=02508201610067®Number=0000000000092546&sum=14000 [09:06:10]OFD Sender: Processing packet 49930 [packets to send 21, broken 20] [09:06:10]ProducePacketName [09:06:10]name=ofd_packets/00049930 [09:06:10]OFD Sender: To server: pG, [09:06:10]CommunicateWithHost lk.salyk.kg:30040 [09:06:10]ConnectInit lk.salyk.kg [09:06:10]line 0 [09:06:10]written 0, free lines is 4095 [09:06:10]Write to MH i2c: 01 00 00 7E 0D 8B [09:06:10]Write i2c OK [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: 01 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: 01 07 00 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: 01 07 00 7E 0D 00 00 00 00 00 CB 0C 69 [09:06:10]RasterBufferAndPrint [09:06:10]line [09:06:10]line [09:06:10]line [09:06:10]line [09:06:10]line [09:06:10]written 0, free lines is 3281 [09:06:10]MH_Cut [09:06:10]Write to MH i2c: D1 01 00 85 0D 01 64 [09:06:10]Write i2c OK [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: D1 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: D1 01 00 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: D1 01 00 85 0D 00 63 [09:06:10]Write to MH i2c: 01 00 00 86 0D 93 [09:06:10]Write i2c OK [09:06:10]MH_I2C_Read... [09:06:11]*** Cut start [09:06:11]*** Purtial cut [09:06:11]*** Stage 1: CUTSNS_PIN = 1 [09:06:11]Read from MH i2c: 01 [09:06:11]MH_I2C_Read... [09:06:11]*** Stop cut motor [09:06:11]*** Cut end [09:06:11]Read from MH i2c: 01 07 00 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: 01 07 00 86 0D 00 00 00 00 00 FF 0F A8 [09:06:11]process_action close_receipt done [09:06:11]requested_data is exist [09:06:11]produce_requested_data [09:06:11]requested_item fm.sn is exist - process it [09:06:11]wFMCommunicate request_size=4 [09:06:11]MH_SAM_APDU [09:06:11]CAPDU: 80 11 00 00 [09:06:11]Write to MH i2c: E2 08 00 87 0D 80 11 00 00 00 00 00 00 0E [09:06:11]Write i2c OK [09:06:11]MH_I2C_Read... [09:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:11]Read from MH i2c: E2 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: E2 17 00 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: E2 17 00 87 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 59 [09:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:06:11]wFMCommunicate OK [09:06:11]requested_item fd.num is exist - process it [09:06:11]SAM_PROTO_GetFieldsCounters [09:06:11]wFMCommunicate request_size=4 [09:06:11]MH_SAM_APDU [09:06:11]CAPDU: 80 13 00 00 [09:06:11]Write to MH i2c: E2 08 00 88 0D 80 13 00 00 00 00 00 00 11 [09:06:11]Write i2c OK [09:06:11]MH_I2C_Read... [09:06:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:11]Read from MH i2c: E2 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: E2 62 00 [09:06:11]MH_I2C_Read... [09:06:12]Read from MH i2c: E2 62 00 88 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0A C3 00 00 0E 04 04 00 D3 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 3B [09:06:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0A C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:12]wFMCommunicate OK [09:06:12]SAM_PROTO_GetFieldsCounters done [09:06:12]requested_item shift.num is exist - process it [09:06:12]requested_item shift.opened is exist - process it [09:06:12]req_shift_opened [09:06:12]FM_GetShiftState [09:06:12]SAM_PROTO_GetShiftState [09:06:12]wFMCommunicate request_size=4 [09:06:12]MH_SAM_APDU [09:06:12]CAPDU: 80 13 01 00 [09:06:12]Write to MH i2c: E2 08 00 89 0D 80 13 01 00 00 00 00 00 13 [09:06:12]Write i2c OK [09:06:12]MH_I2C_Read... [09:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:12]Read from MH i2c: E2 [09:06:12]MH_I2C_Read... [09:06:12]Read from MH i2c: E2 0E 00 [09:06:12]MH_I2C_Read... [09:06:12]Read from MH i2c: E2 0E 00 89 0D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 CD [09:06:12]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:06:12]wFMCommunicate OK [09:06:12]SAM_PROTO_GetShiftState done [09:06:12]FM_GetShiftState done [09:06:12]req_shift_opened done [09:06:12]requested_item shift.open_date is exist - process it [09:06:12]req_shift_open_date [09:06:12]req_shift_open_date done [09:06:12]produce_requested_data done [09:06:12]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49930,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [09:06:12]process_action_free close_receipt [09:06:12]json_value_free [09:06:12]json_value_free done [09:06:12]process_json_proto returns [09:06:12]Send response to host [09:06:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49930,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [09:06:12]free response buf [09:06:12]execute_script done [09:06:12]execute_script returns [09:06:12]free content buf [09:06:12]Sock 7.Close socket [09:06:12]Sock 7.Thread stoped [09:06:13]Connected sock=9 [09:06:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 4D 24 1F 01 00 68 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 02 0B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0A C3 00 00 35 04 06 00 C9 91 AD CC 97 92 37 2B 76 DC E2 32 25 05 [09:06:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E7 FA 47 00 03 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0A C3 00 00 F4 03 04 00 74 B5 C2 66 B6 04 01 00 00 ED 05 39 61 5F BA FE 4F [09:06:15]CommunicateWithHost err = 0 [09:06:15]CheckOFDResponse [09:06:15]1017 (14) - 77093643461234 [09:06:15]1041 (16) - 0000000000871800 [09:06:15]1040 (4) - 49930 [09:06:15]1012 (4) - 19.08.2024 03:01 [09:06:15]1206 (1) - 0 [09:06:15]OFD Sender: Remove packet 49930 [09:06:15]ProducePacketName [09:06:15]name=ofd_packets/00049930 [09:06:15]NVStorageDeleteData [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:15]OFD Sender: No OFD packet to send [09:11:20]OFD Sender: No OFD packet to send [09:11:25]OFD Sender: No OFD packet to send [09:11:30]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:31]accept exits with 10 [09:18:31]New connection [09:18:31]New thread 3067354468 created [09:18:31]Thread 3067211108 joined [09:18:31]Waiting for new connection... [09:18:31] Sock 10.Parse request [09:18:31]Sock 10.Check first char [09:18:31]Sock 10.First char is OK [09:18:31]request: POST /json_proto HTTP/1.0 [09:18:31]Method: POST [09:18:31]URL: /json_proto [09:18:31]Method is POST - this is cgi request [09:18:31]url: /json_proto [09:18:31]query_string will be loaded in cgi processing [09:18:31]execute_cgi json_proto POST (null) [09:18:31]execute_cgi path=json_proto method=POST [09:18:31]POST find Content-Length [09:18:31]Host: 172.17.46.196:8080 [09:18:31]Content-Length: 753 [09:18:31]Content-Type: application/json [09:18:31] [09:18:31]POST finish read [09:18:31]Found Content-Length = 753 [09:18:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30138061", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:31]execute_script... [09:18:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30138061", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:31]POST & json_proto [09:18:31]process_json_proto [09:18:31]json parsed OK: [09:18:31]protocol is kg_v1.0 [09:18:31]action value=close_receipt [09:18:31]process_action close_receipt [09:18:31]cmd_close_receipt [09:18:31]MH_GetDate [09:18:31]Write to MH i2c: F0 00 00 8A 0D 86 [09:18:31]Write i2c OK [09:18:31]MH_I2C_Read... [09:18:31]Read from MH i2c: F0 [09:18:31]MH_I2C_Read... [09:18:31]Read from MH i2c: F0 09 00 [09:18:31]MH_I2C_Read... [09:18:31]Read from MH i2c: F0 09 00 8A 0D 00 E9 0D C3 66 C4 85 C2 66 1F [09:18:31]GetLastDocTimeStamp 1724058370 [09:18:31]current date 1724059113 [09:18:31]FM_GetShiftState [09:18:31]SAM_PROTO_GetShiftState [09:18:31]wFMCommunicate request_size=4 [09:18:31]MH_SAM_APDU [09:18:31]CAPDU: 80 13 01 00 [09:18:31]Write to MH i2c: E2 08 00 8B 0D 80 13 01 00 00 00 00 00 15 [09:18:31]Write i2c OK [09:18:31]MH_I2C_Read... [09:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:31]Read from MH i2c: E2 [09:18:31]MH_I2C_Read... [09:18:31]Read from MH i2c: E2 0E 00 [09:18:31]MH_I2C_Read... [09:18:31]Read from MH i2c: E2 0E 00 8B 0D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 CF [09:18:31]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:18:31]wFMCommunicate OK [09:18:31]SAM_PROTO_GetShiftState done [09:18:31]FM_GetShiftState done [09:18:31]opened in 1724026361 [09:18:31]opened+sec_in_day 1724112761 [09:18:31]quantity*price = 0 [09:18:31]sum+1 = 1 [09:18:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 38 19.08.2024 09:18 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30138061 ФМ: 0000000000871800 ФД: 49931 ФПД: 124546126184105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T091833&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49931&fm=124546126184105&tin=02508201610067®Number=0000000000092546&sum=0 [09:18:32]StoreToDocumentArchive [09:18:32]shift 467 fd 49931 [09:18:32]save to /storage/0467/doc_00049931 [09:18:32]save last doc name /storage/0467/doc_00049931 to /storage/kkm_last_doc_name [09:18:32]save OK [09:18:32]Clear old archive folders... [09:18:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:18:32]tlvbuf is 0104A2F0 [09:18:32]SAM_PROTO_ClearQueue [09:18:32]wFMCommunicate request_size=4 [09:18:32]MH_SAM_APDU [09:18:32]CAPDU: 80 09 00 00 [09:18:32]Write to MH i2c: E2 08 00 98 0D 80 09 00 00 00 00 00 00 17 [09:18:32]Write i2c OK [09:18:32]MH_I2C_Read... [09:18:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:32]Read from MH i2c: E2 [09:18:32]MH_I2C_Read... [09:18:32]Read from MH i2c: E2 03 00 [09:18:32]MH_I2C_Read... [09:18:32]Read from MH i2c: E2 03 00 98 0D 00 90 00 19 [09:18:32]RAPDU: 90 00 [09:18:32]wFMCommunicate OK [09:18:32]SAM_PROTO_ClearQueue done [09:18:32]KKMCreateOFDPacket [09:18:32]OFDProtocolAddRootSTLVToBuf [09:18:32]FM_MakeSignedData [09:18:32]FM_MakeSignedData [09:18:32]SAM_PROTO_SignData [09:18:32]wFMCommunicate request_size=4 [09:18:32]MH_SAM_APDU [09:18:32]CAPDU: 80 0D 01 02 [09:18:32]Write to MH i2c: E2 08 00 99 0D 80 0D 01 02 00 00 00 00 1F [09:18:32]Write i2c OK [09:18:32]MH_I2C_Read... [09:18:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:32]Read from MH i2c: E2 [09:18:32]MH_I2C_Read... [09:18:32]Read from MH i2c: E2 03 00 [09:18:32]MH_I2C_Read... [09:18:32]Read from MH i2c: E2 03 00 99 0D 00 90 00 1A [09:18:32]RAPDU: 90 00 [09:18:32]wFMCommunicate OK [09:18:32]wFMCommunicate request_size=255 [09:18:32]MH_SAM_APDU [09:18:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E9 0D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0B C3 00 00 35 04 06 00 71 46 27 9B [09:18:32]Write to MH i2c: E2 02 01 9A 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E9 0D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0B C3 00 00 35 04 06 00 71 46 27 9B 00 00 7A [09:18:32]Write i2c OK [09:18:32]MH_I2C_Read... [09:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:33]Read from MH i2c: E2 [09:18:33]MH_I2C_Read... [09:18:33]Read from MH i2c: E2 03 00 [09:18:33]MH_I2C_Read... [09:18:33]Read from MH i2c: E2 03 00 9A 0D 00 90 00 1B [09:18:33]RAPDU: 90 00 [09:18:33]wFMCommunicate OK [09:18:33]wFMCommunicate request_size=7 [09:18:33]MH_SAM_APDU [09:18:33]CAPDU: 80 0D 02 02 02 FE A9 [09:18:33]Write to MH i2c: E2 0A 00 9B 0D 80 0D 02 02 02 00 FE A9 00 00 CD [09:18:33]Write i2c OK [09:18:33]MH_I2C_Read... [09:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:33]Read from MH i2c: E2 [09:18:33]MH_I2C_Read... [09:18:33]Read from MH i2c: E2 03 00 [09:18:33]MH_I2C_Read... [09:18:33]Read from MH i2c: E2 03 00 9B 0D 00 90 00 1C [09:18:33]RAPDU: 90 00 [09:18:33]wFMCommunicate OK [09:18:33]wFMCommunicate request_size=4 [09:18:33]MH_SAM_APDU [09:18:33]CAPDU: 80 0D 03 02 [09:18:33]Write to MH i2c: E2 08 00 9C 0D 80 0D 03 02 00 00 00 00 24 [09:18:33]Write i2c OK [09:18:33]MH_I2C_Read... [09:18:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:33]Read from MH i2c: E2 [09:18:33]MH_I2C_Read... [09:18:33]Read from MH i2c: E2 0B 00 [09:18:33]MH_I2C_Read... [09:18:33]Read from MH i2c: E2 0B 00 9C 0D 00 A5 41 0D DE 91 D6 F4 38 90 00 89 [09:18:33]RAPDU: A5 41 0D DE 91 D6 F4 38 90 00 [09:18:33]wFMCommunicate OK [09:18:33]SAM_PROTO_SignData done [09:18:33]FM_MakeSignedData done [09:18:33]CreateOFDProtocolMessage [09:18:33]wFMCommunicate request_size=4 [09:18:33]MH_SAM_APDU [09:18:33]CAPDU: 80 11 00 00 [09:18:33]Write to MH i2c: E2 08 00 9D 0D 80 11 00 00 00 00 00 00 24 [09:18:33]Write i2c OK [09:18:33]MH_I2C_Read... [09:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:33]Read from MH i2c: E2 [09:18:33]MH_I2C_Read... [09:18:33]Read from MH i2c: E2 17 00 [09:18:33]MH_I2C_Read... [09:18:33]Read from MH i2c: E2 17 00 9D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6F [09:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:18:33]wFMCommunicate OK [09:18:33]CreateOFDProtocolMessage done [09:18:33]OFDSenderStorePacket 49931 [09:18:33]StoreOFDPacket docnum=49931 [09:18:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 53 3C 04 01 2E DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E9 0D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0B C3 00 00 35 04 06 00 71 46 27 9B FE A9 A5 41 0D DE 91 D6 F4 38 [09:18:33]CheckFolder [09:18:33]dirname=/storage/ofd_packets [09:18:33]CheckFolder done [09:18:33]ProducePacketName [09:18:33]name=ofd_packets/00049931 [09:18:33]NVStorageSaveData ofd_packets/00049931 [09:18:33]File name is /storage/ofd_packets/00049931 [09:18:33]Write 298 bytes [09:18:33]NVStorageSaveData done [09:18:33]OFDSenderStorePacket done [09:18:33]KKMCreateOFDPacket done [09:18:33]NVStorageSaveData kkm_last_timestamp [09:18:33]File name is /storage/kkm_last_timestamp [09:18:33]Write 4 bytes [09:18:33]NVStorageSaveData done [09:18:33]ExternCall_PrintAddStr [09:18:33]wPrintStart [09:18:33]Write to MH i2c: 01 00 00 9E 0D AB [09:18:33]Write i2c OK [09:18:33]MH_I2C_Read... [09:18:33]Read from MH i2c: 01 [09:18:33]MH_I2C_Read... [09:18:33]Read from MH i2c: 01 07 00 [09:18:33]MH_I2C_Read... [09:18:33]Read from MH i2c: 01 07 00 9E 0D 00 00 00 00 00 FF 0F C0 [09:18:33]RasterBufferAndPrint [09:18:33]line Счет N : (1)11327593 [09:18:33]line ИНН: 02508201610067 [09:18:33]line Контрольно-Кассовый Чек [09:18:33]line ПРОДАЖА [09:18:33]line ТРК (МРК, ГНК) : 61 [09:18:33]line Товар: 2710194210 [09:18:33]line ДТ-К-5 [09:18:33]line 30.000 * 0.00 [09:18:33]line = 0.00 [09:18:33]line НДС 12% НСП 1% [09:18:33]line > о реализуемом товаре [09:18:33]line ИТОГО: 0.00 [09:18:33]line НСП 1% : 0.00 [09:18:33]line НДС 12% : 0.00 [09:18:33]line Наличными: 0.00 [09:18:33]line Безнал.: 0.00 [09:18:33]line Место: АЗС № 95 "Партнер Нефть" [09:18:33]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:18:33]line СНО: Общий режим [09:18:33]line Чек 38 19.08.2024 09:18 [09:18:33]line Смена: 467 ФФД: 1.0 [09:18:33]line ЗНМ: 0300000078 [09:18:33]line РНМ: 0000000000092546 [09:18:33]line Версия ККМ: 001 [09:18:33]line Талоны: ТК ГПНА Online [09:18:33]line 30138061 [09:18:33]line ФМ: 0000000000871800 [09:18:33]line ФД: 49931 [09:18:33]line ФПД: 124546126184105 [09:18:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T091833&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49931&fm=124546126184105&tin=02508201610067®Number=0000000000092546&sum=0 [09:18:33]OFD Sender: Processing packet 49931 [packets to send 21, broken 20] [09:18:33]ProducePacketName [09:18:33]name=ofd_packets/00049931 [09:18:33]OFD Sender: To server: pG, [09:18:33]CommunicateWithHost lk.salyk.kg:30040 [09:18:33]ConnectInit lk.salyk.kg [09:18:33]written 0, free lines is 4095 [09:18:33]Connected sock=9 [09:18:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 53 3C 04 01 2E DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E9 0D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0B C3 00 00 35 04 06 00 71 46 27 9B FE A9 A5 41 0D DE 91 D6 F4 38 [09:18:34]Write to MH i2c: 01 00 00 C8 0D D5 [09:18:34]Write i2c OK [09:18:34]MH_I2C_Read... [09:18:34]Read from MH i2c: 01 [09:18:34]MH_I2C_Read... [09:18:34]Read from MH i2c: 01 07 00 [09:18:34]MH_I2C_Read... [09:18:34]Read from MH i2c: 01 07 00 C8 0D 00 00 00 00 00 D5 0C BD [09:18:34]RasterBufferAndPrint [09:18:34]line [09:18:34]line [09:18:34]line [09:18:34]line [09:18:34]line [09:18:34]written 0, free lines is 3291 [09:18:34]MH_Cut [09:18:34]Write to MH i2c: D1 01 00 CF 0D 01 AE [09:18:34]Write i2c OK [09:18:34]MH_I2C_Read... [09:18:34]Read from MH i2c: D1 [09:18:34]MH_I2C_Read... [09:18:34]Read from MH i2c: D1 01 00 [09:18:34]MH_I2C_Read... [09:18:34]Read from MH i2c: D1 01 00 CF 0D 00 AD [09:18:34]Write to MH i2c: 01 00 00 D0 0D DD [09:18:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 9B 49 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 31 38 30 30 10 04 04 00 0B C3 00 00 F4 03 04 00 57 B8 C2 66 B6 04 01 00 00 3F EF 1C 5A E7 A4 8B 62 [09:18:34]CommunicateWithHost err = 0 [09:18:34]CheckOFDResponse [09:18:34]1017 (14) - 77093643461234 [09:18:34]1041 (16) - 0000000000871800 [09:18:34]1040 (4) - 49931 [09:18:34]1012 (4) - 19.08.2024 03:13 [09:18:34]1206 (1) - 0 [09:18:34]OFD Sender: Remove packet 49931 [09:18:34]ProducePacketName [09:18:34]name=ofd_packets/00049931 [09:18:34]NVStorageDeleteData [09:18:34]Write i2c OK [09:18:34]MH_I2C_Read... [09:18:34]OFD Sender: No OFD packet to send [09:18:34]*** Cut start [09:18:34]*** Purtial cut [09:18:34]*** CUTSNS_PIN = 0 [09:18:35]*** Stage 1: CUTSNS_PIN = 1 [09:18:36]Read from MH i2c: 01 [09:18:36]MH_I2C_Read... [09:18:36]*** Stop cut motor [09:18:36]*** Cut end [09:18:36]Read from MH i2c: 01 07 00 [09:18:36]MH_I2C_Read... [09:18:36]Read from MH i2c: 01 07 00 D0 0D 00 00 00 00 00 FF 0F F2 [09:18:36]process_action close_receipt done [09:18:36]requested_data is exist [09:18:36]produce_requested_data [09:18:36]requested_item fm.sn is exist - process it [09:18:36]wFMCommunicate request_size=4 [09:18:36]MH_SAM_APDU [09:18:36]CAPDU: 80 11 00 00 [09:18:36]Write to MH i2c: E2 08 00 D1 0D 80 11 00 00 00 00 00 00 58 [09:18:36]Write i2c OK [09:18:36]MH_I2C_Read... [09:18:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:36]Read from MH i2c: E2 [09:18:36]MH_I2C_Read... [09:18:36]Read from MH i2c: E2 17 00 [09:18:36]MH_I2C_Read... [09:18:36]Read from MH i2c: E2 17 00 D1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A3 [09:18:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:18:36]wFMCommunicate OK [09:18:36]requested_item fd.num is exist - process it [09:18:36]SAM_PROTO_GetFieldsCounters [09:18:36]wFMCommunicate request_size=4 [09:18:36]MH_SAM_APDU [09:18:36]CAPDU: 80 13 00 00 [09:18:36]Write to MH i2c: E2 08 00 D2 0D 80 13 00 00 00 00 00 00 5B [09:18:36]Write i2c OK [09:18:36]MH_I2C_Read... [09:18:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:37]Read from MH i2c: E2 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: E2 62 00 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: E2 62 00 D2 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0B C3 00 00 0E 04 04 00 D3 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 89 [09:18:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0B C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:37]wFMCommunicate OK [09:18:37]SAM_PROTO_GetFieldsCounters done [09:18:37]requested_item shift.num is exist - process it [09:18:37]requested_item shift.opened is exist - process it [09:18:37]req_shift_opened [09:18:37]FM_GetShiftState [09:18:37]SAM_PROTO_GetShiftState [09:18:37]wFMCommunicate request_size=4 [09:18:37]MH_SAM_APDU [09:18:37]CAPDU: 80 13 01 00 [09:18:37]Write to MH i2c: E2 08 00 D3 0D 80 13 01 00 00 00 00 00 5D [09:18:37]Write i2c OK [09:18:37]MH_I2C_Read... [09:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:37]Read from MH i2c: E2 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: E2 0E 00 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: E2 0E 00 D3 0D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 17 [09:18:37]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:18:37]wFMCommunicate OK [09:18:37]SAM_PROTO_GetShiftState done [09:18:37]FM_GetShiftState done [09:18:37]req_shift_opened done [09:18:37]requested_item shift.open_date is exist - process it [09:18:37]req_shift_open_date [09:18:37]req_shift_open_date done [09:18:37]produce_requested_data done [09:18:37]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49931,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [09:18:37]process_action_free close_receipt [09:18:37]json_value_free [09:18:37]json_value_free done [09:18:37]process_json_proto returns [09:18:37]Send response to host [09:18:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49931,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [09:18:37]free response buf [09:18:37]execute_script done [09:18:37]execute_script returns [09:18:37]free content buf [09:18:37]Sock 10.Close socket [09:18:37]Sock 10.Thread stoped [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:12]accept exits with 7 [09:23:12]New connection [09:23:12]New thread 3067211108 created [09:23:12]Thread 3067354468 joined [09:23:12]Waiting for new connection... [09:23:12] Sock 7.Parse request [09:23:12]Sock 7.Check first char [09:23:12]Sock 7.First char is OK [09:23:12]request: POST /json_proto HTTP/1.0 [09:23:12]Method: POST [09:23:12]URL: /json_proto [09:23:12]Method is POST - this is cgi request [09:23:12]url: /json_proto [09:23:12]query_string will be loaded in cgi processing [09:23:12]execute_cgi json_proto POST (null) [09:23:12]execute_cgi path=json_proto method=POST [09:23:12]POST find Content-Length [09:23:12]Host: 172.17.46.196:8080 [09:23:12]Content-Length: 618 [09:23:12]Content-Type: application/json [09:23:12] [09:23:12]POST finish read [09:23:12]Found Content-Length = 618 [09:23:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190092", "tax_sys" : 0, "items" : [ { "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:12]execute_script... [09:23:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190092", "tax_sys" : 0, "items" : [ { "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:12]POST & json_proto [09:23:12]process_json_proto [09:23:12]json parsed OK: [09:23:12]protocol is kg_v1.0 [09:23:12]action value=close_receipt [09:23:12]process_action close_receipt [09:23:12]cmd_close_receipt [09:23:12]MH_GetDate [09:23:12]Write to MH i2c: F0 00 00 D4 0D D0 [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: F0 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: F0 09 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: F0 09 00 D4 0D 00 02 0F C3 66 C4 85 C2 66 84 [09:23:12]GetLastDocTimeStamp 1724059113 [09:23:12]current date 1724059394 [09:23:12]FM_GetShiftState [09:23:12]SAM_PROTO_GetShiftState [09:23:12]wFMCommunicate request_size=4 [09:23:12]MH_SAM_APDU [09:23:12]CAPDU: 80 13 01 00 [09:23:12]Write to MH i2c: E2 08 00 D5 0D 80 13 01 00 00 00 00 00 5F [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:12]Read from MH i2c: E2 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 0E 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 0E 00 D5 0D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 19 [09:23:12]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:23:12]wFMCommunicate OK [09:23:12]SAM_PROTO_GetShiftState done [09:23:12]FM_GetShiftState done [09:23:12]opened in 1724026361 [09:23:12]opened+sec_in_day 1724112761 [09:23:12]quantity*price = 15500 [09:23:12]sum+1 = 15501 [09:23:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 39 19.08.2024 09:23 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49932 ФПД: 153854860378432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T092314&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49932&fm=153854860378432&tin=02508201610067®Number=0000000000092546&sum=15500 0 [09:23:13]StoreToDocumentArchive [09:23:13]shift 467 fd 49932 [09:23:13]save to /storage/0467/doc_00049932 [09:23:13]save last doc name /storage/0467/doc_00049932 to /storage/kkm_last_doc_name [09:23:13]save OK [09:23:13]Clear old archive folders... [09:23:13]ProcessDocumentItem done err = 0, tmpTLVsize=270 [09:23:13]tlvbuf is B6FBAE40 [09:23:13]SAM_PROTO_ClearQueue [09:23:13]wFMCommunicate request_size=4 [09:23:13]MH_SAM_APDU [09:23:13]CAPDU: 80 09 00 00 [09:23:13]Write to MH i2c: E2 08 00 E2 0D 80 09 00 00 00 00 00 00 61 [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:13]Read from MH i2c: E2 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 03 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 03 00 E2 0D 00 90 00 63 [09:23:13]RAPDU: 90 00 [09:23:13]wFMCommunicate OK [09:23:13]SAM_PROTO_ClearQueue done [09:23:13]KKMCreateOFDPacket [09:23:13]OFDProtocolAddRootSTLVToBuf [09:23:13]FM_MakeSignedData [09:23:13]FM_MakeSignedData [09:23:13]SAM_PROTO_SignData [09:23:13]wFMCommunicate request_size=4 [09:23:13]MH_SAM_APDU [09:23:13]CAPDU: 80 0D 01 02 [09:23:13]Write to MH i2c: E2 08 00 E3 0D 80 0D 01 02 00 00 00 00 69 [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:13]Read from MH i2c: E2 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 03 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 03 00 E3 0D 00 90 00 64 [09:23:13]RAPDU: 90 00 [09:23:13]wFMCommunicate OK [09:23:13]wFMCommunicate request_size=255 [09:23:13]MH_SAM_APDU [09:23:13]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 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 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 02 0F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [09:23:13]Write to MH i2c: E2 02 01 E4 0D 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 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 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 02 0F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 04 [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:13]Read from MH i2c: E2 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 03 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 03 00 E4 0D 00 90 00 65 [09:23:13]RAPDU: 90 00 [09:23:13]wFMCommunicate OK [09:23:13]wFMCommunicate request_size=29 [09:23:13]MH_SAM_APDU [09:23:13]CAPDU: 80 0D 02 02 18 38 37 31 38 30 30 10 04 04 00 0C C3 00 00 35 04 06 00 8B EE 20 4C C1 40 [09:23:13]Write to MH i2c: E2 20 00 E5 0D 80 0D 02 02 18 00 38 37 31 38 30 30 10 04 04 00 0C C3 00 00 35 04 06 00 8B EE 20 4C C1 40 00 00 E0 [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:13]Read from MH i2c: E2 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 03 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 03 00 E5 0D 00 90 00 66 [09:23:13]RAPDU: 90 00 [09:23:13]wFMCommunicate OK [09:23:13]wFMCommunicate request_size=4 [09:23:13]MH_SAM_APDU [09:23:13]CAPDU: 80 0D 03 02 [09:23:13]Write to MH i2c: E2 08 00 E6 0D 80 0D 03 02 00 00 00 00 6E [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:13]Read from MH i2c: E2 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 0B 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 0B 00 E6 0D 00 A8 36 8F 95 1B 7E 3E 8B 90 00 D3 [09:23:13]RAPDU: A8 36 8F 95 1B 7E 3E 8B 90 00 [09:23:13]wFMCommunicate OK [09:23:13]SAM_PROTO_SignData done [09:23:13]FM_MakeSignedData done [09:23:13]CreateOFDProtocolMessage [09:23:13]wFMCommunicate request_size=4 [09:23:13]MH_SAM_APDU [09:23:13]CAPDU: 80 11 00 00 [09:23:13]Write to MH i2c: E2 08 00 E7 0D 80 11 00 00 00 00 00 00 6E [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:13]Read from MH i2c: E2 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 17 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 17 00 E7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B9 [09:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:23:13]wFMCommunicate OK [09:23:13]CreateOFDProtocolMessage done [09:23:13]OFDSenderStorePacket 49932 [09:23:13]StoreOFDPacket docnum=49932 [09:23:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 22 01 00 00 20 FE 1A 01 6A 2E 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 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 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 02 0F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0C C3 00 00 35 04 06 00 8B EE 20 4C C1 40 A8 36 8F 95 1B 7E 3E 8B [09:23:13]CheckFolder [09:23:13]dirname=/storage/ofd_packets [09:23:13]CheckFolder done [09:23:13]ProducePacketName [09:23:13]name=ofd_packets/00049932 [09:23:13]NVStorageSaveData ofd_packets/00049932 [09:23:13]File name is /storage/ofd_packets/00049932 [09:23:13]Write 320 bytes [09:23:13]NVStorageSaveData done [09:23:13]OFDSenderStorePacket done [09:23:13]KKMCreateOFDPacket done [09:23:13]NVStorageSaveData kkm_last_timestamp [09:23:13]File name is /storage/kkm_last_timestamp [09:23:13]Write 4 bytes [09:23:13]NVStorageSaveData done [09:23:13]ExternCall_PrintAddStr [09:23:13]wPrintStart [09:23:13]Write to MH i2c: 01 00 00 E8 0D F5 [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: 01 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: 01 07 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: 01 07 00 E8 0D 00 00 00 00 00 FF 0F 0A [09:23:13]RasterBufferAndPrint [09:23:13]line Счет N : (3)190092 [09:23:13]line ИНН: 02508201610067 [09:23:13]line Контрольно-Кассовый Чек [09:23:13]line ПРОДАЖА [09:23:13]line Товар: 48746526 [09:23:13]line Сигареты Mevius Wind Blue [09:23:13]line 1.000 * 155.00 [09:23:13]line = 155.00 [09:23:13]line НДС 12% НСП 1% [09:23:13]line > о реализуемом товаре [09:23:13]line ИТОГО: 155.00 [09:23:13]line НСП 1% : 1.37 [09:23:13]line НДС 12% : 16.46 [09:23:13]line Наличными: 155.00 [09:23:13]line Безнал.: 0.00 [09:23:13]line Место: АЗС № 95 "Партнер Нефть" [09:23:13]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:23:13]line СНО: Общий режим [09:23:13]line Чек 39 19.08.2024 09:23 [09:23:13]line Смена: 467 ФФД: 1.0 [09:23:13]line ЗНМ: 0300000078 [09:23:13]line РНМ: 0000000000092546 [09:23:13]line Версия ККМ: 001 [09:23:13]line ФМ: 0000000000871800 [09:23:13]line ФД: 49932 [09:23:13]line ФПД: 153854860378432 [09:23:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T092314&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49932&fm=153854860378432&tin=02508201610067®Number=0000000000092546&sum=15500 [09:23:14]line 0 [09:23:14]OFD Sender: Processing packet 49932 [packets to send 21, broken 20] [09:23:14]ProducePacketName [09:23:14]name=ofd_packets/00049932 [09:23:14]OFD Sender: To server: pG, [09:23:14]CommunicateWithHost lk.salyk.kg:30040 [09:23:14]ConnectInit lk.salyk.kg [09:23:14]written 0, free lines is 4095 [09:23:14]Connected sock=10 [09:23:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 22 01 00 00 20 FE 1A 01 6A 2E 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 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 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 02 0F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0C C3 00 00 35 04 06 00 8B EE 20 4C C1 40 A8 36 8F 95 1B 7E 3E 8B [09:23:14]Write to MH i2c: 01 00 00 10 0E 1E [09:23:14]Write i2c OK [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: 01 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: 01 07 00 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: 01 07 00 10 0E 00 00 00 00 00 FA 0C 2B [09:23:14]RasterBufferAndPrint [09:23:14]line [09:23:14]line [09:23:14]line [09:23:14]line [09:23:14]line [09:23:14]written 0, free lines is 3328 [09:23:14]MH_Cut [09:23:14]Write to MH i2c: D1 01 00 17 0E 01 F7 [09:23:14]Write i2c OK [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: D1 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: D1 01 00 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: D1 01 00 17 0E 00 F6 [09:23:14]Write to MH i2c: 01 00 00 18 0E 26 [09:23:14]Write i2c OK [09:23:14]MH_I2C_Read... [09:23:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 2C 0D 47 00 A5 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0C C3 00 00 F4 03 04 00 6F B9 C2 66 B6 04 01 00 00 A7 17 98 2E 21 78 21 F7 [09:23:14]CommunicateWithHost err = 0 [09:23:14]CheckOFDResponse [09:23:14]1017 (14) - 77093643461234 [09:23:14]1041 (16) - 0000000000871800 [09:23:14]1040 (4) - 49932 [09:23:14]1012 (4) - 19.08.2024 03:18 [09:23:14]1206 (1) - 0 [09:23:14]OFD Sender: Remove packet 49932 [09:23:14]ProducePacketName [09:23:14]name=ofd_packets/00049932 [09:23:14]NVStorageDeleteData [09:23:15]OFD Sender: No OFD packet to send [09:23:15]*** Cut start [09:23:15]*** Purtial cut [09:23:15]*** Stage 1: CUTSNS_PIN = 1 [09:23:15]Read from MH i2c: 01 [09:23:15]MH_I2C_Read... [09:23:15]*** Stop cut motor [09:23:15]*** Cut end [09:23:15]Read from MH i2c: 01 07 00 [09:23:15]MH_I2C_Read... [09:23:15]Read from MH i2c: 01 07 00 18 0E 00 00 00 00 00 FF 0F 3B [09:23:15]process_action close_receipt done [09:23:15]requested_data is exist [09:23:15]produce_requested_data [09:23:15]requested_item fm.sn is exist - process it [09:23:15]wFMCommunicate request_size=4 [09:23:15]MH_SAM_APDU [09:23:15]CAPDU: 80 11 00 00 [09:23:15]Write to MH i2c: E2 08 00 19 0E 80 11 00 00 00 00 00 00 A1 [09:23:15]Write i2c OK [09:23:15]MH_I2C_Read... [09:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:15]Read from MH i2c: E2 [09:23:15]MH_I2C_Read... [09:23:15]Read from MH i2c: E2 17 00 [09:23:15]MH_I2C_Read... [09:23:15]Read from MH i2c: E2 17 00 19 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EC [09:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:23:15]wFMCommunicate OK [09:23:15]requested_item fd.num is exist - process it [09:23:15]SAM_PROTO_GetFieldsCounters [09:23:15]wFMCommunicate request_size=4 [09:23:15]MH_SAM_APDU [09:23:15]CAPDU: 80 13 00 00 [09:23:15]Write to MH i2c: E2 08 00 1A 0E 80 13 00 00 00 00 00 00 A4 [09:23:15]Write i2c OK [09:23:15]MH_I2C_Read... [09:23:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:15]Read from MH i2c: E2 [09:23:15]MH_I2C_Read... [09:23:15]Read from MH i2c: E2 62 00 [09:23:15]MH_I2C_Read... [09:23:15]Read from MH i2c: E2 62 00 1A 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0C C3 00 00 0E 04 04 00 D3 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 D6 [09:23:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0C C3 00 00 0E 04 04 00 D3 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 [09:23:15]wFMCommunicate OK [09:23:15]SAM_PROTO_GetFieldsCounters done [09:23:15]requested_item shift.num is exist - process it [09:23:15]requested_item shift.opened is exist - process it [09:23:15]req_shift_opened [09:23:15]FM_GetShiftState [09:23:15]SAM_PROTO_GetShiftState [09:23:15]wFMCommunicate request_size=4 [09:23:15]MH_SAM_APDU [09:23:15]CAPDU: 80 13 01 00 [09:23:15]Write to MH i2c: E2 08 00 1B 0E 80 13 01 00 00 00 00 00 A6 [09:23:15]Write i2c OK [09:23:15]MH_I2C_Read... [09:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:15]Read from MH i2c: E2 [09:23:15]MH_I2C_Read... [09:23:15]Read from MH i2c: E2 0E 00 [09:23:15]MH_I2C_Read... [09:23:15]Read from MH i2c: E2 0E 00 1B 0E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 60 [09:23:15]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:23:15]wFMCommunicate OK [09:23:15]SAM_PROTO_GetShiftState done [09:23:15]FM_GetShiftState done [09:23:15]req_shift_opened done [09:23:15]requested_item shift.open_date is exist - process it [09:23:15]req_shift_open_date [09:23:15]req_shift_open_date done [09:23:15]produce_requested_data done [09:23:15]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49932,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [09:23:15]process_action_free close_receipt [09:23:15]json_value_free [09:23:15]json_value_free done [09:23:15]process_json_proto returns [09:23:15]Send response to host [09:23:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49932,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [09:23:15]free response buf [09:23:15]execute_script done [09:23:15]execute_script returns [09:23:15]free content buf [09:23:15]Sock 7.Close socket [09:23:15]Sock 7.Thread stoped [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]accept exits with 9 [09:23:50]New connection [09:23:50]New thread 3067354468 created [09:23:50]Thread 3067211108 joined [09:23:50]Waiting for new connection... [09:23:50] Sock 9.Parse request [09:23:50]Sock 9.Check first char [09:23:50]Sock 9.First char is OK [09:23:50]request: POST /json_proto HTTP/1.0 [09:23:50]Method: POST [09:23:50]URL: /json_proto [09:23:50]Method is POST - this is cgi request [09:23:50]url: /json_proto [09:23:50]query_string will be loaded in cgi processing [09:23:50]execute_cgi json_proto POST (null) [09:23:50]execute_cgi path=json_proto method=POST [09:23:50]POST find Content-Length [09:23:50]Host: 172.17.46.196:8080 [09:23:50]Content-Length: 756 [09:23:50]Content-Type: application/json [09:23:50] [09:23:50]POST finish read [09:23:50]Found Content-Length = 756 [09:23:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106969", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:50]execute_script... [09:23: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)11327601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106969", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:50]POST & json_proto [09:23:50]process_json_proto [09:23:50]json parsed OK: [09:23:50]protocol is kg_v1.0 [09:23:50]action value=close_receipt [09:23:50]process_action close_receipt [09:23:50]cmd_close_receipt [09:23:50]MH_GetDate [09:23:50]Write to MH i2c: F0 00 00 1C 0E 19 [09:23:50]Write i2c OK [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: F0 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: F0 09 00 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: F0 09 00 1C 0E 00 28 0F C3 66 C4 85 C2 66 F3 [09:23:50]GetLastDocTimeStamp 1724059394 [09:23:50]current date 1724059432 [09:23:50]FM_GetShiftState [09:23:50]SAM_PROTO_GetShiftState [09:23:50]wFMCommunicate request_size=4 [09:23:50]MH_SAM_APDU [09:23:50]CAPDU: 80 13 01 00 [09:23:50]Write to MH i2c: E2 08 00 1D 0E 80 13 01 00 00 00 00 00 A8 [09:23:50]Write i2c OK [09:23:50]MH_I2C_Read... [09:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:50]Read from MH i2c: E2 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: E2 0E 00 [09:23:50]MH_I2C_Read... [09:23:50]Read from MH i2c: E2 0E 00 1D 0E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 62 [09:23:50]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:23:50]wFMCommunicate OK [09:23:50]SAM_PROTO_GetShiftState done [09:23:50]FM_GetShiftState done [09:23:50]opened in 1724026361 [09:23:50]opened+sec_in_day 1724112761 [09:23:50]quantity*price = 0 [09:23:50]sum+1 = 1 [09:23:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 40 19.08.2024 09:23 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106969 ФМ: 0000000000871800 ФД: 49933 ФПД: 16112514667182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T092352&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49933&fm=16112514667182&tin=02508201610067®Number=0000000000092546&sum=0 [09:23:51]StoreToDocumentArchive [09:23:51]shift 467 fd 49933 [09:23:51]save to /storage/0467/doc_00049933 [09:23:51]save last doc name /storage/0467/doc_00049933 to /storage/kkm_last_doc_name [09:23:51]save OK [09:23:51]Clear old archive folders... [09:23:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:51]tlvbuf is B6F0A770 [09:23:51]SAM_PROTO_ClearQueue [09:23:51]wFMCommunicate request_size=4 [09:23:51]MH_SAM_APDU [09:23:51]CAPDU: 80 09 00 00 [09:23:51]Write to MH i2c: E2 08 00 2A 0E 80 09 00 00 00 00 00 00 AA [09:23:51]Write i2c OK [09:23:51]MH_I2C_Read... [09:23:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:51]Read from MH i2c: E2 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 03 00 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 03 00 2A 0E 00 90 00 AC [09:23:51]RAPDU: 90 00 [09:23:51]wFMCommunicate OK [09:23:51]SAM_PROTO_ClearQueue done [09:23:51]KKMCreateOFDPacket [09:23:51]OFDProtocolAddRootSTLVToBuf [09:23:51]FM_MakeSignedData [09:23:51]FM_MakeSignedData [09:23:51]SAM_PROTO_SignData [09:23:51]wFMCommunicate request_size=4 [09:23:51]MH_SAM_APDU [09:23:51]CAPDU: 80 0D 01 02 [09:23:51]Write to MH i2c: E2 08 00 2B 0E 80 0D 01 02 00 00 00 00 B2 [09:23:51]Write i2c OK [09:23:51]MH_I2C_Read... [09:23:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:51]Read from MH i2c: E2 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 03 00 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 03 00 2B 0E 00 90 00 AD [09:23:51]RAPDU: 90 00 [09:23:51]wFMCommunicate OK [09:23:51]wFMCommunicate request_size=255 [09:23:51]MH_SAM_APDU [09:23:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 28 0F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0D C3 00 00 35 04 06 00 0E [09:23:51]Write to MH i2c: E2 02 01 2C 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 28 0F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0D C3 00 00 35 04 06 00 0E 00 00 5C [09:23:51]Write i2c OK [09:23:51]MH_I2C_Read... [09:23:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:51]Read from MH i2c: E2 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 03 00 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 03 00 2C 0E 00 90 00 AE [09:23:51]RAPDU: 90 00 [09:23:51]wFMCommunicate OK [09:23:51]wFMCommunicate request_size=10 [09:23:51]MH_SAM_APDU [09:23:51]CAPDU: 80 0D 02 02 05 A7 7C B6 92 AE [09:23:51]Write to MH i2c: E2 0D 00 2D 0E 80 0D 02 02 05 00 A7 7C B6 92 AE 00 00 D8 [09:23:51]Write i2c OK [09:23:51]MH_I2C_Read... [09:23:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:51]Read from MH i2c: E2 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 03 00 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 03 00 2D 0E 00 90 00 AF [09:23:51]RAPDU: 90 00 [09:23:51]wFMCommunicate OK [09:23:51]wFMCommunicate request_size=4 [09:23:51]MH_SAM_APDU [09:23:51]CAPDU: 80 0D 03 02 [09:23:51]Write to MH i2c: E2 08 00 2E 0E 80 0D 03 02 00 00 00 00 B7 [09:23:51]Write i2c OK [09:23:51]MH_I2C_Read... [09:23:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:51]Read from MH i2c: E2 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 0B 00 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 0B 00 2E 0E 00 56 53 16 96 93 DF B9 FE 90 00 36 [09:23:51]RAPDU: 56 53 16 96 93 DF B9 FE 90 00 [09:23:51]wFMCommunicate OK [09:23:51]SAM_PROTO_SignData done [09:23:51]FM_MakeSignedData done [09:23:51]CreateOFDProtocolMessage [09:23:51]wFMCommunicate request_size=4 [09:23:51]MH_SAM_APDU [09:23:51]CAPDU: 80 11 00 00 [09:23:51]Write to MH i2c: E2 08 00 2F 0E 80 11 00 00 00 00 00 00 B7 [09:23:51]Write i2c OK [09:23:51]MH_I2C_Read... [09:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:51]Read from MH i2c: E2 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 17 00 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: E2 17 00 2F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 02 [09:23:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:23:51]wFMCommunicate OK [09:23:51]CreateOFDProtocolMessage done [09:23:51]OFDSenderStorePacket 49933 [09:23:51]StoreOFDPacket docnum=49933 [09:23:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 B4 4B 07 01 20 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 28 0F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0D C3 00 00 35 04 06 00 0E A7 7C B6 92 AE 56 53 16 96 93 DF B9 FE [09:23:51]CheckFolder [09:23:51]dirname=/storage/ofd_packets [09:23:51]CheckFolder done [09:23:51]ProducePacketName [09:23:51]name=ofd_packets/00049933 [09:23:51]NVStorageSaveData ofd_packets/00049933 [09:23:51]File name is /storage/ofd_packets/00049933 [09:23:51]Write 301 bytes [09:23:51]NVStorageSaveData done [09:23:51]OFDSenderStorePacket done [09:23:51]KKMCreateOFDPacket done [09:23:51]NVStorageSaveData kkm_last_timestamp [09:23:51]File name is /storage/kkm_last_timestamp [09:23:51]Write 4 bytes [09:23:51]NVStorageSaveData done [09:23:51]ExternCall_PrintAddStr [09:23:51]wPrintStart [09:23:51]Write to MH i2c: 01 00 00 30 0E 3E [09:23:51]Write i2c OK [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: 01 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: 01 07 00 [09:23:51]MH_I2C_Read... [09:23:51]Read from MH i2c: 01 07 00 30 0E 00 00 00 00 00 FF 0F 53 [09:23:51]RasterBufferAndPrint [09:23:51]line Счет N : (1)11327601 [09:23:51]line ИНН: 02508201610067 [09:23:51]line Контрольно-Кассовый Чек [09:23:51]line ПРОДАЖА [09:23:51]line ТРК (МРК, ГНК) : 22 [09:23:51]line Товар: 2710124130 [09:23:51]line Аи-92-К-4 [09:23:51]line 20.000 * 0.00 [09:23:51]line = 0.00 [09:23:51]line НДС 12% НСП 1% [09:23:51]line > о реализуемом товаре [09:23:51]line ИТОГО: 0.00 [09:23:51]line НСП 1% : 0.00 [09:23:51]line НДС 12% : 0.00 [09:23:51]line Наличными: 0.00 [09:23:51]line Безнал.: 0.00 [09:23:51]line Место: АЗС № 95 "Партнер Нефть" [09:23:51]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:23:51]line СНО: Общий режим [09:23:51]line Чек 40 19.08.2024 09:23 [09:23:51]line Смена: 467 ФФД: 1.0 [09:23:51]line ЗНМ: 0300000078 [09:23:51]line РНМ: 0000000000092546 [09:23:51]line Версия ККМ: 001 [09:23:51]line Талоны: ТК ГПНА Online [09:23:51]line 30106969 [09:23:51]line ФМ: 0000000000871800 [09:23:51]line ФД: 49933 [09:23:51]line ФПД: 16112514667182 [09:23:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T092352&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49933&fm=16112514667182&tin=02508201610067®Number=0000000000092546&sum=0 [09:23:51]written 0, free lines is 4095 [09:23:51]OFD Sender: Processing packet 49933 [packets to send 21, broken 20] [09:23:51]ProducePacketName [09:23:51]name=ofd_packets/00049933 [09:23:52]OFD Sender: To server: pG, [09:23:52]CommunicateWithHost lk.salyk.kg:30040 [09:23:52]ConnectInit lk.salyk.kg [09:23:52]Write to MH i2c: 01 00 00 5A 0E 68 [09:23:52]Write i2c OK [09:23:52]MH_I2C_Read... [09:23:52]Read from MH i2c: 01 [09:23:52]MH_I2C_Read... [09:23:52]Read from MH i2c: 01 07 00 [09:23:52]MH_I2C_Read... [09:23:52]Read from MH i2c: 01 07 00 5A 0E 00 00 00 00 00 DB 0C 56 [09:23:52]RasterBufferAndPrint [09:23:52]line [09:23:52]line [09:23:52]line [09:23:52]line [09:23:52]line [09:23:52]written 0, free lines is 3297 [09:23:52]MH_Cut [09:23:52]Write to MH i2c: D1 01 00 61 0E 01 41 [09:23:52]Write i2c OK [09:23:52]MH_I2C_Read... [09:23:52]Read from MH i2c: D1 [09:23:52]MH_I2C_Read... [09:23:52]Read from MH i2c: D1 01 00 [09:23:52]MH_I2C_Read... [09:23:52]Read from MH i2c: D1 01 00 61 0E 00 40 [09:23:52]Write to MH i2c: 01 00 00 62 0E 70 [09:23:52]Write i2c OK [09:23:52]MH_I2C_Read... [09:23:52]Connected sock=10 [09:23:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 B4 4B 07 01 20 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 28 0F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0D C3 00 00 35 04 06 00 0E A7 7C B6 92 AE 56 53 16 96 93 DF B9 FE [09:23:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A3 D4 47 00 4F 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0D C3 00 00 F4 03 04 00 95 B9 C2 66 B6 04 01 00 00 35 BA 10 94 7D EB 00 68 [09:23:52]CommunicateWithHost err = 0 [09:23:52]CheckOFDResponse [09:23:52]1017 (14) - 77093643461234 [09:23:52]1041 (16) - 0000000000871800 [09:23:52]1040 (4) - 49933 [09:23:52]1012 (4) - 19.08.2024 03:18 [09:23:52]1206 (1) - 0 [09:23:52]OFD Sender: Remove packet 49933 [09:23:52]ProducePacketName [09:23:52]name=ofd_packets/00049933 [09:23:52]NVStorageDeleteData [09:23:53]*** Cut start [09:23:53]*** Purtial cut [09:23:53]*** CUTSNS_PIN = 0 [09:23:53]OFD Sender: No OFD packet to send [09:23:53]*** Stage 1: CUTSNS_PIN = 1 [09:23:55]Read from MH i2c: 01 [09:23:55]MH_I2C_Read... [09:23:55]*** Stop cut motor [09:23:55]*** Cut end [09:23:55]Read from MH i2c: 01 07 00 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: 01 07 00 62 0E 00 00 00 00 00 FF 0F 85 [09:23:55]process_action close_receipt done [09:23:55]requested_data is exist [09:23:55]produce_requested_data [09:23:55]requested_item fm.sn is exist - process it [09:23:55]wFMCommunicate request_size=4 [09:23:55]MH_SAM_APDU [09:23:55]CAPDU: 80 11 00 00 [09:23:55]Write to MH i2c: E2 08 00 63 0E 80 11 00 00 00 00 00 00 EB [09:23:55]Write i2c OK [09:23:55]MH_I2C_Read... [09:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:55]Read from MH i2c: E2 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 17 00 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 17 00 63 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 36 [09:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:23:55]wFMCommunicate OK [09:23:55]requested_item fd.num is exist - process it [09:23:55]SAM_PROTO_GetFieldsCounters [09:23:55]wFMCommunicate request_size=4 [09:23:55]MH_SAM_APDU [09:23:55]CAPDU: 80 13 00 00 [09:23:55]Write to MH i2c: E2 08 00 64 0E 80 13 00 00 00 00 00 00 EE [09:23:55]Write i2c OK [09:23:55]MH_I2C_Read... [09:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:55]Read from MH i2c: E2 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 62 00 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 62 00 64 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0D C3 00 00 0E 04 04 00 D3 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 24 [09:23:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0D C3 00 00 0E 04 04 00 D3 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 [09:23:55]wFMCommunicate OK [09:23:55]SAM_PROTO_GetFieldsCounters done [09:23:55]requested_item shift.num is exist - process it [09:23:55]requested_item shift.opened is exist - process it [09:23:55]req_shift_opened [09:23:55]FM_GetShiftState [09:23:55]SAM_PROTO_GetShiftState [09:23:55]wFMCommunicate request_size=4 [09:23:55]MH_SAM_APDU [09:23:55]CAPDU: 80 13 01 00 [09:23:55]Write to MH i2c: E2 08 00 65 0E 80 13 01 00 00 00 00 00 F0 [09:23:55]Write i2c OK [09:23:55]MH_I2C_Read... [09:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:55]Read from MH i2c: E2 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 0E 00 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 0E 00 65 0E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 AA [09:23:55]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:23:55]wFMCommunicate OK [09:23:55]SAM_PROTO_GetShiftState done [09:23:55]FM_GetShiftState done [09:23:55]req_shift_opened done [09:23:55]requested_item shift.open_date is exist - process it [09:23:55]req_shift_open_date [09:23:55]req_shift_open_date done [09:23:55]produce_requested_data done [09:23:55]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49933,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [09:23:55]process_action_free close_receipt [09:23:55]json_value_free [09:23:55]json_value_free done [09:23:55]process_json_proto returns [09:23:55]Send response to host [09:23:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49933,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [09:23:55]free response buf [09:23:55]execute_script done [09:23:55]execute_script returns [09:23:55]free content buf [09:23:55]Sock 9.Close socket [09:23:55]Sock 9.Thread stoped [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:26:59]accept exits with 7 [09:26:59]New connection [09:26:59]New thread 3067211108 created [09:26:59]Thread 3067354468 joined [09:26:59]Waiting for new connection... [09:26:59] Sock 7.Parse request [09:26:59]Sock 7.Check first char [09:26:59]Sock 7.First char is OK [09:26:59]request: POST /json_proto HTTP/1.0 [09:26:59]Method: POST [09:26:59]URL: /json_proto [09:26:59]Method is POST - this is cgi request [09:26:59]url: /json_proto [09:26:59]query_string will be loaded in cgi processing [09:26:59]execute_cgi json_proto POST (null) [09:26:59]execute_cgi path=json_proto method=POST [09:26:59]POST find Content-Length [09:26:59]Host: 172.17.46.196:8080 [09:26:59]Content-Length: 756 [09:26:59]Content-Type: application/json [09:26:59] [09:26:59]POST finish read [09:26:59]Found Content-Length = 756 [09:26:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30017927", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:59]execute_script... [09:26:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30017927", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:59]POST & json_proto [09:26:59]process_json_proto [09:26:59]json parsed OK: [09:26:59]protocol is kg_v1.0 [09:26:59]action value=close_receipt [09:26:59]process_action close_receipt [09:26:59]cmd_close_receipt [09:26:59]MH_GetDate [09:26:59]Write to MH i2c: F0 00 00 66 0E 63 [09:26:59]Write i2c OK [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: F0 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: F0 09 00 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: F0 09 00 66 0E 00 E5 0F C3 66 C4 85 C2 66 FA [09:26:59]GetLastDocTimeStamp 1724059432 [09:26:59]current date 1724059621 [09:26:59]FM_GetShiftState [09:26:59]SAM_PROTO_GetShiftState [09:26:59]wFMCommunicate request_size=4 [09:26:59]MH_SAM_APDU [09:26:59]CAPDU: 80 13 01 00 [09:26:59]Write to MH i2c: E2 08 00 67 0E 80 13 01 00 00 00 00 00 F2 [09:26:59]Write i2c OK [09:26:59]MH_I2C_Read... [09:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:59]Read from MH i2c: E2 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: E2 0E 00 [09:26:59]MH_I2C_Read... [09:26:59]Read from MH i2c: E2 0E 00 67 0E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 AC [09:26:59]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:26:59]wFMCommunicate OK [09:26:59]SAM_PROTO_GetShiftState done [09:26:59]FM_GetShiftState done [09:26:59]opened in 1724026361 [09:26:59]opened+sec_in_day 1724112761 [09:26:59]quantity*price = 0 [09:26:59]sum+1 = 1 [09:26:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 41 19.08.2024 09:27 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30017927 ФМ: 0000000000871800 ФД: 49934 ФПД: 137751765527050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T092701&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49934&fm=137751765527050&tin=02508201610067®Number=0000000000092546&sum=0 [09:27:00]StoreToDocumentArchive [09:27:00]shift 467 fd 49934 [09:27:00]save to /storage/0467/doc_00049934 [09:27:00]save last doc name /storage/0467/doc_00049934 to /storage/kkm_last_doc_name [09:27:00]save OK [09:27:00]Clear old archive folders... [09:27:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:00]tlvbuf is 00F47C40 [09:27:00]SAM_PROTO_ClearQueue [09:27:00]wFMCommunicate request_size=4 [09:27:00]MH_SAM_APDU [09:27:00]CAPDU: 80 09 00 00 [09:27:00]Write to MH i2c: E2 08 00 74 0E 80 09 00 00 00 00 00 00 F4 [09:27:00]Write i2c OK [09:27:00]MH_I2C_Read... [09:27:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:00]Read from MH i2c: E2 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 03 00 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 03 00 74 0E 00 90 00 F6 [09:27:00]RAPDU: 90 00 [09:27:00]wFMCommunicate OK [09:27:00]SAM_PROTO_ClearQueue done [09:27:00]KKMCreateOFDPacket [09:27:00]OFDProtocolAddRootSTLVToBuf [09:27:00]FM_MakeSignedData [09:27:00]FM_MakeSignedData [09:27:00]SAM_PROTO_SignData [09:27:00]wFMCommunicate request_size=4 [09:27:00]MH_SAM_APDU [09:27:00]CAPDU: 80 0D 01 02 [09:27:00]Write to MH i2c: E2 08 00 75 0E 80 0D 01 02 00 00 00 00 FC [09:27:00]Write i2c OK [09:27:00]MH_I2C_Read... [09:27:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:00]Read from MH i2c: E2 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 03 00 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 03 00 75 0E 00 90 00 F7 [09:27:00]RAPDU: 90 00 [09:27:00]wFMCommunicate OK [09:27:00]wFMCommunicate request_size=255 [09:27:00]MH_SAM_APDU [09:27:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 E5 0F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0E C3 00 00 35 04 06 00 7D [09:27:00]Write to MH i2c: E2 02 01 76 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 E5 0F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0E C3 00 00 35 04 06 00 7D 00 00 0B [09:27:00]Write i2c OK [09:27:00]MH_I2C_Read... [09:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:00]Read from MH i2c: E2 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 03 00 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 03 00 76 0E 00 90 00 F8 [09:27:00]RAPDU: 90 00 [09:27:00]wFMCommunicate OK [09:27:00]wFMCommunicate request_size=10 [09:27:00]MH_SAM_APDU [09:27:00]CAPDU: 80 0D 02 02 05 48 D5 0D 2A 0A [09:27:00]Write to MH i2c: E2 0D 00 77 0E 80 0D 02 02 05 00 48 D5 0D 2A 0A 00 00 67 [09:27:00]Write i2c OK [09:27:00]MH_I2C_Read... [09:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:00]Read from MH i2c: E2 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 03 00 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 03 00 77 0E 00 90 00 F9 [09:27:00]RAPDU: 90 00 [09:27:00]wFMCommunicate OK [09:27:00]wFMCommunicate request_size=4 [09:27:00]MH_SAM_APDU [09:27:00]CAPDU: 80 0D 03 02 [09:27:00]Write to MH i2c: E2 08 00 78 0E 80 0D 03 02 00 00 00 00 01 [09:27:00]Write i2c OK [09:27:00]MH_I2C_Read... [09:27:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:00]Read from MH i2c: E2 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 0B 00 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 0B 00 78 0E 00 83 45 23 03 D6 6D E0 29 90 00 3C [09:27:00]RAPDU: 83 45 23 03 D6 6D E0 29 90 00 [09:27:00]wFMCommunicate OK [09:27:00]SAM_PROTO_SignData done [09:27:00]FM_MakeSignedData done [09:27:00]CreateOFDProtocolMessage [09:27:00]wFMCommunicate request_size=4 [09:27:00]MH_SAM_APDU [09:27:00]CAPDU: 80 11 00 00 [09:27:00]Write to MH i2c: E2 08 00 79 0E 80 11 00 00 00 00 00 00 01 [09:27:00]Write i2c OK [09:27:00]MH_I2C_Read... [09:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:00]Read from MH i2c: E2 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 17 00 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: E2 17 00 79 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4C [09:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:27:00]wFMCommunicate OK [09:27:00]CreateOFDProtocolMessage done [09:27:00]OFDSenderStorePacket 49934 [09:27:00]StoreOFDPacket docnum=49934 [09:27:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 25 49 07 01 3E F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 E5 0F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0E C3 00 00 35 04 06 00 7D 48 D5 0D 2A 0A 83 45 23 03 D6 6D E0 29 [09:27:00]CheckFolder [09:27:00]dirname=/storage/ofd_packets [09:27:00]CheckFolder done [09:27:00]ProducePacketName [09:27:00]name=ofd_packets/00049934 [09:27:00]NVStorageSaveData ofd_packets/00049934 [09:27:00]File name is /storage/ofd_packets/00049934 [09:27:00]Write 301 bytes [09:27:00]NVStorageSaveData done [09:27:00]OFDSenderStorePacket done [09:27:00]KKMCreateOFDPacket done [09:27:00]NVStorageSaveData kkm_last_timestamp [09:27:00]File name is /storage/kkm_last_timestamp [09:27:00]Write 4 bytes [09:27:00]NVStorageSaveData done [09:27:00]ExternCall_PrintAddStr [09:27:00]wPrintStart [09:27:00]Write to MH i2c: 01 00 00 7A 0E 88 [09:27:00]Write i2c OK [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: 01 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: 01 07 00 [09:27:00]MH_I2C_Read... [09:27:00]Read from MH i2c: 01 07 00 7A 0E 00 00 00 00 00 FF 0F 9D [09:27:00]RasterBufferAndPrint [09:27:00]line Счет N : (1)11327602 [09:27:00]line ИНН: 02508201610067 [09:27:00]line Контрольно-Кассовый Чек [09:27:00]line ПРОДАЖА [09:27:00]line ТРК (МРК, ГНК) : 32 [09:27:00]line Товар: 2710124130 [09:27:00]line Аи-92-К-4 [09:27:00]line 30.000 * 0.00 [09:27:00]line = 0.00 [09:27:00]line НДС 12% НСП 1% [09:27:00]line > о реализуемом товаре [09:27:00]line ИТОГО: 0.00 [09:27:00]line НСП 1% : 0.00 [09:27:00]line НДС 12% : 0.00 [09:27:00]line Наличными: 0.00 [09:27:00]line Безнал.: 0.00 [09:27:00]line Место: АЗС № 95 "Партнер Нефть" [09:27:00]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:27:00]line СНО: Общий режим [09:27:00]line Чек 41 19.08.2024 09:27 [09:27:00]line Смена: 467 ФФД: 1.0 [09:27:00]line ЗНМ: 0300000078 [09:27:00]line РНМ: 0000000000092546 [09:27:00]line Версия ККМ: 001 [09:27:00]line Талоны: ТК ГПНА Online [09:27:00]line 30017927 [09:27:00]line ФМ: 0000000000871800 [09:27:00]line ФД: 49934 [09:27:00]line ФПД: 137751765527050 [09:27:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T092701&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49934&fm=137751765527050&tin=02508201610067®Number=0000000000092546&sum=0 [09:27:00]written 0, free lines is 4095 [09:27:01]OFD Sender: Processing packet 49934 [packets to send 21, broken 20] [09:27:01]ProducePacketName [09:27:01]name=ofd_packets/00049934 [09:27:01]OFD Sender: To server: pG, [09:27:01]CommunicateWithHost lk.salyk.kg:30040 [09:27:01]ConnectInit lk.salyk.kg [09:27:01]Connected sock=10 [09:27:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 25 49 07 01 3E F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 E5 0F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0E C3 00 00 35 04 06 00 7D 48 D5 0D 2A 0A 83 45 23 03 D6 6D E0 29 [09:27:01]Write to MH i2c: 01 00 00 A4 0E B2 [09:27:01]Write i2c OK [09:27:01]MH_I2C_Read... [09:27:01]Read from MH i2c: 01 [09:27:01]MH_I2C_Read... [09:27:01]Read from MH i2c: 01 07 00 [09:27:01]MH_I2C_Read... [09:27:01]Read from MH i2c: 01 07 00 A4 0E 00 00 00 00 00 D9 0C 9E [09:27:01]RasterBufferAndPrint [09:27:01]line [09:27:01]line [09:27:01]line [09:27:01]line [09:27:01]line [09:27:01]written 0, free lines is 3298 [09:27:01]MH_Cut [09:27:01]Write to MH i2c: D1 01 00 AB 0E 01 8B [09:27:01]Write i2c OK [09:27:01]MH_I2C_Read... [09:27:01]Read from MH i2c: D1 [09:27:01]MH_I2C_Read... [09:27:01]Read from MH i2c: D1 01 00 [09:27:01]MH_I2C_Read... [09:27:01]Read from MH i2c: D1 01 00 AB 0E 00 8A [09:27:01]Write to MH i2c: 01 00 00 AC 0E BA [09:27:01]Write i2c OK [09:27:01]MH_I2C_Read... [09:27:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 66 B1 47 00 5A DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0E C3 00 00 F4 03 04 00 52 BA C2 66 B6 04 01 00 00 E0 DC 24 CB F4 07 B7 69 [09:27:01]CommunicateWithHost err = 0 [09:27:01]CheckOFDResponse [09:27:01]1017 (14) - 77093643461234 [09:27:01]1041 (16) - 0000000000871800 [09:27:01]1040 (4) - 49934 [09:27:01]1012 (4) - 19.08.2024 03:21 [09:27:01]1206 (1) - 0 [09:27:01]OFD Sender: Remove packet 49934 [09:27:01]ProducePacketName [09:27:01]name=ofd_packets/00049934 [09:27:01]NVStorageDeleteData [09:27:01]OFD Sender: No OFD packet to send [09:27:02]*** Cut start [09:27:02]*** Purtial cut [09:27:02]*** Stage 1: CUTSNS_PIN = 1 [09:27:02]Read from MH i2c: 01 [09:27:02]MH_I2C_Read... [09:27:02]*** Stop cut motor [09:27:02]*** Cut end [09:27:02]Read from MH i2c: 01 07 00 [09:27:02]MH_I2C_Read... [09:27:02]Read from MH i2c: 01 07 00 AC 0E 00 00 00 00 00 FF 0F CF [09:27:02]process_action close_receipt done [09:27:02]requested_data is exist [09:27:02]produce_requested_data [09:27:02]requested_item fm.sn is exist - process it [09:27:02]wFMCommunicate request_size=4 [09:27:02]MH_SAM_APDU [09:27:02]CAPDU: 80 11 00 00 [09:27:02]Write to MH i2c: E2 08 00 AD 0E 80 11 00 00 00 00 00 00 35 [09:27:02]Write i2c OK [09:27:02]MH_I2C_Read... [09:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:02]Read from MH i2c: E2 [09:27:02]MH_I2C_Read... [09:27:02]Read from MH i2c: E2 17 00 [09:27:02]MH_I2C_Read... [09:27:02]Read from MH i2c: E2 17 00 AD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 80 [09:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:27:02]wFMCommunicate OK [09:27:02]requested_item fd.num is exist - process it [09:27:02]SAM_PROTO_GetFieldsCounters [09:27:02]wFMCommunicate request_size=4 [09:27:02]MH_SAM_APDU [09:27:02]CAPDU: 80 13 00 00 [09:27:02]Write to MH i2c: E2 08 00 AE 0E 80 13 00 00 00 00 00 00 38 [09:27:02]Write i2c OK [09:27:02]MH_I2C_Read... [09:27:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:02]Read from MH i2c: E2 [09:27:02]MH_I2C_Read... [09:27:02]Read from MH i2c: E2 62 00 [09:27:02]MH_I2C_Read... [09:27:02]Read from MH i2c: E2 62 00 AE 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0E C3 00 00 0E 04 04 00 D3 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 72 [09:27:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0E C3 00 00 0E 04 04 00 D3 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 [09:27:02]wFMCommunicate OK [09:27:02]SAM_PROTO_GetFieldsCounters done [09:27:02]requested_item shift.num is exist - process it [09:27:02]requested_item shift.opened is exist - process it [09:27:02]req_shift_opened [09:27:02]FM_GetShiftState [09:27:02]SAM_PROTO_GetShiftState [09:27:02]wFMCommunicate request_size=4 [09:27:02]MH_SAM_APDU [09:27:02]CAPDU: 80 13 01 00 [09:27:02]Write to MH i2c: E2 08 00 AF 0E 80 13 01 00 00 00 00 00 3A [09:27:02]Write i2c OK [09:27:02]MH_I2C_Read... [09:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:02]Read from MH i2c: E2 [09:27:02]MH_I2C_Read... [09:27:02]Read from MH i2c: E2 0E 00 [09:27:02]MH_I2C_Read... [09:27:02]Read from MH i2c: E2 0E 00 AF 0E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 F4 [09:27:02]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:27:02]wFMCommunicate OK [09:27:02]SAM_PROTO_GetShiftState done [09:27:02]FM_GetShiftState done [09:27:02]req_shift_opened done [09:27:02]requested_item shift.open_date is exist - process it [09:27:02]req_shift_open_date [09:27:02]req_shift_open_date done [09:27:02]produce_requested_data done [09:27:02]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49934,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [09:27:02]process_action_free close_receipt [09:27:02]json_value_free [09:27:02]json_value_free done [09:27:02]process_json_proto returns [09:27:02]Send response to host [09:27:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49934,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [09:27:02]free response buf [09:27:02]execute_script done [09:27:02]execute_script returns [09:27:02]free content buf [09:27:02]Sock 7.Close socket [09:27:02]Sock 7.Thread stoped [09:27:03]accept exits with 9 [09:27:03]New connection [09:27:03]New thread 3067354468 created [09:27:03]Thread 3067211108 joined [09:27:03]Waiting for new connection... [09:27:03] Sock 9.Parse request [09:27:03]Sock 9.Check first char [09:27:03]Sock 9.First char is OK [09:27:03]request: POST /json_proto HTTP/1.0 [09:27:03]Method: POST [09:27:03]URL: /json_proto [09:27:03]Method is POST - this is cgi request [09:27:03]url: /json_proto [09:27:03]query_string will be loaded in cgi processing [09:27:03]execute_cgi json_proto POST (null) [09:27:03]execute_cgi path=json_proto method=POST [09:27:03]POST find Content-Length [09:27:03]Host: 172.17.46.196:8080 [09:27:03]Content-Length: 756 [09:27:03]Content-Type: application/json [09:27:03] [09:27:03]POST finish read [09:27:03]Found Content-Length = 756 [09:27:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106969", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:03]execute_script... [09:27:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106969", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:03]POST & json_proto [09:27:03]process_json_proto [09:27:03]json parsed OK: [09:27:03]protocol is kg_v1.0 [09:27:03]action value=close_receipt [09:27:03]process_action close_receipt [09:27:03]cmd_close_receipt [09:27:03]MH_GetDate [09:27:03]Write to MH i2c: F0 00 00 B0 0E AD [09:27:03]Write i2c OK [09:27:03]MH_I2C_Read... [09:27:03]Read from MH i2c: F0 [09:27:03]MH_I2C_Read... [09:27:03]Read from MH i2c: F0 09 00 [09:27:03]MH_I2C_Read... [09:27:03]Read from MH i2c: F0 09 00 B0 0E 00 E9 0F C3 66 C4 85 C2 66 48 [09:27:03]GetLastDocTimeStamp 1724059621 [09:27:03]current date 1724059625 [09:27:03]FM_GetShiftState [09:27:03]SAM_PROTO_GetShiftState [09:27:03]wFMCommunicate request_size=4 [09:27:03]MH_SAM_APDU [09:27:03]CAPDU: 80 13 01 00 [09:27:03]Write to MH i2c: E2 08 00 B1 0E 80 13 01 00 00 00 00 00 3C [09:27:03]Write i2c OK [09:27:03]MH_I2C_Read... [09:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:03]Read from MH i2c: E2 [09:27:03]MH_I2C_Read... [09:27:03]Read from MH i2c: E2 0E 00 [09:27:03]MH_I2C_Read... [09:27:03]Read from MH i2c: E2 0E 00 B1 0E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 F6 [09:27:03]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:27:03]wFMCommunicate OK [09:27:03]SAM_PROTO_GetShiftState done [09:27:03]FM_GetShiftState done [09:27:03]opened in 1724026361 [09:27:03]opened+sec_in_day 1724112761 [09:27:03]quantity*price = 0 [09:27:03]sum+1 = 1 [09:27:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 42 19.08.2024 09:27 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106969 ФМ: 0000000000871800 ФД: 49935 ФПД: 105415241775204 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T092705&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49935&fm=105415241775204&tin=02508201610067®Number=0000000000092546&sum=0 [09:27:04]StoreToDocumentArchive [09:27:04]shift 467 fd 49935 [09:27:04]save to /storage/0467/doc_00049935 [09:27:04]save last doc name /storage/0467/doc_00049935 to /storage/kkm_last_doc_name [09:27:04]save OK [09:27:04]Clear old archive folders... [09:27:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:04]tlvbuf is 00FA39D0 [09:27:04]SAM_PROTO_ClearQueue [09:27:04]wFMCommunicate request_size=4 [09:27:04]MH_SAM_APDU [09:27:04]CAPDU: 80 09 00 00 [09:27:04]Write to MH i2c: E2 08 00 BE 0E 80 09 00 00 00 00 00 00 3E [09:27:04]Write i2c OK [09:27:04]MH_I2C_Read... [09:27:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:04]Read from MH i2c: E2 [09:27:04]MH_I2C_Read... [09:27:04]Read from MH i2c: E2 03 00 [09:27:04]MH_I2C_Read... [09:27:04]Read from MH i2c: E2 03 00 BE 0E 00 90 00 40 [09:27:04]RAPDU: 90 00 [09:27:04]wFMCommunicate OK [09:27:04]SAM_PROTO_ClearQueue done [09:27:04]KKMCreateOFDPacket [09:27:04]OFDProtocolAddRootSTLVToBuf [09:27:04]FM_MakeSignedData [09:27:04]FM_MakeSignedData [09:27:04]SAM_PROTO_SignData [09:27:04]wFMCommunicate request_size=4 [09:27:04]MH_SAM_APDU [09:27:04]CAPDU: 80 0D 01 02 [09:27:04]Write to MH i2c: E2 08 00 BF 0E 80 0D 01 02 00 00 00 00 46 [09:27:04]Write i2c OK [09:27:04]MH_I2C_Read... [09:27:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:04]Read from MH i2c: E2 [09:27:04]MH_I2C_Read... [09:27:04]Read from MH i2c: E2 03 00 [09:27:04]MH_I2C_Read... [09:27:04]Read from MH i2c: E2 03 00 BF 0E 00 90 00 41 [09:27:04]RAPDU: 90 00 [09:27:04]wFMCommunicate OK [09:27:04]wFMCommunicate request_size=255 [09:27:04]MH_SAM_APDU [09:27:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E9 0F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0F C3 00 00 35 04 06 00 5F [09:27:04]Write to MH i2c: E2 02 01 C0 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E9 0F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0F C3 00 00 35 04 06 00 5F 00 00 06 [09:27:04]Write i2c OK [09:27:04]MH_I2C_Read... [09:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:05]Read from MH i2c: E2 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 03 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 03 00 C0 0E 00 90 00 42 [09:27:05]RAPDU: 90 00 [09:27:05]wFMCommunicate OK [09:27:05]wFMCommunicate request_size=10 [09:27:05]MH_SAM_APDU [09:27:05]CAPDU: 80 0D 02 02 05 DF E6 0A 38 64 [09:27:05]Write to MH i2c: E2 0D 00 C1 0E 80 0D 02 02 05 00 DF E6 0A 38 64 00 00 BE [09:27:05]Write i2c OK [09:27:05]MH_I2C_Read... [09:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:05]Read from MH i2c: E2 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 03 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 03 00 C1 0E 00 90 00 43 [09:27:05]RAPDU: 90 00 [09:27:05]wFMCommunicate OK [09:27:05]wFMCommunicate request_size=4 [09:27:05]MH_SAM_APDU [09:27:05]CAPDU: 80 0D 03 02 [09:27:05]Write to MH i2c: E2 08 00 C2 0E 80 0D 03 02 00 00 00 00 4B [09:27:05]Write i2c OK [09:27:05]MH_I2C_Read... [09:27:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:05]Read from MH i2c: E2 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 0B 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 0B 00 C2 0E 00 07 10 91 5B 9A 21 F8 CF 90 00 D1 [09:27:05]RAPDU: 07 10 91 5B 9A 21 F8 CF 90 00 [09:27:05]wFMCommunicate OK [09:27:05]SAM_PROTO_SignData done [09:27:05]FM_MakeSignedData done [09:27:05]CreateOFDProtocolMessage [09:27:05]wFMCommunicate request_size=4 [09:27:05]MH_SAM_APDU [09:27:05]CAPDU: 80 11 00 00 [09:27:05]Write to MH i2c: E2 08 00 C3 0E 80 11 00 00 00 00 00 00 4B [09:27:05]Write i2c OK [09:27:05]MH_I2C_Read... [09:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:05]Read from MH i2c: E2 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 17 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: E2 17 00 C3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 96 [09:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:27:05]wFMCommunicate OK [09:27:05]CreateOFDProtocolMessage done [09:27:05]OFDSenderStorePacket 49935 [09:27:05]StoreOFDPacket docnum=49935 [09:27:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 2A 1C 07 01 A3 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E9 0F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0F C3 00 00 35 04 06 00 5F DF E6 0A 38 64 07 10 91 5B 9A 21 F8 CF [09:27:05]CheckFolder [09:27:05]dirname=/storage/ofd_packets [09:27:05]CheckFolder done [09:27:05]ProducePacketName [09:27:05]name=ofd_packets/00049935 [09:27:05]NVStorageSaveData ofd_packets/00049935 [09:27:05]File name is /storage/ofd_packets/00049935 [09:27:05]Write 301 bytes [09:27:05]NVStorageSaveData done [09:27:05]OFDSenderStorePacket done [09:27:05]KKMCreateOFDPacket done [09:27:05]NVStorageSaveData kkm_last_timestamp [09:27:05]File name is /storage/kkm_last_timestamp [09:27:05]Write 4 bytes [09:27:05]NVStorageSaveData done [09:27:05]OFD Sender: Processing packet 49935 [packets to send 21, broken 20] [09:27:05]ProducePacketName [09:27:05]name=ofd_packets/00049935 [09:27:05]OFD Sender: To server: pG, [09:27:05]CommunicateWithHost lk.salyk.kg:30040 [09:27:05]ConnectInit lk.salyk.kg [09:27:05]ExternCall_PrintAddStr [09:27:05]wPrintStart [09:27:05]Write to MH i2c: 01 00 00 C4 0E D2 [09:27:05]Write i2c OK [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: 01 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: 01 07 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: 01 07 00 C4 0E 00 00 00 00 00 FF 0F E7 [09:27:05]RasterBufferAndPrint [09:27:05]line Счет N : (1)11327600 [09:27:05]line ИНН: 02508201610067 [09:27:05]line Контрольно-Кассовый Чек [09:27:05]line ПРОДАЖА [09:27:05]line ТРК (МРК, ГНК) : 12 [09:27:05]line Товар: 2710124130 [09:27:05]line Аи-92-К-4 [09:27:05]line 20.000 * 0.00 [09:27:05]line = 0.00 [09:27:05]line НДС 12% НСП 1% [09:27:05]line > о реализуемом товаре [09:27:05]line ИТОГО: 0.00 [09:27:05]line НСП 1% : 0.00 [09:27:05]line НДС 12% : 0.00 [09:27:05]line Наличными: 0.00 [09:27:05]line Безнал.: 0.00 [09:27:05]line Место: АЗС № 95 "Партнер Нефть" [09:27:05]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:27:05]line СНО: Общий режим [09:27:05]line Чек 42 19.08.2024 09:27 [09:27:05]line Смена: 467 ФФД: 1.0 [09:27:05]line ЗНМ: 0300000078 [09:27:05]line РНМ: 0000000000092546 [09:27:05]line Версия ККМ: 001 [09:27:05]line Талоны: ТК ГПНА Online [09:27:05]line 30106969 [09:27:05]line ФМ: 0000000000871800 [09:27:05]line ФД: 49935 [09:27:05]line ФПД: 105415241775204 [09:27:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T092705&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49935&fm=105415241775204&tin=02508201610067®Number=0000000000092546&sum=0 [09:27:05]written 0, free lines is 4095 [09:27:05]Connected sock=11 [09:27:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 2A 1C 07 01 A3 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 E9 0F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0F C3 00 00 35 04 06 00 5F DF E6 0A 38 64 07 10 91 5B 9A 21 F8 CF [09:27:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 56 65 47 00 DF 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0F C3 00 00 F4 03 04 00 56 BA C2 66 B6 04 01 00 00 06 D1 4C 64 0A 61 D1 7E [09:27:05]CommunicateWithHost err = 0 [09:27:05]CheckOFDResponse [09:27:05]1017 (14) - 77093643461234 [09:27:05]1041 (16) - 0000000000871800 [09:27:05]1040 (4) - 49935 [09:27:05]1012 (4) - 19.08.2024 03:21 [09:27:05]1206 (1) - 0 [09:27:05]OFD Sender: Remove packet 49935 [09:27:05]ProducePacketName [09:27:05]name=ofd_packets/00049935 [09:27:05]NVStorageDeleteData [09:27:05]Write to MH i2c: 01 00 00 EE 0E FC [09:27:05]Write i2c OK [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: 01 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: 01 07 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: 01 07 00 EE 0E 00 00 00 00 00 31 0D 41 [09:27:05]RasterBufferAndPrint [09:27:05]line [09:27:05]line [09:27:05]line [09:27:05]line [09:27:05]line [09:27:05]written 0, free lines is 3389 [09:27:05]MH_Cut [09:27:05]Write to MH i2c: D1 01 00 F5 0E 01 D5 [09:27:05]Write i2c OK [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: D1 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: D1 01 00 [09:27:05]MH_I2C_Read... [09:27:05]Read from MH i2c: D1 01 00 F5 0E 00 D4 [09:27:05]Write to MH i2c: 01 00 00 F6 0E 04 [09:27:05]Write i2c OK [09:27:05]MH_I2C_Read... [09:27:06]OFD Sender: No OFD packet to send [09:27:06]*** Cut start [09:27:06]*** Purtial cut [09:27:06]*** CUTSNS_PIN = 0 [09:27:06]*** Stage 1: CUTSNS_PIN = 1 [09:27:08]Read from MH i2c: 01 [09:27:08]MH_I2C_Read... [09:27:08]*** Stop cut motor [09:27:08]*** Cut end [09:27:08]Read from MH i2c: 01 07 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: 01 07 00 F6 0E 00 00 00 00 00 FF 0F 19 [09:27:08]process_action close_receipt done [09:27:08]requested_data is exist [09:27:08]produce_requested_data [09:27:08]requested_item fm.sn is exist - process it [09:27:08]wFMCommunicate request_size=4 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 11 00 00 [09:27:08]Write to MH i2c: E2 08 00 F7 0E 80 11 00 00 00 00 00 00 7F [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 17 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 17 00 F7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CA [09:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:27:08]wFMCommunicate OK [09:27:08]requested_item fd.num is exist - process it [09:27:08]SAM_PROTO_GetFieldsCounters [09:27:08]wFMCommunicate request_size=4 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 13 00 00 [09:27:08]Write to MH i2c: E2 08 00 F8 0E 80 13 00 00 00 00 00 00 82 [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 62 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 62 00 F8 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0F C3 00 00 0E 04 04 00 D3 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 C0 [09:27:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0F C3 00 00 0E 04 04 00 D3 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 [09:27:08]wFMCommunicate OK [09:27:08]SAM_PROTO_GetFieldsCounters done [09:27:08]requested_item shift.num is exist - process it [09:27:08]requested_item shift.opened is exist - process it [09:27:08]req_shift_opened [09:27:08]FM_GetShiftState [09:27:08]SAM_PROTO_GetShiftState [09:27:08]wFMCommunicate request_size=4 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 13 01 00 [09:27:08]Write to MH i2c: E2 08 00 F9 0E 80 13 01 00 00 00 00 00 84 [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 0E 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 0E 00 F9 0E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 3E [09:27:08]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:27:08]wFMCommunicate OK [09:27:08]SAM_PROTO_GetShiftState done [09:27:08]FM_GetShiftState done [09:27:08]req_shift_opened done [09:27:08]requested_item shift.open_date is exist - process it [09:27:08]req_shift_open_date [09:27:08]req_shift_open_date done [09:27:08]produce_requested_data done [09:27:08]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49935,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [09:27:08]process_action_free close_receipt [09:27:08]json_value_free [09:27:08]json_value_free done [09:27:08]process_json_proto returns [09:27:08]Send response to host [09:27:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49935,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [09:27:08]free response buf [09:27:08]execute_script done [09:27:08]execute_script returns [09:27:08]free content buf [09:27:08]Sock 9.Close socket [09:27:08]Sock 9.Thread stoped [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:04]accept exits with 7 [09:28:04]New connection [09:28:04]New thread 3067211108 created [09:28:04]Thread 3067354468 joined [09:28:04]Waiting for new connection... [09:28:04] Sock 7.Parse request [09:28:04]Sock 7.Check first char [09:28:04]Sock 7.First char is OK [09:28:04]request: POST /json_proto HTTP/1.0 [09:28:04]Method: POST [09:28:04]URL: /json_proto [09:28:04]Method is POST - this is cgi request [09:28:04]url: /json_proto [09:28:04]query_string will be loaded in cgi processing [09:28:04]execute_cgi json_proto POST (null) [09:28:04]execute_cgi path=json_proto method=POST [09:28:04]POST find Content-Length [09:28:04]Host: 172.17.46.196:8080 [09:28:04]Content-Length: 609 [09:28:04]Content-Type: application/json [09:28:04] [09:28:04]POST finish read [09:28:04]Found Content-Length = 609 [09:28:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190093", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "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" ] } } [09:28:04]execute_script... [09:28:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190093", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "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" ] } } [09:28:04]POST & json_proto [09:28:04]process_json_proto [09:28:04]json parsed OK: [09:28:04]protocol is kg_v1.0 [09:28:04]action value=close_receipt [09:28:04]process_action close_receipt [09:28:04]cmd_close_receipt [09:28:04]MH_GetDate [09:28:04]Write to MH i2c: F0 00 00 FA 0E F7 [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: F0 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: F0 09 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: F0 09 00 FA 0E 00 26 10 C3 66 C4 85 C2 66 D0 [09:28:04]GetLastDocTimeStamp 1724059625 [09:28:04]current date 1724059686 [09:28:04]FM_GetShiftState [09:28:04]SAM_PROTO_GetShiftState [09:28:04]wFMCommunicate request_size=4 [09:28:04]MH_SAM_APDU [09:28:04]CAPDU: 80 13 01 00 [09:28:04]Write to MH i2c: E2 08 00 FB 0E 80 13 01 00 00 00 00 00 86 [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:04]Read from MH i2c: E2 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 0E 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 0E 00 FB 0E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 40 [09:28:04]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:28:04]wFMCommunicate OK [09:28:04]SAM_PROTO_GetShiftState done [09:28:04]FM_GetShiftState done [09:28:04]opened in 1724026361 [09:28:04]opened+sec_in_day 1724112761 [09:28:04]quantity*price = 13000 [09:28:04]sum+1 = 13001 [09:28:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 43 19.08.2024 09:28 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49936 ФПД: 81559173895851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T092806&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49936&fm=81559173895851&tin=02508201610067®Number=0000000000092546&sum=13000 0 [09:28:05]StoreToDocumentArchive [09:28:05]shift 467 fd 49936 [09:28:05]save to /storage/0467/doc_00049936 [09:28:05]save last doc name /storage/0467/doc_00049936 to /storage/kkm_last_doc_name [09:28:05]save OK [09:28:05]Clear old archive folders... [09:28:05]ProcessDocumentItem done err = 0, tmpTLVsize=261 [09:28:05]tlvbuf is 00F71A30 [09:28:05]SAM_PROTO_ClearQueue [09:28:05]wFMCommunicate request_size=4 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 09 00 00 [09:28:05]Write to MH i2c: E2 08 00 08 0F 80 09 00 00 00 00 00 00 89 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 08 0F 00 90 00 8B [09:28:05]RAPDU: 90 00 [09:28:05]wFMCommunicate OK [09:28:05]SAM_PROTO_ClearQueue done [09:28:05]KKMCreateOFDPacket [09:28:05]OFDProtocolAddRootSTLVToBuf [09:28:05]FM_MakeSignedData [09:28:05]FM_MakeSignedData [09:28:05]SAM_PROTO_SignData [09:28:05]wFMCommunicate request_size=4 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 0D 01 02 [09:28:05]Write to MH i2c: E2 08 00 09 0F 80 0D 01 02 00 00 00 00 91 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 09 0F 00 90 00 8C [09:28:05]RAPDU: 90 00 [09:28:05]wFMCommunicate OK [09:28:05]wFMCommunicate request_size=255 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 0D 02 02 FA 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 26 10 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 [09:28:05]Write to MH i2c: E2 02 01 0A 0F 80 0D 02 02 FA 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 26 10 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 00 90 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 0A 0F 00 90 00 8D [09:28:05]RAPDU: 90 00 [09:28:05]wFMCommunicate OK [09:28:05]wFMCommunicate request_size=20 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 0D 02 02 0F 00 10 C3 00 00 35 04 06 00 4A 2D 79 96 96 AB [09:28:05]Write to MH i2c: E2 17 00 0B 0F 80 0D 02 02 0F 00 00 10 C3 00 00 35 04 06 00 4A 2D 79 96 96 AB 00 00 8B [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 0B 0F 00 90 00 8E [09:28:05]RAPDU: 90 00 [09:28:05]wFMCommunicate OK [09:28:05]wFMCommunicate request_size=4 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 0D 03 02 [09:28:05]Write to MH i2c: E2 08 00 0C 0F 80 0D 03 02 00 00 00 00 96 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 0B 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 0B 00 0C 0F 00 84 51 57 20 CC A6 14 7D 90 00 E6 [09:28:05]RAPDU: 84 51 57 20 CC A6 14 7D 90 00 [09:28:05]wFMCommunicate OK [09:28:05]SAM_PROTO_SignData done [09:28:05]FM_MakeSignedData done [09:28:05]CreateOFDProtocolMessage [09:28:05]wFMCommunicate request_size=4 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 11 00 00 [09:28:05]Write to MH i2c: E2 08 00 0D 0F 80 11 00 00 00 00 00 00 96 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 17 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 17 00 0D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E1 [09:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:28:05]wFMCommunicate OK [09:28:05]CreateOFDProtocolMessage done [09:28:05]OFDSenderStorePacket 49936 [09:28:05]StoreOFDPacket docnum=49936 [09:28:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 19 01 00 00 76 FA 11 01 F6 3E 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 26 10 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 10 C3 00 00 35 04 06 00 4A 2D 79 96 96 AB 84 51 57 20 CC A6 14 7D [09:28:05]CheckFolder [09:28:05]dirname=/storage/ofd_packets [09:28:05]CheckFolder done [09:28:05]ProducePacketName [09:28:05]name=ofd_packets/00049936 [09:28:05]NVStorageSaveData ofd_packets/00049936 [09:28:05]File name is /storage/ofd_packets/00049936 [09:28:05]Write 311 bytes [09:28:05]NVStorageSaveData done [09:28:05]OFDSenderStorePacket done [09:28:05]KKMCreateOFDPacket done [09:28:05]NVStorageSaveData kkm_last_timestamp [09:28:05]File name is /storage/kkm_last_timestamp [09:28:05]Write 4 bytes [09:28:05]NVStorageSaveData done [09:28:05]OFD Sender: Processing packet 49936 [packets to send 21, broken 20] [09:28:05]ProducePacketName [09:28:05]name=ofd_packets/00049936 [09:28:05]OFD Sender: To server: pG, [09:28:05]CommunicateWithHost lk.salyk.kg:30040 [09:28:05]ConnectInit lk.salyk.kg [09:28:05]ExternCall_PrintAddStr [09:28:05]wPrintStart [09:28:05]Write to MH i2c: 01 00 00 0E 0F 1D [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 07 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 07 00 0E 0F 00 00 00 00 00 FF 0F 32 [09:28:05]RasterBufferAndPrint [09:28:05]line Счет N : (3)190093 [09:28:05]line ИНН: 02508201610067 [09:28:05]line Контрольно-Кассовый Чек [09:28:05]line ПРОДАЖА [09:28:05]line Товар: 48741156 [09:28:05]line Сигареты LD Blue [09:28:05]line 1.000 * 130.00 [09:28:05]line = 130.00 [09:28:05]line НДС 12% НСП 1% [09:28:05]line > о реализуемом товаре [09:28:05]line ИТОГО: 130.00 [09:28:05]line НСП 1% : 1.15 [09:28:05]line НДС 12% : 13.80 [09:28:05]line Наличными: 130.00 [09:28:05]line Безнал.: 0.00 [09:28:05]line Место: АЗС № 95 "Партнер Нефть" [09:28:05]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:28:05]line СНО: Общий режим [09:28:05]line Чек 43 19.08.2024 09:28 [09:28:05]line Смена: 467 ФФД: 1.0 [09:28:05]line ЗНМ: 0300000078 [09:28:05]line РНМ: 0000000000092546 [09:28:05]line Версия ККМ: 001 [09:28:05]line ФМ: 0000000000871800 [09:28:05]line ФД: 49936 [09:28:05]line ФПД: 81559173895851 [09:28:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T092806&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49936&fm=81559173895851&tin=02508201610067®Number=0000000000092546&sum=13000 [09:28:06]line 0 [09:28:06]Connected sock=11 [09:28:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 19 01 00 00 76 FA 11 01 F6 3E 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 26 10 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 10 C3 00 00 35 04 06 00 4A 2D 79 96 96 AB 84 51 57 20 CC A6 14 7D [09:28:06]written 0, free lines is 4095 [09:28:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 43 BC 47 00 11 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 10 C3 00 00 F4 03 04 00 93 BA C2 66 B6 04 01 00 00 97 3D 4B 38 7B 6E 1C BF [09:28:06]CommunicateWithHost err = 0 [09:28:06]CheckOFDResponse [09:28:06]1017 (14) - 77093643461234 [09:28:06]1041 (16) - 0000000000871800 [09:28:06]1040 (4) - 49936 [09:28:06]1012 (4) - 19.08.2024 03:22 [09:28:06]1206 (1) - 0 [09:28:06]OFD Sender: Remove packet 49936 [09:28:06]ProducePacketName [09:28:06]name=ofd_packets/00049936 [09:28:06]NVStorageDeleteData [09:28:06]Write to MH i2c: 01 00 00 36 0F 45 [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: 01 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: 01 07 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: 01 07 00 36 0F 00 00 00 00 00 FD 0C 55 [09:28:06]RasterBufferAndPrint [09:28:06]line [09:28:06]line [09:28:06]line [09:28:06]line [09:28:06]line [09:28:06]written 0, free lines is 3331 [09:28:06]MH_Cut [09:28:06]Write to MH i2c: D1 01 00 3D 0F 01 1E [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: D1 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: D1 01 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: D1 01 00 3D 0F 00 1D [09:28:06]Write to MH i2c: 01 00 00 3E 0F 4D [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]OFD Sender: No OFD packet to send [09:28:07]*** Cut start [09:28:07]*** Purtial cut [09:28:07]*** Stage 1: CUTSNS_PIN = 1 [09:28:07]Read from MH i2c: 01 [09:28:07]MH_I2C_Read... [09:28:07]*** Stop cut motor [09:28:07]*** Cut end [09:28:07]Read from MH i2c: 01 07 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: 01 07 00 3E 0F 00 00 00 00 00 FF 0F 62 [09:28:07]process_action close_receipt done [09:28:07]requested_data is exist [09:28:07]produce_requested_data [09:28:07]requested_item fm.sn is exist - process it [09:28:07]wFMCommunicate request_size=4 [09:28:07]MH_SAM_APDU [09:28:07]CAPDU: 80 11 00 00 [09:28:07]Write to MH i2c: E2 08 00 3F 0F 80 11 00 00 00 00 00 00 C8 [09:28:07]Write i2c OK [09:28:07]MH_I2C_Read... [09:28:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:07]Read from MH i2c: E2 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 17 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 17 00 3F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 13 [09:28:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:28:07]wFMCommunicate OK [09:28:07]requested_item fd.num is exist - process it [09:28:07]SAM_PROTO_GetFieldsCounters [09:28:07]wFMCommunicate request_size=4 [09:28:07]MH_SAM_APDU [09:28:07]CAPDU: 80 13 00 00 [09:28:07]Write to MH i2c: E2 08 00 40 0F 80 13 00 00 00 00 00 00 CB [09:28:07]Write i2c OK [09:28:07]MH_I2C_Read... [09:28:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:07]Read from MH i2c: E2 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 62 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 62 00 40 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 10 C3 00 00 0E 04 04 00 D3 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 0D [09:28:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 10 C3 00 00 0E 04 04 00 D3 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 [09:28:07]wFMCommunicate OK [09:28:07]SAM_PROTO_GetFieldsCounters done [09:28:07]requested_item shift.num is exist - process it [09:28:07]requested_item shift.opened is exist - process it [09:28:07]req_shift_opened [09:28:07]FM_GetShiftState [09:28:07]SAM_PROTO_GetShiftState [09:28:07]wFMCommunicate request_size=4 [09:28:07]MH_SAM_APDU [09:28:07]CAPDU: 80 13 01 00 [09:28:07]Write to MH i2c: E2 08 00 41 0F 80 13 01 00 00 00 00 00 CD [09:28:07]Write i2c OK [09:28:07]MH_I2C_Read... [09:28:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:07]Read from MH i2c: E2 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 0E 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 0E 00 41 0F 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 87 [09:28:07]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:28:07]wFMCommunicate OK [09:28:07]SAM_PROTO_GetShiftState done [09:28:07]FM_GetShiftState done [09:28:07]req_shift_opened done [09:28:07]requested_item shift.open_date is exist - process it [09:28:07]req_shift_open_date [09:28:07]req_shift_open_date done [09:28:07]produce_requested_data done [09:28:07]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49936,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [09:28:07]process_action_free close_receipt [09:28:07]json_value_free [09:28:07]json_value_free done [09:28:07]process_json_proto returns [09:28:07]Send response to host [09:28:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49936,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [09:28:07]free response buf [09:28:07]execute_script done [09:28:07]execute_script returns [09:28:07]free content buf [09:28:07]Sock 7.Close socket [09:28:07]Sock 7.Thread stoped [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:49]accept exits with 9 [09:31:49]New connection [09:31:49]New thread 3067354468 created [09:31:49]Thread 3067211108 joined [09:31:49]Waiting for new connection... [09:31:49] Sock 9.Parse request [09:31:49]Sock 9.Check first char [09:31:49]Sock 9.First char is OK [09:31:49]request: POST /json_proto HTTP/1.0 [09:31:49]Method: POST [09:31:49]URL: /json_proto [09:31:49]Method is POST - this is cgi request [09:31:49]url: /json_proto [09:31:49]query_string will be loaded in cgi processing [09:31:49]execute_cgi json_proto POST (null) [09:31:49]execute_cgi path=json_proto method=POST [09:31:49]POST find Content-Length [09:31:49]Host: 172.17.46.196:8080 [09:31:49]Content-Length: 756 [09:31:49]Content-Type: application/json [09:31:49] [09:31:49]POST finish read [09:31:49]Found Content-Length = 756 [09:31:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 36.790, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30159182", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:49]execute_script... [09:31:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 36.790, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30159182", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:49]POST & json_proto [09:31:49]process_json_proto [09:31:49]json parsed OK: [09:31:49]protocol is kg_v1.0 [09:31:49]action value=close_receipt [09:31:49]process_action close_receipt [09:31:49]cmd_close_receipt [09:31:49]MH_GetDate [09:31:49]Write to MH i2c: F0 00 00 42 0F 40 [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: F0 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: F0 09 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: F0 09 00 42 0F 00 07 11 C3 66 C4 85 C2 66 FB [09:31:49]GetLastDocTimeStamp 1724059686 [09:31:49]current date 1724059911 [09:31:49]FM_GetShiftState [09:31:49]SAM_PROTO_GetShiftState [09:31:49]wFMCommunicate request_size=4 [09:31:49]MH_SAM_APDU [09:31:49]CAPDU: 80 13 01 00 [09:31:49]Write to MH i2c: E2 08 00 43 0F 80 13 01 00 00 00 00 00 CF [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:49]Read from MH i2c: E2 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 0E 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 0E 00 43 0F 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 89 [09:31:49]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:31:49]wFMCommunicate OK [09:31:49]SAM_PROTO_GetShiftState done [09:31:49]FM_GetShiftState done [09:31:49]opened in 1724026361 [09:31:49]opened+sec_in_day 1724112761 [09:31:49]quantity*price = 0 [09:31:49]sum+1 = 1 [09:31:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 44 19.08.2024 09:31 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30159182 ФМ: 0000000000871800 ФД: 49937 ФПД: 180552852690308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T093151&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49937&fm=180552852690308&tin=02508201610067®Number=0000000000092546&sum=0 [09:31:50]StoreToDocumentArchive [09:31:50]shift 467 fd 49937 [09:31:50]save to /storage/0467/doc_00049937 [09:31:50]save last doc name /storage/0467/doc_00049937 to /storage/kkm_last_doc_name [09:31:50]save OK [09:31:50]Clear old archive folders... [09:31:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:50]tlvbuf is 00F67A70 [09:31:50]SAM_PROTO_ClearQueue [09:31:50]wFMCommunicate request_size=4 [09:31:50]MH_SAM_APDU [09:31:50]CAPDU: 80 09 00 00 [09:31:50]Write to MH i2c: E2 08 00 50 0F 80 09 00 00 00 00 00 00 D1 [09:31:50]Write i2c OK [09:31:50]MH_I2C_Read... [09:31:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:50]Read from MH i2c: E2 [09:31:50]MH_I2C_Read... [09:31:50]Read from MH i2c: E2 03 00 [09:31:50]MH_I2C_Read... [09:31:50]Read from MH i2c: E2 03 00 50 0F 00 90 00 D3 [09:31:50]RAPDU: 90 00 [09:31:50]wFMCommunicate OK [09:31:50]SAM_PROTO_ClearQueue done [09:31:50]KKMCreateOFDPacket [09:31:50]OFDProtocolAddRootSTLVToBuf [09:31:50]FM_MakeSignedData [09:31:50]FM_MakeSignedData [09:31:50]SAM_PROTO_SignData [09:31:50]wFMCommunicate request_size=4 [09:31:50]MH_SAM_APDU [09:31:50]CAPDU: 80 0D 01 02 [09:31:50]Write to MH i2c: E2 08 00 51 0F 80 0D 01 02 00 00 00 00 D9 [09:31:50]Write i2c OK [09:31:50]MH_I2C_Read... [09:31:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:50]Read from MH i2c: E2 [09:31:50]MH_I2C_Read... [09:31:50]Read from MH i2c: E2 03 00 [09:31:50]MH_I2C_Read... [09:31:50]Read from MH i2c: E2 03 00 51 0F 00 90 00 D4 [09:31:50]RAPDU: 90 00 [09:31:50]wFMCommunicate OK [09:31:50]wFMCommunicate request_size=255 [09:31:50]MH_SAM_APDU [09:31:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 8F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 07 11 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 11 C3 00 00 35 04 06 00 A4 [09:31:50]Write to MH i2c: E2 02 01 52 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 8F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 07 11 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 11 C3 00 00 35 04 06 00 A4 00 00 D9 [09:31:50]Write i2c OK [09:31:50]MH_I2C_Read... [09:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:50]Read from MH i2c: E2 [09:31:50]MH_I2C_Read... [09:31:50]Read from MH i2c: E2 03 00 [09:31:50]MH_I2C_Read... [09:31:50]Read from MH i2c: E2 03 00 52 0F 00 90 00 D5 [09:31:50]RAPDU: 90 00 [09:31:50]wFMCommunicate OK [09:31:50]wFMCommunicate request_size=10 [09:31:50]MH_SAM_APDU [09:31:50]CAPDU: 80 0D 02 02 05 36 3C A5 D5 84 [09:31:50]Write to MH i2c: E2 0D 00 53 0F 80 0D 02 02 05 00 36 3C A5 D5 84 00 00 56 [09:31:50]Write i2c OK [09:31:50]MH_I2C_Read... [09:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:50]Read from MH i2c: E2 [09:31:50]MH_I2C_Read... [09:31:50]Read from MH i2c: E2 03 00 [09:31:50]MH_I2C_Read... [09:31:50]Read from MH i2c: E2 03 00 53 0F 00 90 00 D6 [09:31:50]RAPDU: 90 00 [09:31:50]wFMCommunicate OK [09:31:50]wFMCommunicate request_size=4 [09:31:50]MH_SAM_APDU [09:31:50]CAPDU: 80 0D 03 02 [09:31:50]Write to MH i2c: E2 08 00 54 0F 80 0D 03 02 00 00 00 00 DE [09:31:50]Write i2c OK [09:31:50]MH_I2C_Read... [09:31:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:51]Read from MH i2c: E2 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 0B 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 0B 00 54 0F 00 AB 82 A0 20 33 16 B8 50 90 00 1D [09:31:51]RAPDU: AB 82 A0 20 33 16 B8 50 90 00 [09:31:51]wFMCommunicate OK [09:31:51]SAM_PROTO_SignData done [09:31:51]FM_MakeSignedData done [09:31:51]CreateOFDProtocolMessage [09:31:51]wFMCommunicate request_size=4 [09:31:51]MH_SAM_APDU [09:31:51]CAPDU: 80 11 00 00 [09:31:51]Write to MH i2c: E2 08 00 55 0F 80 11 00 00 00 00 00 00 DE [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:51]Read from MH i2c: E2 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 17 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 17 00 55 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 29 [09:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:31:51]wFMCommunicate OK [09:31:51]CreateOFDProtocolMessage done [09:31:51]OFDSenderStorePacket 49937 [09:31:51]StoreOFDPacket docnum=49937 [09:31:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 3E 2F 07 01 44 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 8F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 07 11 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 11 C3 00 00 35 04 06 00 A4 36 3C A5 D5 84 AB 82 A0 20 33 16 B8 50 [09:31:51]CheckFolder [09:31:51]dirname=/storage/ofd_packets [09:31:51]CheckFolder done [09:31:51]ProducePacketName [09:31:51]name=ofd_packets/00049937 [09:31:51]NVStorageSaveData ofd_packets/00049937 [09:31:51]File name is /storage/ofd_packets/00049937 [09:31:51]Write 301 bytes [09:31:51]NVStorageSaveData done [09:31:51]OFDSenderStorePacket done [09:31:51]KKMCreateOFDPacket done [09:31:51]NVStorageSaveData kkm_last_timestamp [09:31:51]File name is /storage/kkm_last_timestamp [09:31:51]Write 4 bytes [09:31:51]NVStorageSaveData done [09:31:51]ExternCall_PrintAddStr [09:31:51]wPrintStart [09:31:51]Write to MH i2c: 01 00 00 56 0F 65 [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: 01 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: 01 07 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: 01 07 00 56 0F 00 00 00 00 00 FF 0F 7A [09:31:51]RasterBufferAndPrint [09:31:51]line Счет N : (1)11327606 [09:31:51]line ИНН: 02508201610067 [09:31:51]line Контрольно-Кассовый Чек [09:31:51]line ПРОДАЖА [09:31:51]line ТРК (МРК, ГНК) : 42 [09:31:51]line Товар: 2710124130 [09:31:51]line Аи-92-К-4 [09:31:51]line 36.790 * 0.00 [09:31:51]line = 0.00 [09:31:51]line НДС 12% НСП 1% [09:31:51]line > о реализуемом товаре [09:31:51]line ИТОГО: 0.00 [09:31:51]line НСП 1% : 0.00 [09:31:51]line НДС 12% : 0.00 [09:31:51]line Наличными: 0.00 [09:31:51]line Безнал.: 0.00 [09:31:51]line Место: АЗС № 95 "Партнер Нефть" [09:31:51]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:31:51]line СНО: Общий режим [09:31:51]line Чек 44 19.08.2024 09:31 [09:31:51]line Смена: 467 ФФД: 1.0 [09:31:51]line ЗНМ: 0300000078 [09:31:51]line РНМ: 0000000000092546 [09:31:51]line Версия ККМ: 001 [09:31:51]line Талоны: ТК ГПНА Online [09:31:51]line 30159182 [09:31:51]line ФМ: 0000000000871800 [09:31:51]line ФД: 49937 [09:31:51]line ФПД: 180552852690308 [09:31:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T093151&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49937&fm=180552852690308&tin=02508201610067®Number=0000000000092546&sum=0 [09:31:51]written 0, free lines is 4095 [09:31:51]OFD Sender: Processing packet 49937 [packets to send 21, broken 20] [09:31:51]ProducePacketName [09:31:51]name=ofd_packets/00049937 [09:31:51]OFD Sender: To server: pG, [09:31:51]CommunicateWithHost lk.salyk.kg:30040 [09:31:51]ConnectInit lk.salyk.kg [09:31:51]Write to MH i2c: 01 00 00 80 0F 8F [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: 01 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: 01 07 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: 01 07 00 80 0F 00 00 00 00 00 DC 0C 7E [09:31:51]RasterBufferAndPrint [09:31:51]line [09:31:51]line [09:31:51]line [09:31:51]line [09:31:51]line [09:31:51]written 0, free lines is 3298 [09:31:51]MH_Cut [09:31:51]Write to MH i2c: D1 01 00 87 0F 01 68 [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: D1 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: D1 01 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: D1 01 00 87 0F 00 67 [09:31:51]Write to MH i2c: 01 00 00 88 0F 97 [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]Connected sock=10 [09:31:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 3E 2F 07 01 44 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 8F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 07 11 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 11 C3 00 00 35 04 06 00 A4 36 3C A5 D5 84 AB 82 A0 20 33 16 B8 50 [09:31:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 1B 1B 47 00 79 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 11 C3 00 00 F4 03 04 00 75 BB C2 66 B6 04 01 00 00 BA C0 92 20 58 50 B1 8D [09:31:51]CommunicateWithHost err = 0 [09:31:51]CheckOFDResponse [09:31:51]1017 (14) - 77093643461234 [09:31:51]1041 (16) - 0000000000871800 [09:31:51]1040 (4) - 49937 [09:31:51]1012 (4) - 19.08.2024 03:26 [09:31:51]1206 (1) - 0 [09:31:51]OFD Sender: Remove packet 49937 [09:31:51]ProducePacketName [09:31:51]name=ofd_packets/00049937 [09:31:51]NVStorageDeleteData [09:31:52]*** Cut start [09:31:52]*** Purtial cut [09:31:52]*** CUTSNS_PIN = 0 [09:31:52]OFD Sender: No OFD packet to send [09:31:52]*** Stage 1: CUTSNS_PIN = 1 [09:31:54]Read from MH i2c: 01 [09:31:54]MH_I2C_Read... [09:31:54]*** Stop cut motor [09:31:54]*** Cut end [09:31:54]Read from MH i2c: 01 07 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: 01 07 00 88 0F 00 00 00 00 00 FF 0F AC [09:31:54]process_action close_receipt done [09:31:54]requested_data is exist [09:31:54]produce_requested_data [09:31:54]requested_item fm.sn is exist - process it [09:31:54]wFMCommunicate request_size=4 [09:31:54]MH_SAM_APDU [09:31:54]CAPDU: 80 11 00 00 [09:31:54]Write to MH i2c: E2 08 00 89 0F 80 11 00 00 00 00 00 00 12 [09:31:54]Write i2c OK [09:31:54]MH_I2C_Read... [09:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:54]Read from MH i2c: E2 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 17 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 17 00 89 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5D [09:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:31:54]wFMCommunicate OK [09:31:54]requested_item fd.num is exist - process it [09:31:54]SAM_PROTO_GetFieldsCounters [09:31:54]wFMCommunicate request_size=4 [09:31:54]MH_SAM_APDU [09:31:54]CAPDU: 80 13 00 00 [09:31:54]Write to MH i2c: E2 08 00 8A 0F 80 13 00 00 00 00 00 00 15 [09:31:54]Write i2c OK [09:31:54]MH_I2C_Read... [09:31:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:54]Read from MH i2c: E2 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 62 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 62 00 8A 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 11 C3 00 00 0E 04 04 00 D3 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 5B [09:31:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 11 C3 00 00 0E 04 04 00 D3 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 [09:31:54]wFMCommunicate OK [09:31:54]SAM_PROTO_GetFieldsCounters done [09:31:54]requested_item shift.num is exist - process it [09:31:54]requested_item shift.opened is exist - process it [09:31:54]req_shift_opened [09:31:54]FM_GetShiftState [09:31:54]SAM_PROTO_GetShiftState [09:31:54]wFMCommunicate request_size=4 [09:31:54]MH_SAM_APDU [09:31:54]CAPDU: 80 13 01 00 [09:31:54]Write to MH i2c: E2 08 00 8B 0F 80 13 01 00 00 00 00 00 17 [09:31:54]Write i2c OK [09:31:54]MH_I2C_Read... [09:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:54]Read from MH i2c: E2 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 0E 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 0E 00 8B 0F 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 D1 [09:31:54]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:31:54]wFMCommunicate OK [09:31:54]SAM_PROTO_GetShiftState done [09:31:54]FM_GetShiftState done [09:31:54]req_shift_opened done [09:31:54]requested_item shift.open_date is exist - process it [09:31:54]req_shift_open_date [09:31:54]req_shift_open_date done [09:31:54]produce_requested_data done [09:31:54]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49937,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [09:31:54]process_action_free close_receipt [09:31:54]json_value_free [09:31:54]json_value_free done [09:31:54]process_json_proto returns [09:31:54]Send response to host [09:31:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49937,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [09:31:54]free response buf [09:31:54]execute_script done [09:31:54]execute_script returns [09:31:54]free content buf [09:31:54]Sock 9.Close socket [09:31:54]Sock 9.Thread stoped [09:31:54]accept exits with 7 [09:31:54]New connection [09:31:54]New thread 3067211108 created [09:31:54]Thread 3067354468 joined [09:31:54]Waiting for new connection... [09:31:54] Sock 7.Parse request [09:31:54]Sock 7.Check first char [09:31:54]Sock 7.First char is OK [09:31:54]request: POST /json_proto HTTP/1.0 [09:31:54]Method: POST [09:31:54]URL: /json_proto [09:31:54]Method is POST - this is cgi request [09:31:54]url: /json_proto [09:31:54]query_string will be loaded in cgi processing [09:31:54]execute_cgi json_proto POST (null) [09:31:54]execute_cgi path=json_proto method=POST [09:31:54]POST find Content-Length [09:31:54]Host: 172.17.46.196:8080 [09:31:54]Content-Length: 756 [09:31:54]Content-Type: application/json [09:31:54] [09:31:54]POST finish read [09:31:54]Found Content-Length = 756 [09:31:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30159182", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:54]execute_script... [09:31:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30159182", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:54]POST & json_proto [09:31:54]process_json_proto [09:31:54]json parsed OK: [09:31:54]protocol is kg_v1.0 [09:31:54]action value=close_receipt [09:31:54]process_action close_receipt [09:31:54]cmd_close_receipt [09:31:54]MH_GetDate [09:31:54]Write to MH i2c: F0 00 00 8C 0F 8A [09:31:54]Write i2c OK [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: F0 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: F0 09 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: F0 09 00 8C 0F 00 0C 11 C3 66 C4 85 C2 66 4A [09:31:54]GetLastDocTimeStamp 1724059911 [09:31:54]current date 1724059916 [09:31:54]FM_GetShiftState [09:31:54]SAM_PROTO_GetShiftState [09:31:54]wFMCommunicate request_size=4 [09:31:54]MH_SAM_APDU [09:31:54]CAPDU: 80 13 01 00 [09:31:54]Write to MH i2c: E2 08 00 8D 0F 80 13 01 00 00 00 00 00 19 [09:31:54]Write i2c OK [09:31:54]MH_I2C_Read... [09:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:54]Read from MH i2c: E2 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 0E 00 [09:31:54]MH_I2C_Read... [09:31:54]Read from MH i2c: E2 0E 00 8D 0F 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 D3 [09:31:54]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:31:54]wFMCommunicate OK [09:31:54]SAM_PROTO_GetShiftState done [09:31:54]FM_GetShiftState done [09:31:54]opened in 1724026361 [09:31:54]opened+sec_in_day 1724112761 [09:31:54]quantity*price = 0 [09:31:54]sum+1 = 1 [09:31:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 45 19.08.2024 09:31 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30159182 ФМ: 0000000000871800 ФД: 49938 ФПД: 215564032174273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T093157&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49938&fm=215564032174273&tin=02508201610067®Number=0000000000092546&sum=0 [09:31:55]StoreToDocumentArchive [09:31:55]shift 467 fd 49938 [09:31:55]save to /storage/0467/doc_00049938 [09:31:55]save last doc name /storage/0467/doc_00049938 to /storage/kkm_last_doc_name [09:31:55]save OK [09:31:55]Clear old archive folders... [09:31:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:55]tlvbuf is 00FA2FB0 [09:31:55]SAM_PROTO_ClearQueue [09:31:55]wFMCommunicate request_size=4 [09:31:55]MH_SAM_APDU [09:31:55]CAPDU: 80 09 00 00 [09:31:55]Write to MH i2c: E2 08 00 9A 0F 80 09 00 00 00 00 00 00 1B [09:31:55]Write i2c OK [09:31:55]MH_I2C_Read... [09:31:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:56]Read from MH i2c: E2 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 03 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 03 00 9A 0F 00 90 00 1D [09:31:56]RAPDU: 90 00 [09:31:56]wFMCommunicate OK [09:31:56]SAM_PROTO_ClearQueue done [09:31:56]KKMCreateOFDPacket [09:31:56]OFDProtocolAddRootSTLVToBuf [09:31:56]FM_MakeSignedData [09:31:56]FM_MakeSignedData [09:31:56]SAM_PROTO_SignData [09:31:56]wFMCommunicate request_size=4 [09:31:56]MH_SAM_APDU [09:31:56]CAPDU: 80 0D 01 02 [09:31:56]Write to MH i2c: E2 08 00 9B 0F 80 0D 01 02 00 00 00 00 23 [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:56]Read from MH i2c: E2 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 03 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 03 00 9B 0F 00 90 00 1E [09:31:56]RAPDU: 90 00 [09:31:56]wFMCommunicate OK [09:31:56]wFMCommunicate request_size=255 [09:31:56]MH_SAM_APDU [09:31:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 0D 11 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 12 C3 00 00 35 04 06 00 C4 [09:31:56]Write to MH i2c: E2 02 01 9C 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 0D 11 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 12 C3 00 00 35 04 06 00 C4 00 00 3D [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:56]Read from MH i2c: E2 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 03 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 03 00 9C 0F 00 90 00 1F [09:31:56]RAPDU: 90 00 [09:31:56]wFMCommunicate OK [09:31:56]wFMCommunicate request_size=10 [09:31:56]MH_SAM_APDU [09:31:56]CAPDU: 80 0D 02 02 05 0D E9 90 68 C1 [09:31:56]Write to MH i2c: E2 0D 00 9D 0F 80 0D 02 02 05 00 0D E9 90 68 C1 00 00 DF [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:56]Read from MH i2c: E2 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 03 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 03 00 9D 0F 00 90 00 20 [09:31:56]RAPDU: 90 00 [09:31:56]wFMCommunicate OK [09:31:56]wFMCommunicate request_size=4 [09:31:56]MH_SAM_APDU [09:31:56]CAPDU: 80 0D 03 02 [09:31:56]Write to MH i2c: E2 08 00 9E 0F 80 0D 03 02 00 00 00 00 28 [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:56]Read from MH i2c: E2 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 0B 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 0B 00 9E 0F 00 4A 10 BA D1 E9 06 77 84 90 00 F8 [09:31:56]RAPDU: 4A 10 BA D1 E9 06 77 84 90 00 [09:31:56]wFMCommunicate OK [09:31:56]SAM_PROTO_SignData done [09:31:56]FM_MakeSignedData done [09:31:56]CreateOFDProtocolMessage [09:31:56]wFMCommunicate request_size=4 [09:31:56]MH_SAM_APDU [09:31:56]CAPDU: 80 11 00 00 [09:31:56]Write to MH i2c: E2 08 00 9F 0F 80 11 00 00 00 00 00 00 28 [09:31:56]Write i2c OK [09:31:56]MH_I2C_Read... [09:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:56]Read from MH i2c: E2 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 17 00 [09:31:56]MH_I2C_Read... [09:31:56]Read from MH i2c: E2 17 00 9F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 73 [09:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:31:56]wFMCommunicate OK [09:31:56]CreateOFDProtocolMessage done [09:31:56]OFDSenderStorePacket 49938 [09:31:56]StoreOFDPacket docnum=49938 [09:31:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 66 2B 07 01 C9 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 0D 11 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 12 C3 00 00 35 04 06 00 C4 0D E9 90 68 C1 4A 10 BA D1 E9 06 77 84 [09:31:57]CheckFolder [09:31:57]dirname=/storage/ofd_packets [09:31:57]CheckFolder done [09:31:57]ProducePacketName [09:31:57]name=ofd_packets/00049938 [09:31:57]NVStorageSaveData ofd_packets/00049938 [09:31:57]File name is /storage/ofd_packets/00049938 [09:31:57]Write 301 bytes [09:31:57]NVStorageSaveData done [09:31:57]OFDSenderStorePacket done [09:31:57]KKMCreateOFDPacket done [09:31:57]NVStorageSaveData kkm_last_timestamp [09:31:57]File name is /storage/kkm_last_timestamp [09:31:57]Write 4 bytes [09:31:57]NVStorageSaveData done [09:31:57]ExternCall_PrintAddStr [09:31:57]wPrintStart [09:31:57]Write to MH i2c: 01 00 00 A0 0F AF [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: 01 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: 01 07 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: 01 07 00 A0 0F 00 00 00 00 00 FF 0F C4 [09:31:57]RasterBufferAndPrint [09:31:57]line Счет N : (1)11327607 [09:31:57]line ИНН: 02508201610067 [09:31:57]line Контрольно-Кассовый Чек [09:31:57]line ПРОДАЖА [09:31:57]line ТРК (МРК, ГНК) : 12 [09:31:57]line Товар: 2710124130 [09:31:57]line Аи-92-К-4 [09:31:57]line 10.000 * 0.00 [09:31:57]line = 0.00 [09:31:57]line НДС 12% НСП 1% [09:31:57]line > о реализуемом товаре [09:31:57]line ИТОГО: 0.00 [09:31:57]line НСП 1% : 0.00 [09:31:57]line НДС 12% : 0.00 [09:31:57]line Наличными: 0.00 [09:31:57]line Безнал.: 0.00 [09:31:57]line Место: АЗС № 95 "Партнер Нефть" [09:31:57]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:31:57]line СНО: Общий режим [09:31:57]line Чек 45 19.08.2024 09:31 [09:31:57]line Смена: 467 ФФД: 1.0 [09:31:57]line ЗНМ: 0300000078 [09:31:57]line РНМ: 0000000000092546 [09:31:57]line Версия ККМ: 001 [09:31:57]line Талоны: ТК ГПНА Online [09:31:57]line 30159182 [09:31:57]line ФМ: 0000000000871800 [09:31:57]line ФД: 49938 [09:31:57]line ФПД: 215564032174273 [09:31:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T093157&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49938&fm=215564032174273&tin=02508201610067®Number=0000000000092546&sum=0 [09:31:57]written 0, free lines is 4095 [09:31:57]OFD Sender: Processing packet 49938 [packets to send 21, broken 20] [09:31:57]ProducePacketName [09:31:57]name=ofd_packets/00049938 [09:31:57]OFD Sender: To server: pG, [09:31:57]CommunicateWithHost lk.salyk.kg:30040 [09:31:57]ConnectInit lk.salyk.kg [09:31:57]Connected sock=10 [09:31:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 66 2B 07 01 C9 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 0D 11 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 12 C3 00 00 35 04 06 00 C4 0D E9 90 68 C1 4A 10 BA D1 E9 06 77 84 [09:31:57]Write to MH i2c: 01 00 00 CA 0F D9 [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: 01 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: 01 07 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: 01 07 00 CA 0F 00 00 00 00 00 12 0D FF [09:31:57]RasterBufferAndPrint [09:31:57]line [09:31:57]line [09:31:57]line [09:31:57]line [09:31:57]line [09:31:57]written 0, free lines is 3358 [09:31:57]MH_Cut [09:31:57]Write to MH i2c: D1 01 00 D1 0F 01 B2 [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: D1 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: D1 01 00 [09:31:57]MH_I2C_Read... [09:31:57]Read from MH i2c: D1 01 00 D1 0F 00 B1 [09:31:57]Write to MH i2c: 01 00 00 D2 0F E1 [09:31:57]Write i2c OK [09:31:57]MH_I2C_Read... [09:31:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D8 33 47 00 DF 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 12 C3 00 00 F4 03 04 00 7B BB C2 66 B6 04 01 00 00 B6 95 1D F1 1C C7 A2 FF [09:31:57]CommunicateWithHost err = 0 [09:31:57]CheckOFDResponse [09:31:57]1017 (14) - 77093643461234 [09:31:57]1041 (16) - 0000000000871800 [09:31:57]1040 (4) - 49938 [09:31:57]1012 (4) - 19.08.2024 03:26 [09:31:57]1206 (1) - 0 [09:31:57]OFD Sender: Remove packet 49938 [09:31:57]ProducePacketName [09:31:57]name=ofd_packets/00049938 [09:31:57]NVStorageDeleteData [09:31:58]OFD Sender: No OFD packet to send [09:31:58]*** Cut start [09:31:58]*** Purtial cut [09:31:58]*** Stage 1: CUTSNS_PIN = 1 [09:31:58]Read from MH i2c: 01 [09:31:58]MH_I2C_Read... [09:31:58]*** Stop cut motor [09:31:58]*** Cut end [09:31:58]Read from MH i2c: 01 07 00 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: 01 07 00 D2 0F 00 00 00 00 00 FF 0F F6 [09:31:58]process_action close_receipt done [09:31:58]requested_data is exist [09:31:58]produce_requested_data [09:31:58]requested_item fm.sn is exist - process it [09:31:58]wFMCommunicate request_size=4 [09:31:58]MH_SAM_APDU [09:31:58]CAPDU: 80 11 00 00 [09:31:58]Write to MH i2c: E2 08 00 D3 0F 80 11 00 00 00 00 00 00 5C [09:31:58]Write i2c OK [09:31:58]MH_I2C_Read... [09:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:58]Read from MH i2c: E2 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 17 00 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 17 00 D3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A7 [09:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:31:58]wFMCommunicate OK [09:31:58]requested_item fd.num is exist - process it [09:31:58]SAM_PROTO_GetFieldsCounters [09:31:58]wFMCommunicate request_size=4 [09:31:58]MH_SAM_APDU [09:31:58]CAPDU: 80 13 00 00 [09:31:58]Write to MH i2c: E2 08 00 D4 0F 80 13 00 00 00 00 00 00 5F [09:31:58]Write i2c OK [09:31:58]MH_I2C_Read... [09:31:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:58]Read from MH i2c: E2 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 62 00 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 62 00 D4 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 12 C3 00 00 0E 04 04 00 D3 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 A9 [09:31:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 12 C3 00 00 0E 04 04 00 D3 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 [09:31:58]wFMCommunicate OK [09:31:58]SAM_PROTO_GetFieldsCounters done [09:31:58]requested_item shift.num is exist - process it [09:31:58]requested_item shift.opened is exist - process it [09:31:58]req_shift_opened [09:31:58]FM_GetShiftState [09:31:58]SAM_PROTO_GetShiftState [09:31:58]wFMCommunicate request_size=4 [09:31:58]MH_SAM_APDU [09:31:58]CAPDU: 80 13 01 00 [09:31:58]Write to MH i2c: E2 08 00 D5 0F 80 13 01 00 00 00 00 00 61 [09:31:58]Write i2c OK [09:31:58]MH_I2C_Read... [09:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:58]Read from MH i2c: E2 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 0E 00 [09:31:58]MH_I2C_Read... [09:31:58]Read from MH i2c: E2 0E 00 D5 0F 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 1B [09:31:58]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:31:58]wFMCommunicate OK [09:31:58]SAM_PROTO_GetShiftState done [09:31:58]FM_GetShiftState done [09:31:58]req_shift_opened done [09:31:58]requested_item shift.open_date is exist - process it [09:31:58]req_shift_open_date [09:31:58]req_shift_open_date done [09:31:58]produce_requested_data done [09:31:58]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49938,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [09:31:58]process_action_free close_receipt [09:31:58]json_value_free [09:31:58]json_value_free done [09:31:58]process_json_proto returns [09:31:58]Send response to host [09:31:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49938,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [09:31:58]free response buf [09:31:58]execute_script done [09:31:58]execute_script returns [09:31:58]free content buf [09:31:58]Sock 7.Close socket [09:31:58]Sock 7.Thread stoped [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]accept exits with 9 [09:35:53]New connection [09:35:53]New thread 3067354468 created [09:35:53]Thread 3067211108 joined [09:35:53]Waiting for new connection... [09:35:53] Sock 9.Parse request [09:35:53]Sock 9.Check first char [09:35:53]Sock 9.First char is OK [09:35:53]request: POST /json_proto HTTP/1.0 [09:35:53]Method: POST [09:35:53]URL: /json_proto [09:35:53]Method is POST - this is cgi request [09:35:53]url: /json_proto [09:35:53]query_string will be loaded in cgi processing [09:35:53]execute_cgi json_proto POST (null) [09:35:53]execute_cgi path=json_proto method=POST [09:35:53]POST find Content-Length [09:35:53]Host: 172.17.46.196:8080 [09:35:53]Content-Length: 789 [09:35:53]Content-Type: application/json [09:35:53] [09:35:53]POST finish read [09:35:53]Found Content-Length = 789 [09:35:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190094", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:53]execute_script... [09:35: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)190094", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:53]POST & json_proto [09:35:53]process_json_proto [09:35:53]json parsed OK: [09:35:53]protocol is kg_v1.0 [09:35:53]action value=close_receipt [09:35:53]process_action close_receipt [09:35:53]cmd_close_receipt [09:35:53]MH_GetDate [09:35:53]Write to MH i2c: F0 00 00 D6 0F D4 [09:35:53]Write i2c OK [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: F0 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: F0 09 00 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: F0 09 00 D6 0F 00 FB 11 C3 66 C4 85 C2 66 83 [09:35:53]GetLastDocTimeStamp 1724059917 [09:35:53]current date 1724060155 [09:35:53]FM_GetShiftState [09:35:53]SAM_PROTO_GetShiftState [09:35:53]wFMCommunicate request_size=4 [09:35:53]MH_SAM_APDU [09:35:53]CAPDU: 80 13 01 00 [09:35:53]Write to MH i2c: E2 08 00 D7 0F 80 13 01 00 00 00 00 00 63 [09:35:53]Write i2c OK [09:35:53]MH_I2C_Read... [09:35:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:53]Read from MH i2c: E2 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: E2 0E 00 [09:35:53]MH_I2C_Read... [09:35:53]Read from MH i2c: E2 0E 00 D7 0F 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 1D [09:35:53]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:35:53]wFMCommunicate OK [09:35:53]SAM_PROTO_GetShiftState done [09:35:53]FM_GetShiftState done [09:35:53]opened in 1724026361 [09:35:53]opened+sec_in_day 1724112761 [09:35:53]quantity*price = 13000 [09:35:53]sum+1 = 13001 [09:35:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 46 19.08.2024 09:35 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49939 ФПД: 230620228886476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T093555&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49939&fm=230620228886476&tin=02508201610067®Number=0000000000092546&sum=13000 0 [09:35:54]StoreToDocumentArchive [09:35:54]shift 467 fd 49939 [09:35:54]save to /storage/0467/doc_00049939 [09:35:54]save last doc name /storage/0467/doc_00049939 to /storage/kkm_last_doc_name [09:35:54]save OK [09:35:54]Clear old archive folders... [09:35:54]ProcessDocumentItem done err = 0, tmpTLVsize=276 [09:35:54]tlvbuf is B6FB75C0 [09:35:54]SAM_PROTO_ClearQueue [09:35:54]wFMCommunicate request_size=4 [09:35:54]MH_SAM_APDU [09:35:54]CAPDU: 80 09 00 00 [09:35:54]Write to MH i2c: E2 08 00 E4 0F 80 09 00 00 00 00 00 00 65 [09:35:54]Write i2c OK [09:35:54]MH_I2C_Read... [09:35:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:54]Read from MH i2c: E2 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 03 00 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 03 00 E4 0F 00 90 00 67 [09:35:54]RAPDU: 90 00 [09:35:54]wFMCommunicate OK [09:35:54]SAM_PROTO_ClearQueue done [09:35:54]KKMCreateOFDPacket [09:35:54]OFDProtocolAddRootSTLVToBuf [09:35:54]FM_MakeSignedData [09:35:54]FM_MakeSignedData [09:35:54]SAM_PROTO_SignData [09:35:54]wFMCommunicate request_size=4 [09:35:54]MH_SAM_APDU [09:35:54]CAPDU: 80 0D 01 02 [09:35:54]Write to MH i2c: E2 08 00 E5 0F 80 0D 01 02 00 00 00 00 6D [09:35:54]Write i2c OK [09:35:54]MH_I2C_Read... [09:35:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:54]Read from MH i2c: E2 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 03 00 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 03 00 E5 0F 00 90 00 68 [09:35:54]RAPDU: 90 00 [09:35:54]wFMCommunicate OK [09:35:54]wFMCommunicate request_size=255 [09:35:54]MH_SAM_APDU [09:35:54]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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 FB 11 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [09:35:54]Write to MH i2c: E2 02 01 E6 0F 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 FB 11 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 C0 [09:35:54]Write i2c OK [09:35:54]MH_I2C_Read... [09:35:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:54]Read from MH i2c: E2 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 03 00 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 03 00 E6 0F 00 90 00 69 [09:35:54]RAPDU: 90 00 [09:35:54]wFMCommunicate OK [09:35:54]wFMCommunicate request_size=35 [09:35:54]MH_SAM_APDU [09:35:54]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 13 C3 00 00 35 04 06 00 D1 BF 74 D2 1F CC [09:35:54]Write to MH i2c: E2 26 00 E7 0F 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 13 C3 00 00 35 04 06 00 D1 BF 74 D2 1F CC 00 00 F2 [09:35:54]Write i2c OK [09:35:54]MH_I2C_Read... [09:35:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:54]Read from MH i2c: E2 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 03 00 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 03 00 E7 0F 00 90 00 6A [09:35:54]RAPDU: 90 00 [09:35:54]wFMCommunicate OK [09:35:54]wFMCommunicate request_size=4 [09:35:54]MH_SAM_APDU [09:35:54]CAPDU: 80 0D 03 02 [09:35:54]Write to MH i2c: E2 08 00 E8 0F 80 0D 03 02 00 00 00 00 72 [09:35:54]Write i2c OK [09:35:54]MH_I2C_Read... [09:35:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:54]Read from MH i2c: E2 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 0B 00 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 0B 00 E8 0F 00 CD 93 49 7C 8A B4 7F 24 90 00 79 [09:35:54]RAPDU: CD 93 49 7C 8A B4 7F 24 90 00 [09:35:54]wFMCommunicate OK [09:35:54]SAM_PROTO_SignData done [09:35:54]FM_MakeSignedData done [09:35:54]CreateOFDProtocolMessage [09:35:54]wFMCommunicate request_size=4 [09:35:54]MH_SAM_APDU [09:35:54]CAPDU: 80 11 00 00 [09:35:54]Write to MH i2c: E2 08 00 E9 0F 80 11 00 00 00 00 00 00 72 [09:35:54]Write i2c OK [09:35:54]MH_I2C_Read... [09:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:54]Read from MH i2c: E2 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 17 00 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: E2 17 00 E9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BD [09:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:35:54]wFMCommunicate OK [09:35:54]CreateOFDProtocolMessage done [09:35:54]OFDSenderStorePacket 49939 [09:35:54]StoreOFDPacket docnum=49939 [09:35:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 F8 64 20 01 35 FA 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 FB 11 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 13 C3 00 00 35 04 06 00 D1 BF 74 D2 1F CC CD 93 49 7C 8A B4 7F 24 [09:35:54]CheckFolder [09:35:54]dirname=/storage/ofd_packets [09:35:54]CheckFolder done [09:35:54]ProducePacketName [09:35:54]name=ofd_packets/00049939 [09:35:54]NVStorageSaveData ofd_packets/00049939 [09:35:54]File name is /storage/ofd_packets/00049939 [09:35:54]Write 326 bytes [09:35:54]NVStorageSaveData done [09:35:54]OFDSenderStorePacket done [09:35:54]KKMCreateOFDPacket done [09:35:54]NVStorageSaveData kkm_last_timestamp [09:35:54]File name is /storage/kkm_last_timestamp [09:35:54]Write 4 bytes [09:35:54]NVStorageSaveData done [09:35:54]ExternCall_PrintAddStr [09:35:54]wPrintStart [09:35:54]Write to MH i2c: 01 00 00 EA 0F F9 [09:35:54]Write i2c OK [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: 01 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: 01 07 00 [09:35:54]MH_I2C_Read... [09:35:54]Read from MH i2c: 01 07 00 EA 0F 00 00 00 00 00 FF 0F 0E [09:35:54]RasterBufferAndPrint [09:35:54]line Счет N : (3)190094 [09:35:54]line ИНН: 02508201610067 [09:35:54]line Контрольно-Кассовый Чек [09:35:54]line ПРОДАЖА [09:35:54]line Товар: 2000036230011 [09:35:54]line Кофе Латте XL(GABB TRADE) [09:35:54]line 1.000 * 130.00 [09:35:54]line = 130.00 [09:35:54]line НДС 12% НСП 1% [09:35:54]line > о реализуемом товаре [09:35:54]line ИТОГО: 130.00 [09:35:54]line НСП 1% : 1.15 [09:35:54]line НДС 12% : 13.80 [09:35:54]line Наличными: 0.00 [09:35:54]line Безнал.: 130.00 [09:35:54]line Место: АЗС № 95 "Партнер Нефть" [09:35:54]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:35:54]line СНО: Общий режим [09:35:54]line Чек 46 19.08.2024 09:35 [09:35:54]line Смена: 467 ФФД: 1.0 [09:35:54]line ЗНМ: 0300000078 [09:35:54]line РНМ: 0000000000092546 [09:35:54]line Версия ККМ: 001 [09:35:54]line Платежная система: O! деньги [09:35:54]line ФМ: 0000000000871800 [09:35:54]line ФД: 49939 [09:35:54]line ФПД: 230620228886476 [09:35:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T093555&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49939&fm=230620228886476&tin=02508201610067®Number=0000000000092546&sum=13000 [09:35:55]line 0 [09:35:55]OFD Sender: Processing packet 49939 [packets to send 21, broken 20] [09:35:55]ProducePacketName [09:35:55]name=ofd_packets/00049939 [09:35:55]OFD Sender: To server: pG, [09:35:55]CommunicateWithHost lk.salyk.kg:30040 [09:35:55]ConnectInit lk.salyk.kg [09:35:55]written 0, free lines is 4095 [09:35:55]Connected sock=10 [09:35:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 F8 64 20 01 35 FA 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 FB 11 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 13 C3 00 00 35 04 06 00 D1 BF 74 D2 1F CC CD 93 49 7C 8A B4 7F 24 [09:35:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 60 FF 47 00 1D 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 13 C3 00 00 F4 03 04 00 68 BC C2 66 B6 04 01 00 00 81 80 E8 50 25 45 EE C7 [09:35:55]CommunicateWithHost err = 0 [09:35:55]CheckOFDResponse [09:35:55]1017 (14) - 77093643461234 [09:35:55]1041 (16) - 0000000000871800 [09:35:55]1040 (4) - 49939 [09:35:55]1012 (4) - 19.08.2024 03:30 [09:35:55]1206 (1) - 0 [09:35:55]OFD Sender: Remove packet 49939 [09:35:55]ProducePacketName [09:35:55]name=ofd_packets/00049939 [09:35:55]NVStorageDeleteData [09:35:55]Write to MH i2c: 01 00 00 14 10 24 [09:35:55]Write i2c OK [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: 01 [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: 01 07 00 [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: 01 07 00 14 10 00 00 00 00 00 E0 0C 17 [09:35:55]RasterBufferAndPrint [09:35:55]line [09:35:55]line [09:35:55]line [09:35:55]line [09:35:55]line [09:35:55]written 0, free lines is 3302 [09:35:55]MH_Cut [09:35:55]Write to MH i2c: D1 01 00 1B 10 01 FD [09:35:55]Write i2c OK [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: D1 [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: D1 01 00 [09:35:55]MH_I2C_Read... [09:35:55]Read from MH i2c: D1 01 00 1B 10 00 FC [09:35:55]Write to MH i2c: 01 00 00 1C 10 2C [09:35:55]Write i2c OK [09:35:55]MH_I2C_Read... [09:35:56]OFD Sender: No OFD packet to send [09:35:56]*** Cut start [09:35:56]*** Purtial cut [09:35:56]*** CUTSNS_PIN = 0 [09:35:56]*** Stage 1: CUTSNS_PIN = 1 [09:35:58]Read from MH i2c: 01 [09:35:58]MH_I2C_Read... [09:35:58]*** Stop cut motor [09:35:58]*** Cut end [09:35:58]Read from MH i2c: 01 07 00 [09:35:58]MH_I2C_Read... [09:35:58]Read from MH i2c: 01 07 00 1C 10 00 00 00 00 00 FF 0F 41 [09:35:58]process_action close_receipt done [09:35:58]requested_data is exist [09:35:58]produce_requested_data [09:35:58]requested_item fm.sn is exist - process it [09:35:58]wFMCommunicate request_size=4 [09:35:58]MH_SAM_APDU [09:35:58]CAPDU: 80 11 00 00 [09:35:58]Write to MH i2c: E2 08 00 1D 10 80 11 00 00 00 00 00 00 A7 [09:35:58]Write i2c OK [09:35:58]MH_I2C_Read... [09:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:58]Read from MH i2c: E2 [09:35:58]MH_I2C_Read... [09:35:58]Read from MH i2c: E2 17 00 [09:35:58]MH_I2C_Read... [09:35:58]Read from MH i2c: E2 17 00 1D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F2 [09:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:35:58]wFMCommunicate OK [09:35:58]requested_item fd.num is exist - process it [09:35:58]SAM_PROTO_GetFieldsCounters [09:35:58]wFMCommunicate request_size=4 [09:35:58]MH_SAM_APDU [09:35:58]CAPDU: 80 13 00 00 [09:35:58]Write to MH i2c: E2 08 00 1E 10 80 13 00 00 00 00 00 00 AA [09:35:58]Write i2c OK [09:35:58]MH_I2C_Read... [09:35:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:58]Read from MH i2c: E2 [09:35:58]MH_I2C_Read... [09:35:58]Read from MH i2c: E2 62 00 [09:35:58]MH_I2C_Read... [09:35:58]Read from MH i2c: E2 62 00 1E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 13 C3 00 00 0E 04 04 00 D3 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 F8 [09:35:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 13 C3 00 00 0E 04 04 00 D3 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 [09:35:58]wFMCommunicate OK [09:35:58]SAM_PROTO_GetFieldsCounters done [09:35:58]requested_item shift.num is exist - process it [09:35:58]requested_item shift.opened is exist - process it [09:35:58]req_shift_opened [09:35:58]FM_GetShiftState [09:35:58]SAM_PROTO_GetShiftState [09:35:58]wFMCommunicate request_size=4 [09:35:58]MH_SAM_APDU [09:35:58]CAPDU: 80 13 01 00 [09:35:58]Write to MH i2c: E2 08 00 1F 10 80 13 01 00 00 00 00 00 AC [09:35:58]Write i2c OK [09:35:58]MH_I2C_Read... [09:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:58]Read from MH i2c: E2 [09:35:58]MH_I2C_Read... [09:35:58]Read from MH i2c: E2 0E 00 [09:35:58]MH_I2C_Read... [09:35:58]Read from MH i2c: E2 0E 00 1F 10 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 66 [09:35:58]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:35:58]wFMCommunicate OK [09:35:58]SAM_PROTO_GetShiftState done [09:35:58]FM_GetShiftState done [09:35:58]req_shift_opened done [09:35:58]requested_item shift.open_date is exist - process it [09:35:58]req_shift_open_date [09:35:58]req_shift_open_date done [09:35:58]produce_requested_data done [09:35:58]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49939,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [09:35:58]process_action_free close_receipt [09:35:58]json_value_free [09:35:58]json_value_free done [09:35:58]process_json_proto returns [09:35:58]Send response to host [09:35:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49939,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [09:35:58]free response buf [09:35:58]execute_script done [09:35:58]execute_script returns [09:35:58]free content buf [09:35:58]Sock 9.Close socket [09:35:58]Sock 9.Thread stoped [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:38]accept exits with 7 [09:42:38]New connection [09:42:38]New thread 3067211108 created [09:42:38]Thread 3067354468 joined [09:42:38]Waiting for new connection... [09:42:38] Sock 7.Parse request [09:42:38]Sock 7.Check first char [09:42:38]Sock 7.First char is OK [09:42:38]request: POST /json_proto HTTP/1.0 [09:42:38]Method: POST [09:42:38]URL: /json_proto [09:42:38]Method is POST - this is cgi request [09:42:38]url: /json_proto [09:42:38]query_string will be loaded in cgi processing [09:42:38]execute_cgi json_proto POST (null) [09:42:38]execute_cgi path=json_proto method=POST [09:42:38]POST find Content-Length [09:42:38]Host: 172.17.46.196:8080 [09:42:38]Content-Length: 950 [09:42:38]Content-Type: application/json [09:42:38] [09:42:38]POST finish read [09:42:38]Found Content-Length = 950 [09:42:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190095", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235777", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u0432\u0438\u0448\u043D\u044F 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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" ] } } [09:42:38]execute_script... [09:42: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)190095", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235777", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u0432\u0438\u0448\u043D\u044F 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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" ] } } [09:42:38]POST & json_proto [09:42:38]process_json_proto [09:42:38]json parsed OK: [09:42:38]protocol is kg_v1.0 [09:42:38]action value=close_receipt [09:42:38]process_action close_receipt [09:42:38]cmd_close_receipt [09:42:38]MH_GetDate [09:42:38]Write to MH i2c: F0 00 00 20 10 1F [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: F0 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: F0 09 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: F0 09 00 20 10 00 90 13 C3 66 C4 85 C2 66 65 [09:42:38]GetLastDocTimeStamp 1724060155 [09:42:38]current date 1724060560 [09:42:38]FM_GetShiftState [09:42:38]SAM_PROTO_GetShiftState [09:42:38]wFMCommunicate request_size=4 [09:42:38]MH_SAM_APDU [09:42:38]CAPDU: 80 13 01 00 [09:42:38]Write to MH i2c: E2 08 00 21 10 80 13 01 00 00 00 00 00 AE [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:38]Read from MH i2c: E2 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 0E 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: E2 0E 00 21 10 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 68 [09:42:38]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:42:38]wFMCommunicate OK [09:42:38]SAM_PROTO_GetShiftState done [09:42:38]FM_GetShiftState done [09:42:38]opened in 1724026361 [09:42:38]opened+sec_in_day 1724112761 [09:42:38]quantity*price = 9000 [09:42:38]sum+1 = 9001 [09:42:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607015235777 Печ. сд. Яшкино вишня 137г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.60 НДС 12% : 19.12 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 47 19.08.2024 09:42 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49940 ФПД: 220346405372102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094240&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49940&fm=220346405372102&tin=02508201610067®Number=0000000000092546&sum=18000 0 [09:42:39]StoreToDocumentArchive [09:42:39]shift 467 fd 49940 [09:42:39]save to /storage/0467/doc_00049940 [09:42:39]save last doc name /storage/0467/doc_00049940 to /storage/kkm_last_doc_name [09:42:39]save OK [09:42:39]Clear old archive folders... [09:42:39]ProcessDocumentItem done err = 0, tmpTLVsize=408 [09:42:39]tlvbuf is B6F23500 [09:42:39]SAM_PROTO_ClearQueue [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 09 00 00 [09:42:39]Write to MH i2c: E2 08 00 2E 10 80 09 00 00 00 00 00 00 B0 [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 03 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 03 00 2E 10 00 90 00 B2 [09:42:39]RAPDU: 90 00 [09:42:39]wFMCommunicate OK [09:42:39]SAM_PROTO_ClearQueue done [09:42:39]KKMCreateOFDPacket [09:42:39]OFDProtocolAddRootSTLVToBuf [09:42:39]FM_MakeSignedData [09:42:39]FM_MakeSignedData [09:42:39]SAM_PROTO_SignData [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 0D 01 02 [09:42:39]Write to MH i2c: E2 08 00 2F 10 80 0D 01 02 00 00 00 00 B8 [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 03 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 03 00 2F 10 00 90 00 B3 [09:42:39]RAPDU: 90 00 [09:42:39]wFMCommunicate OK [09:42:39]wFMCommunicate request_size=255 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 0D 02 02 FA 03 00 98 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 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 6F 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 37 37 06 04 2B 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 37 D0 B3 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 [09:42:39]Write to MH i2c: E2 02 01 30 10 80 0D 02 02 FA 00 03 00 98 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 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 6F 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 37 37 06 04 2B 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 37 D0 B3 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 00 A3 [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 03 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 03 00 30 10 00 90 00 B4 [09:42:39]RAPDU: 90 00 [09:42:39]wFMCommunicate OK [09:42:39]wFMCommunicate request_size=167 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 0D 02 02 A2 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 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 2F 00 00 00 F4 03 04 00 90 13 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 14 C3 00 00 35 04 06 00 C8 67 65 38 40 C6 [09:42:39]Write to MH i2c: E2 AA 00 31 10 80 0D 02 02 A2 00 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 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 2F 00 00 00 F4 03 04 00 90 13 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 14 C3 00 00 35 04 06 00 C8 67 65 38 40 C6 00 00 F8 [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 03 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 03 00 31 10 00 90 00 B5 [09:42:39]RAPDU: 90 00 [09:42:39]wFMCommunicate OK [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 0D 03 02 [09:42:39]Write to MH i2c: E2 08 00 32 10 80 0D 03 02 00 00 00 00 BD [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 0B 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 0B 00 32 10 00 B8 2D 0E 3C AC C3 9B 84 90 00 7B [09:42:40]RAPDU: B8 2D 0E 3C AC C3 9B 84 90 00 [09:42:40]wFMCommunicate OK [09:42:40]SAM_PROTO_SignData done [09:42:40]FM_MakeSignedData done [09:42:40]CreateOFDProtocolMessage [09:42:40]wFMCommunicate request_size=4 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 11 00 00 [09:42:40]Write to MH i2c: E2 08 00 33 10 80 11 00 00 00 00 00 00 BD [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 17 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 17 00 33 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 08 [09:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:42:40]wFMCommunicate OK [09:42:40]CreateOFDProtocolMessage done [09:42:40]OFDSenderStorePacket 49940 [09:42:40]StoreOFDPacket docnum=49940 [09:42:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 AC 01 00 00 E9 1F A4 01 FC 79 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 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 6F 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 37 37 06 04 2B 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 37 D0 B3 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 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 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 2F 00 00 00 F4 03 04 00 90 13 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 14 C3 00 00 35 04 06 00 C8 67 65 38 40 C6 B8 2D 0E 3C AC C3 9B 84 [09:42:40]CheckFolder [09:42:40]dirname=/storage/ofd_packets [09:42:40]CheckFolder done [09:42:40]ProducePacketName [09:42:40]name=ofd_packets/00049940 [09:42:40]NVStorageSaveData ofd_packets/00049940 [09:42:40]File name is /storage/ofd_packets/00049940 [09:42:40]Write 458 bytes [09:42:40]NVStorageSaveData done [09:42:40]OFDSenderStorePacket done [09:42:40]KKMCreateOFDPacket done [09:42:40]NVStorageSaveData kkm_last_timestamp [09:42:40]File name is /storage/kkm_last_timestamp [09:42:40]Write 4 bytes [09:42:40]NVStorageSaveData done [09:42:40]ExternCall_PrintAddStr [09:42:40]wPrintStart [09:42:40]Write to MH i2c: 01 00 00 34 10 44 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 07 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 07 00 34 10 00 00 00 00 00 FF 0F 59 [09:42:40]RasterBufferAndPrint [09:42:40]line Счет N : (3)190095 [09:42:40]line ИНН: 02508201610067 [09:42:40]line Контрольно-Кассовый Чек [09:42:40]line ПРОДАЖА [09:42:40]line Товар: 4870022003305 [09:42:40]line Напиток Gorilla эн нат ж/б 0,5/0,45л [09:42:40]line 1.000 * 90.00 [09:42:40]line = 90.00 [09:42:40]line НДС 12% НСП 1% [09:42:40]line > о реализуемом товаре [09:42:40]line Товар: 4607015235777 [09:42:40]line Печ. сд. Яшкино вишня 137г [09:42:40]line 1.000 * 90.00 [09:42:40]line = 90.00 [09:42:40]line НДС 12% НСП 1% [09:42:40]line > о реализуемом товаре [09:42:40]line ИТОГО: 180.00 [09:42:40]line НСП 1% : 1.60 [09:42:40]line НДС 12% : 19.12 [09:42:40]line Наличными: 180.00 [09:42:40]line Безнал.: 0.00 [09:42:40]line Место: АЗС № 95 "Партнер Нефть" [09:42:40]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:42:40]line СНО: Общий режим [09:42:40]line Чек 47 19.08.2024 09:42 [09:42:40]line Смена: 467 ФФД: 1.0 [09:42:40]line ЗНМ: 0300000078 [09:42:40]line РНМ: 0000000000092546 [09:42:40]line Версия ККМ: 001 [09:42:40]line ФМ: 0000000000871800 [09:42:40]line ФД: 49940 [09:42:40]line ФПД: 220346405372102 [09:42:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094240&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49940&fm=220346405372102&tin=02508201610067®Number=0000000000092546&sum=18000 [09:42:40]line 0 [09:42:40]OFD Sender: Processing packet 49940 [packets to send 21, broken 20] [09:42:40]ProducePacketName [09:42:40]name=ofd_packets/00049940 [09:42:40]OFD Sender: To server: pG, [09:42:40]CommunicateWithHost lk.salyk.kg:30040 [09:42:40]ConnectInit lk.salyk.kg [09:42:40]written 0, free lines is 4095 [09:42:40]Connected sock=10 [09:42:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 AC 01 00 00 E9 1F A4 01 FC 79 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 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 6F 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 37 37 06 04 2B 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 37 D0 B3 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 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 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 2F 00 00 00 F4 03 04 00 90 13 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 14 C3 00 00 35 04 06 00 C8 67 65 38 40 C6 B8 2D 0E 3C AC C3 9B 84 [09:42:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 AC C6 47 00 DA 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 14 C3 00 00 F4 03 04 00 FE BD C2 66 B6 04 01 00 00 13 76 0F 93 3A 4E 96 FA [09:42:40]CommunicateWithHost err = 0 [09:42:40]CheckOFDResponse [09:42:40]1017 (14) - 77093643461234 [09:42:40]1041 (16) - 0000000000871800 [09:42:40]1040 (4) - 49940 [09:42:40]1012 (4) - 19.08.2024 03:37 [09:42:40]1206 (1) - 0 [09:42:40]OFD Sender: Remove packet 49940 [09:42:40]ProducePacketName [09:42:40]name=ofd_packets/00049940 [09:42:40]NVStorageDeleteData [09:42:40]Write to MH i2c: 01 00 00 63 10 73 [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 07 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: 01 07 00 63 10 00 00 00 00 00 9F 0C 25 [09:42:40]RasterBufferAndPrint [09:42:40]line [09:42:40]line [09:42:40]line [09:42:40]line [09:42:40]line [09:42:40]written 0, free lines is 3238 [09:42:40]MH_Cut [09:42:40]Write to MH i2c: D1 01 00 6A 10 01 4C [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: D1 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: D1 01 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: D1 01 00 6A 10 00 4B [09:42:40]Write to MH i2c: 01 00 00 6B 10 7B [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:41]OFD Sender: No OFD packet to send [09:42:41]*** Cut start [09:42:41]*** Purtial cut [09:42:41]*** Stage 1: CUTSNS_PIN = 1 [09:42:42]Read from MH i2c: 01 [09:42:42]MH_I2C_Read... [09:42:42]*** Stop cut motor [09:42:42]*** Cut end [09:42:42]Read from MH i2c: 01 07 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: 01 07 00 6B 10 00 00 00 00 00 FF 0F 90 [09:42:42]process_action close_receipt done [09:42:42]requested_data is exist [09:42:42]produce_requested_data [09:42:42]requested_item fm.sn is exist - process it [09:42:42]wFMCommunicate request_size=4 [09:42:42]MH_SAM_APDU [09:42:42]CAPDU: 80 11 00 00 [09:42:42]Write to MH i2c: E2 08 00 6C 10 80 11 00 00 00 00 00 00 F6 [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:42]Read from MH i2c: E2 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 17 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 17 00 6C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 41 [09:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:42:42]wFMCommunicate OK [09:42:42]requested_item fd.num is exist - process it [09:42:42]SAM_PROTO_GetFieldsCounters [09:42:42]wFMCommunicate request_size=4 [09:42:42]MH_SAM_APDU [09:42:42]CAPDU: 80 13 00 00 [09:42:42]Write to MH i2c: E2 08 00 6D 10 80 13 00 00 00 00 00 00 F9 [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:42]Read from MH i2c: E2 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 62 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 62 00 6D 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 14 C3 00 00 0E 04 04 00 D3 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 4B [09:42:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 14 C3 00 00 0E 04 04 00 D3 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 [09:42:42]wFMCommunicate OK [09:42:42]SAM_PROTO_GetFieldsCounters done [09:42:42]requested_item shift.num is exist - process it [09:42:42]requested_item shift.opened is exist - process it [09:42:42]req_shift_opened [09:42:42]FM_GetShiftState [09:42:42]SAM_PROTO_GetShiftState [09:42:42]wFMCommunicate request_size=4 [09:42:42]MH_SAM_APDU [09:42:42]CAPDU: 80 13 01 00 [09:42:42]Write to MH i2c: E2 08 00 6E 10 80 13 01 00 00 00 00 00 FB [09:42:42]Write i2c OK [09:42:42]MH_I2C_Read... [09:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:42]Read from MH i2c: E2 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 0E 00 [09:42:42]MH_I2C_Read... [09:42:42]Read from MH i2c: E2 0E 00 6E 10 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B5 [09:42:42]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:42:42]wFMCommunicate OK [09:42:42]SAM_PROTO_GetShiftState done [09:42:42]FM_GetShiftState done [09:42:42]req_shift_opened done [09:42:42]requested_item shift.open_date is exist - process it [09:42:42]req_shift_open_date [09:42:42]req_shift_open_date done [09:42:42]produce_requested_data done [09:42:42]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49940,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [09:42:42]process_action_free close_receipt [09:42:42]json_value_free [09:42:42]json_value_free done [09:42:42]process_json_proto returns [09:42:42]Send response to host [09:42:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49940,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [09:42:42]free response buf [09:42:42]execute_script done [09:42:42]execute_script returns [09:42:42]free content buf [09:42:42]Sock 7.Close socket [09:42:42]Sock 7.Thread stoped [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:33]accept exits with 9 [09:45:33]New connection [09:45:33]New thread 3067354468 created [09:45:33]Thread 3067211108 joined [09:45:33]Waiting for new connection... [09:45:33] Sock 9.Parse request [09:45:33]Sock 9.Check first char [09:45:33]Sock 9.First char is OK [09:45:33]request: POST /json_proto HTTP/1.0 [09:45:33]Method: POST [09:45:33]URL: /json_proto [09:45:33]Method is POST - this is cgi request [09:45:33]url: /json_proto [09:45:33]query_string will be loaded in cgi processing [09:45:33]execute_cgi json_proto POST (null) [09:45:33]execute_cgi path=json_proto method=POST [09:45:33]POST find Content-Length [09:45:33]Host: 172.17.46.196:8080 [09:45:33]Content-Length: 1344 [09:45:33]Content-Type: application/json [09:45:33] [09:45:33]POST finish read [09:45:33]Found Content-Length = 1344 [09:45:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190096", "tax_sys" : 0, "items" : [ { "code": "4600338007564", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043C\u0443\u043B\u044C\u0442\u0438\u0444\u0440\u0443\u043A\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077618161", "name": "\u0412\u0430\u0444 \u0442\u0440\u0443\u0431 Konafetto \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0435 140 \u0433\u0440", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:33]execute_script... [09:45:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190096", "tax_sys" : 0, "items" : [ { "code": "4600338007564", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043C\u0443\u043B\u044C\u0442\u0438\u0444\u0440\u0443\u043A\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4823077618161", "name": "\u0412\u0430\u0444 \u0442\u0440\u0443\u0431 Konafetto \u043C\u043E\u043B\u043E\u0447\u043D\u044B\u0435 140 \u0433\u0440", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:33]POST & json_proto [09:45:33]process_json_proto [09:45:33]json parsed OK: [09:45:33]protocol is kg_v1.0 [09:45:33]action value=close_receipt [09:45:33]process_action close_receipt [09:45:33]cmd_close_receipt [09:45:33]MH_GetDate [09:45:33]Write to MH i2c: F0 00 00 6F 10 6E [09:45:33]Write i2c OK [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: F0 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: F0 09 00 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: F0 09 00 6F 10 00 3F 14 C3 66 C4 85 C2 66 64 [09:45:33]GetLastDocTimeStamp 1724060560 [09:45:33]current date 1724060735 [09:45:33]FM_GetShiftState [09:45:33]SAM_PROTO_GetShiftState [09:45:33]wFMCommunicate request_size=4 [09:45:33]MH_SAM_APDU [09:45:33]CAPDU: 80 13 01 00 [09:45:33]Write to MH i2c: E2 08 00 70 10 80 13 01 00 00 00 00 00 FD [09:45:33]Write i2c OK [09:45:33]MH_I2C_Read... [09:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:33]Read from MH i2c: E2 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: E2 0E 00 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: E2 0E 00 70 10 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B7 [09:45:33]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:45:33]wFMCommunicate OK [09:45:33]SAM_PROTO_GetShiftState done [09:45:33]FM_GetShiftState done [09:45:33]opened in 1724026361 [09:45:33]opened+sec_in_day 1724112761 [09:45:33]quantity*price = 6500 [09:45:33]sum+1 = 6501 [09:45:33]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600338001623 Вода Фруто НЯНЯ негазир д/детей 0,33л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4823077618161 Ваф труб Konafetto молочные 140 гр 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 275.00 НСП 1% : 2.43 НДС 12% : 29.20 Наличными: 275.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 48 19.08.2024 09:45 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49941 ФПД: 133106921882398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094535&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49941&fm=133106921882398&tin=02508201610067®Number=0000000000092546&sum=27500 0 [09:45:34]StoreToDocumentArchive [09:45:34]shift 467 fd 49941 [09:45:34]save to /storage/0467/doc_00049941 [09:45:34]save last doc name /storage/0467/doc_00049941 to /storage/kkm_last_doc_name [09:45:34]save OK [09:45:34]Clear old archive folders... [09:45:34]ProcessDocumentItem done err = 0, tmpTLVsize=556 [09:45:34]tlvbuf is 0104E0A0 [09:45:34]SAM_PROTO_ClearQueue [09:45:34]wFMCommunicate request_size=4 [09:45:34]MH_SAM_APDU [09:45:34]CAPDU: 80 09 00 00 [09:45:34]Write to MH i2c: E2 08 00 7D 10 80 09 00 00 00 00 00 00 FF [09:45:34]Write i2c OK [09:45:34]MH_I2C_Read... [09:45:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:34]Read from MH i2c: E2 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 03 00 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 03 00 7D 10 00 90 00 01 [09:45:34]RAPDU: 90 00 [09:45:34]wFMCommunicate OK [09:45:34]SAM_PROTO_ClearQueue done [09:45:34]KKMCreateOFDPacket [09:45:34]OFDProtocolAddRootSTLVToBuf [09:45:34]FM_MakeSignedData [09:45:34]FM_MakeSignedData [09:45:34]SAM_PROTO_SignData [09:45:34]wFMCommunicate request_size=4 [09:45:34]MH_SAM_APDU [09:45:34]CAPDU: 80 0D 01 02 [09:45:34]Write to MH i2c: E2 08 00 7E 10 80 0D 01 02 00 00 00 00 07 [09:45:34]Write i2c OK [09:45:34]MH_I2C_Read... [09:45:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:34]Read from MH i2c: E2 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 03 00 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 03 00 7E 10 00 90 00 02 [09:45:34]RAPDU: 90 00 [09:45:34]wFMCommunicate OK [09:45:34]wFMCommunicate request_size=255 [09:45:34]MH_SAM_APDU [09:45:34]CAPDU: 80 0D 02 02 FA 03 00 2C 02 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 [09:45:35]Write to MH i2c: E2 02 01 7F 10 80 0D 02 02 FA 00 03 00 2C 02 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 00 FF [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 7F 10 00 90 00 03 [09:45:35]RAPDU: 90 00 [09:45:35]wFMCommunicate OK [09:45:35]wFMCommunicate request_size=255 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 0D 02 02 FA 00 40 1F 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 32 33 30 37 37 36 31 38 31 36 31 06 04 33 00 D0 92 D0 B0 D1 84 20 D1 82 D1 80 D1 83 D0 B1 20 4B 6F 6E 61 66 65 74 74 6F 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B5 20 31 34 30 20 D0 B3 D1 80 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 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 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 3F 14 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 [09:45:35]Write to MH i2c: E2 02 01 80 10 80 0D 02 02 FA 00 00 40 1F 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 32 33 30 37 37 36 31 38 31 36 31 06 04 33 00 D0 92 D0 B0 D1 84 20 D1 82 D1 80 D1 83 D0 B1 20 4B 6F 6E 61 66 65 74 74 6F 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B5 20 31 34 30 20 D0 B3 D1 80 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 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 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 3F 14 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 00 88 [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 80 10 00 90 00 04 [09:45:35]RAPDU: 90 00 [09:45:35]wFMCommunicate OK [09:45:35]wFMCommunicate request_size=65 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 15 C3 00 00 35 04 06 00 79 0F 5E CB C3 1E [09:45:35]Write to MH i2c: E2 44 00 81 10 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 15 C3 00 00 35 04 06 00 79 0F 5E CB C3 1E 00 00 BD [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 03 00 81 10 00 90 00 05 [09:45:35]RAPDU: 90 00 [09:45:35]wFMCommunicate OK [09:45:35]wFMCommunicate request_size=4 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 0D 03 02 [09:45:35]Write to MH i2c: E2 08 00 82 10 80 0D 03 02 00 00 00 00 0D [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 0B 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 0B 00 82 10 00 29 18 44 01 76 12 40 F6 90 00 52 [09:45:35]RAPDU: 29 18 44 01 76 12 40 F6 90 00 [09:45:35]wFMCommunicate OK [09:45:35]SAM_PROTO_SignData done [09:45:35]FM_MakeSignedData done [09:45:35]CreateOFDProtocolMessage [09:45:35]wFMCommunicate request_size=4 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 11 00 00 [09:45:35]Write to MH i2c: E2 08 00 83 10 80 11 00 00 00 00 00 00 0D [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 17 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 17 00 83 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 58 [09:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:45:35]wFMCommunicate OK [09:45:35]CreateOFDProtocolMessage done [09:45:35]OFDSenderStorePacket 49941 [09:45:35]StoreOFDPacket docnum=49941 [09:45:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 40 02 00 00 A9 A4 38 02 29 D4 5A 03 01 00 03 00 2C 02 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 32 33 30 37 37 36 31 38 31 36 31 06 04 33 00 D0 92 D0 B0 D1 84 20 D1 82 D1 80 D1 83 D0 B1 20 4B 6F 6E 61 66 65 74 74 6F 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B5 20 31 34 30 20 D0 B3 D1 80 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 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 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 3F 14 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 15 C3 00 00 35 04 06 00 79 0F 5E CB C3 1E 29 18 44 01 76 12 40 F6 [09:45:35]CheckFolder [09:45:35]dirname=/storage/ofd_packets [09:45:35]CheckFolder done [09:45:35]ProducePacketName [09:45:35]name=ofd_packets/00049941 [09:45:35]NVStorageSaveData ofd_packets/00049941 [09:45:35]File name is /storage/ofd_packets/00049941 [09:45:35]Write 606 bytes [09:45:35]NVStorageSaveData done [09:45:35]OFDSenderStorePacket done [09:45:35]KKMCreateOFDPacket done [09:45:35]NVStorageSaveData kkm_last_timestamp [09:45:35]File name is /storage/kkm_last_timestamp [09:45:35]Write 4 bytes [09:45:35]NVStorageSaveData done [09:45:35]ExternCall_PrintAddStr [09:45:35]wPrintStart [09:45:35]Write to MH i2c: 01 00 00 84 10 94 [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: 01 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: 01 07 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: 01 07 00 84 10 00 00 00 00 00 FF 0F A9 [09:45:35]RasterBufferAndPrint [09:45:35]line Счет N : (3)190096 [09:45:35]line ИНН: 02508201610067 [09:45:35]line Контрольно-Кассовый Чек [09:45:35]line ПРОДАЖА [09:45:35]line Товар: 4600338007564 [09:45:35]line Сок Фруто НЯНЯ мультифрукт 0,2л [09:45:35]line 1.000 * 65.00 [09:45:35]line = 65.00 [09:45:35]line НДС 12% НСП 1% [09:45:35]line > о реализуемом товаре [09:45:35]line Товар: 4600338001623 [09:45:35]line Вода Фруто НЯНЯ негазир д/детей 0,33л [09:45:35]line 1.000 * 80.00 [09:45:35]line = 80.00 [09:45:35]line НДС 12% НСП 1% [09:45:35]line > о реализуемом товаре [09:45:35]line Товар: 4823077618161 [09:45:35]line Ваф труб Konafetto молочные 140 гр [09:45:35]line 1.000 * 130.00 [09:45:35]line = 130.00 [09:45:35]line НДС 12% НСП 1% [09:45:35]line > о реализуемом товаре [09:45:35]line ИТОГО: 275.00 [09:45:35]line НСП 1% : 2.43 [09:45:35]line НДС 12% : 29.20 [09:45:35]line Наличными: 275.00 [09:45:35]line Безнал.: 0.00 [09:45:35]line Место: АЗС № 95 "Партнер Нефть" [09:45:35]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:45:35]line СНО: Общий режим [09:45:35]line Чек 48 19.08.2024 09:45 [09:45:35]line Смена: 467 ФФД: 1.0 [09:45:35]line ЗНМ: 0300000078 [09:45:35]line РНМ: 0000000000092546 [09:45:35]line Версия ККМ: 001 [09:45:35]line ФМ: 0000000000871800 [09:45:35]line ФД: 49941 [09:45:35]line ФПД: 133106921882398 [09:45:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094535&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49941&fm=133106921882398&tin=02508201610067®Number=0000000000092546&sum=27500 [09:45:36]line 0 [09:45:36]OFD Sender: Processing packet 49941 [packets to send 21, broken 20] [09:45:36]ProducePacketName [09:45:36]name=ofd_packets/00049941 [09:45:36]OFD Sender: To server: pG, [09:45:36]CommunicateWithHost lk.salyk.kg:30040 [09:45:36]ConnectInit lk.salyk.kg [09:45:36]written 0, free lines is 4095 [09:45:36]Connected sock=7 [09:45:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 40 02 00 00 A9 A4 38 02 29 D4 5A 03 01 00 03 00 2C 02 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 32 33 30 37 37 36 31 38 31 36 31 06 04 33 00 D0 92 D0 B0 D1 84 20 D1 82 D1 80 D1 83 D0 B1 20 4B 6F 6E 61 66 65 74 74 6F 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B5 20 31 34 30 20 D0 B3 D1 80 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 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 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 3F 14 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 15 C3 00 00 35 04 06 00 79 0F 5E CB C3 1E 29 18 44 01 76 12 40 F6 [09:45:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 FA C0 47 00 DF 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 15 C3 00 00 F4 03 04 00 AE BE C2 66 B6 04 01 00 00 47 CF 0D B2 3E CB CE 50 [09:45:36]CommunicateWithHost err = 0 [09:45:36]CheckOFDResponse [09:45:36]1017 (14) - 77093643461234 [09:45:36]1041 (16) - 0000000000871800 [09:45:36]1040 (4) - 49941 [09:45:36]1012 (4) - 19.08.2024 03:40 [09:45:36]1206 (1) - 0 [09:45:36]OFD Sender: Remove packet 49941 [09:45:36]ProducePacketName [09:45:36]name=ofd_packets/00049941 [09:45:36]NVStorageDeleteData [09:45:36]Write to MH i2c: 01 00 00 BB 10 CB [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: 01 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: 01 07 00 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: 01 07 00 BB 10 00 00 00 00 00 1D 0C FB [09:45:36]RasterBufferAndPrint [09:45:36]line [09:45:36]line [09:45:36]line [09:45:36]line [09:45:36]line [09:45:36]written 0, free lines is 3107 [09:45:36]MH_Cut [09:45:36]Write to MH i2c: D1 01 00 C2 10 01 A4 [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: D1 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: D1 01 00 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: D1 01 00 C2 10 00 A3 [09:45:36]Write to MH i2c: 01 00 00 C3 10 D3 [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:37]OFD Sender: No OFD packet to send [09:45:37]*** Cut start [09:45:37]*** Purtial cut [09:45:37]*** CUTSNS_PIN = 0 [09:45:37]*** Stage 1: CUTSNS_PIN = 1 [09:45:39]Read from MH i2c: 01 [09:45:39]MH_I2C_Read... [09:45:39]*** Stop cut motor [09:45:39]*** Cut end [09:45:39]Read from MH i2c: 01 07 00 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: 01 07 00 C3 10 00 00 00 00 00 FF 0F E8 [09:45:39]process_action close_receipt done [09:45:39]requested_data is exist [09:45:39]produce_requested_data [09:45:39]requested_item fm.sn is exist - process it [09:45:39]wFMCommunicate request_size=4 [09:45:39]MH_SAM_APDU [09:45:39]CAPDU: 80 11 00 00 [09:45:39]Write to MH i2c: E2 08 00 C4 10 80 11 00 00 00 00 00 00 4E [09:45:39]Write i2c OK [09:45:39]MH_I2C_Read... [09:45:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:39]Read from MH i2c: E2 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 17 00 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 17 00 C4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 99 [09:45:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:45:39]wFMCommunicate OK [09:45:39]requested_item fd.num is exist - process it [09:45:39]SAM_PROTO_GetFieldsCounters [09:45:39]wFMCommunicate request_size=4 [09:45:39]MH_SAM_APDU [09:45:39]CAPDU: 80 13 00 00 [09:45:39]Write to MH i2c: E2 08 00 C5 10 80 13 00 00 00 00 00 00 51 [09:45:39]Write i2c OK [09:45:39]MH_I2C_Read... [09:45:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:39]Read from MH i2c: E2 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 62 00 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 62 00 C5 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 15 C3 00 00 0E 04 04 00 D3 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 A7 [09:45:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 15 C3 00 00 0E 04 04 00 D3 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 [09:45:39]wFMCommunicate OK [09:45:39]SAM_PROTO_GetFieldsCounters done [09:45:39]requested_item shift.num is exist - process it [09:45:39]requested_item shift.opened is exist - process it [09:45:39]req_shift_opened [09:45:39]FM_GetShiftState [09:45:39]SAM_PROTO_GetShiftState [09:45:39]wFMCommunicate request_size=4 [09:45:39]MH_SAM_APDU [09:45:39]CAPDU: 80 13 01 00 [09:45:39]Write to MH i2c: E2 08 00 C6 10 80 13 01 00 00 00 00 00 53 [09:45:39]Write i2c OK [09:45:39]MH_I2C_Read... [09:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:39]Read from MH i2c: E2 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 0E 00 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 0E 00 C6 10 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 0D [09:45:39]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:45:39]wFMCommunicate OK [09:45:39]SAM_PROTO_GetShiftState done [09:45:39]FM_GetShiftState done [09:45:39]req_shift_opened done [09:45:39]requested_item shift.open_date is exist - process it [09:45:39]req_shift_open_date [09:45:39]req_shift_open_date done [09:45:39]produce_requested_data done [09:45:39]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49941,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [09:45:39]process_action_free close_receipt [09:45:39]json_value_free [09:45:39]json_value_free done [09:45:39]process_json_proto returns [09:45:39]Send response to host [09:45:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49941,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [09:45:39]free response buf [09:45:39]execute_script done [09:45:39]execute_script returns [09:45:39]free content buf [09:45:39]Sock 9.Close socket [09:45:39]Sock 9.Thread stoped [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:10]accept exits with 10 [09:46:10]New connection [09:46:10]New thread 3067211108 created [09:46:10]Thread 3067354468 joined [09:46:10]Waiting for new connection... [09:46:10] Sock 10.Parse request [09:46:10]Sock 10.Check first char [09:46:10]Sock 10.First char is OK [09:46:10]request: POST /json_proto HTTP/1.0 [09:46:10]Method: POST [09:46:10]URL: /json_proto [09:46:10]Method is POST - this is cgi request [09:46:10]url: /json_proto [09:46:10]query_string will be loaded in cgi processing [09:46:10]execute_cgi json_proto POST (null) [09:46:10]execute_cgi path=json_proto method=POST [09:46:10]POST find Content-Length [09:46:10]Host: 172.17.46.196:8080 [09:46:10]Content-Length: 1206 [09:46:10]Content-Type: application/json [09:46:10] [09:46:10]POST finish read [09:46:10]Found Content-Length = 1206 [09:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190097", "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" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:10]execute_script... [09:46:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190097", "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" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:10]POST & json_proto [09:46:10]process_json_proto [09:46:10]json parsed OK: [09:46:10]protocol is kg_v1.0 [09:46:10]action value=close_receipt [09:46:10]process_action close_receipt [09:46:10]cmd_close_receipt [09:46:10]MH_GetDate [09:46:10]Write to MH i2c: F0 00 00 C7 10 C6 [09:46:10]Write i2c OK [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: F0 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: F0 09 00 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: F0 09 00 C7 10 00 64 14 C3 66 C4 85 C2 66 E1 [09:46:10]GetLastDocTimeStamp 1724060735 [09:46:10]current date 1724060772 [09:46:10]FM_GetShiftState [09:46:10]SAM_PROTO_GetShiftState [09:46:10]wFMCommunicate request_size=4 [09:46:10]MH_SAM_APDU [09:46:10]CAPDU: 80 13 01 00 [09:46:10]Write to MH i2c: E2 08 00 C8 10 80 13 01 00 00 00 00 00 55 [09:46:10]Write i2c OK [09:46:10]MH_I2C_Read... [09:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:10]Read from MH i2c: E2 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: E2 0E 00 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: E2 0E 00 C8 10 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 0F [09:46:10]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:46:10]wFMCommunicate OK [09:46:10]SAM_PROTO_GetShiftState done [09:46:10]FM_GetShiftState done [09:46:10]opened in 1724026361 [09:46:10]opened+sec_in_day 1724112761 [09:46:10]quantity*price = 12500 [09:46:10]sum+1 = 12501 [09:46:10]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700040114120 Султан чай 1л. чер персик 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 320.00 НСП 1% : 2.83 НДС 12% : 33.97 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 49 19.08.2024 09:46 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49942 ФПД: 265540286555932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094612&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49942&fm=265540286555932&tin=02508201610067®Number=0000000000092546&sum=32000 0 [09:46:11]StoreToDocumentArchive [09:46:11]shift 467 fd 49942 [09:46:11]save to /storage/0467/doc_00049942 [09:46:11]save last doc name /storage/0467/doc_00049942 to /storage/kkm_last_doc_name [09:46:11]save OK [09:46:11]Clear old archive folders... [09:46:11]ProcessDocumentItem done err = 0, tmpTLVsize=512 [09:46:11]tlvbuf is 00F61240 [09:46:11]SAM_PROTO_ClearQueue [09:46:11]wFMCommunicate request_size=4 [09:46:11]MH_SAM_APDU [09:46:11]CAPDU: 80 09 00 00 [09:46:11]Write to MH i2c: E2 08 00 D5 10 80 09 00 00 00 00 00 00 57 [09:46:11]Write i2c OK [09:46:11]MH_I2C_Read... [09:46:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:11]Read from MH i2c: E2 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 03 00 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 03 00 D5 10 00 90 00 59 [09:46:11]RAPDU: 90 00 [09:46:11]wFMCommunicate OK [09:46:11]SAM_PROTO_ClearQueue done [09:46:11]KKMCreateOFDPacket [09:46:11]OFDProtocolAddRootSTLVToBuf [09:46:11]FM_MakeSignedData [09:46:11]FM_MakeSignedData [09:46:11]SAM_PROTO_SignData [09:46:11]wFMCommunicate request_size=4 [09:46:11]MH_SAM_APDU [09:46:11]CAPDU: 80 0D 01 02 [09:46:11]Write to MH i2c: E2 08 00 D6 10 80 0D 01 02 00 00 00 00 5F [09:46:11]Write i2c OK [09:46:11]MH_I2C_Read... [09:46:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:11]Read from MH i2c: E2 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 03 00 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 03 00 D6 10 00 90 00 5A [09:46:11]RAPDU: 90 00 [09:46:11]wFMCommunicate OK [09:46:11]wFMCommunicate request_size=255 [09:46:11]MH_SAM_APDU [09:46:11]CAPDU: 80 0D 02 02 FA 03 00 00 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 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 [09:46:12]Write to MH i2c: E2 02 01 D7 10 80 0D 02 02 FA 00 03 00 00 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 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 00 00 71 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]OFD Sender: No OFD packet to send [09:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:12]Read from MH i2c: E2 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 D7 10 00 90 00 5B [09:46:12]RAPDU: 90 00 [09:46:12]wFMCommunicate OK [09:46:12]wFMCommunicate request_size=255 [09:46:12]MH_SAM_APDU [09:46:12]CAPDU: 80 0D 02 02 FA 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 64 14 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 [09:46:12]Write to MH i2c: E2 02 01 D8 10 80 0D 02 02 FA 00 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 64 14 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 00 00 32 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:12]Read from MH i2c: E2 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 D8 10 00 90 00 5C [09:46:12]RAPDU: 90 00 [09:46:12]wFMCommunicate OK [09:46:12]wFMCommunicate request_size=21 [09:46:12]MH_SAM_APDU [09:46:12]CAPDU: 80 0D 02 02 10 04 00 16 C3 00 00 35 04 06 00 F1 81 EA 74 27 1C [09:46:12]Write to MH i2c: E2 18 00 D9 10 80 0D 02 02 10 00 04 00 16 C3 00 00 35 04 06 00 F1 81 EA 74 27 1C 00 00 B2 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:12]Read from MH i2c: E2 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 D9 10 00 90 00 5D [09:46:12]RAPDU: 90 00 [09:46:12]wFMCommunicate OK [09:46:12]wFMCommunicate request_size=4 [09:46:12]MH_SAM_APDU [09:46:12]CAPDU: 80 0D 03 02 [09:46:12]Write to MH i2c: E2 08 00 DA 10 80 0D 03 02 00 00 00 00 65 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:12]Read from MH i2c: E2 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 0B 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 0B 00 DA 10 00 2B DB 12 FE 2B DD 04 57 90 00 DF [09:46:12]RAPDU: 2B DB 12 FE 2B DD 04 57 90 00 [09:46:12]wFMCommunicate OK [09:46:12]SAM_PROTO_SignData done [09:46:12]FM_MakeSignedData done [09:46:12]CreateOFDProtocolMessage [09:46:12]wFMCommunicate request_size=4 [09:46:12]MH_SAM_APDU [09:46:12]CAPDU: 80 11 00 00 [09:46:12]Write to MH i2c: E2 08 00 DB 10 80 11 00 00 00 00 00 00 65 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:12]Read from MH i2c: E2 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 17 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 17 00 DB 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B0 [09:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:46:12]wFMCommunicate OK [09:46:12]CreateOFDProtocolMessage done [09:46:12]OFDSenderStorePacket 49942 [09:46:12]StoreOFDPacket docnum=49942 [09:46:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 14 02 00 00 3F A5 0C 02 96 4D 5A 03 01 00 03 00 00 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 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 64 14 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 16 C3 00 00 35 04 06 00 F1 81 EA 74 27 1C 2B DB 12 FE 2B DD 04 57 [09:46:12]CheckFolder [09:46:12]dirname=/storage/ofd_packets [09:46:12]CheckFolder done [09:46:12]ProducePacketName [09:46:12]name=ofd_packets/00049942 [09:46:12]NVStorageSaveData ofd_packets/00049942 [09:46:12]File name is /storage/ofd_packets/00049942 [09:46:12]Write 562 bytes [09:46:12]NVStorageSaveData done [09:46:12]OFDSenderStorePacket done [09:46:12]KKMCreateOFDPacket done [09:46:12]NVStorageSaveData kkm_last_timestamp [09:46:12]File name is /storage/kkm_last_timestamp [09:46:12]Write 4 bytes [09:46:12]NVStorageSaveData done [09:46:12]ExternCall_PrintAddStr [09:46:12]wPrintStart [09:46:12]Write to MH i2c: 01 00 00 DC 10 EC [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: 01 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: 01 07 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: 01 07 00 DC 10 00 00 00 00 00 FF 0F 01 [09:46:12]RasterBufferAndPrint [09:46:12]line Счет N : (3)190097 [09:46:12]line ИНН: 02508201610067 [09:46:12]line Контрольно-Кассовый Чек [09:46:12]line ПРОДАЖА [09:46:12]line Товар: 2000036190018 [09:46:12]line Кофе Американо XL(GABB TRADE) [09:46:12]line 1.000 * 125.00 [09:46:12]line = 125.00 [09:46:12]line НДС 12% НСП 1% [09:46:12]line > о реализуемом товаре [09:46:12]line Товар: 2000036220012 [09:46:12]line Кофе Капучино XL(GABB TRADE) [09:46:12]line 1.000 * 130.00 [09:46:12]line = 130.00 [09:46:12]line НДС 12% НСП 1% [09:46:12]line > о реализуемом товаре [09:46:12]line Товар: 4700040114120 [09:46:12]line Султан чай 1л. чер персик [09:46:12]line 1.000 * 65.00 [09:46:12]line = 65.00 [09:46:12]line НДС 12% НСП 1% [09:46:12]line > о реализуемом товаре [09:46:12]line ИТОГО: 320.00 [09:46:12]line НСП 1% : 2.83 [09:46:12]line НДС 12% : 33.97 [09:46:12]line Наличными: 320.00 [09:46:12]line Безнал.: 0.00 [09:46:12]line Место: АЗС № 95 "Партнер Нефть" [09:46:12]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:46:12]line СНО: Общий режим [09:46:12]line Чек 49 19.08.2024 09:46 [09:46:12]line Смена: 467 ФФД: 1.0 [09:46:12]line ЗНМ: 0300000078 [09:46:12]line РНМ: 0000000000092546 [09:46:12]line Версия ККМ: 001 [09:46:12]line ФМ: 0000000000871800 [09:46:12]line ФД: 49942 [09:46:12]line ФПД: 265540286555932 [09:46:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T094612&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49942&fm=265540286555932&tin=02508201610067®Number=0000000000092546&sum=32000 [09:46:13]line 0 [09:46:13]OFD Sender: Processing packet 49942 [packets to send 21, broken 20] [09:46:13]ProducePacketName [09:46:13]name=ofd_packets/00049942 [09:46:13]OFD Sender: To server: pG, [09:46:13]CommunicateWithHost lk.salyk.kg:30040 [09:46:13]ConnectInit lk.salyk.kg [09:46:13]written 0, free lines is 4095 [09:46:13]Connected sock=9 [09:46:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 14 02 00 00 3F A5 0C 02 96 4D 5A 03 01 00 03 00 00 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 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 64 14 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 16 C3 00 00 35 04 06 00 F1 81 EA 74 27 1C 2B DB 12 FE 2B DD 04 57 [09:46:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D3 AB 47 00 73 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 16 C3 00 00 F4 03 04 00 D3 BE C2 66 B6 04 01 00 00 3F 16 AF B3 73 AF C1 7D [09:46:13]CommunicateWithHost err = 0 [09:46:13]CheckOFDResponse [09:46:13]1017 (14) - 77093643461234 [09:46:13]1041 (16) - 0000000000871800 [09:46:13]1040 (4) - 49942 [09:46:13]1012 (4) - 19.08.2024 03:41 [09:46:13]1206 (1) - 0 [09:46:13]OFD Sender: Remove packet 49942 [09:46:13]ProducePacketName [09:46:13]name=ofd_packets/00049942 [09:46:13]NVStorageDeleteData [09:46:13]Write to MH i2c: 01 00 00 12 11 23 [09:46:13]Write i2c OK [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: 01 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: 01 07 00 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: 01 07 00 12 11 00 00 00 00 00 37 0C 6D [09:46:13]RasterBufferAndPrint [09:46:13]line [09:46:13]line [09:46:13]line [09:46:13]line [09:46:13]line [09:46:13]written 0, free lines is 3133 [09:46:13]MH_Cut [09:46:13]Write to MH i2c: D1 01 00 19 11 01 FC [09:46:13]Write i2c OK [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: D1 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: D1 01 00 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: D1 01 00 19 11 00 FB [09:46:13]Write to MH i2c: 01 00 00 1A 11 2B [09:46:13]Write i2c OK [09:46:13]MH_I2C_Read... [09:46:14]OFD Sender: No OFD packet to send [09:46:14]*** Cut start [09:46:14]*** Purtial cut [09:46:14]*** Stage 1: CUTSNS_PIN = 1 [09:46:14]Read from MH i2c: 01 [09:46:14]MH_I2C_Read... [09:46:14]*** Stop cut motor [09:46:14]*** Cut end [09:46:14]Read from MH i2c: 01 07 00 [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: 01 07 00 1A 11 00 00 00 00 00 FF 0F 40 [09:46:14]process_action close_receipt done [09:46:14]requested_data is exist [09:46:14]produce_requested_data [09:46:14]requested_item fm.sn is exist - process it [09:46:14]wFMCommunicate request_size=4 [09:46:14]MH_SAM_APDU [09:46:14]CAPDU: 80 11 00 00 [09:46:14]Write to MH i2c: E2 08 00 1B 11 80 11 00 00 00 00 00 00 A6 [09:46:14]Write i2c OK [09:46:14]MH_I2C_Read... [09:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:14]Read from MH i2c: E2 [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: E2 17 00 [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: E2 17 00 1B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F1 [09:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:46:14]wFMCommunicate OK [09:46:14]requested_item fd.num is exist - process it [09:46:14]SAM_PROTO_GetFieldsCounters [09:46:14]wFMCommunicate request_size=4 [09:46:14]MH_SAM_APDU [09:46:14]CAPDU: 80 13 00 00 [09:46:14]Write to MH i2c: E2 08 00 1C 11 80 13 00 00 00 00 00 00 A9 [09:46:14]Write i2c OK [09:46:14]MH_I2C_Read... [09:46:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:15]Read from MH i2c: E2 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 62 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 62 00 1C 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 16 C3 00 00 0E 04 04 00 D3 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 03 [09:46:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 16 C3 00 00 0E 04 04 00 D3 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 [09:46:15]wFMCommunicate OK [09:46:15]SAM_PROTO_GetFieldsCounters done [09:46:15]requested_item shift.num is exist - process it [09:46:15]requested_item shift.opened is exist - process it [09:46:15]req_shift_opened [09:46:15]FM_GetShiftState [09:46:15]SAM_PROTO_GetShiftState [09:46:15]wFMCommunicate request_size=4 [09:46:15]MH_SAM_APDU [09:46:15]CAPDU: 80 13 01 00 [09:46:15]Write to MH i2c: E2 08 00 1D 11 80 13 01 00 00 00 00 00 AB [09:46:15]Write i2c OK [09:46:15]MH_I2C_Read... [09:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:15]Read from MH i2c: E2 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 0E 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 0E 00 1D 11 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 65 [09:46:15]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:46:15]wFMCommunicate OK [09:46:15]SAM_PROTO_GetShiftState done [09:46:15]FM_GetShiftState done [09:46:15]req_shift_opened done [09:46:15]requested_item shift.open_date is exist - process it [09:46:15]req_shift_open_date [09:46:15]req_shift_open_date done [09:46:15]produce_requested_data done [09:46:15]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49942,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [09:46:15]process_action_free close_receipt [09:46:15]json_value_free [09:46:15]json_value_free done [09:46:15]process_json_proto returns [09:46:15]Send response to host [09:46:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49942,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [09:46:15]free response buf [09:46:15]execute_script done [09:46:15]execute_script returns [09:46:15]free content buf [09:46:15]Sock 10.Close socket [09:46:15]Sock 10.Thread stoped [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:30]accept exits with 7 [09:50:30]New connection [09:50:30]New thread 3067354468 created [09:50:30]Thread 3067211108 joined [09:50:30]Waiting for new connection... [09:50:30] Sock 7.Parse request [09:50:30]Sock 7.Check first char [09:50:30]Sock 7.First char is OK [09:50:30]request: POST /json_proto HTTP/1.0 [09:50:30]Method: POST [09:50:30]URL: /json_proto [09:50:30]Method is POST - this is cgi request [09:50:30]url: /json_proto [09:50:30]query_string will be loaded in cgi processing [09:50:30]execute_cgi json_proto POST (null) [09:50:30]execute_cgi path=json_proto method=POST [09:50:30]POST find Content-Length [09:50:30]Host: 172.17.46.196:8080 [09:50:30]Content-Length: 1054 [09:50:30]Content-Type: application/json [09:50:30] [09:50:30]POST finish read [09:50:30]Found Content-Length = 1054 [09:50:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190098", "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": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:30]execute_script... [09:50:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190098", "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": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:30]POST & json_proto [09:50:30]process_json_proto [09:50:30]json parsed OK: [09:50:30]protocol is kg_v1.0 [09:50:30]action value=close_receipt [09:50:30]process_action close_receipt [09:50:30]cmd_close_receipt [09:50:30]MH_GetDate [09:50:30]Write to MH i2c: F0 00 00 1E 11 1E [09:50:30]Write i2c OK [09:50:30]MH_I2C_Read... [09:50:30]Read from MH i2c: F0 [09:50:30]MH_I2C_Read... [09:50:30]Read from MH i2c: F0 09 00 [09:50:30]MH_I2C_Read... [09:50:30]Read from MH i2c: F0 09 00 1E 11 00 68 15 C3 66 C4 85 C2 66 3E [09:50:30]GetLastDocTimeStamp 1724060772 [09:50:30]current date 1724061032 [09:50:30]FM_GetShiftState [09:50:30]SAM_PROTO_GetShiftState [09:50:30]wFMCommunicate request_size=4 [09:50:30]MH_SAM_APDU [09:50:30]CAPDU: 80 13 01 00 [09:50:30]Write to MH i2c: E2 08 00 1F 11 80 13 01 00 00 00 00 00 AD [09:50:30]Write i2c OK [09:50:30]MH_I2C_Read... [09:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:30]Read from MH i2c: E2 [09:50:30]MH_I2C_Read... [09:50:30]Read from MH i2c: E2 0E 00 [09:50:30]MH_I2C_Read... [09:50:30]Read from MH i2c: E2 0E 00 1F 11 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 67 [09:50:30]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:50:30]wFMCommunicate OK [09:50:30]SAM_PROTO_GetShiftState done [09:50:30]FM_GetShiftState done [09:50:30]opened in 1724026361 [09:50:30]opened+sec_in_day 1724112761 [09:50:30]quantity*price = 13000 [09:50:30]sum+1 = 13001 [09:50:30]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8901086040008 Жид/ст ПН летняя 4,5л 1.000 * 170.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.85 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 50 19.08.2024 09:50 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49943 ФПД: 184910684786017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T095032&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49943&fm=184910684786017&tin=02508201610067®Number=0000000000092546&sum=30000 0 [09:50:31]StoreToDocumentArchive [09:50:31]shift 467 fd 49943 [09:50:31]save to /storage/0467/doc_00049943 [09:50:31]save last doc name /storage/0467/doc_00049943 to /storage/kkm_last_doc_name [09:50:31]save OK [09:50:31]Clear old archive folders... [09:50:31]ProcessDocumentItem done err = 0, tmpTLVsize=383 [09:50:31]tlvbuf is 00F62340 [09:50:31]SAM_PROTO_ClearQueue [09:50:31]wFMCommunicate request_size=4 [09:50:31]MH_SAM_APDU [09:50:31]CAPDU: 80 09 00 00 [09:50:31]Write to MH i2c: E2 08 00 2C 11 80 09 00 00 00 00 00 00 AF [09:50:31]Write i2c OK [09:50:31]MH_I2C_Read... [09:50:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:31]Read from MH i2c: E2 [09:50:31]MH_I2C_Read... [09:50:31]Read from MH i2c: E2 03 00 [09:50:31]MH_I2C_Read... [09:50:31]Read from MH i2c: E2 03 00 2C 11 00 90 00 B1 [09:50:31]RAPDU: 90 00 [09:50:31]wFMCommunicate OK [09:50:31]SAM_PROTO_ClearQueue done [09:50:31]KKMCreateOFDPacket [09:50:31]OFDProtocolAddRootSTLVToBuf [09:50:31]FM_MakeSignedData [09:50:31]FM_MakeSignedData [09:50:31]SAM_PROTO_SignData [09:50:31]wFMCommunicate request_size=4 [09:50:31]MH_SAM_APDU [09:50:31]CAPDU: 80 0D 01 02 [09:50:31]Write to MH i2c: E2 08 00 2D 11 80 0D 01 02 00 00 00 00 B7 [09:50:31]Write i2c OK [09:50:31]MH_I2C_Read... [09:50:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:31]Read from MH i2c: E2 [09:50:31]MH_I2C_Read... [09:50:31]Read from MH i2c: E2 03 00 [09:50:31]MH_I2C_Read... [09:50:31]Read from MH i2c: E2 03 00 2D 11 00 90 00 B2 [09:50:31]RAPDU: 90 00 [09:50:31]wFMCommunicate OK [09:50:31]wFMCommunicate request_size=255 [09:50:31]MH_SAM_APDU [09:50:31]CAPDU: 80 0D 02 02 FA 03 00 7F 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 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 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 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 [09:50:31]Write to MH i2c: E2 02 01 2E 11 80 0D 02 02 FA 00 03 00 7F 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 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 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 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 47 [09:50:31]Write i2c OK [09:50:31]MH_I2C_Read... [09:50:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:31]Read from MH i2c: E2 [09:50:31]MH_I2C_Read... [09:50:31]Read from MH i2c: E2 03 00 [09:50:31]MH_I2C_Read... [09:50:31]Read from MH i2c: E2 03 00 2E 11 00 90 00 B3 [09:50:31]RAPDU: 90 00 [09:50:31]wFMCommunicate OK [09:50:31]wFMCommunicate request_size=142 [09:50:31]MH_SAM_APDU [09:50:31]CAPDU: 80 0D 02 02 89 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 32 00 00 00 F4 03 04 00 68 15 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 17 C3 00 00 35 04 06 00 A8 2C DF AE 8D 61 [09:50:31]Write to MH i2c: E2 91 00 2F 11 80 0D 02 02 89 00 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 32 00 00 00 F4 03 04 00 68 15 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 17 C3 00 00 35 04 06 00 A8 2C DF AE 8D 61 00 00 EA [09:50:31]Write i2c OK [09:50:31]MH_I2C_Read... [09:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:32]Read from MH i2c: E2 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 03 00 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 03 00 2F 11 00 90 00 B4 [09:50:32]RAPDU: 90 00 [09:50:32]wFMCommunicate OK [09:50:32]wFMCommunicate request_size=4 [09:50:32]MH_SAM_APDU [09:50:32]CAPDU: 80 0D 03 02 [09:50:32]Write to MH i2c: E2 08 00 30 11 80 0D 03 02 00 00 00 00 BC [09:50:32]Write i2c OK [09:50:32]MH_I2C_Read... [09:50:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:32]Read from MH i2c: E2 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 0B 00 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 0B 00 30 11 00 09 B9 6A 26 20 A4 25 64 90 00 5C [09:50:32]RAPDU: 09 B9 6A 26 20 A4 25 64 90 00 [09:50:32]wFMCommunicate OK [09:50:32]SAM_PROTO_SignData done [09:50:32]FM_MakeSignedData done [09:50:32]CreateOFDProtocolMessage [09:50:32]wFMCommunicate request_size=4 [09:50:32]MH_SAM_APDU [09:50:32]CAPDU: 80 11 00 00 [09:50:32]Write to MH i2c: E2 08 00 31 11 80 11 00 00 00 00 00 00 BC [09:50:32]Write i2c OK [09:50:32]MH_I2C_Read... [09:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:32]Read from MH i2c: E2 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 17 00 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: E2 17 00 31 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 07 [09:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:50:32]wFMCommunicate OK [09:50:32]CreateOFDProtocolMessage done [09:50:32]OFDSenderStorePacket 49943 [09:50:32]StoreOFDPacket docnum=49943 [09:50:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 93 01 00 00 55 87 8B 01 22 CC 5A 03 01 00 03 00 7F 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 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 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 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 32 00 00 00 F4 03 04 00 68 15 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 17 C3 00 00 35 04 06 00 A8 2C DF AE 8D 61 09 B9 6A 26 20 A4 25 64 [09:50:32]CheckFolder [09:50:32]dirname=/storage/ofd_packets [09:50:32]CheckFolder done [09:50:32]ProducePacketName [09:50:32]name=ofd_packets/00049943 [09:50:32]NVStorageSaveData ofd_packets/00049943 [09:50:32]File name is /storage/ofd_packets/00049943 [09:50:32]Write 433 bytes [09:50:32]NVStorageSaveData done [09:50:32]OFDSenderStorePacket done [09:50:32]KKMCreateOFDPacket done [09:50:32]NVStorageSaveData kkm_last_timestamp [09:50:32]File name is /storage/kkm_last_timestamp [09:50:32]Write 4 bytes [09:50:32]NVStorageSaveData done [09:50:32]ExternCall_PrintAddStr [09:50:32]wPrintStart [09:50:32]Write to MH i2c: 01 00 00 32 11 43 [09:50:32]Write i2c OK [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: 01 [09:50:32]MH_I2C_Read... [09:50:32]OFD Sender: Processing packet 49943 [packets to send 21, broken 20] [09:50:32]ProducePacketName [09:50:32]name=ofd_packets/00049943 [09:50:32]OFD Sender: To server: pG, [09:50:32]CommunicateWithHost lk.salyk.kg:30040 [09:50:32]ConnectInit lk.salyk.kg [09:50:32]Read from MH i2c: 01 07 00 [09:50:32]MH_I2C_Read... [09:50:32]Read from MH i2c: 01 07 00 32 11 00 00 00 00 00 FF 0F 58 [09:50:32]RasterBufferAndPrint [09:50:32]line Счет N : (3)190098 [09:50:32]line ИНН: 02508201610067 [09:50:32]line Контрольно-Кассовый Чек [09:50:32]line ПРОДАЖА [09:50:32]line Товар: 2000036230011 [09:50:32]line Кофе Латте XL(GABB TRADE) [09:50:32]line 1.000 * 130.00 [09:50:32]line = 130.00 [09:50:32]line НДС 12% НСП 1% [09:50:32]line > о реализуемом товаре [09:50:32]line Товар: 8901086040008 [09:50:32]line Жид/ст ПН летняя 4,5л [09:50:32]line 1.000 * 170.00 [09:50:32]line = 170.00 [09:50:32]line НДС 12% НСП 1% [09:50:32]line > о реализуемом товаре [09:50:32]line ИТОГО: 300.00 [09:50:32]line НСП 1% : 2.65 [09:50:32]line НДС 12% : 31.85 [09:50:32]line Наличными: 0.00 [09:50:32]line Безнал.: 300.00 [09:50:32]line Место: АЗС № 95 "Партнер Нефть" [09:50:32]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:50:32]line СНО: Общий режим [09:50:32]line Чек 50 19.08.2024 09:50 [09:50:32]line Смена: 467 ФФД: 1.0 [09:50:32]line ЗНМ: 0300000078 [09:50:32]line РНМ: 0000000000092546 [09:50:32]line Версия ККМ: 001 [09:50:32]line Платежная система: O! деньги [09:50:32]line ФМ: 0000000000871800 [09:50:32]line ФД: 49943 [09:50:32]line ФПД: 184910684786017 [09:50:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T095032&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49943&fm=184910684786017&tin=02508201610067®Number=0000000000092546&sum=30000 [09:50:32]line 0 [09:50:32]written 0, free lines is 4095 [09:50:32]Connected sock=10 [09:50:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 93 01 00 00 55 87 8B 01 22 CC 5A 03 01 00 03 00 7F 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 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 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 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 32 00 00 00 F4 03 04 00 68 15 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 17 C3 00 00 35 04 06 00 A8 2C DF AE 8D 61 09 B9 6A 26 20 A4 25 64 [09:50:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 68 6B 47 00 6B 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 17 C3 00 00 F4 03 04 00 D6 BF C2 66 B6 04 01 00 00 71 B8 87 28 E5 C3 2B 51 [09:50:32]CommunicateWithHost err = 0 [09:50:32]CheckOFDResponse [09:50:32]1017 (14) - 77093643461234 [09:50:32]1041 (16) - 0000000000871800 [09:50:32]1040 (4) - 49943 [09:50:32]1012 (4) - 19.08.2024 03:45 [09:50:32]1206 (1) - 0 [09:50:32]OFD Sender: Remove packet 49943 [09:50:32]ProducePacketName [09:50:32]name=ofd_packets/00049943 [09:50:32]NVStorageDeleteData [09:50:33]Write to MH i2c: 01 00 00 62 11 73 [09:50:33]Write i2c OK [09:50:33]MH_I2C_Read... [09:50:33]Read from MH i2c: 01 [09:50:33]MH_I2C_Read... [09:50:33]Read from MH i2c: 01 07 00 [09:50:33]MH_I2C_Read... [09:50:33]Read from MH i2c: 01 07 00 62 11 00 00 00 00 00 96 0C 1C [09:50:33]RasterBufferAndPrint [09:50:33]line [09:50:33]line [09:50:33]line [09:50:33]line [09:50:33]line [09:50:33]written 0, free lines is 3229 [09:50:33]MH_Cut [09:50:33]Write to MH i2c: D1 01 00 69 11 01 4C [09:50:33]Write i2c OK [09:50:33]MH_I2C_Read... [09:50:33]Read from MH i2c: D1 [09:50:33]MH_I2C_Read... [09:50:33]Read from MH i2c: D1 01 00 [09:50:33]MH_I2C_Read... [09:50:33]Read from MH i2c: D1 01 00 69 11 00 4B [09:50:33]Write to MH i2c: 01 00 00 6A 11 7B [09:50:33]Write i2c OK [09:50:33]MH_I2C_Read... [09:50:33]OFD Sender: No OFD packet to send [09:50:33]*** Cut start [09:50:33]*** Purtial cut [09:50:33]*** CUTSNS_PIN = 0 [09:50:34]*** Stage 1: CUTSNS_PIN = 1 [09:50:35]Read from MH i2c: 01 [09:50:35]MH_I2C_Read... [09:50:35]*** Stop cut motor [09:50:35]*** Cut end [09:50:35]Read from MH i2c: 01 07 00 [09:50:35]MH_I2C_Read... [09:50:35]Read from MH i2c: 01 07 00 6A 11 00 00 00 00 00 FF 0F 90 [09:50:35]process_action close_receipt done [09:50:35]requested_data is exist [09:50:35]produce_requested_data [09:50:35]requested_item fm.sn is exist - process it [09:50:35]wFMCommunicate request_size=4 [09:50:35]MH_SAM_APDU [09:50:35]CAPDU: 80 11 00 00 [09:50:35]Write to MH i2c: E2 08 00 6B 11 80 11 00 00 00 00 00 00 F6 [09:50:35]Write i2c OK [09:50:35]MH_I2C_Read... [09:50:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:35]Read from MH i2c: E2 [09:50:35]MH_I2C_Read... [09:50:35]Read from MH i2c: E2 17 00 [09:50:35]MH_I2C_Read... [09:50:35]Read from MH i2c: E2 17 00 6B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 41 [09:50:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:50:35]wFMCommunicate OK [09:50:35]requested_item fd.num is exist - process it [09:50:35]SAM_PROTO_GetFieldsCounters [09:50:35]wFMCommunicate request_size=4 [09:50:35]MH_SAM_APDU [09:50:35]CAPDU: 80 13 00 00 [09:50:35]Write to MH i2c: E2 08 00 6C 11 80 13 00 00 00 00 00 00 F9 [09:50:35]Write i2c OK [09:50:35]MH_I2C_Read... [09:50:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:36]Read from MH i2c: E2 [09:50:36]MH_I2C_Read... [09:50:36]Read from MH i2c: E2 62 00 [09:50:36]MH_I2C_Read... [09:50:36]Read from MH i2c: E2 62 00 6C 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 17 C3 00 00 0E 04 04 00 D3 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 57 [09:50:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 17 C3 00 00 0E 04 04 00 D3 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 [09:50:36]wFMCommunicate OK [09:50:36]SAM_PROTO_GetFieldsCounters done [09:50:36]requested_item shift.num is exist - process it [09:50:36]requested_item shift.opened is exist - process it [09:50:36]req_shift_opened [09:50:36]FM_GetShiftState [09:50:36]SAM_PROTO_GetShiftState [09:50:36]wFMCommunicate request_size=4 [09:50:36]MH_SAM_APDU [09:50:36]CAPDU: 80 13 01 00 [09:50:36]Write to MH i2c: E2 08 00 6D 11 80 13 01 00 00 00 00 00 FB [09:50:36]Write i2c OK [09:50:36]MH_I2C_Read... [09:50:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:36]Read from MH i2c: E2 [09:50:36]MH_I2C_Read... [09:50:36]Read from MH i2c: E2 0E 00 [09:50:36]MH_I2C_Read... [09:50:36]Read from MH i2c: E2 0E 00 6D 11 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B5 [09:50:36]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:50:36]wFMCommunicate OK [09:50:36]SAM_PROTO_GetShiftState done [09:50:36]FM_GetShiftState done [09:50:36]req_shift_opened done [09:50:36]requested_item shift.open_date is exist - process it [09:50:36]req_shift_open_date [09:50:36]req_shift_open_date done [09:50:36]produce_requested_data done [09:50:36]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49943,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [09:50:36]process_action_free close_receipt [09:50:36]json_value_free [09:50:36]json_value_free done [09:50:36]process_json_proto returns [09:50:36]Send response to host [09:50:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49943,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [09:50:36]free response buf [09:50:36]execute_script done [09:50:36]execute_script returns [09:50:36]free content buf [09:50:36]Sock 7.Close socket [09:50:36]Sock 7.Thread stoped [09:50:38]OFD Sender: No OFD packet to send [09:50:43]OFD Sender: No OFD packet to send [09:50:48]OFD Sender: No OFD packet to send [09:50:53]OFD Sender: No OFD packet to send [09:50:58]OFD Sender: No OFD packet to send [09:51:03]OFD Sender: No OFD packet to send [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:48]OFD Sender: No OFD packet to send [09:52:53]OFD Sender: No OFD packet to send [09:52:58]OFD Sender: No OFD packet to send [09:53:03]OFD Sender: No OFD packet to send [09:53:08]OFD Sender: No OFD packet to send [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:30]accept exits with 9 [09:59:30]New connection [09:59:30]New thread 3067211108 created [09:59:30]Thread 3067354468 joined [09:59:30]Waiting for new connection... [09:59:30] Sock 9.Parse request [09:59:30]Sock 9.Check first char [09:59:30]Sock 9.First char is OK [09:59:30]request: POST /json_proto HTTP/1.0 [09:59:30]Method: POST [09:59:30]URL: /json_proto [09:59:30]Method is POST - this is cgi request [09:59:30]url: /json_proto [09:59:30]query_string will be loaded in cgi processing [09:59:30]execute_cgi json_proto POST (null) [09:59:30]execute_cgi path=json_proto method=POST [09:59:30]POST find Content-Length [09:59:30]Host: 172.17.46.196:8080 [09:59:30]Content-Length: 784 [09:59:30]Content-Type: application/json [09:59:30] [09:59:30]POST finish read [09:59:30]Found Content-Length = 784 [09:59:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190099", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:30]execute_script... [09:59: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)190099", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:30]POST & json_proto [09:59:30]process_json_proto [09:59:30]json parsed OK: [09:59:30]protocol is kg_v1.0 [09:59:30]action value=close_receipt [09:59:30]process_action close_receipt [09:59:30]cmd_close_receipt [09:59:30]MH_GetDate [09:59:30]Write to MH i2c: F0 00 00 6E 11 6E [09:59:30]Write i2c OK [09:59:30]MH_I2C_Read... [09:59:30]Read from MH i2c: F0 [09:59:30]MH_I2C_Read... [09:59:30]Read from MH i2c: F0 09 00 [09:59:30]MH_I2C_Read... [09:59:30]Read from MH i2c: F0 09 00 6E 11 00 85 17 C3 66 C4 85 C2 66 AD [09:59:30]GetLastDocTimeStamp 1724061032 [09:59:30]current date 1724061573 [09:59:30]FM_GetShiftState [09:59:30]SAM_PROTO_GetShiftState [09:59:30]wFMCommunicate request_size=4 [09:59:30]MH_SAM_APDU [09:59:30]CAPDU: 80 13 01 00 [09:59:30]Write to MH i2c: E2 08 00 6F 11 80 13 01 00 00 00 00 00 FD [09:59:30]Write i2c OK [09:59:30]MH_I2C_Read... [09:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:31]Read from MH i2c: E2 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 0E 00 [09:59:31]MH_I2C_Read... [09:59:31]Read from MH i2c: E2 0E 00 6F 11 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B7 [09:59:31]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:59:31]wFMCommunicate OK [09:59:31]SAM_PROTO_GetShiftState done [09:59:31]FM_GetShiftState done [09:59:31]opened in 1724026361 [09:59:31]opened+sec_in_day 1724112761 [09:59:31]quantity*price = 14000 [09:59:31]sum+1 = 14001 [09:59:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 51 19.08.2024 09:59 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49944 ФПД: 92676316660051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T095933&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49944&fm=92676316660051&tin=02508201610067®Number=0000000000092546&sum=14000 0 [09:59:32]StoreToDocumentArchive [09:59:32]shift 467 fd 49944 [09:59:32]save to /storage/0467/doc_00049944 [09:59:32]save last doc name /storage/0467/doc_00049944 to /storage/kkm_last_doc_name [09:59:32]save OK [09:59:32]Clear old archive folders... [09:59:32]ProcessDocumentItem done err = 0, tmpTLVsize=275 [09:59:32]tlvbuf is 0103F920 [09:59:32]SAM_PROTO_ClearQueue [09:59:32]wFMCommunicate request_size=4 [09:59:32]MH_SAM_APDU [09:59:32]CAPDU: 80 09 00 00 [09:59:32]Write to MH i2c: E2 08 00 7C 11 80 09 00 00 00 00 00 00 FF [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:32]Read from MH i2c: E2 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 03 00 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 03 00 7C 11 00 90 00 01 [09:59:32]RAPDU: 90 00 [09:59:32]wFMCommunicate OK [09:59:32]SAM_PROTO_ClearQueue done [09:59:32]KKMCreateOFDPacket [09:59:32]OFDProtocolAddRootSTLVToBuf [09:59:32]FM_MakeSignedData [09:59:32]FM_MakeSignedData [09:59:32]SAM_PROTO_SignData [09:59:32]wFMCommunicate request_size=4 [09:59:32]MH_SAM_APDU [09:59:32]CAPDU: 80 0D 01 02 [09:59:32]Write to MH i2c: E2 08 00 7D 11 80 0D 01 02 00 00 00 00 07 [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:32]Read from MH i2c: E2 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 03 00 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 03 00 7D 11 00 90 00 02 [09:59:32]RAPDU: 90 00 [09:59:32]wFMCommunicate OK [09:59:32]wFMCommunicate request_size=255 [09:59:32]MH_SAM_APDU [09:59:32]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 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 33 00 00 00 F4 03 04 00 85 17 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [09:59:32]Write to MH i2c: E2 02 01 7E 11 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 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 33 00 00 00 F4 03 04 00 85 17 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 64 [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:32]Read from MH i2c: E2 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 03 00 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 03 00 7E 11 00 90 00 03 [09:59:32]RAPDU: 90 00 [09:59:32]wFMCommunicate OK [09:59:32]wFMCommunicate request_size=34 [09:59:32]MH_SAM_APDU [09:59:32]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 18 C3 00 00 35 04 06 00 54 49 E2 EF 01 53 [09:59:32]Write to MH i2c: E2 25 00 7F 11 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 18 C3 00 00 35 04 06 00 54 49 E2 EF 01 53 00 00 60 [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:32]Read from MH i2c: E2 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 03 00 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 03 00 7F 11 00 90 00 04 [09:59:32]RAPDU: 90 00 [09:59:32]wFMCommunicate OK [09:59:32]wFMCommunicate request_size=4 [09:59:32]MH_SAM_APDU [09:59:32]CAPDU: 80 0D 03 02 [09:59:32]Write to MH i2c: E2 08 00 80 11 80 0D 03 02 00 00 00 00 0C [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:32]Read from MH i2c: E2 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 0B 00 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 0B 00 80 11 00 53 9E 1B 77 52 A3 F4 C2 90 00 3B [09:59:32]RAPDU: 53 9E 1B 77 52 A3 F4 C2 90 00 [09:59:32]wFMCommunicate OK [09:59:32]SAM_PROTO_SignData done [09:59:32]FM_MakeSignedData done [09:59:32]CreateOFDProtocolMessage [09:59:32]wFMCommunicate request_size=4 [09:59:32]MH_SAM_APDU [09:59:32]CAPDU: 80 11 00 00 [09:59:32]Write to MH i2c: E2 08 00 81 11 80 11 00 00 00 00 00 00 0C [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:32]Read from MH i2c: E2 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 17 00 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: E2 17 00 81 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 57 [09:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:59:32]wFMCommunicate OK [09:59:32]CreateOFDProtocolMessage done [09:59:32]OFDSenderStorePacket 49944 [09:59:32]StoreOFDPacket docnum=49944 [09:59:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 3A 8B 1F 01 42 22 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 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 33 00 00 00 F4 03 04 00 85 17 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 18 C3 00 00 35 04 06 00 54 49 E2 EF 01 53 53 9E 1B 77 52 A3 F4 C2 [09:59:32]CheckFolder [09:59:32]dirname=/storage/ofd_packets [09:59:32]CheckFolder done [09:59:32]ProducePacketName [09:59:32]name=ofd_packets/00049944 [09:59:32]NVStorageSaveData ofd_packets/00049944 [09:59:32]File name is /storage/ofd_packets/00049944 [09:59:32]Write 325 bytes [09:59:32]NVStorageSaveData done [09:59:32]OFDSenderStorePacket done [09:59:32]KKMCreateOFDPacket done [09:59:32]NVStorageSaveData kkm_last_timestamp [09:59:32]File name is /storage/kkm_last_timestamp [09:59:32]OFD Sender: Processing packet 49944 [packets to send 21, broken 20] [09:59:32]ProducePacketName [09:59:32]name=ofd_packets/00049944 [09:59:32]OFD Sender: To server: pG, [09:59:32]CommunicateWithHost lk.salyk.kg:30040 [09:59:32]ConnectInit lk.salyk.kg [09:59:32]Write 4 bytes [09:59:32]NVStorageSaveData done [09:59:32]ExternCall_PrintAddStr [09:59:32]wPrintStart [09:59:32]Write to MH i2c: 01 00 00 82 11 93 [09:59:32]Write i2c OK [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: 01 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: 01 07 00 [09:59:32]MH_I2C_Read... [09:59:32]Read from MH i2c: 01 07 00 82 11 00 00 00 00 00 FF 0F A8 [09:59:32]RasterBufferAndPrint [09:59:32]line Счет N : (3)190099 [09:59:32]line ИНН: 02508201610067 [09:59:32]line Контрольно-Кассовый Чек [09:59:32]line ПРОДАЖА [09:59:32]line Товар: 48743587 [09:59:32]line Сигареты Winston XStyle Silver [09:59:32]line 1.000 * 140.00 [09:59:32]line = 140.00 [09:59:32]line НДС 12% НСП 1% [09:59:32]line > о реализуемом товаре [09:59:32]line ИТОГО: 140.00 [09:59:32]line НСП 1% : 1.24 [09:59:32]line НДС 12% : 14.87 [09:59:32]line Наличными: 0.00 [09:59:32]line Безнал.: 140.00 [09:59:32]line Место: АЗС № 95 "Партнер Нефть" [09:59:32]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:59:32]line СНО: Общий режим [09:59:32]line Чек 51 19.08.2024 09:59 [09:59:32]line Смена: 467 ФФД: 1.0 [09:59:32]line ЗНМ: 0300000078 [09:59:32]line РНМ: 0000000000092546 [09:59:32]line Версия ККМ: 001 [09:59:32]line Платежная система: O! деньги [09:59:32]line ФМ: 0000000000871800 [09:59:32]line ФД: 49944 [09:59:32]line ФПД: 92676316660051 [09:59:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T095933&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49944&fm=92676316660051&tin=02508201610067®Number=0000000000092546&sum=14000 [09:59:33]line 0 [09:59:33]Connected sock=11 [09:59:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 3A 8B 1F 01 42 22 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 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 33 00 00 00 F4 03 04 00 85 17 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 18 C3 00 00 35 04 06 00 54 49 E2 EF 01 53 53 9E 1B 77 52 A3 F4 C2 [09:59:33]written 0, free lines is 4095 [09:59:33]Write to MH i2c: 01 00 00 AD 11 BE [09:59:33]Write i2c OK [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: 01 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: 01 07 00 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: 01 07 00 AD 11 00 00 00 00 00 B1 0C 82 [09:59:33]RasterBufferAndPrint [09:59:33]line [09:59:33]line [09:59:33]line [09:59:33]line [09:59:33]line [09:59:33]written 0, free lines is 3255 [09:59:33]MH_Cut [09:59:33]Write to MH i2c: D1 01 00 B4 11 01 97 [09:59:33]Write i2c OK [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: D1 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: D1 01 00 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: D1 01 00 B4 11 00 96 [09:59:33]Write to MH i2c: 01 00 00 B5 11 C6 [09:59:33]Write i2c OK [09:59:33]MH_I2C_Read... [09:59:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 72 0A 47 00 88 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 18 C3 00 00 F4 03 04 00 F3 C1 C2 66 B6 04 01 00 00 30 85 4E A5 10 14 51 B1 [09:59:33]CommunicateWithHost err = 0 [09:59:33]CheckOFDResponse [09:59:33]1017 (14) - 77093643461234 [09:59:33]1041 (16) - 0000000000871800 [09:59:33]1040 (4) - 49944 [09:59:33]1012 (4) - 19.08.2024 03:54 [09:59:33]1206 (1) - 0 [09:59:33]OFD Sender: Remove packet 49944 [09:59:33]ProducePacketName [09:59:33]name=ofd_packets/00049944 [09:59:33]NVStorageDeleteData [09:59:34]OFD Sender: No OFD packet to send [09:59:34]*** Cut start [09:59:34]*** Purtial cut [09:59:34]*** Stage 1: CUTSNS_PIN = 1 [09:59:34]Read from MH i2c: 01 [09:59:34]MH_I2C_Read... [09:59:34]*** Stop cut motor [09:59:34]*** Cut end [09:59:34]Read from MH i2c: 01 07 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: 01 07 00 B5 11 00 00 00 00 00 FF 0F DB [09:59:34]process_action close_receipt done [09:59:34]requested_data is exist [09:59:34]produce_requested_data [09:59:34]requested_item fm.sn is exist - process it [09:59:34]wFMCommunicate request_size=4 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 11 00 00 [09:59:34]Write to MH i2c: E2 08 00 B6 11 80 11 00 00 00 00 00 00 41 [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 17 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 17 00 B6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8C [09:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:59:34]wFMCommunicate OK [09:59:34]requested_item fd.num is exist - process it [09:59:34]SAM_PROTO_GetFieldsCounters [09:59:34]wFMCommunicate request_size=4 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 13 00 00 [09:59:34]Write to MH i2c: E2 08 00 B7 11 80 13 00 00 00 00 00 00 44 [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 62 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 62 00 B7 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 18 C3 00 00 0E 04 04 00 D3 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 A6 [09:59:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 18 C3 00 00 0E 04 04 00 D3 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 [09:59:34]wFMCommunicate OK [09:59:34]SAM_PROTO_GetFieldsCounters done [09:59:34]requested_item shift.num is exist - process it [09:59:34]requested_item shift.opened is exist - process it [09:59:34]req_shift_opened [09:59:34]FM_GetShiftState [09:59:34]SAM_PROTO_GetShiftState [09:59:34]wFMCommunicate request_size=4 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 13 01 00 [09:59:34]Write to MH i2c: E2 08 00 B8 11 80 13 01 00 00 00 00 00 46 [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 0E 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 0E 00 B8 11 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 00 [09:59:34]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [09:59:34]wFMCommunicate OK [09:59:34]SAM_PROTO_GetShiftState done [09:59:34]FM_GetShiftState done [09:59:34]req_shift_opened done [09:59:34]requested_item shift.open_date is exist - process it [09:59:34]req_shift_open_date [09:59:34]req_shift_open_date done [09:59:34]produce_requested_data done [09:59:34]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49944,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [09:59:34]process_action_free close_receipt [09:59:34]json_value_free [09:59:34]json_value_free done [09:59:34]process_json_proto returns [09:59:34]Send response to host [09:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49944,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [09:59:34]free response buf [09:59:34]execute_script done [09:59:34]execute_script returns [09:59:34]free content buf [09:59:34]Sock 9.Close socket [09:59:34]Sock 9.Thread stoped [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:36]accept exits with 7 [10:03:36]New connection [10:03:36]New thread 3067354468 created [10:03:36]Thread 3067211108 joined [10:03:36]Waiting for new connection... [10:03:36] Sock 7.Parse request [10:03:36]Sock 7.Check first char [10:03:36]Sock 7.First char is OK [10:03:36]request: POST /json_proto HTTP/1.0 [10:03:36]Method: POST [10:03:36]URL: /json_proto [10:03:36]Method is POST - this is cgi request [10:03:36]url: /json_proto [10:03:36]query_string will be loaded in cgi processing [10:03:36]execute_cgi json_proto POST (null) [10:03:36]execute_cgi path=json_proto method=POST [10:03:36]POST find Content-Length [10:03:36]Host: 172.17.46.196:8080 [10:03:36]Content-Length: 753 [10:03:36]Content-Type: application/json [10:03:36] [10:03:36]POST finish read [10:03:36]Found Content-Length = 753 [10:03:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104840", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:36]execute_script... [10: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 : (1)11327633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104840", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:36]POST & json_proto [10:03:36]process_json_proto [10:03:36]json parsed OK: [10:03:36]protocol is kg_v1.0 [10:03:36]action value=close_receipt [10:03:36]process_action close_receipt [10:03:36]cmd_close_receipt [10:03:36]MH_GetDate [10:03:36]Write to MH i2c: F0 00 00 B9 11 B9 [10:03:36]Write i2c OK [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: F0 [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: F0 09 00 [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: F0 09 00 B9 11 00 7A 18 C3 66 C4 85 C2 66 EE [10:03:36]GetLastDocTimeStamp 1724061573 [10:03:36]current date 1724061818 [10:03:36]FM_GetShiftState [10:03:36]SAM_PROTO_GetShiftState [10:03:36]wFMCommunicate request_size=4 [10:03:36]MH_SAM_APDU [10:03:36]CAPDU: 80 13 01 00 [10:03:36]Write to MH i2c: E2 08 00 BA 11 80 13 01 00 00 00 00 00 48 [10:03:36]Write i2c OK [10:03:36]MH_I2C_Read... [10:03:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:36]Read from MH i2c: E2 [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: E2 0E 00 [10:03:36]MH_I2C_Read... [10:03:36]Read from MH i2c: E2 0E 00 BA 11 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 02 [10:03:36]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:03:36]wFMCommunicate OK [10:03:36]SAM_PROTO_GetShiftState done [10:03:36]FM_GetShiftState done [10:03:36]opened in 1724026361 [10:03:36]opened+sec_in_day 1724112761 [10:03:36]quantity*price = 0 [10:03:36]sum+1 = 1 [10:03:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 52 19.08.2024 10:03 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104840 ФМ: 0000000000871800 ФД: 49945 ФПД: 193142337304354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T100338&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49945&fm=193142337304354&tin=02508201610067®Number=0000000000092546&sum=0 [10:03:37]StoreToDocumentArchive [10:03:37]shift 467 fd 49945 [10:03:37]save to /storage/0467/doc_00049945 [10:03:37]save last doc name /storage/0467/doc_00049945 to /storage/kkm_last_doc_name [10:03:37]save OK [10:03:37]Clear old archive folders... [10:03:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:03:37]tlvbuf is 00F67520 [10:03:37]SAM_PROTO_ClearQueue [10:03:37]wFMCommunicate request_size=4 [10:03:37]MH_SAM_APDU [10:03:37]CAPDU: 80 09 00 00 [10:03:37]Write to MH i2c: E2 08 00 C7 11 80 09 00 00 00 00 00 00 4A [10:03:37]Write i2c OK [10:03:37]MH_I2C_Read... [10:03:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:37]Read from MH i2c: E2 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 03 00 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 03 00 C7 11 00 90 00 4C [10:03:37]RAPDU: 90 00 [10:03:37]wFMCommunicate OK [10:03:37]SAM_PROTO_ClearQueue done [10:03:37]KKMCreateOFDPacket [10:03:37]OFDProtocolAddRootSTLVToBuf [10:03:37]FM_MakeSignedData [10:03:37]FM_MakeSignedData [10:03:37]SAM_PROTO_SignData [10:03:37]wFMCommunicate request_size=4 [10:03:37]MH_SAM_APDU [10:03:37]CAPDU: 80 0D 01 02 [10:03:37]Write to MH i2c: E2 08 00 C8 11 80 0D 01 02 00 00 00 00 52 [10:03:37]Write i2c OK [10:03:37]MH_I2C_Read... [10:03:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:37]Read from MH i2c: E2 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 03 00 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 03 00 C8 11 00 90 00 4D [10:03:37]RAPDU: 90 00 [10:03:37]wFMCommunicate OK [10:03:37]wFMCommunicate request_size=255 [10:03:37]MH_SAM_APDU [10:03:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 7A 18 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 19 C3 00 00 35 04 06 00 AF A9 74 67 [10:03:37]Write to MH i2c: E2 02 01 C9 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 7A 18 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 19 C3 00 00 35 04 06 00 AF A9 74 67 00 00 8D [10:03:37]Write i2c OK [10:03:37]MH_I2C_Read... [10:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:37]Read from MH i2c: E2 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 03 00 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 03 00 C9 11 00 90 00 4E [10:03:37]RAPDU: 90 00 [10:03:37]wFMCommunicate OK [10:03:37]wFMCommunicate request_size=7 [10:03:37]MH_SAM_APDU [10:03:37]CAPDU: 80 0D 02 02 02 F7 22 [10:03:37]Write to MH i2c: E2 0A 00 CA 11 80 0D 02 02 02 00 F7 22 00 00 72 [10:03:37]Write i2c OK [10:03:37]MH_I2C_Read... [10:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:37]Read from MH i2c: E2 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 03 00 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 03 00 CA 11 00 90 00 4F [10:03:37]RAPDU: 90 00 [10:03:37]wFMCommunicate OK [10:03:37]wFMCommunicate request_size=4 [10:03:37]MH_SAM_APDU [10:03:37]CAPDU: 80 0D 03 02 [10:03:37]Write to MH i2c: E2 08 00 CB 11 80 0D 03 02 00 00 00 00 57 [10:03:37]Write i2c OK [10:03:37]MH_I2C_Read... [10:03:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:37]Read from MH i2c: E2 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 0B 00 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 0B 00 CB 11 00 BA 5B E4 9D BA BC 70 6B 90 00 3F [10:03:37]RAPDU: BA 5B E4 9D BA BC 70 6B 90 00 [10:03:37]wFMCommunicate OK [10:03:37]SAM_PROTO_SignData done [10:03:37]FM_MakeSignedData done [10:03:37]CreateOFDProtocolMessage [10:03:37]wFMCommunicate request_size=4 [10:03:37]MH_SAM_APDU [10:03:37]CAPDU: 80 11 00 00 [10:03:37]Write to MH i2c: E2 08 00 CC 11 80 11 00 00 00 00 00 00 57 [10:03:37]Write i2c OK [10:03:37]MH_I2C_Read... [10:03:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:38]Read from MH i2c: E2 [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: E2 17 00 [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: E2 17 00 CC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A2 [10:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:03:38]wFMCommunicate OK [10:03:38]CreateOFDProtocolMessage done [10:03:38]OFDSenderStorePacket 49945 [10:03:38]StoreOFDPacket docnum=49945 [10:03:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 F0 C5 04 01 BD 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 7A 18 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 19 C3 00 00 35 04 06 00 AF A9 74 67 F7 22 BA 5B E4 9D BA BC 70 6B [10:03:38]CheckFolder [10:03:38]dirname=/storage/ofd_packets [10:03:38]CheckFolder done [10:03:38]ProducePacketName [10:03:38]name=ofd_packets/00049945 [10:03:38]NVStorageSaveData ofd_packets/00049945 [10:03:38]File name is /storage/ofd_packets/00049945 [10:03:38]Write 298 bytes [10:03:38]NVStorageSaveData done [10:03:38]OFDSenderStorePacket done [10:03:38]KKMCreateOFDPacket done [10:03:38]NVStorageSaveData kkm_last_timestamp [10:03:38]File name is /storage/kkm_last_timestamp [10:03:38]Write 4 bytes [10:03:38]NVStorageSaveData done [10:03:38]ExternCall_PrintAddStr [10:03:38]wPrintStart [10:03:38]Write to MH i2c: 01 00 00 CD 11 DE [10:03:38]Write i2c OK [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: 01 [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: 01 07 00 [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: 01 07 00 CD 11 00 00 00 00 00 FF 0F F3 [10:03:38]RasterBufferAndPrint [10:03:38]line Счет N : (1)11327633 [10:03:38]line ИНН: 02508201610067 [10:03:38]line Контрольно-Кассовый Чек [10:03:38]line ПРОДАЖА [10:03:38]line ТРК (МРК, ГНК) : 61 [10:03:38]line Товар: 2710194210 [10:03:38]line ДТ-К-5 [10:03:38]line 50.000 * 0.00 [10:03:38]line = 0.00 [10:03:38]line НДС 12% НСП 1% [10:03:38]line > о реализуемом товаре [10:03:38]line ИТОГО: 0.00 [10:03:38]line НСП 1% : 0.00 [10:03:38]line НДС 12% : 0.00 [10:03:38]line Наличными: 0.00 [10:03:38]line Безнал.: 0.00 [10:03:38]line Место: АЗС № 95 "Партнер Нефть" [10:03:38]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:03:38]line СНО: Общий режим [10:03:38]line Чек 52 19.08.2024 10:03 [10:03:38]line Смена: 467 ФФД: 1.0 [10:03:38]line ЗНМ: 0300000078 [10:03:38]line РНМ: 0000000000092546 [10:03:38]line Версия ККМ: 001 [10:03:38]line Талоны: ТК ГПНА Online [10:03:38]line 30104840 [10:03:38]line ФМ: 0000000000871800 [10:03:38]line ФД: 49945 [10:03:38]line ФПД: 193142337304354 [10:03:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T100338&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49945&fm=193142337304354&tin=02508201610067®Number=0000000000092546&sum=0 [10:03:38]OFD Sender: Processing packet 49945 [packets to send 21, broken 20] [10:03:38]ProducePacketName [10:03:38]name=ofd_packets/00049945 [10:03:38]OFD Sender: To server: pG, [10:03:38]CommunicateWithHost lk.salyk.kg:30040 [10:03:38]ConnectInit lk.salyk.kg [10:03:38]written 0, free lines is 4095 [10:03:38]Connected sock=10 [10: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 31 38 30 30 0C 01 00 00 F0 C5 04 01 BD 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 7A 18 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 19 C3 00 00 35 04 06 00 AF A9 74 67 F7 22 BA 5B E4 9D BA BC 70 6B [10:03:38]Write to MH i2c: 01 00 00 F7 11 08 [10:03:38]Write i2c OK [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: 01 [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: 01 07 00 [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: 01 07 00 F7 11 00 00 00 00 00 D9 0C F4 [10:03:38]RasterBufferAndPrint [10:03:38]line [10:03:38]line [10:03:38]line [10:03:38]line [10:03:38]line [10:03:38]written 0, free lines is 3298 [10:03:38]MH_Cut [10:03:38]Write to MH i2c: D1 01 00 FE 11 01 E1 [10:03:38]Write i2c OK [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: D1 [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: D1 01 00 [10:03:38]MH_I2C_Read... [10:03:38]Read from MH i2c: D1 01 00 FE 11 00 E0 [10:03:38]Write to MH i2c: 01 00 00 FF 11 10 [10:03:38]Write i2c OK [10:03:38]MH_I2C_Read... [10:03:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 01 26 47 00 35 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 19 C3 00 00 F4 03 04 00 E8 C2 C2 66 B6 04 01 00 00 10 61 AF 06 E8 89 D7 75 [10:03:38]CommunicateWithHost err = 0 [10:03:38]CheckOFDResponse [10:03:38]1017 (14) - 77093643461234 [10:03:38]1041 (16) - 0000000000871800 [10:03:38]1040 (4) - 49945 [10:03:38]1012 (4) - 19.08.2024 03:58 [10:03:38]1206 (1) - 0 [10:03:38]OFD Sender: Remove packet 49945 [10:03:38]ProducePacketName [10:03:38]name=ofd_packets/00049945 [10:03:38]NVStorageDeleteData [10:03:39]OFD Sender: No OFD packet to send [10:03:39]*** Cut start [10:03:39]*** Purtial cut [10:03:39]*** CUTSNS_PIN = 0 [10:03:39]*** Stage 1: CUTSNS_PIN = 1 [10:03:41]Read from MH i2c: 01 [10:03:41]MH_I2C_Read... [10:03:41]*** Stop cut motor [10:03:41]*** Cut end [10:03:41]Read from MH i2c: 01 07 00 [10:03:41]MH_I2C_Read... [10:03:41]Read from MH i2c: 01 07 00 FF 11 00 00 00 00 00 FF 0F 25 [10:03:41]process_action close_receipt done [10:03:41]requested_data is exist [10:03:41]produce_requested_data [10:03:41]requested_item fm.sn is exist - process it [10:03:41]wFMCommunicate request_size=4 [10:03:41]MH_SAM_APDU [10:03:41]CAPDU: 80 11 00 00 [10:03:41]Write to MH i2c: E2 08 00 00 12 80 11 00 00 00 00 00 00 8C [10:03:41]Write i2c OK [10:03:41]MH_I2C_Read... [10:03:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:41]Read from MH i2c: E2 [10:03:41]MH_I2C_Read... [10:03:41]Read from MH i2c: E2 17 00 [10:03:41]MH_I2C_Read... [10:03:41]Read from MH i2c: E2 17 00 00 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D7 [10:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:03:41]wFMCommunicate OK [10:03:41]requested_item fd.num is exist - process it [10:03:41]SAM_PROTO_GetFieldsCounters [10:03:41]wFMCommunicate request_size=4 [10:03:41]MH_SAM_APDU [10:03:41]CAPDU: 80 13 00 00 [10:03:41]Write to MH i2c: E2 08 00 01 12 80 13 00 00 00 00 00 00 8F [10:03:41]Write i2c OK [10:03:41]MH_I2C_Read... [10:03:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:41]Read from MH i2c: E2 [10:03:41]MH_I2C_Read... [10:03:41]Read from MH i2c: E2 62 00 [10:03:41]MH_I2C_Read... [10:03:41]Read from MH i2c: E2 62 00 01 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 19 C3 00 00 0E 04 04 00 D3 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 F5 [10: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 19 C3 00 00 0E 04 04 00 D3 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 [10:03:41]wFMCommunicate OK [10:03:41]SAM_PROTO_GetFieldsCounters done [10:03:41]requested_item shift.num is exist - process it [10:03:41]requested_item shift.opened is exist - process it [10:03:41]req_shift_opened [10:03:41]FM_GetShiftState [10:03:41]SAM_PROTO_GetShiftState [10:03:41]wFMCommunicate request_size=4 [10:03:41]MH_SAM_APDU [10:03:41]CAPDU: 80 13 01 00 [10:03:41]Write to MH i2c: E2 08 00 02 12 80 13 01 00 00 00 00 00 91 [10:03:41]Write i2c OK [10:03:41]MH_I2C_Read... [10:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:41]Read from MH i2c: E2 [10:03:41]MH_I2C_Read... [10:03:41]Read from MH i2c: E2 0E 00 [10:03:41]MH_I2C_Read... [10:03:41]Read from MH i2c: E2 0E 00 02 12 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 4B [10:03:41]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:03:41]wFMCommunicate OK [10:03:41]SAM_PROTO_GetShiftState done [10:03:41]FM_GetShiftState done [10:03:41]req_shift_opened done [10:03:41]requested_item shift.open_date is exist - process it [10:03:41]req_shift_open_date [10:03:41]req_shift_open_date done [10:03:41]produce_requested_data done [10:03:41]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49945,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [10:03:41]process_action_free close_receipt [10:03:41]json_value_free [10:03:41]json_value_free done [10:03:41]process_json_proto returns [10:03:41]Send response to host [10:03:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49945,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [10:03:41]free response buf [10:03:41]execute_script done [10:03:41]execute_script returns [10:03:41]free content buf [10:03:41]Sock 7.Close socket [10:03:41]Sock 7.Thread stoped [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:14]accept exits with 9 [10:07:14]New connection [10:07:14]New thread 3067211108 created [10:07:14]Thread 3067354468 joined [10:07:14]Waiting for new connection... [10:07:14] Sock 9.Parse request [10:07:14]Sock 9.Check first char [10:07:14]Sock 9.First char is OK [10:07:14]request: POST /json_proto HTTP/1.0 [10:07:14]Method: POST [10:07:14]URL: /json_proto [10:07:14]Method is POST - this is cgi request [10:07:14]url: /json_proto [10:07:14]query_string will be loaded in cgi processing [10:07:14]execute_cgi json_proto POST (null) [10:07:14]execute_cgi path=json_proto method=POST [10:07:14]POST find Content-Length [10:07:14]Host: 172.17.46.196:8080 [10:07:14]Content-Length: 626 [10:07:14]Content-Type: application/json [10:07:14] [10:07:14]POST finish read [10:07:14]Found Content-Length = 626 [10:07:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190100", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "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" ] } } [10:07:14]execute_script... [10:07: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)190100", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "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" ] } } [10:07:14]POST & json_proto [10:07:14]process_json_proto [10:07:14]json parsed OK: [10:07:14]protocol is kg_v1.0 [10:07:14]action value=close_receipt [10:07:14]process_action close_receipt [10:07:14]cmd_close_receipt [10:07:14]MH_GetDate [10:07:14]Write to MH i2c: F0 00 00 03 12 04 [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: F0 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: F0 09 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: F0 09 00 03 12 00 55 19 C3 66 C4 85 C2 66 15 [10:07:14]GetLastDocTimeStamp 1724061818 [10:07:14]current date 1724062037 [10:07:14]FM_GetShiftState [10:07:14]SAM_PROTO_GetShiftState [10:07:14]wFMCommunicate request_size=4 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 13 01 00 [10:07:14]Write to MH i2c: E2 08 00 04 12 80 13 01 00 00 00 00 00 93 [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:15]Read from MH i2c: E2 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 0E 00 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 0E 00 04 12 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 4D [10:07:15]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:07:15]wFMCommunicate OK [10:07:15]SAM_PROTO_GetShiftState done [10:07:15]FM_GetShiftState done [10:07:15]opened in 1724026361 [10:07:15]opened+sec_in_day 1724112761 [10:07:15]quantity*price = 15000 [10:07:15]sum+1 = 15001 [10:07:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 53 19.08.2024 10:07 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49946 ФПД: 255565446275515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T100717&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49946&fm=255565446275515&tin=02508201610067®Number=0000000000092546&sum=15000 0 [10:07:16]StoreToDocumentArchive [10:07:16]shift 467 fd 49946 [10:07:16]save to /storage/0467/doc_00049946 [10:07:16]save last doc name /storage/0467/doc_00049946 to /storage/kkm_last_doc_name [10:07:16]save OK [10:07:16]Clear old archive folders... [10:07:16]ProcessDocumentItem done err = 0, tmpTLVsize=278 [10:07:16]tlvbuf is 0106C750 [10:07:16]SAM_PROTO_ClearQueue [10:07:16]wFMCommunicate request_size=4 [10:07:16]MH_SAM_APDU [10:07:16]CAPDU: 80 09 00 00 [10:07:16]Write to MH i2c: E2 08 00 11 12 80 09 00 00 00 00 00 00 95 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:16]Read from MH i2c: E2 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 03 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 03 00 11 12 00 90 00 97 [10:07:16]RAPDU: 90 00 [10:07:16]wFMCommunicate OK [10:07:16]SAM_PROTO_ClearQueue done [10:07:16]KKMCreateOFDPacket [10:07:16]OFDProtocolAddRootSTLVToBuf [10:07:16]FM_MakeSignedData [10:07:16]FM_MakeSignedData [10:07:16]SAM_PROTO_SignData [10:07:16]wFMCommunicate request_size=4 [10:07:16]MH_SAM_APDU [10:07:16]CAPDU: 80 0D 01 02 [10:07:16]Write to MH i2c: E2 08 00 12 12 80 0D 01 02 00 00 00 00 9D [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:16]Read from MH i2c: E2 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 03 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 03 00 12 12 00 90 00 98 [10:07:16]RAPDU: 90 00 [10:07:16]wFMCommunicate OK [10:07:16]wFMCommunicate request_size=255 [10:07:16]MH_SAM_APDU [10:07:16]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 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 35 00 00 00 F4 03 04 00 55 19 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 [10:07:16]Write to MH i2c: E2 02 01 13 12 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 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 35 00 00 00 F4 03 04 00 55 19 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 00 00 63 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:16]Read from MH i2c: E2 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 03 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 03 00 13 12 00 90 00 99 [10:07:16]RAPDU: 90 00 [10:07:16]wFMCommunicate OK [10:07:16]wFMCommunicate request_size=37 [10:07:16]MH_SAM_APDU [10:07:16]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1A C3 00 00 35 04 06 00 E8 6F 77 A4 61 BB [10:07:16]Write to MH i2c: E2 28 00 14 12 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1A C3 00 00 35 04 06 00 E8 6F 77 A4 61 BB 00 00 5A [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:16]Read from MH i2c: E2 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 03 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 03 00 14 12 00 90 00 9A [10:07:16]RAPDU: 90 00 [10:07:16]wFMCommunicate OK [10:07:16]wFMCommunicate request_size=4 [10:07:16]MH_SAM_APDU [10:07:16]CAPDU: 80 0D 03 02 [10:07:16]Write to MH i2c: E2 08 00 15 12 80 0D 03 02 00 00 00 00 A2 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:16]Read from MH i2c: E2 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 0B 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 0B 00 15 12 00 D6 81 EB 3F 7A 8E EB EE 90 00 05 [10:07:16]RAPDU: D6 81 EB 3F 7A 8E EB EE 90 00 [10:07:16]wFMCommunicate OK [10:07:16]SAM_PROTO_SignData done [10:07:16]FM_MakeSignedData done [10:07:16]CreateOFDProtocolMessage [10:07:16]wFMCommunicate request_size=4 [10:07:16]MH_SAM_APDU [10:07:16]CAPDU: 80 11 00 00 [10:07:16]Write to MH i2c: E2 08 00 16 12 80 11 00 00 00 00 00 00 A2 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:16]Read from MH i2c: E2 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 17 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 17 00 16 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 ED [10:07:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:07:16]wFMCommunicate OK [10:07:16]CreateOFDProtocolMessage done [10:07:16]OFDSenderStorePacket 49946 [10:07:16]StoreOFDPacket docnum=49946 [10:07:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 B9 18 22 01 1E FC 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 55 19 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1A C3 00 00 35 04 06 00 E8 6F 77 A4 61 BB D6 81 EB 3F 7A 8E EB EE [10:07:16]CheckFolder [10:07:16]dirname=/storage/ofd_packets [10:07:16]CheckFolder done [10:07:16]ProducePacketName [10:07:16]name=ofd_packets/00049946 [10:07:16]NVStorageSaveData ofd_packets/00049946 [10:07:16]File name is /storage/ofd_packets/00049946 [10:07:16]Write 328 bytes [10:07:16]NVStorageSaveData done [10:07:16]OFDSenderStorePacket done [10:07:16]KKMCreateOFDPacket done [10:07:16]NVStorageSaveData kkm_last_timestamp [10:07:16]File name is /storage/kkm_last_timestamp [10:07:16]Write 4 bytes [10:07:16]NVStorageSaveData done [10:07:16]ExternCall_PrintAddStr [10:07:16]wPrintStart [10:07:16]Write to MH i2c: 01 00 00 17 12 29 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 07 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 07 00 17 12 00 00 00 00 00 FF 0F 3E [10:07:16]RasterBufferAndPrint [10:07:16]line Счет N : (3)190100 [10:07:16]line ИНН: 02508201610067 [10:07:16]line Контрольно-Кассовый Чек [10:07:16]line ПРОДАЖА [10:07:16]line Товар: 4640030092499 [10:07:16]line Сигареты ESSE SENSE Himalaya [10:07:16]line 1.000 * 150.00 [10:07:16]line = 150.00 [10:07:16]line НДС 12% НСП 1% [10:07:16]line > о реализуемом товаре [10:07:16]line ИТОГО: 150.00 [10:07:16]line НСП 1% : 1.33 [10:07:16]line НДС 12% : 15.93 [10:07:16]line Наличными: 150.00 [10:07:16]line Безнал.: 0.00 [10:07:16]line Место: АЗС № 95 "Партнер Нефть" [10:07:16]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:07:16]line СНО: Общий режим [10:07:16]line Чек 53 19.08.2024 10:07 [10:07:16]line Смена: 467 ФФД: 1.0 [10:07:16]line ЗНМ: 0300000078 [10:07:16]line РНМ: 0000000000092546 [10:07:16]line Версия ККМ: 001 [10:07:16]line ФМ: 0000000000871800 [10:07:16]line ФД: 49946 [10:07:16]line ФПД: 255565446275515 [10:07:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T100717&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49946&fm=255565446275515&tin=02508201610067®Number=0000000000092546&sum=15000 [10:07:17]line 0 [10:07:17]OFD Sender: Processing packet 49946 [packets to send 21, broken 20] [10:07:17]ProducePacketName [10:07:17]name=ofd_packets/00049946 [10:07:17]OFD Sender: To server: pG, [10:07:17]CommunicateWithHost lk.salyk.kg:30040 [10:07:17]ConnectInit lk.salyk.kg [10:07:17]written 0, free lines is 4095 [10:07:17]Connected sock=10 [10:07:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 B9 18 22 01 1E FC 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 34 39 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 53 45 4E 53 45 20 48 69 6D 61 6C 61 79 61 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 55 19 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1A C3 00 00 35 04 06 00 E8 6F 77 A4 61 BB D6 81 EB 3F 7A 8E EB EE [10:07:17]Write to MH i2c: 01 00 00 40 12 52 [10:07:17]Write i2c OK [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: 01 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: 01 07 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: 01 07 00 40 12 00 00 00 00 00 DF 0C 44 [10:07:17]RasterBufferAndPrint [10:07:17]line [10:07:17]line [10:07:17]line [10:07:17]line [10:07:17]line [10:07:17]written 0, free lines is 3303 [10:07:17]MH_Cut [10:07:17]Write to MH i2c: D1 01 00 47 12 01 2B [10:07:17]Write i2c OK [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: D1 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: D1 01 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: D1 01 00 47 12 00 2A [10:07:17]Write to MH i2c: 01 00 00 48 12 5A [10:07:17]Write i2c OK [10:07:17]MH_I2C_Read... [10:07:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E6 9B 47 00 8E 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1A C3 00 00 F4 03 04 00 C3 C3 C2 66 B6 04 01 00 00 BE 1C C1 15 49 7E C6 43 [10:07:17]CommunicateWithHost err = 0 [10:07:17]CheckOFDResponse [10:07:17]1017 (14) - 77093643461234 [10:07:17]1041 (16) - 0000000000871800 [10:07:17]1040 (4) - 49946 [10:07:17]1012 (4) - 19.08.2024 04:02 [10:07:17]1206 (1) - 0 [10:07:17]OFD Sender: Remove packet 49946 [10:07:17]ProducePacketName [10:07:17]name=ofd_packets/00049946 [10:07:17]NVStorageDeleteData [10:07:18]OFD Sender: No OFD packet to send [10:07:18]*** Cut start [10:07:18]*** Purtial cut [10:07:18]*** Stage 1: CUTSNS_PIN = 1 [10:07:18]Read from MH i2c: 01 [10:07:18]MH_I2C_Read... [10:07:18]*** Stop cut motor [10:07:18]*** Cut end [10:07:18]Read from MH i2c: 01 07 00 [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: 01 07 00 48 12 00 00 00 00 00 FF 0F 6F [10:07:18]process_action close_receipt done [10:07:18]requested_data is exist [10:07:18]produce_requested_data [10:07:18]requested_item fm.sn is exist - process it [10:07:18]wFMCommunicate request_size=4 [10:07:18]MH_SAM_APDU [10:07:18]CAPDU: 80 11 00 00 [10:07:18]Write to MH i2c: E2 08 00 49 12 80 11 00 00 00 00 00 00 D5 [10:07:18]Write i2c OK [10:07:18]MH_I2C_Read... [10:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:18]Read from MH i2c: E2 [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: E2 17 00 [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: E2 17 00 49 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 20 [10:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:07:18]wFMCommunicate OK [10:07:18]requested_item fd.num is exist - process it [10:07:18]SAM_PROTO_GetFieldsCounters [10:07:18]wFMCommunicate request_size=4 [10:07:18]MH_SAM_APDU [10:07:18]CAPDU: 80 13 00 00 [10:07:18]Write to MH i2c: E2 08 00 4A 12 80 13 00 00 00 00 00 00 D8 [10:07:18]Write i2c OK [10:07:18]MH_I2C_Read... [10:07:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:18]Read from MH i2c: E2 [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: E2 62 00 [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: E2 62 00 4A 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1A C3 00 00 0E 04 04 00 D3 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 42 [10:07:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1A C3 00 00 0E 04 04 00 D3 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 [10:07:18]wFMCommunicate OK [10:07:18]SAM_PROTO_GetFieldsCounters done [10:07:18]requested_item shift.num is exist - process it [10:07:18]requested_item shift.opened is exist - process it [10:07:18]req_shift_opened [10:07:18]FM_GetShiftState [10:07:18]SAM_PROTO_GetShiftState [10:07:18]wFMCommunicate request_size=4 [10:07:18]MH_SAM_APDU [10:07:18]CAPDU: 80 13 01 00 [10:07:18]Write to MH i2c: E2 08 00 4B 12 80 13 01 00 00 00 00 00 DA [10:07:18]Write i2c OK [10:07:18]MH_I2C_Read... [10:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:18]Read from MH i2c: E2 [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: E2 0E 00 [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: E2 0E 00 4B 12 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 94 [10:07:18]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:07:18]wFMCommunicate OK [10:07:18]SAM_PROTO_GetShiftState done [10:07:18]FM_GetShiftState done [10:07:18]req_shift_opened done [10:07:18]requested_item shift.open_date is exist - process it [10:07:18]req_shift_open_date [10:07:18]req_shift_open_date done [10:07:18]produce_requested_data done [10:07:18]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49946,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [10:07:18]process_action_free close_receipt [10:07:18]json_value_free [10:07:18]json_value_free done [10:07:18]process_json_proto returns [10:07:18]Send response to host [10:07:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49946,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [10:07:18]free response buf [10:07:18]execute_script done [10:07:18]execute_script returns [10:07:18]free content buf [10:07:18]Sock 9.Close socket [10:07:18]Sock 9.Thread stoped [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:18]OFD Sender: No OFD packet to send [10:08:23]OFD Sender: No OFD packet to send [10:08:28]OFD Sender: No OFD packet to send [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:25]accept exits with 7 [10:28:25]New connection [10:28:25]New thread 3067354468 created [10:28:25]Thread 3067211108 joined [10:28:25]Waiting for new connection... [10:28:25] Sock 7.Parse request [10:28:25]Sock 7.Check first char [10:28:25]Sock 7.First char is OK [10:28:25]request: POST /json_proto HTTP/1.0 [10:28:25]Method: POST [10:28:25]URL: /json_proto [10:28:25]Method is POST - this is cgi request [10:28:25]url: /json_proto [10:28:25]query_string will be loaded in cgi processing [10:28:25]execute_cgi json_proto POST (null) [10:28:25]execute_cgi path=json_proto method=POST [10:28:25]POST find Content-Length [10:28:25]Host: 172.17.46.196:8080 [10:28:25]Content-Length: 753 [10:28:25]Content-Type: application/json [10:28:25] [10:28:25]POST finish read [10:28:25]Found Content-Length = 753 [10:28:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 80.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30055208", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:25]execute_script... [10:28:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 80.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30055208", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:25]POST & json_proto [10:28:25]process_json_proto [10:28:25]json parsed OK: [10:28:25]protocol is kg_v1.0 [10:28:25]action value=close_receipt [10:28:25]process_action close_receipt [10:28:25]cmd_close_receipt [10:28:25]MH_GetDate [10:28:25]Write to MH i2c: F0 00 00 4C 12 4D [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: F0 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: F0 09 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: F0 09 00 4C 12 00 4B 1E C3 66 C4 85 C2 66 59 [10:28:25]GetLastDocTimeStamp 1724062037 [10:28:25]current date 1724063307 [10:28:25]FM_GetShiftState [10:28:25]SAM_PROTO_GetShiftState [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 13 01 00 [10:28:25]Write to MH i2c: E2 08 00 4D 12 80 13 01 00 00 00 00 00 DC [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 0E 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 0E 00 4D 12 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 96 [10:28:25]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:28:25]wFMCommunicate OK [10:28:25]SAM_PROTO_GetShiftState done [10:28:25]FM_GetShiftState done [10:28:25]opened in 1724026361 [10:28:25]opened+sec_in_day 1724112761 [10:28:25]quantity*price = 0 [10:28:25]sum+1 = 1 [10:28:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 54 19.08.2024 10:28 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30055208 ФМ: 0000000000871800 ФД: 49947 ФПД: 64887484805621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102827&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49947&fm=64887484805621&tin=02508201610067®Number=0000000000092546&sum=0 [10:28:26]StoreToDocumentArchive [10:28:26]shift 467 fd 49947 [10:28:26]save to /storage/0467/doc_00049947 [10:28:26]save last doc name /storage/0467/doc_00049947 to /storage/kkm_last_doc_name [10:28:26]save OK [10:28:26]Clear old archive folders... [10:28:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:28:26]tlvbuf is 0103F7F0 [10:28:26]SAM_PROTO_ClearQueue [10:28:26]wFMCommunicate request_size=4 [10:28:26]MH_SAM_APDU [10:28:26]CAPDU: 80 09 00 00 [10:28:26]Write to MH i2c: E2 08 00 5A 12 80 09 00 00 00 00 00 00 DE [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:26]Read from MH i2c: E2 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 03 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 03 00 5A 12 00 90 00 E0 [10:28:26]RAPDU: 90 00 [10:28:26]wFMCommunicate OK [10:28:26]SAM_PROTO_ClearQueue done [10:28:26]KKMCreateOFDPacket [10:28:26]OFDProtocolAddRootSTLVToBuf [10:28:26]FM_MakeSignedData [10:28:26]FM_MakeSignedData [10:28:26]SAM_PROTO_SignData [10:28:26]wFMCommunicate request_size=4 [10:28:26]MH_SAM_APDU [10:28:26]CAPDU: 80 0D 01 02 [10:28:26]Write to MH i2c: E2 08 00 5B 12 80 0D 01 02 00 00 00 00 E6 [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:26]Read from MH i2c: E2 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 03 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 03 00 5B 12 00 90 00 E1 [10:28:26]RAPDU: 90 00 [10:28:26]wFMCommunicate OK [10:28:26]wFMCommunicate request_size=255 [10:28:26]MH_SAM_APDU [10:28:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 4B 1E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1B C3 00 00 35 04 06 00 3B 03 CB 7B [10:28:26]Write to MH i2c: E2 02 01 5C 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 4B 1E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1B C3 00 00 35 04 06 00 3B 03 CB 7B 00 00 F3 [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:26]Read from MH i2c: E2 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 03 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 03 00 5C 12 00 90 00 E2 [10:28:26]RAPDU: 90 00 [10:28:26]wFMCommunicate OK [10:28:26]wFMCommunicate request_size=7 [10:28:26]MH_SAM_APDU [10:28:26]CAPDU: 80 0D 02 02 02 71 F5 [10:28:26]Write to MH i2c: E2 0A 00 5D 12 80 0D 02 02 02 00 71 F5 00 00 53 [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:26]Read from MH i2c: E2 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 03 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 03 00 5D 12 00 90 00 E3 [10:28:26]RAPDU: 90 00 [10:28:26]wFMCommunicate OK [10:28:26]wFMCommunicate request_size=4 [10:28:26]MH_SAM_APDU [10:28:26]CAPDU: 80 0D 03 02 [10:28:26]Write to MH i2c: E2 08 00 5E 12 80 0D 03 02 00 00 00 00 EB [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:26]Read from MH i2c: E2 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 0B 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 0B 00 5E 12 00 B1 FB BB 93 9F 5A A7 CC 90 00 52 [10:28:26]RAPDU: B1 FB BB 93 9F 5A A7 CC 90 00 [10:28:26]wFMCommunicate OK [10:28:26]SAM_PROTO_SignData done [10:28:26]FM_MakeSignedData done [10:28:26]CreateOFDProtocolMessage [10:28:26]wFMCommunicate request_size=4 [10:28:26]MH_SAM_APDU [10:28:26]CAPDU: 80 11 00 00 [10:28:26]Write to MH i2c: E2 08 00 5F 12 80 11 00 00 00 00 00 00 EB [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:26]Read from MH i2c: E2 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 17 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: E2 17 00 5F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 36 [10:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:28:26]wFMCommunicate OK [10:28:26]CreateOFDProtocolMessage done [10:28:26]OFDSenderStorePacket 49947 [10:28:26]StoreOFDPacket docnum=49947 [10:28:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 7F B6 04 01 DE 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 4B 1E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1B C3 00 00 35 04 06 00 3B 03 CB 7B 71 F5 B1 FB BB 93 9F 5A A7 CC [10:28:26]CheckFolder [10:28:26]dirname=/storage/ofd_packets [10:28:26]CheckFolder done [10:28:26]ProducePacketName [10:28:26]name=ofd_packets/00049947 [10:28:26]NVStorageSaveData ofd_packets/00049947 [10:28:26]File name is /storage/ofd_packets/00049947 [10:28:26]Write 298 bytes [10:28:26]NVStorageSaveData done [10:28:26]OFDSenderStorePacket done [10:28:26]KKMCreateOFDPacket done [10:28:26]NVStorageSaveData kkm_last_timestamp [10:28:26]File name is /storage/kkm_last_timestamp [10:28:26]Write 4 bytes [10:28:26]NVStorageSaveData done [10:28:26]ExternCall_PrintAddStr [10:28:26]wPrintStart [10:28:26]Write to MH i2c: 01 00 00 60 12 72 [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: 01 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: 01 07 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: 01 07 00 60 12 00 00 00 00 00 FF 0F 87 [10:28:26]RasterBufferAndPrint [10:28:26]line Счет N : (1)11327654 [10:28:26]line ИНН: 02508201610067 [10:28:26]line Контрольно-Кассовый Чек [10:28:26]line ПРОДАЖА [10:28:26]line ТРК (МРК, ГНК) : 61 [10:28:26]line Товар: 2710194210 [10:28:26]line ДТ-К-5 [10:28:26]line 80.000 * 0.00 [10:28:26]line = 0.00 [10:28:26]line НДС 12% НСП 1% [10:28:26]line > о реализуемом товаре [10:28:26]line ИТОГО: 0.00 [10:28:26]line НСП 1% : 0.00 [10:28:26]line НДС 12% : 0.00 [10:28:26]line Наличными: 0.00 [10:28:26]line Безнал.: 0.00 [10:28:26]line Место: АЗС № 95 "Партнер Нефть" [10:28:26]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:28:26]line СНО: Общий режим [10:28:26]line Чек 54 19.08.2024 10:28 [10:28:26]line Смена: 467 ФФД: 1.0 [10:28:26]line ЗНМ: 0300000078 [10:28:26]line РНМ: 0000000000092546 [10:28:26]line Версия ККМ: 001 [10:28:26]line Талоны: ТК ГПНА Online [10:28:26]line 30055208 [10:28:26]line ФМ: 0000000000871800 [10:28:26]line ФД: 49947 [10:28:26]line ФПД: 64887484805621 [10:28:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T102827&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49947&fm=64887484805621&tin=02508201610067®Number=0000000000092546&sum=0 [10:28:27]OFD Sender: Processing packet 49947 [packets to send 21, broken 20] [10:28:27]ProducePacketName [10:28:27]name=ofd_packets/00049947 [10:28:27]OFD Sender: To server: pG, [10:28:27]CommunicateWithHost lk.salyk.kg:30040 [10:28:27]ConnectInit lk.salyk.kg [10:28:27]written 0, free lines is 4095 [10:28:27]Connected sock=10 [10:28:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 7F B6 04 01 DE 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 4B 1E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1B C3 00 00 35 04 06 00 3B 03 CB 7B 71 F5 B1 FB BB 93 9F 5A A7 CC [10:28:27]Write to MH i2c: 01 00 00 8A 12 9C [10:28:27]Write i2c OK [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: 01 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: 01 07 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: 01 07 00 8A 12 00 00 00 00 00 CE 0C 7D [10:28:27]RasterBufferAndPrint [10:28:27]line [10:28:27]line [10:28:27]line [10:28:27]line [10:28:27]line [10:28:27]written 0, free lines is 3281 [10:28:27]MH_Cut [10:28:27]Write to MH i2c: D1 01 00 91 12 01 75 [10:28:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 94 EA 47 00 8F 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1B C3 00 00 F4 03 04 00 B8 C8 C2 66 B6 04 01 00 00 8C 18 77 D4 DF 6C 2C 69 [10:28:27]CommunicateWithHost err = 0 [10:28:27]CheckOFDResponse [10:28:27]1017 (14) - 77093643461234 [10:28:27]1041 (16) - 0000000000871800 [10:28:27]1040 (4) - 49947 [10:28:27]1012 (4) - 19.08.2024 04:23 [10:28:27]1206 (1) - 0 [10:28:27]OFD Sender: Remove packet 49947 [10:28:27]ProducePacketName [10:28:27]name=ofd_packets/00049947 [10:28:27]NVStorageDeleteData [10:28:27]Write i2c OK [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: D1 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: D1 01 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: D1 01 00 91 12 00 74 [10:28:27]Write to MH i2c: 01 00 00 92 12 A4 [10:28:27]Write i2c OK [10:28:27]MH_I2C_Read... [10:28:28]OFD Sender: No OFD packet to send [10:28:28]*** Cut start [10:28:28]*** Purtial cut [10:28:28]*** CUTSNS_PIN = 0 [10:28:28]*** Stage 1: CUTSNS_PIN = 1 [10:28:30]Read from MH i2c: 01 [10:28:30]MH_I2C_Read... [10:28:30]*** Stop cut motor [10:28:30]*** Cut end [10:28:30]Read from MH i2c: 01 07 00 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: 01 07 00 92 12 00 00 00 00 00 FF 0F B9 [10:28:30]process_action close_receipt done [10:28:30]requested_data is exist [10:28:30]produce_requested_data [10:28:30]requested_item fm.sn is exist - process it [10:28:30]wFMCommunicate request_size=4 [10:28:30]MH_SAM_APDU [10:28:30]CAPDU: 80 11 00 00 [10:28:30]Write to MH i2c: E2 08 00 93 12 80 11 00 00 00 00 00 00 1F [10:28:30]Write i2c OK [10:28:30]MH_I2C_Read... [10:28:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:30]Read from MH i2c: E2 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 17 00 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 17 00 93 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6A [10:28:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:28:30]wFMCommunicate OK [10:28:30]requested_item fd.num is exist - process it [10:28:30]SAM_PROTO_GetFieldsCounters [10:28:30]wFMCommunicate request_size=4 [10:28:30]MH_SAM_APDU [10:28:30]CAPDU: 80 13 00 00 [10:28:30]Write to MH i2c: E2 08 00 94 12 80 13 00 00 00 00 00 00 22 [10:28:30]Write i2c OK [10:28:30]MH_I2C_Read... [10:28:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:30]Read from MH i2c: E2 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 62 00 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 62 00 94 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1B C3 00 00 0E 04 04 00 D3 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 90 [10:28:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1B C3 00 00 0E 04 04 00 D3 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 [10:28:30]wFMCommunicate OK [10:28:30]SAM_PROTO_GetFieldsCounters done [10:28:30]requested_item shift.num is exist - process it [10:28:30]requested_item shift.opened is exist - process it [10:28:30]req_shift_opened [10:28:30]FM_GetShiftState [10:28:30]SAM_PROTO_GetShiftState [10:28:30]wFMCommunicate request_size=4 [10:28:30]MH_SAM_APDU [10:28:30]CAPDU: 80 13 01 00 [10:28:30]Write to MH i2c: E2 08 00 95 12 80 13 01 00 00 00 00 00 24 [10:28:30]Write i2c OK [10:28:30]MH_I2C_Read... [10:28:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:30]Read from MH i2c: E2 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 0E 00 [10:28:30]MH_I2C_Read... [10:28:30]Read from MH i2c: E2 0E 00 95 12 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 DE [10:28:30]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:28:30]wFMCommunicate OK [10:28:30]SAM_PROTO_GetShiftState done [10:28:30]FM_GetShiftState done [10:28:30]req_shift_opened done [10:28:30]requested_item shift.open_date is exist - process it [10:28:30]req_shift_open_date [10:28:30]req_shift_open_date done [10:28:30]produce_requested_data done [10:28:30]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49947,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [10:28:30]process_action_free close_receipt [10:28:30]json_value_free [10:28:30]json_value_free done [10:28:30]process_json_proto returns [10:28:30]Send response to host [10:28:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49947,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [10:28:30]free response buf [10:28:30]execute_script done [10:28:30]execute_script returns [10:28:30]free content buf [10:28:30]Sock 7.Close socket [10:28:30]Sock 7.Thread stoped [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:47]accept exits with 9 [10:33:47]New connection [10:33:47]New thread 3067211108 created [10:33:47]Thread 3067354468 joined [10:33:47]Waiting for new connection... [10:33:47] Sock 9.Parse request [10:33:47]Sock 9.Check first char [10:33:47]Sock 9.First char is OK [10:33:47]request: POST /json_proto HTTP/1.0 [10:33:47]Method: POST [10:33:47]URL: /json_proto [10:33:47]Method is POST - this is cgi request [10:33:47]url: /json_proto [10:33:47]query_string will be loaded in cgi processing [10:33:47]execute_cgi json_proto POST (null) [10:33:47]execute_cgi path=json_proto method=POST [10:33:47]POST find Content-Length [10:33:47]Host: 172.17.46.196:8080 [10:33:47]Content-Length: 756 [10:33:47]Content-Type: application/json [10:33:47] [10:33:47]POST finish read [10:33:47]Found Content-Length = 756 [10:33:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30006011", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:47]execute_script... [10:33:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30006011", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:47]POST & json_proto [10:33:47]process_json_proto [10:33:47]json parsed OK: [10:33:47]protocol is kg_v1.0 [10:33:47]action value=close_receipt [10:33:47]process_action close_receipt [10:33:47]cmd_close_receipt [10:33:47]MH_GetDate [10:33:47]Write to MH i2c: F0 00 00 96 12 97 [10:33:47]Write i2c OK [10:33:47]MH_I2C_Read... [10:33:47]Read from MH i2c: F0 [10:33:47]MH_I2C_Read... [10:33:47]Read from MH i2c: F0 09 00 [10:33:47]MH_I2C_Read... [10:33:47]Read from MH i2c: F0 09 00 96 12 00 8E 1F C3 66 C4 85 C2 66 E7 [10:33:47]GetLastDocTimeStamp 1724063307 [10:33:47]current date 1724063630 [10:33:47]FM_GetShiftState [10:33:47]SAM_PROTO_GetShiftState [10:33:47]wFMCommunicate request_size=4 [10:33:47]MH_SAM_APDU [10:33:47]CAPDU: 80 13 01 00 [10:33:47]Write to MH i2c: E2 08 00 97 12 80 13 01 00 00 00 00 00 26 [10:33:47]Write i2c OK [10:33:47]MH_I2C_Read... [10:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:47]Read from MH i2c: E2 [10:33:47]MH_I2C_Read... [10:33:47]Read from MH i2c: E2 0E 00 [10:33:47]MH_I2C_Read... [10:33:47]Read from MH i2c: E2 0E 00 97 12 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 E0 [10:33:47]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:33:47]wFMCommunicate OK [10:33:47]SAM_PROTO_GetShiftState done [10:33:47]FM_GetShiftState done [10:33:47]opened in 1724026361 [10:33:47]opened+sec_in_day 1724112761 [10:33:47]quantity*price = 0 [10:33:47]sum+1 = 1 [10:33:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 55 19.08.2024 10:33 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30006011 ФМ: 0000000000871800 ФД: 49948 ФПД: 252908242603404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103350&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49948&fm=252908242603404&tin=02508201610067®Number=0000000000092546&sum=0 [10:33:49]StoreToDocumentArchive [10:33:49]shift 467 fd 49948 [10:33:49]save to /storage/0467/doc_00049948 [10:33:49]save last doc name /storage/0467/doc_00049948 to /storage/kkm_last_doc_name [10:33:49]save OK [10:33:49]Clear old archive folders... [10:33:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:33:49]tlvbuf is 0106A810 [10:33:49]SAM_PROTO_ClearQueue [10:33:49]wFMCommunicate request_size=4 [10:33:49]MH_SAM_APDU [10:33:49]CAPDU: 80 09 00 00 [10:33:49]Write to MH i2c: E2 08 00 A4 12 80 09 00 00 00 00 00 00 28 [10:33:49]Write i2c OK [10:33:49]MH_I2C_Read... [10:33:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:49]Read from MH i2c: E2 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 03 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 03 00 A4 12 00 90 00 2A [10:33:49]RAPDU: 90 00 [10:33:49]wFMCommunicate OK [10:33:49]SAM_PROTO_ClearQueue done [10:33:49]KKMCreateOFDPacket [10:33:49]OFDProtocolAddRootSTLVToBuf [10:33:49]FM_MakeSignedData [10:33:49]FM_MakeSignedData [10:33:49]SAM_PROTO_SignData [10:33:49]wFMCommunicate request_size=4 [10:33:49]MH_SAM_APDU [10:33:49]CAPDU: 80 0D 01 02 [10:33:49]Write to MH i2c: E2 08 00 A5 12 80 0D 01 02 00 00 00 00 30 [10:33:49]Write i2c OK [10:33:49]MH_I2C_Read... [10:33:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:49]Read from MH i2c: E2 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 03 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 03 00 A5 12 00 90 00 2B [10:33:49]RAPDU: 90 00 [10:33:49]wFMCommunicate OK [10:33:49]wFMCommunicate request_size=255 [10:33:49]MH_SAM_APDU [10:33:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 8E 1F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1C C3 00 00 35 04 06 00 E6 [10:33:49]Write to MH i2c: E2 02 01 A6 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 8E 1F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1C C3 00 00 35 04 06 00 E6 00 00 7D [10:33:49]Write i2c OK [10:33:49]MH_I2C_Read... [10:33:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:49]Read from MH i2c: E2 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 03 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 03 00 A6 12 00 90 00 2C [10:33:49]RAPDU: 90 00 [10:33:49]wFMCommunicate OK [10:33:49]wFMCommunicate request_size=10 [10:33:49]MH_SAM_APDU [10:33:49]CAPDU: 80 0D 02 02 05 04 C9 F6 0D 8C [10:33:49]Write to MH i2c: E2 0D 00 A7 12 80 0D 02 02 05 00 04 C9 F6 0D 8C 00 00 99 [10:33:49]Write i2c OK [10:33:49]MH_I2C_Read... [10:33:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:49]Read from MH i2c: E2 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 03 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 03 00 A7 12 00 90 00 2D [10:33:49]RAPDU: 90 00 [10:33:49]wFMCommunicate OK [10:33:49]wFMCommunicate request_size=4 [10:33:49]MH_SAM_APDU [10:33:49]CAPDU: 80 0D 03 02 [10:33:49]Write to MH i2c: E2 08 00 A8 12 80 0D 03 02 00 00 00 00 35 [10:33:49]Write i2c OK [10:33:49]MH_I2C_Read... [10:33:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:49]Read from MH i2c: E2 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 0B 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 0B 00 A8 12 00 59 AB 46 7B 62 44 39 6F 90 00 49 [10:33:49]RAPDU: 59 AB 46 7B 62 44 39 6F 90 00 [10:33:49]wFMCommunicate OK [10:33:49]SAM_PROTO_SignData done [10:33:49]FM_MakeSignedData done [10:33:49]CreateOFDProtocolMessage [10:33:49]wFMCommunicate request_size=4 [10:33:49]MH_SAM_APDU [10:33:49]CAPDU: 80 11 00 00 [10:33:49]Write to MH i2c: E2 08 00 A9 12 80 11 00 00 00 00 00 00 35 [10:33:49]Write i2c OK [10:33:49]MH_I2C_Read... [10:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:49]Read from MH i2c: E2 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 17 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: E2 17 00 A9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 80 [10:33:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:33:49]wFMCommunicate OK [10:33:49]CreateOFDProtocolMessage done [10:33:49]OFDSenderStorePacket 49948 [10:33:49]StoreOFDPacket docnum=49948 [10:33:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 B2 ED 07 01 9E E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 8E 1F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1C C3 00 00 35 04 06 00 E6 04 C9 F6 0D 8C 59 AB 46 7B 62 44 39 6F [10:33:49]CheckFolder [10:33:49]dirname=/storage/ofd_packets [10:33:49]CheckFolder done [10:33:49]ProducePacketName [10:33:49]name=ofd_packets/00049948 [10:33:49]NVStorageSaveData ofd_packets/00049948 [10:33:49]File name is /storage/ofd_packets/00049948 [10:33:49]Write 301 bytes [10:33:49]NVStorageSaveData done [10:33:49]OFDSenderStorePacket done [10:33:49]KKMCreateOFDPacket done [10:33:49]NVStorageSaveData kkm_last_timestamp [10:33:49]File name is /storage/kkm_last_timestamp [10:33:49]Write 4 bytes [10:33:49]NVStorageSaveData done [10:33:49]ExternCall_PrintAddStr [10:33:49]wPrintStart [10:33:49]Write to MH i2c: 01 00 00 AA 12 BC [10:33:49]Write i2c OK [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: 01 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: 01 07 00 [10:33:49]MH_I2C_Read... [10:33:49]Read from MH i2c: 01 07 00 AA 12 00 00 00 00 00 FF 0F D1 [10:33:49]RasterBufferAndPrint [10:33:49]line Счет N : (1)11327659 [10:33:49]line ИНН: 02508201610067 [10:33:49]line Контрольно-Кассовый Чек [10:33:49]line ПРОДАЖА [10:33:49]line ТРК (МРК, ГНК) : 22 [10:33:49]line Товар: 2710124130 [10:33:49]line Аи-92-К-4 [10:33:49]line 30.000 * 0.00 [10:33:49]line = 0.00 [10:33:49]line НДС 12% НСП 1% [10:33:49]line > о реализуемом товаре [10:33:49]line ИТОГО: 0.00 [10:33:49]line НСП 1% : 0.00 [10:33:49]line НДС 12% : 0.00 [10:33:49]line Наличными: 0.00 [10:33:49]line Безнал.: 0.00 [10:33:49]line Место: АЗС № 95 "Партнер Нефть" [10:33:49]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:33:49]line СНО: Общий режим [10:33:49]line Чек 55 19.08.2024 10:33 [10:33:49]line Смена: 467 ФФД: 1.0 [10:33:49]line ЗНМ: 0300000078 [10:33:49]line РНМ: 0000000000092546 [10:33:49]line Версия ККМ: 001 [10:33:49]line Талоны: ТК ГПНА Online [10:33:49]line 30006011 [10:33:49]line ФМ: 0000000000871800 [10:33:49]line ФД: 49948 [10:33:49]line ФПД: 252908242603404 [10:33:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103350&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49948&fm=252908242603404&tin=02508201610067®Number=0000000000092546&sum=0 [10:33:49]OFD Sender: Processing packet 49948 [packets to send 21, broken 20] [10:33:49]ProducePacketName [10:33:49]name=ofd_packets/00049948 [10:33:49]OFD Sender: To server: pG, [10:33:49]CommunicateWithHost lk.salyk.kg:30040 [10:33:49]ConnectInit lk.salyk.kg [10:33:49]written 0, free lines is 4095 [10:33:50]Connected sock=10 [10:33:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 B2 ED 07 01 9E E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 8E 1F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1C C3 00 00 35 04 06 00 E6 04 C9 F6 0D 8C 59 AB 46 7B 62 44 39 6F [10:33:50]Write to MH i2c: 01 00 00 D4 12 E6 [10:33:50]Write i2c OK [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: 01 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: 01 07 00 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: 01 07 00 D4 12 00 00 00 00 00 D1 0C CA [10:33:50]RasterBufferAndPrint [10:33:50]line [10:33:50]line [10:33:50]line [10:33:50]line [10:33:50]line [10:33:50]written 0, free lines is 3287 [10:33:50]MH_Cut [10:33:50]Write to MH i2c: D1 01 00 DB 12 01 BF [10:33:50]Write i2c OK [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: D1 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: D1 01 00 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: D1 01 00 DB 12 00 BE [10:33:50]Write to MH i2c: 01 00 00 DC 12 EE [10:33:50]Write i2c OK [10:33:50]MH_I2C_Read... [10:33:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0E 91 47 00 92 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1C C3 00 00 F4 03 04 00 FB C9 C2 66 B6 04 01 00 00 19 08 1E 89 E7 E2 00 23 [10:33:50]CommunicateWithHost err = 0 [10:33:50]CheckOFDResponse [10:33:50]1017 (14) - 77093643461234 [10:33:50]1041 (16) - 0000000000871800 [10:33:50]1040 (4) - 49948 [10:33:50]1012 (4) - 19.08.2024 04:28 [10:33:50]1206 (1) - 0 [10:33:50]OFD Sender: Remove packet 49948 [10:33:50]ProducePacketName [10:33:50]name=ofd_packets/00049948 [10:33:50]NVStorageDeleteData [10:33:50]OFD Sender: No OFD packet to send [10:33:51]*** Cut start [10:33:51]*** Purtial cut [10:33:51]*** Stage 1: CUTSNS_PIN = 1 [10:33:51]Read from MH i2c: 01 [10:33:51]MH_I2C_Read... [10:33:51]*** Stop cut motor [10:33:51]*** Cut end [10:33:51]Read from MH i2c: 01 07 00 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: 01 07 00 DC 12 00 00 00 00 00 FF 0F 03 [10:33:51]process_action close_receipt done [10:33:51]requested_data is exist [10:33:51]produce_requested_data [10:33:51]requested_item fm.sn is exist - process it [10:33:51]wFMCommunicate request_size=4 [10:33:51]MH_SAM_APDU [10:33:51]CAPDU: 80 11 00 00 [10:33:51]Write to MH i2c: E2 08 00 DD 12 80 11 00 00 00 00 00 00 69 [10:33:51]Write i2c OK [10:33:51]MH_I2C_Read... [10:33:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:51]Read from MH i2c: E2 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: E2 17 00 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: E2 17 00 DD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B4 [10:33:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:33:51]wFMCommunicate OK [10:33:51]requested_item fd.num is exist - process it [10:33:51]SAM_PROTO_GetFieldsCounters [10:33:51]wFMCommunicate request_size=4 [10:33:51]MH_SAM_APDU [10:33:51]CAPDU: 80 13 00 00 [10:33:51]Write to MH i2c: E2 08 00 DE 12 80 13 00 00 00 00 00 00 6C [10:33:51]Write i2c OK [10:33:51]MH_I2C_Read... [10:33:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:51]Read from MH i2c: E2 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: E2 62 00 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: E2 62 00 DE 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1C C3 00 00 0E 04 04 00 D3 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 DE [10:33:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1C C3 00 00 0E 04 04 00 D3 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 [10:33:51]wFMCommunicate OK [10:33:51]SAM_PROTO_GetFieldsCounters done [10:33:51]requested_item shift.num is exist - process it [10:33:51]requested_item shift.opened is exist - process it [10:33:51]req_shift_opened [10:33:51]FM_GetShiftState [10:33:51]SAM_PROTO_GetShiftState [10:33:51]wFMCommunicate request_size=4 [10:33:51]MH_SAM_APDU [10:33:51]CAPDU: 80 13 01 00 [10:33:51]Write to MH i2c: E2 08 00 DF 12 80 13 01 00 00 00 00 00 6E [10:33:51]Write i2c OK [10:33:51]MH_I2C_Read... [10:33:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:51]Read from MH i2c: E2 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: E2 0E 00 [10:33:51]MH_I2C_Read... [10:33:51]Read from MH i2c: E2 0E 00 DF 12 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 28 [10:33:51]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:33:51]wFMCommunicate OK [10:33:51]SAM_PROTO_GetShiftState done [10:33:51]FM_GetShiftState done [10:33:51]req_shift_opened done [10:33:51]requested_item shift.open_date is exist - process it [10:33:51]req_shift_open_date [10:33:51]req_shift_open_date done [10:33:51]produce_requested_data done [10:33:51]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49948,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [10:33:51]process_action_free close_receipt [10:33:51]json_value_free [10:33:51]json_value_free done [10:33:51]process_json_proto returns [10:33:51]Send response to host [10:33:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49948,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [10:33:51]free response buf [10:33:51]execute_script done [10:33:51]execute_script returns [10:33:51]free content buf [10:33:51]Sock 9.Close socket [10:33:51]Sock 9.Thread stoped [10:33:55]OFD Sender: No OFD packet to send [10:34:00]OFD Sender: No OFD packet to send [10:34:05]OFD Sender: No OFD packet to send [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:20]OFD Sender: No OFD packet to send [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:40]OFD Sender: No OFD packet to send [10:34:45]OFD Sender: No OFD packet to send [10:34:50]OFD Sender: No OFD packet to send [10:34:55]OFD Sender: No OFD packet to send [10:35:00]OFD Sender: No OFD packet to send [10:35:05]OFD Sender: No OFD packet to send [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]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:35:59]accept exits with 7 [10:35:59]New connection [10:35:59]New thread 3067354468 created [10:35:59]Thread 3067211108 joined [10:35:59]Waiting for new connection... [10:35:59] Sock 7.Parse request [10:35:59]Sock 7.Check first char [10:35:59]Sock 7.First char is OK [10:35:59]request: POST /json_proto HTTP/1.0 [10:35:59]Method: POST [10:35:59]URL: /json_proto [10:35:59]Method is POST - this is cgi request [10:35:59]url: /json_proto [10:35:59]query_string will be loaded in cgi processing [10:35:59]execute_cgi json_proto POST (null) [10:35:59]execute_cgi path=json_proto method=POST [10:35:59]POST find Content-Length [10:35:59]Host: 172.17.46.196:8080 [10:35:59]Content-Length: 756 [10:35:59]Content-Type: application/json [10:35:59] [10:35:59]POST finish read [10:35:59]Found Content-Length = 756 [10:35:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30088381", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:59]execute_script... [10:35:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30088381", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:59]POST & json_proto [10:35:59]process_json_proto [10:35:59]json parsed OK: [10:35:59]protocol is kg_v1.0 [10:35:59]action value=close_receipt [10:35:59]process_action close_receipt [10:35:59]cmd_close_receipt [10:35:59]MH_GetDate [10:35:59]Write to MH i2c: F0 00 00 E0 12 E1 [10:35:59]Write i2c OK [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: F0 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: F0 09 00 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: F0 09 00 E0 12 00 11 20 C3 66 C4 85 C2 66 B5 [10:35:59]GetLastDocTimeStamp 1724063630 [10:35:59]current date 1724063761 [10:35:59]FM_GetShiftState [10:35:59]SAM_PROTO_GetShiftState [10:35:59]wFMCommunicate request_size=4 [10:35:59]MH_SAM_APDU [10:35:59]CAPDU: 80 13 01 00 [10:35:59]Write to MH i2c: E2 08 00 E1 12 80 13 01 00 00 00 00 00 70 [10:35:59]Write i2c OK [10:35:59]MH_I2C_Read... [10:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:59]Read from MH i2c: E2 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: E2 0E 00 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: E2 0E 00 E1 12 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 2A [10:35:59]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:35:59]wFMCommunicate OK [10:35:59]SAM_PROTO_GetShiftState done [10:35:59]FM_GetShiftState done [10:35:59]opened in 1724026361 [10:35:59]opened+sec_in_day 1724112761 [10:35:59]quantity*price = 0 [10:35:59]sum+1 = 1 [10:35:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 56 19.08.2024 10:36 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30088381 ФМ: 0000000000871800 ФД: 49949 ФПД: 211967546254630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103602&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49949&fm=211967546254630&tin=02508201610067®Number=0000000000092546&sum=0 [10:36:00]StoreToDocumentArchive [10:36:00]shift 467 fd 49949 [10:36:00]save to /storage/0467/doc_00049949 [10:36:00]save last doc name /storage/0467/doc_00049949 to /storage/kkm_last_doc_name [10:36:00]save OK [10:36:00]Clear old archive folders... [10:36:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:00]tlvbuf is 00F66EA0 [10:36:00]SAM_PROTO_ClearQueue [10:36:00]wFMCommunicate request_size=4 [10:36:00]MH_SAM_APDU [10:36:00]CAPDU: 80 09 00 00 [10:36:00]Write to MH i2c: E2 08 00 EE 12 80 09 00 00 00 00 00 00 72 [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:00]Read from MH i2c: E2 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 EE 12 00 90 00 74 [10:36:00]RAPDU: 90 00 [10:36:00]wFMCommunicate OK [10:36:00]SAM_PROTO_ClearQueue done [10:36:00]KKMCreateOFDPacket [10:36:00]OFDProtocolAddRootSTLVToBuf [10:36:00]FM_MakeSignedData [10:36:00]FM_MakeSignedData [10:36:00]SAM_PROTO_SignData [10:36:00]wFMCommunicate request_size=4 [10:36:00]MH_SAM_APDU [10:36:00]CAPDU: 80 0D 01 02 [10:36:00]Write to MH i2c: E2 08 00 EF 12 80 0D 01 02 00 00 00 00 7A [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:00]Read from MH i2c: E2 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 EF 12 00 90 00 75 [10:36:00]RAPDU: 90 00 [10:36:00]wFMCommunicate OK [10:36:00]wFMCommunicate request_size=255 [10:36:00]MH_SAM_APDU [10:36:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 12 20 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1D C3 00 00 35 04 06 00 C0 [10:36:00]Write to MH i2c: E2 02 01 F0 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 12 20 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1D C3 00 00 35 04 06 00 C0 00 00 F1 [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:01]OFD Sender: No OFD packet to send [10:36:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:01]Read from MH i2c: E2 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 03 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 03 00 F0 12 00 90 00 76 [10:36:01]RAPDU: 90 00 [10:36:01]wFMCommunicate OK [10:36:01]wFMCommunicate request_size=10 [10:36:01]MH_SAM_APDU [10:36:01]CAPDU: 80 0D 02 02 05 C8 8A 4C 65 26 [10:36:01]Write to MH i2c: E2 0D 00 F1 12 80 0D 02 02 05 00 C8 8A 4C 65 26 00 00 B0 [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:01]Read from MH i2c: E2 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 03 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 03 00 F1 12 00 90 00 77 [10:36:01]RAPDU: 90 00 [10:36:01]wFMCommunicate OK [10:36:01]wFMCommunicate request_size=4 [10:36:01]MH_SAM_APDU [10:36:01]CAPDU: 80 0D 03 02 [10:36:01]Write to MH i2c: E2 08 00 F2 12 80 0D 03 02 00 00 00 00 7F [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:01]Read from MH i2c: E2 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 0B 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 0B 00 F2 12 00 1D 92 B9 D8 D0 6A CD DE 90 00 A5 [10:36:01]RAPDU: 1D 92 B9 D8 D0 6A CD DE 90 00 [10:36:01]wFMCommunicate OK [10:36:01]SAM_PROTO_SignData done [10:36:01]FM_MakeSignedData done [10:36:01]CreateOFDProtocolMessage [10:36:01]wFMCommunicate request_size=4 [10:36:01]MH_SAM_APDU [10:36:01]CAPDU: 80 11 00 00 [10:36:01]Write to MH i2c: E2 08 00 F3 12 80 11 00 00 00 00 00 00 7F [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:01]Read from MH i2c: E2 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 17 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: E2 17 00 F3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CA [10:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:36:01]wFMCommunicate OK [10:36:01]CreateOFDProtocolMessage done [10:36:01]OFDSenderStorePacket 49949 [10:36:01]StoreOFDPacket docnum=49949 [10:36:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 59 E8 07 01 A6 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 12 20 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1D C3 00 00 35 04 06 00 C0 C8 8A 4C 65 26 1D 92 B9 D8 D0 6A CD DE [10:36:01]CheckFolder [10:36:01]dirname=/storage/ofd_packets [10:36:01]CheckFolder done [10:36:01]ProducePacketName [10:36:01]name=ofd_packets/00049949 [10:36:01]NVStorageSaveData ofd_packets/00049949 [10:36:01]File name is /storage/ofd_packets/00049949 [10:36:01]Write 301 bytes [10:36:01]NVStorageSaveData done [10:36:01]OFDSenderStorePacket done [10:36:01]KKMCreateOFDPacket done [10:36:01]NVStorageSaveData kkm_last_timestamp [10:36:01]File name is /storage/kkm_last_timestamp [10:36:01]Write 4 bytes [10:36:01]NVStorageSaveData done [10:36:01]ExternCall_PrintAddStr [10:36:01]wPrintStart [10:36:01]Write to MH i2c: 01 00 00 F4 12 06 [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: 01 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: 01 07 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: 01 07 00 F4 12 00 00 00 00 00 FF 0F 1B [10:36:01]RasterBufferAndPrint [10:36:01]line Счет N : (1)11327661 [10:36:01]line ИНН: 02508201610067 [10:36:01]line Контрольно-Кассовый Чек [10:36:01]line ПРОДАЖА [10:36:01]line ТРК (МРК, ГНК) : 12 [10:36:01]line Товар: 2710124130 [10:36:01]line Аи-92-К-4 [10:36:01]line 20.000 * 0.00 [10:36:01]line = 0.00 [10:36:01]line НДС 12% НСП 1% [10:36:01]line > о реализуемом товаре [10:36:01]line ИТОГО: 0.00 [10:36:01]line НСП 1% : 0.00 [10:36:01]line НДС 12% : 0.00 [10:36:01]line Наличными: 0.00 [10:36:01]line Безнал.: 0.00 [10:36:01]line Место: АЗС № 95 "Партнер Нефть" [10:36:01]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:36:01]line СНО: Общий режим [10:36:01]line Чек 56 19.08.2024 10:36 [10:36:01]line Смена: 467 ФФД: 1.0 [10:36:01]line ЗНМ: 0300000078 [10:36:01]line РНМ: 0000000000092546 [10:36:01]line Версия ККМ: 001 [10:36:01]line Талоны: ТК ГПНА Online [10:36:01]line 30088381 [10:36:01]line ФМ: 0000000000871800 [10:36:01]line ФД: 49949 [10:36:01]line ФПД: 211967546254630 [10:36:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103602&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49949&fm=211967546254630&tin=02508201610067®Number=0000000000092546&sum=0 [10:36:01]written 0, free lines is 4095 [10:36:01]OFD Sender: Processing packet 49949 [packets to send 21, broken 20] [10:36:01]ProducePacketName [10:36:01]name=ofd_packets/00049949 [10:36:01]OFD Sender: To server: pG, [10:36:01]CommunicateWithHost lk.salyk.kg:30040 [10:36:01]ConnectInit lk.salyk.kg [10:36:01]Connected sock=10 [10:36:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 59 E8 07 01 A6 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 12 20 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1D C3 00 00 35 04 06 00 C0 C8 8A 4C 65 26 1D 92 B9 D8 D0 6A CD DE [10:36:02]Write to MH i2c: 01 00 00 1E 13 31 [10:36:02]Write i2c OK [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: 01 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: 01 07 00 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: 01 07 00 1E 13 00 00 00 00 00 D0 0C 14 [10:36:02]RasterBufferAndPrint [10:36:02]line [10:36:02]line [10:36:02]line [10:36:02]line [10:36:02]line [10:36:02]written 0, free lines is 3286 [10:36:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 37 26 47 00 46 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1D C3 00 00 F4 03 04 00 7F CA C2 66 B6 04 01 00 00 88 E7 51 DA 8A A7 4F 4C [10:36:02]CommunicateWithHost err = 0 [10:36:02]CheckOFDResponse [10:36:02]1017 (14) - 77093643461234 [10:36:02]1041 (16) - 0000000000871800 [10:36:02]1040 (4) - 49949 [10:36:02]1012 (4) - 19.08.2024 04:30 [10:36:02]1206 (1) - 0 [10:36:02]OFD Sender: Remove packet 49949 [10:36:02]ProducePacketName [10:36:02]name=ofd_packets/00049949 [10:36:02]NVStorageDeleteData [10:36:02]MH_Cut [10:36:02]Write to MH i2c: D1 01 00 25 13 01 0A [10:36:02]Write i2c OK [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: D1 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: D1 01 00 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: D1 01 00 25 13 00 09 [10:36:02]Write to MH i2c: 01 00 00 26 13 39 [10:36:02]Write i2c OK [10:36:02]MH_I2C_Read... [10:36:02]OFD Sender: No OFD packet to send [10:36:02]*** Cut start [10:36:02]*** Purtial cut [10:36:02]*** CUTSNS_PIN = 0 [10:36:03]*** Stage 1: CUTSNS_PIN = 1 [10:36:04]Read from MH i2c: 01 [10:36:04]MH_I2C_Read... [10:36:04]*** Stop cut motor [10:36:04]*** Cut end [10:36:04]Read from MH i2c: 01 07 00 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: 01 07 00 26 13 00 00 00 00 00 FF 0F 4E [10:36:04]process_action close_receipt done [10:36:04]requested_data is exist [10:36:04]produce_requested_data [10:36:04]requested_item fm.sn is exist - process it [10:36:04]wFMCommunicate request_size=4 [10:36:04]MH_SAM_APDU [10:36:04]CAPDU: 80 11 00 00 [10:36:04]Write to MH i2c: E2 08 00 27 13 80 11 00 00 00 00 00 00 B4 [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:04]Read from MH i2c: E2 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: E2 17 00 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: E2 17 00 27 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FF [10:36:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:36:04]wFMCommunicate OK [10:36:04]requested_item fd.num is exist - process it [10:36:04]SAM_PROTO_GetFieldsCounters [10:36:04]wFMCommunicate request_size=4 [10:36:04]MH_SAM_APDU [10:36:04]CAPDU: 80 13 00 00 [10:36:04]Write to MH i2c: E2 08 00 28 13 80 13 00 00 00 00 00 00 B7 [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:05]Read from MH i2c: E2 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 62 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 62 00 28 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1D C3 00 00 0E 04 04 00 D3 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 2D [10:36:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1D C3 00 00 0E 04 04 00 D3 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 [10:36:05]wFMCommunicate OK [10:36:05]SAM_PROTO_GetFieldsCounters done [10:36:05]requested_item shift.num is exist - process it [10:36:05]requested_item shift.opened is exist - process it [10:36:05]req_shift_opened [10:36:05]FM_GetShiftState [10:36:05]SAM_PROTO_GetShiftState [10:36:05]wFMCommunicate request_size=4 [10:36:05]MH_SAM_APDU [10:36:05]CAPDU: 80 13 01 00 [10:36:05]Write to MH i2c: E2 08 00 29 13 80 13 01 00 00 00 00 00 B9 [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:05]Read from MH i2c: E2 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 0E 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 0E 00 29 13 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 73 [10:36:05]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:36:05]wFMCommunicate OK [10:36:05]SAM_PROTO_GetShiftState done [10:36:05]FM_GetShiftState done [10:36:05]req_shift_opened done [10:36:05]requested_item shift.open_date is exist - process it [10:36:05]req_shift_open_date [10:36:05]req_shift_open_date done [10:36:05]produce_requested_data done [10:36:05]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49949,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [10:36:05]process_action_free close_receipt [10:36:05]json_value_free [10:36:05]json_value_free done [10:36:05]process_json_proto returns [10:36:05]Send response to host [10:36:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49949,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [10:36:05]free response buf [10:36:05]execute_script done [10:36:05]execute_script returns [10:36:05]free content buf [10:36:05]Sock 7.Close socket [10:36:05]Sock 7.Thread stoped [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:01]accept exits with 9 [10:39:01]New connection [10:39:01]New thread 3067211108 created [10:39:01]Thread 3067354468 joined [10:39:01]Waiting for new connection... [10:39:01] Sock 9.Parse request [10:39:01]Sock 9.Check first char [10:39:01]Sock 9.First char is OK [10:39:01]request: POST /json_proto HTTP/1.0 [10:39:01]Method: POST [10:39:01]URL: /json_proto [10:39:01]Method is POST - this is cgi request [10:39:01]url: /json_proto [10:39:01]query_string will be loaded in cgi processing [10:39:01]execute_cgi json_proto POST (null) [10:39:01]execute_cgi path=json_proto method=POST [10:39:01]POST find Content-Length [10:39:01]Host: 172.17.46.196:8080 [10:39:01]Content-Length: 756 [10:39:01]Content-Type: application/json [10:39:01] [10:39:01]POST finish read [10:39:01]Found Content-Length = 756 [10:39:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30069266", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:01]execute_script... [10:39:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30069266", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:01]POST & json_proto [10:39:01]process_json_proto [10:39:01]json parsed OK: [10:39:01]protocol is kg_v1.0 [10:39:01]action value=close_receipt [10:39:01]process_action close_receipt [10:39:01]cmd_close_receipt [10:39:01]MH_GetDate [10:39:01]Write to MH i2c: F0 00 00 2A 13 2C [10:39:01]Write i2c OK [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: F0 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: F0 09 00 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: F0 09 00 2A 13 00 C8 20 C3 66 C4 85 C2 66 B7 [10:39:01]GetLastDocTimeStamp 1724063762 [10:39:01]current date 1724063944 [10:39:01]FM_GetShiftState [10:39:01]SAM_PROTO_GetShiftState [10:39:01]wFMCommunicate request_size=4 [10:39:01]MH_SAM_APDU [10:39:01]CAPDU: 80 13 01 00 [10:39:01]Write to MH i2c: E2 08 00 2B 13 80 13 01 00 00 00 00 00 BB [10:39:01]Write i2c OK [10:39:01]MH_I2C_Read... [10:39:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:02]Read from MH i2c: E2 [10:39:02]MH_I2C_Read... [10:39:02]Read from MH i2c: E2 0E 00 [10:39:02]MH_I2C_Read... [10:39:02]Read from MH i2c: E2 0E 00 2B 13 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 75 [10:39:02]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:39:02]wFMCommunicate OK [10:39:02]SAM_PROTO_GetShiftState done [10:39:02]FM_GetShiftState done [10:39:02]opened in 1724026361 [10:39:02]opened+sec_in_day 1724112761 [10:39:02]quantity*price = 0 [10:39:02]sum+1 = 1 [10:39:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 57 19.08.2024 10:39 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30069266 ФМ: 0000000000871800 ФД: 49950 ФПД: 161033752814902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103904&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49950&fm=161033752814902&tin=02508201610067®Number=0000000000092546&sum=0 [10:39:03]StoreToDocumentArchive [10:39:03]shift 467 fd 49950 [10:39:03]save to /storage/0467/doc_00049950 [10:39:03]save last doc name /storage/0467/doc_00049950 to /storage/kkm_last_doc_name [10:39:03]save OK [10:39:03]Clear old archive folders... [10:39:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:03]tlvbuf is 0106D190 [10:39:03]SAM_PROTO_ClearQueue [10:39:03]wFMCommunicate request_size=4 [10:39:03]MH_SAM_APDU [10:39:03]CAPDU: 80 09 00 00 [10:39:03]Write to MH i2c: E2 08 00 38 13 80 09 00 00 00 00 00 00 BD [10:39:03]Write i2c OK [10:39:03]MH_I2C_Read... [10:39:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:03]Read from MH i2c: E2 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 03 00 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 03 00 38 13 00 90 00 BF [10:39:03]RAPDU: 90 00 [10:39:03]wFMCommunicate OK [10:39:03]SAM_PROTO_ClearQueue done [10:39:03]KKMCreateOFDPacket [10:39:03]OFDProtocolAddRootSTLVToBuf [10:39:03]FM_MakeSignedData [10:39:03]FM_MakeSignedData [10:39:03]SAM_PROTO_SignData [10:39:03]wFMCommunicate request_size=4 [10:39:03]MH_SAM_APDU [10:39:03]CAPDU: 80 0D 01 02 [10:39:03]Write to MH i2c: E2 08 00 39 13 80 0D 01 02 00 00 00 00 C5 [10:39:03]Write i2c OK [10:39:03]MH_I2C_Read... [10:39:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:03]Read from MH i2c: E2 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 03 00 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 03 00 39 13 00 90 00 C0 [10:39:03]RAPDU: 90 00 [10:39:03]wFMCommunicate OK [10:39:03]wFMCommunicate request_size=255 [10:39:03]MH_SAM_APDU [10:39:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 C8 20 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1E C3 00 00 35 04 06 00 92 [10:39:03]Write to MH i2c: E2 02 01 3A 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 C8 20 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1E C3 00 00 35 04 06 00 92 00 00 FD [10:39:03]Write i2c OK [10:39:03]MH_I2C_Read... [10:39:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:03]Read from MH i2c: E2 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 03 00 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 03 00 3A 13 00 90 00 C1 [10:39:03]RAPDU: 90 00 [10:39:03]wFMCommunicate OK [10:39:03]wFMCommunicate request_size=10 [10:39:03]MH_SAM_APDU [10:39:03]CAPDU: 80 0D 02 02 05 75 97 A2 25 36 [10:39:03]Write to MH i2c: E2 0D 00 3B 13 80 0D 02 02 05 00 75 97 A2 25 36 00 00 DB [10:39:03]Write i2c OK [10:39:03]MH_I2C_Read... [10:39:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:03]Read from MH i2c: E2 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 03 00 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 03 00 3B 13 00 90 00 C2 [10:39:03]RAPDU: 90 00 [10:39:03]wFMCommunicate OK [10:39:03]wFMCommunicate request_size=4 [10:39:03]MH_SAM_APDU [10:39:03]CAPDU: 80 0D 03 02 [10:39:03]Write to MH i2c: E2 08 00 3C 13 80 0D 03 02 00 00 00 00 CA [10:39:03]Write i2c OK [10:39:03]MH_I2C_Read... [10:39:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:03]Read from MH i2c: E2 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 0B 00 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 0B 00 3C 13 00 F0 45 B2 33 78 7E F4 E9 90 00 B8 [10:39:03]RAPDU: F0 45 B2 33 78 7E F4 E9 90 00 [10:39:03]wFMCommunicate OK [10:39:03]SAM_PROTO_SignData done [10:39:03]FM_MakeSignedData done [10:39:03]CreateOFDProtocolMessage [10:39:03]wFMCommunicate request_size=4 [10:39:03]MH_SAM_APDU [10:39:03]CAPDU: 80 11 00 00 [10:39:03]Write to MH i2c: E2 08 00 3D 13 80 11 00 00 00 00 00 00 CA [10:39:03]Write i2c OK [10:39:03]MH_I2C_Read... [10:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:03]Read from MH i2c: E2 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 17 00 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 17 00 3D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 15 [10:39:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:39:03]wFMCommunicate OK [10:39:03]CreateOFDProtocolMessage done [10:39:03]OFDSenderStorePacket 49950 [10:39:03]StoreOFDPacket docnum=49950 [10:39:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 C3 A9 07 01 FE B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 C8 20 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1E C3 00 00 35 04 06 00 92 75 97 A2 25 36 F0 45 B2 33 78 7E F4 E9 [10:39:03]CheckFolder [10:39:03]dirname=/storage/ofd_packets [10:39:03]CheckFolder done [10:39:03]ProducePacketName [10:39:03]name=ofd_packets/00049950 [10:39:03]NVStorageSaveData ofd_packets/00049950 [10:39:03]File name is /storage/ofd_packets/00049950 [10:39:03]Write 301 bytes [10:39:03]NVStorageSaveData done [10:39:03]OFDSenderStorePacket done [10:39:03]KKMCreateOFDPacket done [10:39:03]NVStorageSaveData kkm_last_timestamp [10:39:03]File name is /storage/kkm_last_timestamp [10:39:03]Write 4 bytes [10:39:03]NVStorageSaveData done [10:39:03]ExternCall_PrintAddStr [10:39:03]wPrintStart [10:39:03]Write to MH i2c: 01 00 00 3E 13 51 [10:39:03]Write i2c OK [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: 01 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: 01 07 00 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: 01 07 00 3E 13 00 00 00 00 00 FF 0F 66 [10:39:03]RasterBufferAndPrint [10:39:03]line Счет N : (1)11327664 [10:39:03]line ИНН: 02508201610067 [10:39:03]line Контрольно-Кассовый Чек [10:39:03]line ПРОДАЖА [10:39:03]line ТРК (МРК, ГНК) : 32 [10:39:03]line Товар: 2710124130 [10:39:03]line Аи-92-К-4 [10:39:03]line 30.000 * 0.00 [10:39:03]line = 0.00 [10:39:03]line НДС 12% НСП 1% [10:39:03]line > о реализуемом товаре [10:39:03]line ИТОГО: 0.00 [10:39:03]line НСП 1% : 0.00 [10:39:03]line НДС 12% : 0.00 [10:39:03]line Наличными: 0.00 [10:39:03]line Безнал.: 0.00 [10:39:03]line Место: АЗС № 95 "Партнер Нефть" [10:39:03]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:39:03]line СНО: Общий режим [10:39:03]line Чек 57 19.08.2024 10:39 [10:39:03]line Смена: 467 ФФД: 1.0 [10:39:03]line ЗНМ: 0300000078 [10:39:03]line РНМ: 0000000000092546 [10:39:03]line Версия ККМ: 001 [10:39:03]line Талоны: ТК ГПНА Online [10:39:03]line 30069266 [10:39:03]line ФМ: 0000000000871800 [10:39:03]line ФД: 49950 [10:39:03]line ФПД: 161033752814902 [10:39:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T103904&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49950&fm=161033752814902&tin=02508201610067®Number=0000000000092546&sum=0 [10:39:03]written 0, free lines is 4095 [10:39:03]OFD Sender: Processing packet 49950 [packets to send 21, broken 20] [10:39:03]ProducePacketName [10:39:03]name=ofd_packets/00049950 [10:39:03]OFD Sender: To server: pG, [10:39:03]CommunicateWithHost lk.salyk.kg:30040 [10:39:03]ConnectInit lk.salyk.kg [10:39:03]Connected sock=10 [10:39:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 C3 A9 07 01 FE B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 C8 20 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1E C3 00 00 35 04 06 00 92 75 97 A2 25 36 F0 45 B2 33 78 7E F4 E9 [10:39:04]Write to MH i2c: 01 00 00 68 13 7B [10:39:04]Write i2c OK [10:39:04]MH_I2C_Read... [10:39:04]Read from MH i2c: 01 [10:39:04]MH_I2C_Read... [10:39:04]Read from MH i2c: 01 07 00 [10:39:04]MH_I2C_Read... [10:39:04]Read from MH i2c: 01 07 00 68 13 00 00 00 00 00 D3 0C 61 [10:39:04]RasterBufferAndPrint [10:39:04]line [10:39:04]line [10:39:04]line [10:39:04]line [10:39:04]line [10:39:04]written 0, free lines is 3289 [10:39:04]MH_Cut [10:39:04]Write to MH i2c: D1 01 00 6F 13 01 54 [10:39:04]Write i2c OK [10:39:04]MH_I2C_Read... [10:39:04]Read from MH i2c: D1 [10:39:04]MH_I2C_Read... [10:39:04]Read from MH i2c: D1 01 00 [10:39:04]MH_I2C_Read... [10:39:04]Read from MH i2c: D1 01 00 6F 13 00 53 [10:39:04]Write to MH i2c: 01 00 00 70 13 83 [10:39:04]Write i2c OK [10:39:04]MH_I2C_Read... [10:39:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A2 6B 47 00 AC 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1E C3 00 00 F4 03 04 00 35 CB C2 66 B6 04 01 00 00 18 F2 5C D5 79 59 7E 5A [10:39:04]CommunicateWithHost err = 0 [10:39:04]CheckOFDResponse [10:39:04]1017 (14) - 77093643461234 [10:39:04]1041 (16) - 0000000000871800 [10:39:04]1040 (4) - 49950 [10:39:04]1012 (4) - 19.08.2024 04:33 [10:39:04]1206 (1) - 0 [10:39:04]OFD Sender: Remove packet 49950 [10:39:04]ProducePacketName [10:39:04]name=ofd_packets/00049950 [10:39:04]NVStorageDeleteData [10:39:04]OFD Sender: No OFD packet to send [10:39:04]*** Cut start [10:39:04]*** Purtial cut [10:39:04]*** Stage 1: CUTSNS_PIN = 1 [10:39:05]Read from MH i2c: 01 [10:39:05]MH_I2C_Read... [10:39:05]*** Stop cut motor [10:39:05]*** Cut end [10:39:05]Read from MH i2c: 01 07 00 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: 01 07 00 70 13 00 00 00 00 00 FF 0F 98 [10:39:05]process_action close_receipt done [10:39:05]requested_data is exist [10:39:05]produce_requested_data [10:39:05]requested_item fm.sn is exist - process it [10:39:05]wFMCommunicate request_size=4 [10:39:05]MH_SAM_APDU [10:39:05]CAPDU: 80 11 00 00 [10:39:05]Write to MH i2c: E2 08 00 71 13 80 11 00 00 00 00 00 00 FE [10:39:05]Write i2c OK [10:39:05]MH_I2C_Read... [10:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:05]Read from MH i2c: E2 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: E2 17 00 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: E2 17 00 71 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 49 [10:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:39:05]wFMCommunicate OK [10:39:05]requested_item fd.num is exist - process it [10:39:05]SAM_PROTO_GetFieldsCounters [10:39:05]wFMCommunicate request_size=4 [10:39:05]MH_SAM_APDU [10:39:05]CAPDU: 80 13 00 00 [10:39:05]Write to MH i2c: E2 08 00 72 13 80 13 00 00 00 00 00 00 01 [10:39:05]Write i2c OK [10:39:05]MH_I2C_Read... [10:39:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:05]Read from MH i2c: E2 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: E2 62 00 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: E2 62 00 72 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1E C3 00 00 0E 04 04 00 D3 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 7B [10:39:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1E C3 00 00 0E 04 04 00 D3 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 [10:39:05]wFMCommunicate OK [10:39:05]SAM_PROTO_GetFieldsCounters done [10:39:05]requested_item shift.num is exist - process it [10:39:05]requested_item shift.opened is exist - process it [10:39:05]req_shift_opened [10:39:05]FM_GetShiftState [10:39:05]SAM_PROTO_GetShiftState [10:39:05]wFMCommunicate request_size=4 [10:39:05]MH_SAM_APDU [10:39:05]CAPDU: 80 13 01 00 [10:39:05]Write to MH i2c: E2 08 00 73 13 80 13 01 00 00 00 00 00 03 [10:39:05]Write i2c OK [10:39:05]MH_I2C_Read... [10:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:05]Read from MH i2c: E2 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: E2 0E 00 [10:39:05]MH_I2C_Read... [10:39:05]Read from MH i2c: E2 0E 00 73 13 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 BD [10:39:05]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:39:05]wFMCommunicate OK [10:39:05]SAM_PROTO_GetShiftState done [10:39:05]FM_GetShiftState done [10:39:05]req_shift_opened done [10:39:05]requested_item shift.open_date is exist - process it [10:39:05]req_shift_open_date [10:39:05]req_shift_open_date done [10:39:05]produce_requested_data done [10:39:05]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49950,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [10:39:05]process_action_free close_receipt [10:39:05]json_value_free [10:39:05]json_value_free done [10:39:05]process_json_proto returns [10:39:05]Send response to host [10:39:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49950,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [10:39:05]free response buf [10:39:05]execute_script done [10:39:05]execute_script returns [10:39:05]free content buf [10:39:05]Sock 9.Close socket [10:39:05]Sock 9.Thread stoped [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]accept exits with 7 [10:40:54]New connection [10:40:54]New thread 3067354468 created [10:40:54]Thread 3067211108 joined [10:40:54]Waiting for new connection... [10:40:54] Sock 7.Parse request [10:40:54]Sock 7.Check first char [10:40:54]Sock 7.First char is OK [10:40:54]request: POST /json_proto HTTP/1.0 [10:40:54]Method: POST [10:40:54]URL: /json_proto [10:40:54]Method is POST - this is cgi request [10:40:54]url: /json_proto [10:40:54]query_string will be loaded in cgi processing [10:40:54]execute_cgi json_proto POST (null) [10:40:54]execute_cgi path=json_proto method=POST [10:40:54]POST find Content-Length [10:40:54]Host: 172.17.46.196:8080 [10:40:54]Content-Length: 756 [10:40:54]Content-Type: application/json [10:40:54] [10:40:54]POST finish read [10:40:54]Found Content-Length = 756 [10:40:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30076824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:54]execute_script... [10:40:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30076824", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:54]POST & json_proto [10:40:54]process_json_proto [10:40:54]json parsed OK: [10:40:54]protocol is kg_v1.0 [10:40:54]action value=close_receipt [10:40:54]process_action close_receipt [10:40:54]cmd_close_receipt [10:40:54]MH_GetDate [10:40:54]Write to MH i2c: F0 00 00 74 13 76 [10:40:54]Write i2c OK [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: F0 [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: F0 09 00 [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: F0 09 00 74 13 00 38 21 C3 66 C4 85 C2 66 72 [10:40:54]GetLastDocTimeStamp 1724063944 [10:40:54]current date 1724064056 [10:40:54]FM_GetShiftState [10:40:54]SAM_PROTO_GetShiftState [10:40:54]wFMCommunicate request_size=4 [10:40:54]MH_SAM_APDU [10:40:54]CAPDU: 80 13 01 00 [10:40:54]Write to MH i2c: E2 08 00 75 13 80 13 01 00 00 00 00 00 05 [10:40:54]Write i2c OK [10:40:54]MH_I2C_Read... [10:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:54]Read from MH i2c: E2 [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: E2 0E 00 [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: E2 0E 00 75 13 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 BF [10:40:54]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:40:54]wFMCommunicate OK [10:40:54]SAM_PROTO_GetShiftState done [10:40:54]FM_GetShiftState done [10:40:54]opened in 1724026361 [10:40:54]opened+sec_in_day 1724112761 [10:40:54]quantity*price = 0 [10:40:54]sum+1 = 1 [10:40:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 58 19.08.2024 10:40 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30076824 ФМ: 0000000000871800 ФД: 49951 ФПД: 224363626382632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T104056&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49951&fm=224363626382632&tin=02508201610067®Number=0000000000092546&sum=0 [10:40:55]StoreToDocumentArchive [10:40:55]shift 467 fd 49951 [10:40:55]save to /storage/0467/doc_00049951 [10:40:55]save last doc name /storage/0467/doc_00049951 to /storage/kkm_last_doc_name [10:40:55]save OK [10:40:55]Clear old archive folders... [10:40:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:55]tlvbuf is 00F67500 [10:40:55]SAM_PROTO_ClearQueue [10:40:55]wFMCommunicate request_size=4 [10:40:55]MH_SAM_APDU [10:40:55]CAPDU: 80 09 00 00 [10:40:55]Write to MH i2c: E2 08 00 82 13 80 09 00 00 00 00 00 00 07 [10:40:55]Write i2c OK [10:40:55]MH_I2C_Read... [10:40:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:55]Read from MH i2c: E2 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 03 00 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 03 00 82 13 00 90 00 09 [10:40:55]RAPDU: 90 00 [10:40:55]wFMCommunicate OK [10:40:55]SAM_PROTO_ClearQueue done [10:40:55]KKMCreateOFDPacket [10:40:55]OFDProtocolAddRootSTLVToBuf [10:40:55]FM_MakeSignedData [10:40:55]FM_MakeSignedData [10:40:55]SAM_PROTO_SignData [10:40:55]wFMCommunicate request_size=4 [10:40:55]MH_SAM_APDU [10:40:55]CAPDU: 80 0D 01 02 [10:40:55]Write to MH i2c: E2 08 00 83 13 80 0D 01 02 00 00 00 00 0F [10:40:55]Write i2c OK [10:40:55]MH_I2C_Read... [10:40:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:55]Read from MH i2c: E2 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 03 00 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 03 00 83 13 00 90 00 0A [10:40:55]RAPDU: 90 00 [10:40:55]wFMCommunicate OK [10:40:55]wFMCommunicate request_size=255 [10:40:55]MH_SAM_APDU [10:40:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 38 21 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1F C3 00 00 35 04 06 00 CC [10:40:55]Write to MH i2c: E2 02 01 84 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 38 21 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1F C3 00 00 35 04 06 00 CC 00 00 F4 [10:40:55]Write i2c OK [10:40:55]MH_I2C_Read... [10:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:55]Read from MH i2c: E2 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 03 00 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 03 00 84 13 00 90 00 0B [10:40:55]RAPDU: 90 00 [10:40:55]wFMCommunicate OK [10:40:55]wFMCommunicate request_size=10 [10:40:55]MH_SAM_APDU [10:40:55]CAPDU: 80 0D 02 02 05 0E BA 40 45 28 [10:40:55]Write to MH i2c: E2 0D 00 85 13 80 0D 02 02 05 00 0E BA 40 45 28 00 00 91 [10:40:55]Write i2c OK [10:40:55]MH_I2C_Read... [10:40:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:55]Read from MH i2c: E2 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 03 00 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 03 00 85 13 00 90 00 0C [10:40:55]RAPDU: 90 00 [10:40:55]wFMCommunicate OK [10:40:55]wFMCommunicate request_size=4 [10:40:55]MH_SAM_APDU [10:40:55]CAPDU: 80 0D 03 02 [10:40:55]Write to MH i2c: E2 08 00 86 13 80 0D 03 02 00 00 00 00 14 [10:40:55]Write i2c OK [10:40:55]MH_I2C_Read... [10:40:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:55]Read from MH i2c: E2 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 0B 00 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 0B 00 86 13 00 65 B2 D0 2B CF 2E F2 99 90 00 AF [10:40:55]RAPDU: 65 B2 D0 2B CF 2E F2 99 90 00 [10:40:55]wFMCommunicate OK [10:40:55]SAM_PROTO_SignData done [10:40:55]FM_MakeSignedData done [10:40:55]CreateOFDProtocolMessage [10:40:55]wFMCommunicate request_size=4 [10:40:55]MH_SAM_APDU [10:40:55]CAPDU: 80 11 00 00 [10:40:55]Write to MH i2c: E2 08 00 87 13 80 11 00 00 00 00 00 00 14 [10:40:55]Write i2c OK [10:40:55]MH_I2C_Read... [10:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:55]Read from MH i2c: E2 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 17 00 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 17 00 87 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5F [10:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:40:55]wFMCommunicate OK [10:40:55]CreateOFDProtocolMessage done [10:40:55]OFDSenderStorePacket 49951 [10:40:55]StoreOFDPacket docnum=49951 [10:40:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 B0 19 07 01 3A 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 38 21 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1F C3 00 00 35 04 06 00 CC 0E BA 40 45 28 65 B2 D0 2B CF 2E F2 99 [10:40:55]CheckFolder [10:40:55]dirname=/storage/ofd_packets [10:40:55]CheckFolder done [10:40:55]ProducePacketName [10:40:55]name=ofd_packets/00049951 [10:40:55]NVStorageSaveData ofd_packets/00049951 [10:40:55]File name is /storage/ofd_packets/00049951 [10:40:55]Write 301 bytes [10:40:55]NVStorageSaveData done [10:40:55]OFDSenderStorePacket done [10:40:55]KKMCreateOFDPacket done [10:40:55]NVStorageSaveData kkm_last_timestamp [10:40:55]File name is /storage/kkm_last_timestamp [10:40:55]Write 4 bytes [10:40:55]NVStorageSaveData done [10:40:55]ExternCall_PrintAddStr [10:40:55]wPrintStart [10:40:55]Write to MH i2c: 01 00 00 88 13 9B [10:40:55]Write i2c OK [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: 01 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: 01 07 00 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: 01 07 00 88 13 00 00 00 00 00 FF 0F B0 [10:40:55]RasterBufferAndPrint [10:40:55]line Счет N : (1)11327666 [10:40:55]line ИНН: 02508201610067 [10:40:55]line Контрольно-Кассовый Чек [10:40:55]line ПРОДАЖА [10:40:55]line ТРК (МРК, ГНК) : 12 [10:40:55]line Товар: 2710124130 [10:40:55]line Аи-92-К-4 [10:40:55]line 30.000 * 0.00 [10:40:55]line = 0.00 [10:40:55]line НДС 12% НСП 1% [10:40:55]line > о реализуемом товаре [10:40:55]line ИТОГО: 0.00 [10:40:55]line НСП 1% : 0.00 [10:40:55]line НДС 12% : 0.00 [10:40:55]line Наличными: 0.00 [10:40:55]line Безнал.: 0.00 [10:40:55]line Место: АЗС № 95 "Партнер Нефть" [10:40:55]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:40:55]line СНО: Общий режим [10:40:55]line Чек 58 19.08.2024 10:40 [10:40:55]line Смена: 467 ФФД: 1.0 [10:40:55]line ЗНМ: 0300000078 [10:40:55]line РНМ: 0000000000092546 [10:40:55]line Версия ККМ: 001 [10:40:55]line Талоны: ТК ГПНА Online [10:40:55]line 30076824 [10:40:55]line ФМ: 0000000000871800 [10:40:55]line ФД: 49951 [10:40:55]line ФПД: 224363626382632 [10:40:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T104056&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49951&fm=224363626382632&tin=02508201610067®Number=0000000000092546&sum=0 [10:40:55]written 0, free lines is 4095 [10:40:55]OFD Sender: Processing packet 49951 [packets to send 21, broken 20] [10:40:55]ProducePacketName [10:40:55]name=ofd_packets/00049951 [10:40:55]OFD Sender: To server: pG, [10:40:55]CommunicateWithHost lk.salyk.kg:30040 [10:40:55]ConnectInit lk.salyk.kg [10:40:56]Connected sock=10 [10:40:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 B0 19 07 01 3A 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 38 21 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1F C3 00 00 35 04 06 00 CC 0E BA 40 45 28 65 B2 D0 2B CF 2E F2 99 [10:40:56]Write to MH i2c: 01 00 00 B2 13 C5 [10:40:56]Write i2c OK [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: 01 [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: 01 07 00 [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: 01 07 00 B2 13 00 00 00 00 00 E3 0C BB [10:40:56]RasterBufferAndPrint [10:40:56]line [10:40:56]line [10:40:56]line [10:40:56]line [10:40:56]line [10:40:56]written 0, free lines is 3305 [10:40:56]MH_Cut [10:40:56]Write to MH i2c: D1 01 00 B9 13 01 9E [10:40:56]Write i2c OK [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: D1 [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: D1 01 00 [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: D1 01 00 B9 13 00 9D [10:40:56]Write to MH i2c: 01 00 00 BA 13 CD [10:40:56]Write i2c OK [10:40:56]MH_I2C_Read... [10:40:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 93 03 47 00 3E 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1F C3 00 00 F4 03 04 00 A5 CB C2 66 B6 04 01 00 00 F7 74 E7 31 E3 37 2D 23 [10:40:56]CommunicateWithHost err = 0 [10:40:56]CheckOFDResponse [10:40:56]1017 (14) - 77093643461234 [10:40:56]1041 (16) - 0000000000871800 [10:40:56]1040 (4) - 49951 [10:40:56]1012 (4) - 19.08.2024 04:35 [10:40:56]1206 (1) - 0 [10:40:56]OFD Sender: Remove packet 49951 [10:40:56]ProducePacketName [10:40:56]name=ofd_packets/00049951 [10:40:56]NVStorageDeleteData [10:40:57]OFD Sender: No OFD packet to send [10:40:57]*** Cut start [10:40:57]*** Purtial cut [10:40:57]*** CUTSNS_PIN = 0 [10:40:57]*** Stage 1: CUTSNS_PIN = 1 [10:40:59]Read from MH i2c: 01 [10:40:59]MH_I2C_Read... [10:40:59]*** Stop cut motor [10:40:59]*** Cut end [10:40:59]Read from MH i2c: 01 07 00 [10:40:59]MH_I2C_Read... [10:40:59]Read from MH i2c: 01 07 00 BA 13 00 00 00 00 00 FF 0F E2 [10:40:59]process_action close_receipt done [10:40:59]requested_data is exist [10:40:59]produce_requested_data [10:40:59]requested_item fm.sn is exist - process it [10:40:59]wFMCommunicate request_size=4 [10:40:59]MH_SAM_APDU [10:40:59]CAPDU: 80 11 00 00 [10:40:59]Write to MH i2c: E2 08 00 BB 13 80 11 00 00 00 00 00 00 48 [10:40:59]Write i2c OK [10:40:59]MH_I2C_Read... [10:40:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:59]Read from MH i2c: E2 [10:40:59]MH_I2C_Read... [10:40:59]Read from MH i2c: E2 17 00 [10:40:59]MH_I2C_Read... [10:40:59]Read from MH i2c: E2 17 00 BB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 93 [10:40:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:40:59]wFMCommunicate OK [10:40:59]requested_item fd.num is exist - process it [10:40:59]SAM_PROTO_GetFieldsCounters [10:40:59]wFMCommunicate request_size=4 [10:40:59]MH_SAM_APDU [10:40:59]CAPDU: 80 13 00 00 [10:40:59]Write to MH i2c: E2 08 00 BC 13 80 13 00 00 00 00 00 00 4B [10:40:59]Write i2c OK [10:40:59]MH_I2C_Read... [10:40:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:59]Read from MH i2c: E2 [10:40:59]MH_I2C_Read... [10:40:59]Read from MH i2c: E2 62 00 [10:40:59]MH_I2C_Read... [10:40:59]Read from MH i2c: E2 62 00 BC 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1F C3 00 00 0E 04 04 00 D3 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 C9 [10:40:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1F C3 00 00 0E 04 04 00 D3 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 [10:40:59]wFMCommunicate OK [10:40:59]SAM_PROTO_GetFieldsCounters done [10:40:59]requested_item shift.num is exist - process it [10:40:59]requested_item shift.opened is exist - process it [10:40:59]req_shift_opened [10:40:59]FM_GetShiftState [10:40:59]SAM_PROTO_GetShiftState [10:40:59]wFMCommunicate request_size=4 [10:40:59]MH_SAM_APDU [10:40:59]CAPDU: 80 13 01 00 [10:40:59]Write to MH i2c: E2 08 00 BD 13 80 13 01 00 00 00 00 00 4D [10:40:59]Write i2c OK [10:40:59]MH_I2C_Read... [10:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:59]Read from MH i2c: E2 [10:40:59]MH_I2C_Read... [10:40:59]Read from MH i2c: E2 0E 00 [10:40:59]MH_I2C_Read... [10:40:59]Read from MH i2c: E2 0E 00 BD 13 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 07 [10:40:59]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:40:59]wFMCommunicate OK [10:40:59]SAM_PROTO_GetShiftState done [10:40:59]FM_GetShiftState done [10:40:59]req_shift_opened done [10:40:59]requested_item shift.open_date is exist - process it [10:40:59]req_shift_open_date [10:40:59]req_shift_open_date done [10:40:59]produce_requested_data done [10:40:59]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49951,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [10:40:59]process_action_free close_receipt [10:40:59]json_value_free [10:40:59]json_value_free done [10:40:59]process_json_proto returns [10:40:59]Send response to host [10:40:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49951,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [10:40:59]free response buf [10:40:59]execute_script done [10:40:59]execute_script returns [10:40:59]free content buf [10:40:59]Sock 7.Close socket [10:40:59]Sock 7.Thread stoped [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:31]accept exits with 9 [10:42:31]New connection [10:42:31]New thread 3067211108 created [10:42:31]Thread 3067354468 joined [10:42:31]Waiting for new connection... [10:42:31] Sock 9.Parse request [10:42:31]Sock 9.Check first char [10:42:31]Sock 9.First char is OK [10:42:31]request: POST /json_proto HTTP/1.0 [10:42:31]Method: POST [10:42:31]URL: /json_proto [10:42:31]Method is POST - this is cgi request [10:42:31]url: /json_proto [10:42:31]query_string will be loaded in cgi processing [10:42:31]execute_cgi json_proto POST (null) [10:42:31]execute_cgi path=json_proto method=POST [10:42:31]POST find Content-Length [10:42:31]Host: 172.17.46.196:8080 [10:42:31]Content-Length: 679 [10:42:31]Content-Type: application/json [10:42:31] [10:42:31]POST finish read [10:42:31]Found Content-Length = 679 [10:42:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190101", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:31]execute_script... [10:42:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190101", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:31]POST & json_proto [10:42:31]process_json_proto [10:42:31]json parsed OK: [10:42:31]protocol is kg_v1.0 [10:42:31]action value=close_receipt [10:42:31]process_action close_receipt [10:42:31]cmd_close_receipt [10:42:31]MH_GetDate [10:42:31]Write to MH i2c: F0 00 00 BE 13 C0 [10:42:31]Write i2c OK [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: F0 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: F0 09 00 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: F0 09 00 BE 13 00 99 21 C3 66 C4 85 C2 66 1D [10:42:31]GetLastDocTimeStamp 1724064056 [10:42:31]current date 1724064153 [10:42:31]FM_GetShiftState [10:42:31]SAM_PROTO_GetShiftState [10:42:31]wFMCommunicate request_size=4 [10:42:31]MH_SAM_APDU [10:42:31]CAPDU: 80 13 01 00 [10:42:31]Write to MH i2c: E2 08 00 BF 13 80 13 01 00 00 00 00 00 4F [10:42:31]Write i2c OK [10:42:31]MH_I2C_Read... [10:42:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:31]Read from MH i2c: E2 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: E2 0E 00 [10:42:31]MH_I2C_Read... [10:42:31]Read from MH i2c: E2 0E 00 BF 13 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 09 [10:42:31]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:42:31]wFMCommunicate OK [10:42:31]SAM_PROTO_GetShiftState done [10:42:31]FM_GetShiftState done [10:42:31]opened in 1724026361 [10:42:31]opened+sec_in_day 1724112761 [10:42:31]quantity*price = 8000 [10:42:31]sum+1 = 8001 [10:42:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 59 19.08.2024 10:42 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49952 ФПД: 91483097954578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T104233&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49952&fm=91483097954578&tin=02508201610067®Number=0000000000092546&sum=8000 0 [10:42:32]StoreToDocumentArchive [10:42:32]shift 467 fd 49952 [10:42:32]save to /storage/0467/doc_00049952 [10:42:32]save last doc name /storage/0467/doc_00049952 to /storage/kkm_last_doc_name [10:42:32]save OK [10:42:32]Clear old archive folders... [10:42:32]ProcessDocumentItem done err = 0, tmpTLVsize=294 [10:42:32]tlvbuf is 0103C170 [10:42:32]SAM_PROTO_ClearQueue [10:42:32]wFMCommunicate request_size=4 [10:42:32]MH_SAM_APDU [10:42:32]CAPDU: 80 09 00 00 [10:42:32]Write to MH i2c: E2 08 00 CC 13 80 09 00 00 00 00 00 00 51 [10:42:32]Write i2c OK [10:42:32]MH_I2C_Read... [10:42:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:32]Read from MH i2c: E2 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 03 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 03 00 CC 13 00 90 00 53 [10:42:32]RAPDU: 90 00 [10:42:32]wFMCommunicate OK [10:42:32]SAM_PROTO_ClearQueue done [10:42:32]KKMCreateOFDPacket [10:42:32]OFDProtocolAddRootSTLVToBuf [10:42:32]FM_MakeSignedData [10:42:32]FM_MakeSignedData [10:42:32]SAM_PROTO_SignData [10:42:32]wFMCommunicate request_size=4 [10:42:32]MH_SAM_APDU [10:42:32]CAPDU: 80 0D 01 02 [10:42:32]Write to MH i2c: E2 08 00 CD 13 80 0D 01 02 00 00 00 00 59 [10:42:32]Write i2c OK [10:42:32]MH_I2C_Read... [10:42:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:32]Read from MH i2c: E2 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 03 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 03 00 CD 13 00 90 00 54 [10:42:32]RAPDU: 90 00 [10:42:32]wFMCommunicate OK [10:42:32]wFMCommunicate request_size=255 [10:42:32]MH_SAM_APDU [10:42: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 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 99 21 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [10:42:32]Write to MH i2c: E2 02 01 CE 13 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 99 21 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 4D [10:42:32]Write i2c OK [10:42:32]MH_I2C_Read... [10:42:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:32]Read from MH i2c: E2 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 03 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 03 00 CE 13 00 90 00 55 [10:42:32]RAPDU: 90 00 [10:42:32]wFMCommunicate OK [10:42:32]wFMCommunicate request_size=53 [10:42:32]MH_SAM_APDU [10:42:32]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 20 C3 00 00 35 04 06 00 53 34 11 8E 79 12 [10:42:32]Write to MH i2c: E2 38 00 CF 13 80 0D 02 02 30 00 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 20 C3 00 00 35 04 06 00 53 34 11 8E 79 12 00 00 DE [10:42:32]Write i2c OK [10:42:32]MH_I2C_Read... [10:42:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:32]Read from MH i2c: E2 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 03 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 03 00 CF 13 00 90 00 56 [10:42:32]RAPDU: 90 00 [10:42:32]wFMCommunicate OK [10:42:32]wFMCommunicate request_size=4 [10:42:32]MH_SAM_APDU [10:42:32]CAPDU: 80 0D 03 02 [10:42:32]Write to MH i2c: E2 08 00 D0 13 80 0D 03 02 00 00 00 00 5E [10:42:32]Write i2c OK [10:42:32]MH_I2C_Read... [10:42:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:32]Read from MH i2c: E2 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 0B 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 0B 00 D0 13 00 FC BB BB 01 62 68 3F 3A 90 00 15 [10:42:32]RAPDU: FC BB BB 01 62 68 3F 3A 90 00 [10:42:32]wFMCommunicate OK [10:42:32]SAM_PROTO_SignData done [10:42:32]FM_MakeSignedData done [10:42:32]CreateOFDProtocolMessage [10:42:32]wFMCommunicate request_size=4 [10:42:32]MH_SAM_APDU [10:42:32]CAPDU: 80 11 00 00 [10:42:32]Write to MH i2c: E2 08 00 D1 13 80 11 00 00 00 00 00 00 5E [10:42:32]Write i2c OK [10:42:32]MH_I2C_Read... [10:42:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:32]Read from MH i2c: E2 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 17 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: E2 17 00 D1 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A9 [10:42:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:42:32]wFMCommunicate OK [10:42:32]CreateOFDProtocolMessage done [10:42:32]OFDSenderStorePacket 49952 [10:42:32]StoreOFDPacket docnum=49952 [10:42:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 65 B2 32 01 40 14 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 99 21 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 20 C3 00 00 35 04 06 00 53 34 11 8E 79 12 FC BB BB 01 62 68 3F 3A [10:42:32]CheckFolder [10:42:32]dirname=/storage/ofd_packets [10:42:32]CheckFolder done [10:42:32]ProducePacketName [10:42:32]name=ofd_packets/00049952 [10:42:32]NVStorageSaveData ofd_packets/00049952 [10:42:32]File name is /storage/ofd_packets/00049952 [10:42:32]Write 344 bytes [10:42:32]NVStorageSaveData done [10:42:32]OFDSenderStorePacket done [10:42:32]KKMCreateOFDPacket done [10:42:32]NVStorageSaveData kkm_last_timestamp [10:42:32]File name is /storage/kkm_last_timestamp [10:42:32]Write 4 bytes [10:42:32]NVStorageSaveData done [10:42:32]ExternCall_PrintAddStr [10:42:32]wPrintStart [10:42:32]Write to MH i2c: 01 00 00 D2 13 E5 [10:42:32]Write i2c OK [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: 01 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: 01 07 00 [10:42:32]MH_I2C_Read... [10:42:32]Read from MH i2c: 01 07 00 D2 13 00 00 00 00 00 FF 0F FA [10:42:32]RasterBufferAndPrint [10:42:32]line Счет N : (3)190101 [10:42:32]line ИНН: 02508201610067 [10:42:32]line Контрольно-Кассовый Чек [10:42:32]line ПРОДАЖА [10:42:32]line Товар: 4700003010353 [10:42:32]line Напиток Let`s Go! с/с груша ПЭТ 1л [10:42:32]line 1.000 * 80.00 [10:42:32]line = 80.00 [10:42:32]line НДС 12% НСП 1% [10:42:32]line > о реализуемом товаре [10:42:32]line ИТОГО: 80.00 [10:42:32]line НСП 1% : 0.71 [10:42:32]line НДС 12% : 8.50 [10:42:32]line Наличными: 80.00 [10:42:32]line Безнал.: 0.00 [10:42:32]line Место: АЗС № 95 "Партнер Нефть" [10:42:32]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:42:32]line СНО: Общий режим [10:42:32]line Чек 59 19.08.2024 10:42 [10:42:32]line Смена: 467 ФФД: 1.0 [10:42:32]line ЗНМ: 0300000078 [10:42:32]line РНМ: 0000000000092546 [10:42:33]line Версия ККМ: 001 [10:42:33]line ФМ: 0000000000871800 [10:42:33]line ФД: 49952 [10:42:33]line ФПД: 91483097954578 [10:42:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T104233&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49952&fm=91483097954578&tin=02508201610067®Number=0000000000092546&sum=8000 [10:42:33]line 0 [10:42:33]OFD Sender: Processing packet 49952 [packets to send 21, broken 20] [10:42:33]ProducePacketName [10:42:33]name=ofd_packets/00049952 [10:42:33]OFD Sender: To server: pG, [10:42:33]CommunicateWithHost lk.salyk.kg:30040 [10:42:33]ConnectInit lk.salyk.kg [10:42:33]written 0, free lines is 4095 [10:42:33]Connected sock=10 [10:42:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 65 B2 32 01 40 14 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 99 21 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 20 C3 00 00 35 04 06 00 53 34 11 8E 79 12 FC BB BB 01 62 68 3F 3A [10:42:33]Write to MH i2c: 01 00 00 FB 13 0E [10:42:33]Write i2c OK [10:42:33]MH_I2C_Read... [10:42:33]Read from MH i2c: 01 [10:42:33]MH_I2C_Read... [10:42:33]Read from MH i2c: 01 07 00 [10:42:33]MH_I2C_Read... [10:42:33]Read from MH i2c: 01 07 00 FB 13 00 00 00 00 00 DB 0C FC [10:42:33]RasterBufferAndPrint [10:42:33]line [10:42:33]line [10:42:33]line [10:42:33]line [10:42:33]line [10:42:33]written 0, free lines is 3297 [10:42:33]MH_Cut [10:42:33]Write to MH i2c: D1 01 00 02 14 01 E8 [10:42:33]Write i2c OK [10:42:33]MH_I2C_Read... [10:42:33]Read from MH i2c: D1 [10:42:33]MH_I2C_Read... [10:42:33]Read from MH i2c: D1 01 00 [10:42:33]MH_I2C_Read... [10:42:33]Read from MH i2c: D1 01 00 02 14 00 E7 [10:42:33]Write to MH i2c: 01 00 00 03 14 17 [10:42:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 66 7B 47 00 5F 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 20 C3 00 00 F4 03 04 00 06 CC C2 66 B6 04 01 00 00 B0 DE E9 0E 56 5C CA 8E [10:42:33]CommunicateWithHost err = 0 [10:42:33]CheckOFDResponse [10:42:33]1017 (14) - 77093643461234 [10:42:33]1041 (16) - 0000000000871800 [10:42:33]1040 (4) - 49952 [10:42:33]1012 (4) - 19.08.2024 04:37 [10:42:33]1206 (1) - 0 [10:42:33]OFD Sender: Remove packet 49952 [10:42:33]ProducePacketName [10:42:33]name=ofd_packets/00049952 [10:42:33]NVStorageDeleteData [10:42:33]Write i2c OK [10:42:33]MH_I2C_Read... [10:42:34]OFD Sender: No OFD packet to send [10:42:34]*** Cut start [10:42:34]*** Purtial cut [10:42:34]*** Stage 1: CUTSNS_PIN = 1 [10:42:34]Read from MH i2c: 01 [10:42:34]MH_I2C_Read... [10:42:34]*** Stop cut motor [10:42:34]*** Cut end [10:42:34]Read from MH i2c: 01 07 00 [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: 01 07 00 03 14 00 00 00 00 00 FF 0F 2C [10:42:34]process_action close_receipt done [10:42:34]requested_data is exist [10:42:34]produce_requested_data [10:42:34]requested_item fm.sn is exist - process it [10:42:34]wFMCommunicate request_size=4 [10:42:34]MH_SAM_APDU [10:42:34]CAPDU: 80 11 00 00 [10:42:34]Write to MH i2c: E2 08 00 04 14 80 11 00 00 00 00 00 00 92 [10:42:34]Write i2c OK [10:42:34]MH_I2C_Read... [10:42:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:34]Read from MH i2c: E2 [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: E2 17 00 [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: E2 17 00 04 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DD [10:42:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:42:34]wFMCommunicate OK [10:42:34]requested_item fd.num is exist - process it [10:42:34]SAM_PROTO_GetFieldsCounters [10:42:34]wFMCommunicate request_size=4 [10:42:34]MH_SAM_APDU [10:42:34]CAPDU: 80 13 00 00 [10:42:34]Write to MH i2c: E2 08 00 05 14 80 13 00 00 00 00 00 00 95 [10:42:34]Write i2c OK [10:42:34]MH_I2C_Read... [10:42:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:34]Read from MH i2c: E2 [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: E2 62 00 [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: E2 62 00 05 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 20 C3 00 00 0E 04 04 00 D3 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 17 [10:42:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 20 C3 00 00 0E 04 04 00 D3 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 [10:42:34]wFMCommunicate OK [10:42:34]SAM_PROTO_GetFieldsCounters done [10:42:34]requested_item shift.num is exist - process it [10:42:34]requested_item shift.opened is exist - process it [10:42:34]req_shift_opened [10:42:34]FM_GetShiftState [10:42:34]SAM_PROTO_GetShiftState [10:42:34]wFMCommunicate request_size=4 [10:42:34]MH_SAM_APDU [10:42:34]CAPDU: 80 13 01 00 [10:42:34]Write to MH i2c: E2 08 00 06 14 80 13 01 00 00 00 00 00 97 [10:42:34]Write i2c OK [10:42:34]MH_I2C_Read... [10:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:34]Read from MH i2c: E2 [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: E2 0E 00 [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: E2 0E 00 06 14 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 51 [10:42:34]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:42:34]wFMCommunicate OK [10:42:34]SAM_PROTO_GetShiftState done [10:42:34]FM_GetShiftState done [10:42:34]req_shift_opened done [10:42:34]requested_item shift.open_date is exist - process it [10:42:34]req_shift_open_date [10:42:34]req_shift_open_date done [10:42:34]produce_requested_data done [10:42:34]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49952,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [10:42:34]process_action_free close_receipt [10:42:34]json_value_free [10:42:34]json_value_free done [10:42:34]process_json_proto returns [10:42:34]Send response to host [10:42:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49952,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [10:42:34]free response buf [10:42:34]execute_script done [10:42:34]execute_script returns [10:42:34]free content buf [10:42:34]Sock 9.Close socket [10:42:34]Sock 9.Thread stoped [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:39]accept exits with 7 [10:44:39]New connection [10:44:39]New thread 3067354468 created [10:44:39]Thread 3067211108 joined [10:44:39]Waiting for new connection... [10:44:39] Sock 7.Parse request [10:44:39]Sock 7.Check first char [10:44:39]Sock 7.First char is OK [10:44:39]request: POST /json_proto HTTP/1.0 [10:44:39]Method: POST [10:44:39]URL: /json_proto [10:44:39]Method is POST - this is cgi request [10:44:39]url: /json_proto [10:44:39]query_string will be loaded in cgi processing [10:44:39]execute_cgi json_proto POST (null) [10:44:39]execute_cgi path=json_proto method=POST [10:44:39]POST find Content-Length [10:44:39]Host: 172.17.46.196:8080 [10:44:39]Content-Length: 1056 [10:44:39]Content-Type: application/json [10:44:39] [10:44:39]POST finish read [10:44:39]Found Content-Length = 1056 [10:44:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190102", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 2.000, "sum" : 310.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" : 415.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:39]execute_script... [10:44: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)190102", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 2.000, "sum" : 310.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" : 415.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:39]POST & json_proto [10:44:39]process_json_proto [10:44:39]json parsed OK: [10:44:39]protocol is kg_v1.0 [10:44:39]action value=close_receipt [10:44:39]process_action close_receipt [10:44:39]cmd_close_receipt [10:44:39]MH_GetDate [10:44:39]Write to MH i2c: F0 00 00 07 14 0A [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: F0 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: F0 09 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: F0 09 00 07 14 00 19 22 C3 66 C4 85 C2 66 E8 [10:44:39]GetLastDocTimeStamp 1724064153 [10:44:39]current date 1724064281 [10:44:39]FM_GetShiftState [10:44:39]SAM_PROTO_GetShiftState [10:44:39]wFMCommunicate request_size=4 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 13 01 00 [10:44:39]Write to MH i2c: E2 08 00 08 14 80 13 01 00 00 00 00 00 99 [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 0E 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 0E 00 08 14 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 53 [10:44:39]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:44:39]wFMCommunicate OK [10:44:39]SAM_PROTO_GetShiftState done [10:44:39]FM_GetShiftState done [10:44:39]opened in 1724026361 [10:44:39]opened+sec_in_day 1724112761 [10:44:39]quantity*price = 10500 [10:44:39]sum+1 = 10501 [10:44:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 47803152 Сигареты Mevius Revo 2.000 * 155.00 = 310.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 415.00 НСП 1% : 3.67 НДС 12% : 44.07 Наличными: 0.00 Безнал.: 415.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 60 19.08.2024 10:44 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49953 ФПД: 93406049063791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T104441&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49953&fm=93406049063791&tin=02508201610067®Number=0000000000092546&sum=41500 0 [10:44:40]StoreToDocumentArchive [10:44:40]shift 467 fd 49953 [10:44:40]save to /storage/0467/doc_00049953 [10:44:40]save last doc name /storage/0467/doc_00049953 to /storage/kkm_last_doc_name [10:44:40]save OK [10:44:40]Clear old archive folders... [10:44:40]ProcessDocumentItem done err = 0, tmpTLVsize=377 [10:44:40]tlvbuf is 0106CB90 [10:44:40]SAM_PROTO_ClearQueue [10:44:40]wFMCommunicate request_size=4 [10:44:40]MH_SAM_APDU [10:44:40]CAPDU: 80 09 00 00 [10:44:40]Write to MH i2c: E2 08 00 15 14 80 09 00 00 00 00 00 00 9B [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:40]Read from MH i2c: E2 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 03 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 03 00 15 14 00 90 00 9D [10:44:40]RAPDU: 90 00 [10:44:40]wFMCommunicate OK [10:44:40]SAM_PROTO_ClearQueue done [10:44:40]KKMCreateOFDPacket [10:44:40]OFDProtocolAddRootSTLVToBuf [10:44:40]FM_MakeSignedData [10:44:40]FM_MakeSignedData [10:44:40]SAM_PROTO_SignData [10:44:40]wFMCommunicate request_size=4 [10:44:40]MH_SAM_APDU [10:44:40]CAPDU: 80 0D 01 02 [10:44:40]Write to MH i2c: E2 08 00 16 14 80 0D 01 02 00 00 00 00 A3 [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:40]Read from MH i2c: E2 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 03 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 03 00 16 14 00 90 00 9E [10:44:40]RAPDU: 90 00 [10:44:40]wFMCommunicate OK [10:44:40]wFMCommunicate request_size=255 [10:44:40]MH_SAM_APDU [10:44:40]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 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 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 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 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 8C 3C 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 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE [10:44:40]Write to MH i2c: E2 02 01 17 14 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 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 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 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 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 8C 3C 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 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 00 00 2B [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:41]Read from MH i2c: E2 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 03 00 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 03 00 17 14 00 90 00 9F [10:44:41]RAPDU: 90 00 [10:44:41]wFMCommunicate OK [10:44:41]wFMCommunicate request_size=136 [10:44:41]MH_SAM_APDU [10:44:41]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 19 22 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 21 C3 00 00 35 04 06 00 54 F3 CA 5F D3 6F [10:44:41]Write to MH i2c: E2 8B 00 18 14 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 19 22 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 21 C3 00 00 35 04 06 00 54 F3 CA 5F D3 6F 00 00 F4 [10:44:41]Write i2c OK [10:44:41]MH_I2C_Read... [10:44:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:41]Read from MH i2c: E2 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 03 00 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 03 00 18 14 00 90 00 A0 [10:44:41]RAPDU: 90 00 [10:44:41]wFMCommunicate OK [10:44:41]wFMCommunicate request_size=4 [10:44:41]MH_SAM_APDU [10:44:41]CAPDU: 80 0D 03 02 [10:44:41]Write to MH i2c: E2 08 00 19 14 80 0D 03 02 00 00 00 00 A8 [10:44:41]Write i2c OK [10:44:41]MH_I2C_Read... [10:44:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:41]Read from MH i2c: E2 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 0B 00 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 0B 00 19 14 00 0A B8 18 66 87 71 FD A0 90 00 7E [10:44:41]RAPDU: 0A B8 18 66 87 71 FD A0 90 00 [10:44:41]wFMCommunicate OK [10:44:41]SAM_PROTO_SignData done [10:44:41]FM_MakeSignedData done [10:44:41]CreateOFDProtocolMessage [10:44:41]wFMCommunicate request_size=4 [10:44:41]MH_SAM_APDU [10:44:41]CAPDU: 80 11 00 00 [10:44:41]Write to MH i2c: E2 08 00 1A 14 80 11 00 00 00 00 00 00 A8 [10:44:41]Write i2c OK [10:44:41]MH_I2C_Read... [10:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:41]Read from MH i2c: E2 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 17 00 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: E2 17 00 1A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F3 [10:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:44:41]wFMCommunicate OK [10:44:41]CreateOFDProtocolMessage done [10:44:41]OFDSenderStorePacket 49953 [10:44:41]StoreOFDPacket docnum=49953 [10:44:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 8D 01 00 00 2C 7C 85 01 E8 FC 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 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 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 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 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 8C 3C 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 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 19 22 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 21 C3 00 00 35 04 06 00 54 F3 CA 5F D3 6F 0A B8 18 66 87 71 FD A0 [10:44:41]CheckFolder [10:44:41]dirname=/storage/ofd_packets [10:44:41]CheckFolder done [10:44:41]ProducePacketName [10:44:41]name=ofd_packets/00049953 [10:44:41]NVStorageSaveData ofd_packets/00049953 [10:44:41]File name is /storage/ofd_packets/00049953 [10:44:41]Write 427 bytes [10:44:41]NVStorageSaveData done [10:44:41]OFDSenderStorePacket done [10:44:41]KKMCreateOFDPacket done [10:44:41]NVStorageSaveData kkm_last_timestamp [10:44:41]File name is /storage/kkm_last_timestamp [10:44:41]Write 4 bytes [10:44:41]NVStorageSaveData done [10:44:41]ExternCall_PrintAddStr [10:44:41]wPrintStart [10:44:41]Write to MH i2c: 01 00 00 1B 14 2F [10:44:41]OFD Sender: Processing packet 49953 [packets to send 21, broken 20] [10:44:41]ProducePacketName [10:44:41]name=ofd_packets/00049953 [10:44:41]OFD Sender: To server: pG, [10:44:41]CommunicateWithHost lk.salyk.kg:30040 [10:44:41]Write i2c OK [10:44:41]MH_I2C_Read... [10:44:41]ConnectInit lk.salyk.kg [10:44:41]Read from MH i2c: 01 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: 01 07 00 [10:44:41]MH_I2C_Read... [10:44:41]Read from MH i2c: 01 07 00 1B 14 00 00 00 00 00 FF 0F 44 [10:44:41]RasterBufferAndPrint [10:44:41]line Счет N : (3)190102 [10:44:41]line ИНН: 02508201610067 [10:44:41]line Контрольно-Кассовый Чек [10:44:41]line ПРОДАЖА [10:44:41]line Товар: 2000034730018 [10:44:41]line Кофе Американо (GABB TRADE) [10:44:41]line 1.000 * 105.00 [10:44:41]line = 105.00 [10:44:41]line НДС 12% НСП 1% [10:44:41]line > о реализуемом товаре [10:44:41]line Товар: 47803152 [10:44:41]line Сигареты Mevius Revo [10:44:41]line 2.000 * 155.00 [10:44:41]line = 310.00 [10:44:41]line НДС 12% НСП 1% [10:44:41]line > о реализуемом товаре [10:44:41]line ИТОГО: 415.00 [10:44:41]line НСП 1% : 3.67 [10:44:41]line НДС 12% : 44.07 [10:44:41]line Наличными: 0.00 [10:44:41]line Безнал.: 415.00 [10:44:41]line Место: АЗС № 95 "Партнер Нефть" [10:44:41]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:44:41]line СНО: Общий режим [10:44:41]line Чек 60 19.08.2024 10:44 [10:44:41]line Смена: 467 ФФД: 1.0 [10:44:41]line ЗНМ: 0300000078 [10:44:41]line РНМ: 0000000000092546 [10:44:41]line Версия ККМ: 001 [10:44:41]line Платежная система: Бакай Банк [10:44:41]line ФМ: 0000000000871800 [10:44:41]line ФД: 49953 [10:44:41]line ФПД: 93406049063791 [10:44:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T104441&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49953&fm=93406049063791&tin=02508201610067®Number=0000000000092546&sum=41500 [10:44:41]line 0 [10:44:41]written 0, free lines is 4095 [10:44:41]Connected sock=11 [10:44:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 8D 01 00 00 2C 7C 85 01 E8 FC 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 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 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 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 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 8C 3C 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 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 19 22 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 21 C3 00 00 35 04 06 00 54 F3 CA 5F D3 6F 0A B8 18 66 87 71 FD A0 [10:44:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 83 01 47 00 4D 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 21 C3 00 00 F4 03 04 00 87 CC C2 66 B6 04 01 00 00 E1 46 C2 09 18 11 BD 19 [10:44:42]CommunicateWithHost err = 0 [10:44:42]CheckOFDResponse [10:44:42]1017 (14) - 77093643461234 [10:44:42]1041 (16) - 0000000000871800 [10:44:42]1040 (4) - 49953 [10:44:42]1012 (4) - 19.08.2024 04:39 [10:44:42]1206 (1) - 0 [10:44:42]OFD Sender: Remove packet 49953 [10:44:42]ProducePacketName [10:44:42]name=ofd_packets/00049953 [10:44:42]NVStorageDeleteData [10:44:42]Write to MH i2c: 01 00 00 4C 14 60 [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: 01 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: 01 07 00 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: 01 07 00 4C 14 00 00 00 00 00 61 0C D4 [10:44:42]RasterBufferAndPrint [10:44:42]line [10:44:42]line [10:44:42]line [10:44:42]line [10:44:42]line [10:44:42]written 0, free lines is 3175 [10:44:42]MH_Cut [10:44:42]Write to MH i2c: D1 01 00 53 14 01 39 [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: D1 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: D1 01 00 [10:44:42]MH_I2C_Read... [10:44:42]Read from MH i2c: D1 01 00 53 14 00 38 [10:44:42]Write to MH i2c: 01 00 00 54 14 68 [10:44:42]Write i2c OK [10:44:42]MH_I2C_Read... [10:44:42]OFD Sender: No OFD packet to send [10:44:43]*** Cut start [10:44:43]*** Purtial cut [10:44:43]*** CUTSNS_PIN = 0 [10:44:43]*** Stage 1: CUTSNS_PIN = 1 [10:44:45]Read from MH i2c: 01 [10:44:45]MH_I2C_Read... [10:44:45]*** Stop cut motor [10:44:45]*** Cut end [10:44:45]Read from MH i2c: 01 07 00 [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: 01 07 00 54 14 00 00 00 00 00 FF 0F 7D [10:44:45]process_action close_receipt done [10:44:45]requested_data is exist [10:44:45]produce_requested_data [10:44:45]requested_item fm.sn is exist - process it [10:44:45]wFMCommunicate request_size=4 [10:44:45]MH_SAM_APDU [10:44:45]CAPDU: 80 11 00 00 [10:44:45]Write to MH i2c: E2 08 00 55 14 80 11 00 00 00 00 00 00 E3 [10:44:45]Write i2c OK [10:44:45]MH_I2C_Read... [10:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:45]Read from MH i2c: E2 [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: E2 17 00 [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: E2 17 00 55 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2E [10:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:44:45]wFMCommunicate OK [10:44:45]requested_item fd.num is exist - process it [10:44:45]SAM_PROTO_GetFieldsCounters [10:44:45]wFMCommunicate request_size=4 [10:44:45]MH_SAM_APDU [10:44:45]CAPDU: 80 13 00 00 [10:44:45]Write to MH i2c: E2 08 00 56 14 80 13 00 00 00 00 00 00 E6 [10:44:45]Write i2c OK [10:44:45]MH_I2C_Read... [10:44:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:45]Read from MH i2c: E2 [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: E2 62 00 [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: E2 62 00 56 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 21 C3 00 00 0E 04 04 00 D3 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 6C [10:44:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 21 C3 00 00 0E 04 04 00 D3 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 [10:44:45]wFMCommunicate OK [10:44:45]SAM_PROTO_GetFieldsCounters done [10:44:45]requested_item shift.num is exist - process it [10:44:45]requested_item shift.opened is exist - process it [10:44:45]req_shift_opened [10:44:45]FM_GetShiftState [10:44:45]SAM_PROTO_GetShiftState [10:44:45]wFMCommunicate request_size=4 [10:44:45]MH_SAM_APDU [10:44:45]CAPDU: 80 13 01 00 [10:44:45]Write to MH i2c: E2 08 00 57 14 80 13 01 00 00 00 00 00 E8 [10:44:45]Write i2c OK [10:44:45]MH_I2C_Read... [10:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:45]Read from MH i2c: E2 [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: E2 0E 00 [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: E2 0E 00 57 14 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A2 [10:44:45]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:44:45]wFMCommunicate OK [10:44:45]SAM_PROTO_GetShiftState done [10:44:45]FM_GetShiftState done [10:44:45]req_shift_opened done [10:44:45]requested_item shift.open_date is exist - process it [10:44:45]req_shift_open_date [10:44:45]req_shift_open_date done [10:44:45]produce_requested_data done [10:44:45]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49953,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [10:44:45]process_action_free close_receipt [10:44:45]json_value_free [10:44:45]json_value_free done [10:44:45]process_json_proto returns [10:44:45]Send response to host [10:44:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49953,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [10:44:45]free response buf [10:44:45]execute_script done [10:44:45]execute_script returns [10:44:45]free content buf [10:44:45]Sock 7.Close socket [10:44:45]Sock 7.Thread stoped [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:24]accept exits with 9 [10:49:24]New connection [10:49:24]New thread 3067211108 created [10:49:24]Thread 3067354468 joined [10:49:24]Waiting for new connection... [10:49:24] Sock 9.Parse request [10:49:24]Sock 9.Check first char [10:49:24]Sock 9.First char is OK [10:49:24]request: POST /json_proto HTTP/1.0 [10:49:24]Method: POST [10:49:24]URL: /json_proto [10:49:24]Method is POST - this is cgi request [10:49:24]url: /json_proto [10:49:24]query_string will be loaded in cgi processing [10:49:24]execute_cgi json_proto POST (null) [10:49:24]execute_cgi path=json_proto method=POST [10:49:24]POST find Content-Length [10:49:24]Host: 172.17.46.196:8080 [10:49:24]Content-Length: 702 [10:49:24]Content-Type: application/json [10:49:24] [10:49:24]POST finish read [10:49:24]Found Content-Length = 702 [10:49:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190103", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:24]execute_script... [10:49: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)190103", "tax_sys" : 0, "items" : [ { "code": "4870202522701", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 1,2", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:24]POST & json_proto [10:49:24]process_json_proto [10:49:24]json parsed OK: [10:49:24]protocol is kg_v1.0 [10:49:24]action value=close_receipt [10:49:24]process_action close_receipt [10:49:24]cmd_close_receipt [10:49:24]MH_GetDate [10:49:24]Write to MH i2c: F0 00 00 58 14 5B [10:49:24]Write i2c OK [10:49:24]MH_I2C_Read... [10:49:24]Read from MH i2c: F0 [10:49:24]MH_I2C_Read... [10:49:24]Read from MH i2c: F0 09 00 [10:49:24]MH_I2C_Read... [10:49:24]Read from MH i2c: F0 09 00 58 14 00 37 23 C3 66 C4 85 C2 66 58 [10:49:24]GetLastDocTimeStamp 1724064281 [10:49:24]current date 1724064567 [10:49:24]FM_GetShiftState [10:49:24]SAM_PROTO_GetShiftState [10:49:24]wFMCommunicate request_size=4 [10:49:24]MH_SAM_APDU [10:49:24]CAPDU: 80 13 01 00 [10:49:24]Write to MH i2c: E2 08 00 59 14 80 13 01 00 00 00 00 00 EA [10:49:24]Write i2c OK [10:49:24]MH_I2C_Read... [10:49:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:24]Read from MH i2c: E2 [10:49:24]MH_I2C_Read... [10:49:24]Read from MH i2c: E2 0E 00 [10:49:24]MH_I2C_Read... [10:49:24]Read from MH i2c: E2 0E 00 59 14 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A4 [10:49:24]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:49:24]wFMCommunicate OK [10:49:24]SAM_PROTO_GetShiftState done [10:49:24]FM_GetShiftState done [10:49:24]opened in 1724026361 [10:49:24]opened+sec_in_day 1724112761 [10:49:24]quantity*price = 12500 [10:49:24]sum+1 = 12501 [10:49:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 61 19.08.2024 10:49 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49954 ФПД: 230301353225484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T104927&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49954&fm=230301353225484&tin=02508201610067®Number=0000000000092546&sum=12500 0 [10:49:26]StoreToDocumentArchive [10:49:26]shift 467 fd 49954 [10:49:26]save to /storage/0467/doc_00049954 [10:49:26]save last doc name /storage/0467/doc_00049954 to /storage/kkm_last_doc_name [10:49:26]save OK [10:49:26]Clear old archive folders... [10:49:26]ProcessDocumentItem done err = 0, tmpTLVsize=298 [10:49:26]tlvbuf is B6F23380 [10:49:26]SAM_PROTO_ClearQueue [10:49:26]wFMCommunicate request_size=4 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 09 00 00 [10:49:26]Write to MH i2c: E2 08 00 66 14 80 09 00 00 00 00 00 00 EC [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:26]Read from MH i2c: E2 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 66 14 00 90 00 EE [10:49:26]RAPDU: 90 00 [10:49:26]wFMCommunicate OK [10:49:26]SAM_PROTO_ClearQueue done [10:49:26]KKMCreateOFDPacket [10:49:26]OFDProtocolAddRootSTLVToBuf [10:49:26]FM_MakeSignedData [10:49:26]FM_MakeSignedData [10:49:26]SAM_PROTO_SignData [10:49:26]wFMCommunicate request_size=4 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 0D 01 02 [10:49:26]Write to MH i2c: E2 08 00 67 14 80 0D 01 02 00 00 00 00 F4 [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:26]Read from MH i2c: E2 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 67 14 00 90 00 EF [10:49:26]RAPDU: 90 00 [10:49:26]wFMCommunicate OK [10:49:26]wFMCommunicate request_size=255 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 37 23 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [10:49:26]Write to MH i2c: E2 02 01 68 14 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 37 23 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 EC [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:26]Read from MH i2c: E2 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 68 14 00 90 00 F0 [10:49:26]RAPDU: 90 00 [10:49:26]wFMCommunicate OK [10:49:26]wFMCommunicate request_size=57 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 22 C3 00 00 35 04 06 00 D1 75 36 59 AD 0C [10:49:26]Write to MH i2c: E2 3C 00 69 14 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 22 C3 00 00 35 04 06 00 D1 75 36 59 AD 0C 00 00 20 [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:26]Read from MH i2c: E2 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 69 14 00 90 00 F1 [10:49:26]RAPDU: 90 00 [10:49:26]wFMCommunicate OK [10:49:26]wFMCommunicate request_size=4 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 0D 03 02 [10:49:26]Write to MH i2c: E2 08 00 6A 14 80 0D 03 02 00 00 00 00 F9 [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:26]Read from MH i2c: E2 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 0B 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 0B 00 6A 14 00 1A 87 C9 70 24 11 EB 14 90 00 08 [10:49:26]RAPDU: 1A 87 C9 70 24 11 EB 14 90 00 [10:49:26]wFMCommunicate OK [10:49:26]SAM_PROTO_SignData done [10:49:26]FM_MakeSignedData done [10:49:26]CreateOFDProtocolMessage [10:49:26]wFMCommunicate request_size=4 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 11 00 00 [10:49:26]Write to MH i2c: E2 08 00 6B 14 80 11 00 00 00 00 00 00 F9 [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:26]Read from MH i2c: E2 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 17 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 17 00 6B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 44 [10:49:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:49:26]wFMCommunicate OK [10:49:26]CreateOFDProtocolMessage done [10:49:26]OFDSenderStorePacket 49954 [10:49:26]StoreOFDPacket docnum=49954 [10:49:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3E 01 00 00 0B 2D 36 01 2B 3F 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 37 23 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 22 C3 00 00 35 04 06 00 D1 75 36 59 AD 0C 1A 87 C9 70 24 11 EB 14 [10:49:26]CheckFolder [10:49:26]dirname=/storage/ofd_packets [10:49:26]CheckFolder done [10:49:26]ProducePacketName [10:49:26]name=ofd_packets/00049954 [10:49:26]NVStorageSaveData ofd_packets/00049954 [10:49:26]File name is /storage/ofd_packets/00049954 [10:49:26]Write 348 bytes [10:49:26]NVStorageSaveData done [10:49:26]OFDSenderStorePacket done [10:49:26]KKMCreateOFDPacket done [10:49:26]NVStorageSaveData kkm_last_timestamp [10:49:26]File name is /storage/kkm_last_timestamp [10:49:26]Write 4 bytes [10:49:26]NVStorageSaveData done [10:49:26]ExternCall_PrintAddStr [10:49:26]wPrintStart [10:49:26]Write to MH i2c: 01 00 00 6C 14 80 [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: 01 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: 01 07 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: 01 07 00 6C 14 00 00 00 00 00 FF 0F 95 [10:49:26]RasterBufferAndPrint [10:49:26]line Счет N : (3)190103 [10:49:26]line ИНН: 02508201610067 [10:49:26]line Контрольно-Кассовый Чек [10:49:26]line ПРОДАЖА [10:49:26]line Товар: 4870202522701 [10:49:26]line Напиток Maxi Чай черный Малина 1,2 [10:49:26]line 1.000 * 125.00 [10:49:26]line = 125.00 [10:49:26]line НДС 12% НСП 1% [10:49:26]line > о реализуемом товаре [10:49:26]line ИТОГО: 125.00 [10:49:26]line НСП 1% : 1.11 [10:49:26]line НДС 12% : 13.27 [10:49:26]line Наличными: 125.00 [10:49:26]line Безнал.: 0.00 [10:49:26]line Место: АЗС № 95 "Партнер Нефть" [10:49:26]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:49:26]line СНО: Общий режим [10:49:26]line Чек 61 19.08.2024 10:49 [10:49:26]line Смена: 467 ФФД: 1.0 [10:49:26]line ЗНМ: 0300000078 [10:49:26]line РНМ: 0000000000092546 [10:49:26]line Версия ККМ: 001 [10:49:26]line ФМ: 0000000000871800 [10:49:26]line ФД: 49954 [10:49:26]line ФПД: 230301353225484 [10:49:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T104927&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49954&fm=230301353225484&tin=02508201610067®Number=0000000000092546&sum=12500 [10:49:26]line 0 [10:49:26]OFD Sender: Processing packet 49954 [packets to send 21, broken 20] [10:49:26]ProducePacketName [10:49:26]name=ofd_packets/00049954 [10:49:26]OFD Sender: To server: pG, [10:49:26]CommunicateWithHost lk.salyk.kg:30040 [10:49:26]ConnectInit lk.salyk.kg [10:49:26]written 0, free lines is 4095 [10:49:27]Connected sock=10 [10:49:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3E 01 00 00 0B 2D 36 01 2B 3F 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 37 30 31 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 31 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 37 23 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 22 C3 00 00 35 04 06 00 D1 75 36 59 AD 0C 1A 87 C9 70 24 11 EB 14 [10:49:27]Write to MH i2c: 01 00 00 95 14 A9 [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: 01 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: 01 07 00 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: 01 07 00 95 14 00 00 00 00 00 C8 0C 84 [10:49:27]RasterBufferAndPrint [10:49:27]line [10:49:27]line [10:49:27]line [10:49:27]line [10:49:27]line [10:49:27]written 0, free lines is 3277 [10:49:27]MH_Cut [10:49:27]Write to MH i2c: D1 01 00 9C 14 01 82 [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: D1 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: D1 01 00 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: D1 01 00 9C 14 00 81 [10:49:27]Write to MH i2c: 01 00 00 9D 14 B1 [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 77 30 47 00 BD FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 22 C3 00 00 F4 03 04 00 A4 CD C2 66 B6 04 01 00 00 EA DC AA 18 6A 4F 71 49 [10:49:27]CommunicateWithHost err = 0 [10:49:27]CheckOFDResponse [10:49:27]1017 (14) - 77093643461234 [10:49:27]1041 (16) - 0000000000871800 [10:49:27]1040 (4) - 49954 [10:49:27]1012 (4) - 19.08.2024 04:44 [10:49:27]1206 (1) - 0 [10:49:27]OFD Sender: Remove packet 49954 [10:49:27]ProducePacketName [10:49:27]name=ofd_packets/00049954 [10:49:27]NVStorageDeleteData [10:49:28]OFD Sender: No OFD packet to send [10:49:28]*** Cut start [10:49:28]*** Purtial cut [10:49:28]*** Stage 1: CUTSNS_PIN = 1 [10:49:28]Read from MH i2c: 01 [10:49:28]MH_I2C_Read... [10:49:28]*** Stop cut motor [10:49:28]*** Cut end [10:49:28]Read from MH i2c: 01 07 00 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: 01 07 00 9D 14 00 00 00 00 00 FF 0F C6 [10:49:28]process_action close_receipt done [10:49:28]requested_data is exist [10:49:28]produce_requested_data [10:49:28]requested_item fm.sn is exist - process it [10:49:28]wFMCommunicate request_size=4 [10:49:28]MH_SAM_APDU [10:49:28]CAPDU: 80 11 00 00 [10:49:28]Write to MH i2c: E2 08 00 9E 14 80 11 00 00 00 00 00 00 2C [10:49:28]Write i2c OK [10:49:28]MH_I2C_Read... [10:49:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:28]Read from MH i2c: E2 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: E2 17 00 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: E2 17 00 9E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 77 [10:49:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:49:28]wFMCommunicate OK [10:49:28]requested_item fd.num is exist - process it [10:49:28]SAM_PROTO_GetFieldsCounters [10:49:28]wFMCommunicate request_size=4 [10:49:28]MH_SAM_APDU [10:49:28]CAPDU: 80 13 00 00 [10:49:28]Write to MH i2c: E2 08 00 9F 14 80 13 00 00 00 00 00 00 2F [10:49:28]Write i2c OK [10:49:28]MH_I2C_Read... [10:49:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:28]Read from MH i2c: E2 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: E2 62 00 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: E2 62 00 9F 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 22 C3 00 00 0E 04 04 00 D3 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 B9 [10:49:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 22 C3 00 00 0E 04 04 00 D3 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 [10:49:28]wFMCommunicate OK [10:49:28]SAM_PROTO_GetFieldsCounters done [10:49:28]requested_item shift.num is exist - process it [10:49:28]requested_item shift.opened is exist - process it [10:49:28]req_shift_opened [10:49:28]FM_GetShiftState [10:49:28]SAM_PROTO_GetShiftState [10:49:28]wFMCommunicate request_size=4 [10:49:28]MH_SAM_APDU [10:49:28]CAPDU: 80 13 01 00 [10:49:28]Write to MH i2c: E2 08 00 A0 14 80 13 01 00 00 00 00 00 31 [10:49:28]Write i2c OK [10:49:28]MH_I2C_Read... [10:49:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:28]Read from MH i2c: E2 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: E2 0E 00 [10:49:28]MH_I2C_Read... [10:49:28]Read from MH i2c: E2 0E 00 A0 14 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 EB [10:49:28]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:49:28]wFMCommunicate OK [10:49:28]SAM_PROTO_GetShiftState done [10:49:28]FM_GetShiftState done [10:49:28]req_shift_opened done [10:49:28]requested_item shift.open_date is exist - process it [10:49:28]req_shift_open_date [10:49:28]req_shift_open_date done [10:49:28]produce_requested_data done [10:49:28]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49954,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [10:49:28]process_action_free close_receipt [10:49:28]json_value_free [10:49:28]json_value_free done [10:49:28]process_json_proto returns [10:49:28]Send response to host [10:49:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49954,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [10:49:28]free response buf [10:49:28]execute_script done [10:49:28]execute_script returns [10:49:28]free content buf [10:49:28]Sock 9.Close socket [10:49:28]Sock 9.Thread stoped [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:28]accept exits with 7 [10:50:28]New connection [10:50:28]New thread 3067354468 created [10:50:28]Thread 3067211108 joined [10:50:28]Waiting for new connection... [10:50:28] Sock 7.Parse request [10:50:28]Sock 7.Check first char [10:50:28]Sock 7.First char is OK [10:50:28]request: POST /json_proto HTTP/1.0 [10:50:28]Method: POST [10:50:28]URL: /json_proto [10:50:28]Method is POST - this is cgi request [10:50:28]url: /json_proto [10:50:28]query_string will be loaded in cgi processing [10:50:28]execute_cgi json_proto POST (null) [10:50:28]execute_cgi path=json_proto method=POST [10:50:28]POST find Content-Length [10:50:28]Host: 172.17.46.196:8080 [10:50:28]Content-Length: 942 [10:50:28]Content-Type: application/json [10:50:28] [10:50:28]POST finish read [10:50:28]Found Content-Length = 942 [10:50:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190104", "tax_sys" : 0, "items" : [ { "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 178.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:28]execute_script... [10:50:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190104", "tax_sys" : 0, "items" : [ { "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 178.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:28]POST & json_proto [10:50:28]process_json_proto [10:50:28]json parsed OK: [10:50:28]protocol is kg_v1.0 [10:50:28]action value=close_receipt [10:50:28]process_action close_receipt [10:50:28]cmd_close_receipt [10:50:28]MH_GetDate [10:50:28]Write to MH i2c: F0 00 00 A1 14 A4 [10:50:28]Write i2c OK [10:50:28]MH_I2C_Read... [10:50:28]Read from MH i2c: F0 [10:50:28]MH_I2C_Read... [10:50:28]Read from MH i2c: F0 09 00 [10:50:28]MH_I2C_Read... [10:50:28]Read from MH i2c: F0 09 00 A1 14 00 76 23 C3 66 C4 85 C2 66 E0 [10:50:28]GetLastDocTimeStamp 1724064567 [10:50:28]current date 1724064630 [10:50:28]FM_GetShiftState [10:50:28]SAM_PROTO_GetShiftState [10:50:28]wFMCommunicate request_size=4 [10:50:28]MH_SAM_APDU [10:50:28]CAPDU: 80 13 01 00 [10:50:28]Write to MH i2c: E2 08 00 A2 14 80 13 01 00 00 00 00 00 33 [10:50:28]Write i2c OK [10:50:28]MH_I2C_Read... [10:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:28]Read from MH i2c: E2 [10:50:28]MH_I2C_Read... [10:50:28]Read from MH i2c: E2 0E 00 [10:50:28]MH_I2C_Read... [10:50:28]Read from MH i2c: E2 0E 00 A2 14 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 ED [10:50:28]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:50:28]wFMCommunicate OK [10:50:28]SAM_PROTO_GetShiftState done [10:50:28]FM_GetShiftState done [10:50:28]opened in 1724026361 [10:50:28]opened+sec_in_day 1724112761 [10:50:28]quantity*price = 9300 [10:50:28]sum+1 = 9301 [10:50:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 178.00 НСП 1% : 1.57 НДС 12% : 18.91 Наличными: 178.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 62 19.08.2024 10:50 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49955 ФПД: 25438717656105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T105030&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49955&fm=25438717656105&tin=02508201610067®Number=0000000000092546&sum=17800 0 [10:50:29]StoreToDocumentArchive [10:50:29]shift 467 fd 49955 [10:50:29]save to /storage/0467/doc_00049955 [10:50:29]save last doc name /storage/0467/doc_00049955 to /storage/kkm_last_doc_name [10:50:29]save OK [10:50:29]Clear old archive folders... [10:50:29]ProcessDocumentItem done err = 0, tmpTLVsize=412 [10:50:29]tlvbuf is B6F230E0 [10:50:29]SAM_PROTO_ClearQueue [10:50:29]wFMCommunicate request_size=4 [10:50:29]MH_SAM_APDU [10:50:29]CAPDU: 80 09 00 00 [10:50:29]Write to MH i2c: E2 08 00 AF 14 80 09 00 00 00 00 00 00 35 [10:50:29]Write i2c OK [10:50:29]MH_I2C_Read... [10:50:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:29]Read from MH i2c: E2 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 03 00 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 03 00 AF 14 00 90 00 37 [10:50:29]RAPDU: 90 00 [10:50:29]wFMCommunicate OK [10:50:29]SAM_PROTO_ClearQueue done [10:50:29]KKMCreateOFDPacket [10:50:29]OFDProtocolAddRootSTLVToBuf [10:50:29]FM_MakeSignedData [10:50:29]FM_MakeSignedData [10:50:29]SAM_PROTO_SignData [10:50:29]wFMCommunicate request_size=4 [10:50:29]MH_SAM_APDU [10:50:29]CAPDU: 80 0D 01 02 [10:50:29]Write to MH i2c: E2 08 00 B0 14 80 0D 01 02 00 00 00 00 3D [10:50:29]Write i2c OK [10:50:29]MH_I2C_Read... [10:50:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:29]Read from MH i2c: E2 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 03 00 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 03 00 B0 14 00 90 00 38 [10:50:29]RAPDU: 90 00 [10:50:29]wFMCommunicate OK [10:50:29]wFMCommunicate request_size=255 [10:50:29]MH_SAM_APDU [10:50:29]CAPDU: 80 0D 02 02 FA 03 00 9C 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 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 [10:50:29]Write to MH i2c: E2 02 01 B1 14 80 0D 02 02 FA 00 03 00 9C 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 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 00 00 4A [10:50:29]Write i2c OK [10:50:29]MH_I2C_Read... [10:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:29]Read from MH i2c: E2 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 03 00 [10:50:29]MH_I2C_Read... [10:50:29]Read from MH i2c: E2 03 00 B1 14 00 90 00 39 [10:50:29]RAPDU: 90 00 [10:50:29]wFMCommunicate OK [10:50:29]wFMCommunicate request_size=171 [10:50:29]MH_SAM_APDU [10:50:29]CAPDU: 80 0D 02 02 A6 01 FC 03 06 00 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 76 23 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 23 C3 00 00 35 04 06 00 17 22 E9 BA BC 29 [10:50:29]Write to MH i2c: E2 AE 00 B2 14 80 0D 02 02 A6 00 01 FC 03 06 00 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 76 23 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 23 C3 00 00 35 04 06 00 17 22 E9 BA BC 29 00 00 E4 [10:50:29]Write i2c OK [10:50:29]MH_I2C_Read... [10:50:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:30]Read from MH i2c: E2 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: E2 03 00 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: E2 03 00 B2 14 00 90 00 3A [10:50:30]RAPDU: 90 00 [10:50:30]wFMCommunicate OK [10:50:30]wFMCommunicate request_size=4 [10:50:30]MH_SAM_APDU [10:50:30]CAPDU: 80 0D 03 02 [10:50:30]Write to MH i2c: E2 08 00 B3 14 80 0D 03 02 00 00 00 00 42 [10:50:30]Write i2c OK [10:50:30]MH_I2C_Read... [10:50:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:30]Read from MH i2c: E2 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: E2 0B 00 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: E2 0B 00 B3 14 00 46 B6 03 45 91 8D 0C 8F 90 00 40 [10:50:30]RAPDU: 46 B6 03 45 91 8D 0C 8F 90 00 [10:50:30]wFMCommunicate OK [10:50:30]SAM_PROTO_SignData done [10:50:30]FM_MakeSignedData done [10:50:30]CreateOFDProtocolMessage [10:50:30]wFMCommunicate request_size=4 [10:50:30]MH_SAM_APDU [10:50:30]CAPDU: 80 11 00 00 [10:50:30]Write to MH i2c: E2 08 00 B4 14 80 11 00 00 00 00 00 00 42 [10:50:30]Write i2c OK [10:50:30]MH_I2C_Read... [10:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:30]Read from MH i2c: E2 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: E2 17 00 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: E2 17 00 B4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8D [10:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:50:30]wFMCommunicate OK [10:50:30]CreateOFDProtocolMessage done [10:50:30]OFDSenderStorePacket 49955 [10:50:30]StoreOFDPacket docnum=49955 [10:50:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B0 01 00 00 3D 59 A8 01 5D 23 5A 03 01 00 03 00 9C 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 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 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 76 23 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 23 C3 00 00 35 04 06 00 17 22 E9 BA BC 29 46 B6 03 45 91 8D 0C 8F [10:50:30]CheckFolder [10:50:30]dirname=/storage/ofd_packets [10:50:30]CheckFolder done [10:50:30]ProducePacketName [10:50:30]name=ofd_packets/00049955 [10:50:30]NVStorageSaveData ofd_packets/00049955 [10:50:30]File name is /storage/ofd_packets/00049955 [10:50:30]Write 462 bytes [10:50:30]NVStorageSaveData done [10:50:30]OFDSenderStorePacket done [10:50:30]KKMCreateOFDPacket done [10:50:30]NVStorageSaveData kkm_last_timestamp [10:50:30]File name is /storage/kkm_last_timestamp [10:50:30]Write 4 bytes [10:50:30]NVStorageSaveData done [10:50:30]ExternCall_PrintAddStr [10:50:30]wPrintStart [10:50:30]Write to MH i2c: 01 00 00 B5 14 C9 [10:50:30]Write i2c OK [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: 01 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: 01 07 00 [10:50:30]MH_I2C_Read... [10:50:30]Read from MH i2c: 01 07 00 B5 14 00 00 00 00 00 FF 0F DE [10:50:30]RasterBufferAndPrint [10:50:30]line Счет N : (3)190104 [10:50:30]line ИНН: 02508201610067 [10:50:30]line Контрольно-Кассовый Чек [10:50:30]line ПРОДАЖА [10:50:30]line Товар: 4603290004879 [10:50:30]line Печ.сах.FORSITE Сэнд.кокос.вк [10:50:30]line 1.000 * 93.00 [10:50:30]line = 93.00 [10:50:30]line НДС 12% НСП 1% [10:50:30]line > о реализуемом товаре [10:50:30]line Товар: 4600682557456 [10:50:30]line Напиток FLash up energy эн ж/б 0,5/0,45л [10:50:30]line 1.000 * 85.00 [10:50:30]line = 85.00 [10:50:30]line НДС 12% НСП 1% [10:50:30]line > о реализуемом товаре [10:50:30]line ИТОГО: 178.00 [10:50:30]line НСП 1% : 1.57 [10:50:30]line НДС 12% : 18.91 [10:50:30]line Наличными: 178.00 [10:50:30]line Безнал.: 0.00 [10:50:30]line Место: АЗС № 95 "Партнер Нефть" [10:50:30]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:50:30]line СНО: Общий режим [10:50:30]line Чек 62 19.08.2024 10:50 [10:50:30]line Смена: 467 ФФД: 1.0 [10:50:30]line ЗНМ: 0300000078 [10:50:30]line РНМ: 0000000000092546 [10:50:30]line Версия ККМ: 001 [10:50:30]line ФМ: 0000000000871800 [10:50:30]line ФД: 49955 [10:50:30]line ФПД: 25438717656105 [10:50:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T105030&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49955&fm=25438717656105&tin=02508201610067®Number=0000000000092546&sum=17800 [10:50:30]OFD Sender: Processing packet 49955 [packets to send 21, broken 20] [10:50:30]ProducePacketName [10:50:30]name=ofd_packets/00049955 [10:50:30]OFD Sender: To server: pG, [10:50:30]CommunicateWithHost lk.salyk.kg:30040 [10:50:30]ConnectInit lk.salyk.kg [10:50:30]line 0 [10:50:30]written 0, free lines is 4095 [10:50:30]Connected sock=10 [10:50:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B0 01 00 00 3D 59 A8 01 5D 23 5A 03 01 00 03 00 9C 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 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 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 76 23 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 23 C3 00 00 35 04 06 00 17 22 E9 BA BC 29 46 B6 03 45 91 8D 0C 8F [10:50:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 86 E9 47 00 4B 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 23 C3 00 00 F4 03 04 00 E4 CD C2 66 B6 04 01 00 00 49 53 BF 0F E7 61 55 9E [10:50:31]CommunicateWithHost err = 0 [10:50:31]CheckOFDResponse [10:50:31]1017 (14) - 77093643461234 [10:50:31]1041 (16) - 0000000000871800 [10:50:31]1040 (4) - 49955 [10:50:31]1012 (4) - 19.08.2024 04:45 [10:50:31]1206 (1) - 0 [10:50:31]OFD Sender: Remove packet 49955 [10:50:31]ProducePacketName [10:50:31]name=ofd_packets/00049955 [10:50:31]NVStorageDeleteData [10:50:31]Write to MH i2c: 01 00 00 E4 14 F8 [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: 01 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: 01 07 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: 01 07 00 E4 14 00 00 00 00 00 86 0C 91 [10:50:31]RasterBufferAndPrint [10:50:31]line [10:50:31]line [10:50:31]line [10:50:31]line [10:50:31]line [10:50:31]written 0, free lines is 3212 [10:50:31]MH_Cut [10:50:31]Write to MH i2c: D1 01 00 EB 14 01 D1 [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: D1 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: D1 01 00 [10:50:31]MH_I2C_Read... [10:50:31]Read from MH i2c: D1 01 00 EB 14 00 D0 [10:50:31]Write to MH i2c: 01 00 00 EC 14 00 [10:50:31]Write i2c OK [10:50:31]MH_I2C_Read... [10:50:31]OFD Sender: No OFD packet to send [10:50:31]*** Cut start [10:50:31]*** Purtial cut [10:50:31]*** CUTSNS_PIN = 0 [10:50:32]*** Stage 1: CUTSNS_PIN = 1 [10:50:33]Read from MH i2c: 01 [10:50:33]MH_I2C_Read... [10:50:33]*** Stop cut motor [10:50:33]*** Cut end [10:50:33]Read from MH i2c: 01 07 00 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: 01 07 00 EC 14 00 00 00 00 00 FF 0F 15 [10:50:33]process_action close_receipt done [10:50:33]requested_data is exist [10:50:33]produce_requested_data [10:50:33]requested_item fm.sn is exist - process it [10:50:33]wFMCommunicate request_size=4 [10:50:33]MH_SAM_APDU [10:50:33]CAPDU: 80 11 00 00 [10:50:33]Write to MH i2c: E2 08 00 ED 14 80 11 00 00 00 00 00 00 7B [10:50:33]Write i2c OK [10:50:33]MH_I2C_Read... [10:50:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:33]Read from MH i2c: E2 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 17 00 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 17 00 ED 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C6 [10:50:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:50:33]wFMCommunicate OK [10:50:33]requested_item fd.num is exist - process it [10:50:33]SAM_PROTO_GetFieldsCounters [10:50:33]wFMCommunicate request_size=4 [10:50:33]MH_SAM_APDU [10:50:33]CAPDU: 80 13 00 00 [10:50:33]Write to MH i2c: E2 08 00 EE 14 80 13 00 00 00 00 00 00 7E [10:50:33]Write i2c OK [10:50:33]MH_I2C_Read... [10:50:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:34]Read from MH i2c: E2 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: E2 62 00 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: E2 62 00 EE 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 23 C3 00 00 0E 04 04 00 D3 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 0C [10:50:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 23 C3 00 00 0E 04 04 00 D3 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 [10:50:34]wFMCommunicate OK [10:50:34]SAM_PROTO_GetFieldsCounters done [10:50:34]requested_item shift.num is exist - process it [10:50:34]requested_item shift.opened is exist - process it [10:50:34]req_shift_opened [10:50:34]FM_GetShiftState [10:50:34]SAM_PROTO_GetShiftState [10:50:34]wFMCommunicate request_size=4 [10:50:34]MH_SAM_APDU [10:50:34]CAPDU: 80 13 01 00 [10:50:34]Write to MH i2c: E2 08 00 EF 14 80 13 01 00 00 00 00 00 80 [10:50:34]Write i2c OK [10:50:34]MH_I2C_Read... [10:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:34]Read from MH i2c: E2 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: E2 0E 00 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: E2 0E 00 EF 14 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 3A [10:50:34]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:50:34]wFMCommunicate OK [10:50:34]SAM_PROTO_GetShiftState done [10:50:34]FM_GetShiftState done [10:50:34]req_shift_opened done [10:50:34]requested_item shift.open_date is exist - process it [10:50:34]req_shift_open_date [10:50:34]req_shift_open_date done [10:50:34]produce_requested_data done [10:50:34]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49955,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [10:50:34]process_action_free close_receipt [10:50:34]json_value_free [10:50:34]json_value_free done [10:50:34]process_json_proto returns [10:50:34]Send response to host [10:50:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49955,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [10:50:34]free response buf [10:50:34]execute_script done [10:50:34]execute_script returns [10:50:34]free content buf [10:50:34]Sock 7.Close socket [10:50:34]Sock 7.Thread stoped [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:25]accept exits with 9 [10:52:25]New connection [10:52:25]New thread 3067211108 created [10:52:25]Thread 3067354468 joined [10:52:25]Waiting for new connection... [10:52:25] Sock 9.Parse request [10:52:25]Sock 9.Check first char [10:52:25]Sock 9.First char is OK [10:52:25]request: POST /json_proto HTTP/1.0 [10:52:25]Method: POST [10:52:25]URL: /json_proto [10:52:25]Method is POST - this is cgi request [10:52:25]url: /json_proto [10:52:25]query_string will be loaded in cgi processing [10:52:25]execute_cgi json_proto POST (null) [10:52:25]execute_cgi path=json_proto method=POST [10:52:25]POST find Content-Length [10:52:25]Host: 172.17.46.196:8080 [10:52:25]Content-Length: 689 [10:52:25]Content-Type: application/json [10:52:25] [10:52:25]POST finish read [10:52:25]Found Content-Length = 689 [10:52:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190105", "tax_sys" : 0, "items" : [ { "code": "4603290004824", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u0441\u043B\u0438\u0432 \u041A\u0440\u0435\u043C 182\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 81.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:25]execute_script... [10:52: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)190105", "tax_sys" : 0, "items" : [ { "code": "4603290004824", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u0441\u043B\u0438\u0432 \u041A\u0440\u0435\u043C 182\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 81.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:25]POST & json_proto [10:52:25]process_json_proto [10:52:25]json parsed OK: [10:52:25]protocol is kg_v1.0 [10:52:25]action value=close_receipt [10:52:25]process_action close_receipt [10:52:25]cmd_close_receipt [10:52:25]MH_GetDate [10:52:25]Write to MH i2c: F0 00 00 F0 14 F3 [10:52:25]Write i2c OK [10:52:25]MH_I2C_Read... [10:52:25]Read from MH i2c: F0 [10:52:25]MH_I2C_Read... [10:52:25]Read from MH i2c: F0 09 00 [10:52:25]MH_I2C_Read... [10:52:25]Read from MH i2c: F0 09 00 F0 14 00 EC 23 C3 66 C4 85 C2 66 A5 [10:52:25]GetLastDocTimeStamp 1724064630 [10:52:25]current date 1724064748 [10:52:25]FM_GetShiftState [10:52:25]SAM_PROTO_GetShiftState [10:52:25]wFMCommunicate request_size=4 [10:52:25]MH_SAM_APDU [10:52:25]CAPDU: 80 13 01 00 [10:52:25]Write to MH i2c: E2 08 00 F1 14 80 13 01 00 00 00 00 00 82 [10:52:25]Write i2c OK [10:52:25]MH_I2C_Read... [10:52:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:26]Read from MH i2c: E2 [10:52:26]MH_I2C_Read... [10:52:26]Read from MH i2c: E2 0E 00 [10:52:26]MH_I2C_Read... [10:52:26]Read from MH i2c: E2 0E 00 F1 14 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 3C [10:52:26]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:52:26]wFMCommunicate OK [10:52:26]SAM_PROTO_GetShiftState done [10:52:26]FM_GetShiftState done [10:52:26]opened in 1724026361 [10:52:26]opened+sec_in_day 1724112761 [10:52:26]quantity*price = 8100 [10:52:26]sum+1 = 8101 [10:52:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 81.00 НСП 1% : 0.72 НДС 12% : 8.60 Наличными: 81.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 63 19.08.2024 10:52 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49956 ФПД: 281384795754499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T105228&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49956&fm=281384795754499&tin=02508201610067®Number=0000000000092546&sum=8100 0 [10:52:27]StoreToDocumentArchive [10:52:27]shift 467 fd 49956 [10:52:27]save to /storage/0467/doc_00049956 [10:52:27]save last doc name /storage/0467/doc_00049956 to /storage/kkm_last_doc_name [10:52:27]save OK [10:52:27]Clear old archive folders... [10:52:27]ProcessDocumentItem done err = 0, tmpTLVsize=292 [10:52:27]tlvbuf is 00FA0C10 [10:52:27]SAM_PROTO_ClearQueue [10:52:27]wFMCommunicate request_size=4 [10:52:27]MH_SAM_APDU [10:52:27]CAPDU: 80 09 00 00 [10:52:27]Write to MH i2c: E2 08 00 FE 14 80 09 00 00 00 00 00 00 84 [10:52:27]Write i2c OK [10:52:27]MH_I2C_Read... [10:52:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:27]Read from MH i2c: E2 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 03 00 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 03 00 FE 14 00 90 00 86 [10:52:27]RAPDU: 90 00 [10:52:27]wFMCommunicate OK [10:52:27]SAM_PROTO_ClearQueue done [10:52:27]KKMCreateOFDPacket [10:52:27]OFDProtocolAddRootSTLVToBuf [10:52:27]FM_MakeSignedData [10:52:27]FM_MakeSignedData [10:52:27]SAM_PROTO_SignData [10:52:27]wFMCommunicate request_size=4 [10:52:27]MH_SAM_APDU [10:52:27]CAPDU: 80 0D 01 02 [10:52:27]Write to MH i2c: E2 08 00 FF 14 80 0D 01 02 00 00 00 00 8C [10:52:27]Write i2c OK [10:52:27]MH_I2C_Read... [10:52:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:27]Read from MH i2c: E2 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 03 00 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 03 00 FF 14 00 90 00 87 [10:52:27]RAPDU: 90 00 [10:52:27]wFMCommunicate OK [10:52:27]wFMCommunicate request_size=255 [10:52:27]MH_SAM_APDU [10:52: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 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 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 3F 00 00 00 F4 03 04 00 EC 23 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [10:52:27]Write to MH i2c: E2 02 01 00 15 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 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 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 3F 00 00 00 F4 03 04 00 EC 23 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 0F [10:52:27]Write i2c OK [10:52:27]MH_I2C_Read... [10:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:27]Read from MH i2c: E2 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 03 00 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 03 00 00 15 00 90 00 89 [10:52:27]RAPDU: 90 00 [10:52:27]wFMCommunicate OK [10:52:27]wFMCommunicate request_size=51 [10:52:27]MH_SAM_APDU [10:52:27]CAPDU: 80 0D 02 02 2E 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 24 C3 00 00 35 04 06 00 FF EB 00 CB D0 03 [10:52:27]Write to MH i2c: E2 36 00 01 15 80 0D 02 02 2E 00 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 24 C3 00 00 35 04 06 00 FF EB 00 CB D0 03 00 00 89 [10:52:27]Write i2c OK [10:52:27]MH_I2C_Read... [10:52:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:27]Read from MH i2c: E2 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 03 00 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 03 00 01 15 00 90 00 8A [10:52:27]RAPDU: 90 00 [10:52:27]wFMCommunicate OK [10:52:27]wFMCommunicate request_size=4 [10:52:27]MH_SAM_APDU [10:52:27]CAPDU: 80 0D 03 02 [10:52:27]Write to MH i2c: E2 08 00 02 15 80 0D 03 02 00 00 00 00 92 [10:52:27]Write i2c OK [10:52:27]MH_I2C_Read... [10:52:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:27]Read from MH i2c: E2 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 0B 00 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 0B 00 02 15 00 97 CB 27 C8 39 31 B9 80 90 00 87 [10:52:27]RAPDU: 97 CB 27 C8 39 31 B9 80 90 00 [10:52:27]wFMCommunicate OK [10:52:27]SAM_PROTO_SignData done [10:52:27]FM_MakeSignedData done [10:52:27]CreateOFDProtocolMessage [10:52:27]wFMCommunicate request_size=4 [10:52:27]MH_SAM_APDU [10:52:27]CAPDU: 80 11 00 00 [10:52:27]Write to MH i2c: E2 08 00 03 15 80 11 00 00 00 00 00 00 92 [10:52:27]Write i2c OK [10:52:27]MH_I2C_Read... [10:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:27]Read from MH i2c: E2 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 17 00 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: E2 17 00 03 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DD [10:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:52:27]wFMCommunicate OK [10:52:27]CreateOFDProtocolMessage done [10:52:27]OFDSenderStorePacket 49956 [10:52:27]StoreOFDPacket docnum=49956 [10:52:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 38 01 00 00 54 60 30 01 A0 96 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 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 3F 00 00 00 F4 03 04 00 EC 23 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 24 C3 00 00 35 04 06 00 FF EB 00 CB D0 03 97 CB 27 C8 39 31 B9 80 [10:52:27]CheckFolder [10:52:27]dirname=/storage/ofd_packets [10:52:27]CheckFolder done [10:52:27]ProducePacketName [10:52:27]name=ofd_packets/00049956 [10:52:27]NVStorageSaveData ofd_packets/00049956 [10:52:27]File name is /storage/ofd_packets/00049956 [10:52:27]Write 342 bytes [10:52:27]NVStorageSaveData done [10:52:27]OFDSenderStorePacket done [10:52:27]KKMCreateOFDPacket done [10:52:27]NVStorageSaveData kkm_last_timestamp [10:52:27]File name is /storage/kkm_last_timestamp [10:52:27]Write 4 bytes [10:52:27]NVStorageSaveData done [10:52:27]ExternCall_PrintAddStr [10:52:27]wPrintStart [10:52:27]Write to MH i2c: 01 00 00 04 15 19 [10:52:27]Write i2c OK [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: 01 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: 01 07 00 [10:52:27]MH_I2C_Read... [10:52:27]Read from MH i2c: 01 07 00 04 15 00 00 00 00 00 FF 0F 2E [10:52:27]RasterBufferAndPrint [10:52:27]line Счет N : (3)190105 [10:52:27]line ИНН: 02508201610067 [10:52:27]line Контрольно-Кассовый Чек [10:52:27]line ПРОДАЖА [10:52:27]line Товар: 4603290004824 [10:52:27]line Печ зат Яшкино слив Крем 182г [10:52:27]line 1.000 * 81.00 [10:52:27]line = 81.00 [10:52:27]line НДС 12% НСП 1% [10:52:27]line > о реализуемом товаре [10:52:27]line ИТОГО: 81.00 [10:52:27]line НСП 1% : 0.72 [10:52:27]line НДС 12% : 8.60 [10:52:27]line Наличными: 81.00 [10:52:27]line Безнал.: 0.00 [10:52:27]line Место: АЗС № 95 "Партнер Нефть" [10:52:27]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:52:27]line СНО: Общий режим [10:52:27]line Чек 63 19.08.2024 10:52 [10:52:27]line Смена: 467 ФФД: 1.0 [10:52:27]line ЗНМ: 0300000078 [10:52:27]line РНМ: 0000000000092546 [10:52:27]line Версия ККМ: 001 [10:52:27]line ФМ: 0000000000871800 [10:52:27]line ФД: 49956 [10:52:27]line ФПД: 281384795754499 [10:52:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T105228&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49956&fm=281384795754499&tin=02508201610067®Number=0000000000092546&sum=8100 [10:52:28]line 0 [10:52:28]OFD Sender: Processing packet 49956 [packets to send 21, broken 20] [10:52:28]ProducePacketName [10:52:28]name=ofd_packets/00049956 [10:52:28]OFD Sender: To server: pG, [10:52:28]CommunicateWithHost lk.salyk.kg:30040 [10:52:28]ConnectInit lk.salyk.kg [10:52:28]written 0, free lines is 4095 [10:52:28]Connected sock=10 [10:52:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 38 01 00 00 54 60 30 01 A0 96 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 32 34 06 04 32 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 D0 BB D0 B8 D0 B2 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 03 00 00 00 00 07 04 06 00 A4 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 3F 00 00 00 F4 03 04 00 EC 23 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 24 C3 00 00 35 04 06 00 FF EB 00 CB D0 03 97 CB 27 C8 39 31 B9 80 [10:52:28]Write to MH i2c: 01 00 00 2D 15 42 [10:52:28]Write i2c OK [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: 01 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: 01 07 00 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: 01 07 00 2D 15 00 00 00 00 00 DC 0C 31 [10:52:28]RasterBufferAndPrint [10:52:28]line [10:52:28]line [10:52:28]line [10:52:28]line [10:52:28]line [10:52:28]written 0, free lines is 3300 [10:52:28]MH_Cut [10:52:28]Write to MH i2c: D1 01 00 34 15 01 1B [10:52:28]Write i2c OK [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: D1 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: D1 01 00 [10:52:28]MH_I2C_Read... [10:52:28]Read from MH i2c: D1 01 00 34 15 00 1A [10:52:28]Write to MH i2c: 01 00 00 35 15 4A [10:52:28]Write i2c OK [10:52:28]MH_I2C_Read... [10:52:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 4F 4F 47 00 EE 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 24 C3 00 00 F4 03 04 00 59 CE C2 66 B6 04 01 00 00 C3 48 B9 E9 84 A9 67 0D [10:52:28]CommunicateWithHost err = 0 [10:52:28]CheckOFDResponse [10:52:28]1017 (14) - 77093643461234 [10:52:28]1041 (16) - 0000000000871800 [10:52:28]1040 (4) - 49956 [10:52:28]1012 (4) - 19.08.2024 04:47 [10:52:28]1206 (1) - 0 [10:52:28]OFD Sender: Remove packet 49956 [10:52:28]ProducePacketName [10:52:28]name=ofd_packets/00049956 [10:52:28]NVStorageDeleteData [10:52:29]OFD Sender: No OFD packet to send [10:52:29]*** Cut start [10:52:29]*** Purtial cut [10:52:29]*** Stage 1: CUTSNS_PIN = 1 [10:52:29]Read from MH i2c: 01 [10:52:29]MH_I2C_Read... [10:52:29]*** Stop cut motor [10:52:29]*** Cut end [10:52:29]Read from MH i2c: 01 07 00 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: 01 07 00 35 15 00 00 00 00 00 FF 0F 5F [10:52:29]process_action close_receipt done [10:52:29]requested_data is exist [10:52:29]produce_requested_data [10:52:29]requested_item fm.sn is exist - process it [10:52:29]wFMCommunicate request_size=4 [10:52:29]MH_SAM_APDU [10:52:29]CAPDU: 80 11 00 00 [10:52:29]Write to MH i2c: E2 08 00 36 15 80 11 00 00 00 00 00 00 C5 [10:52:29]Write i2c OK [10:52:29]MH_I2C_Read... [10:52:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:29]Read from MH i2c: E2 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 17 00 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 17 00 36 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 10 [10:52:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:52:29]wFMCommunicate OK [10:52:29]requested_item fd.num is exist - process it [10:52:29]SAM_PROTO_GetFieldsCounters [10:52:29]wFMCommunicate request_size=4 [10:52:29]MH_SAM_APDU [10:52:29]CAPDU: 80 13 00 00 [10:52:29]Write to MH i2c: E2 08 00 37 15 80 13 00 00 00 00 00 00 C8 [10:52:29]Write i2c OK [10:52:29]MH_I2C_Read... [10:52:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:29]Read from MH i2c: E2 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 62 00 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 62 00 37 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 24 C3 00 00 0E 04 04 00 D3 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 5A [10:52:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 24 C3 00 00 0E 04 04 00 D3 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 [10:52:29]wFMCommunicate OK [10:52:29]SAM_PROTO_GetFieldsCounters done [10:52:29]requested_item shift.num is exist - process it [10:52:29]requested_item shift.opened is exist - process it [10:52:29]req_shift_opened [10:52:29]FM_GetShiftState [10:52:29]SAM_PROTO_GetShiftState [10:52:29]wFMCommunicate request_size=4 [10:52:29]MH_SAM_APDU [10:52:29]CAPDU: 80 13 01 00 [10:52:29]Write to MH i2c: E2 08 00 38 15 80 13 01 00 00 00 00 00 CA [10:52:29]Write i2c OK [10:52:29]MH_I2C_Read... [10:52:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:29]Read from MH i2c: E2 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 0E 00 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 0E 00 38 15 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 84 [10:52:29]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [10:52:29]wFMCommunicate OK [10:52:29]SAM_PROTO_GetShiftState done [10:52:29]FM_GetShiftState done [10:52:29]req_shift_opened done [10:52:29]requested_item shift.open_date is exist - process it [10:52:29]req_shift_open_date [10:52:29]req_shift_open_date done [10:52:29]produce_requested_data done [10:52:29]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49956,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [10:52:29]process_action_free close_receipt [10:52:29]json_value_free [10:52:29]json_value_free done [10:52:29]process_json_proto returns [10:52:29]Send response to host [10:52:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49956,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [10:52:29]free response buf [10:52:29]execute_script done [10:52:29]execute_script returns [10:52:29]free content buf [10:52:29]Sock 9.Close socket [10:52:29]Sock 9.Thread stoped [10:52:34]OFD Sender: No OFD packet to send [10:52:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [10:52:49]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:24]OFD Sender: No OFD packet to send [10:53:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]accept exits with 7 [11:00:24]New connection [11:00:24]New thread 3067354468 created [11:00:24]Thread 3067211108 joined [11:00:24]Waiting for new connection... [11:00:24] Sock 7.Parse request [11:00:24]Sock 7.Check first char [11:00:24]Sock 7.First char is OK [11:00:24]request: POST /json_proto HTTP/1.0 [11:00:24]Method: POST [11:00:24]URL: /json_proto [11:00:24]Method is POST - this is cgi request [11:00:24]url: /json_proto [11:00:24]query_string will be loaded in cgi processing [11:00:24]execute_cgi json_proto POST (null) [11:00:24]execute_cgi path=json_proto method=POST [11:00:24]POST find Content-Length [11:00:24]Host: 172.17.46.196:8080 [11:00:24]Content-Length: 621 [11:00:24]Content-Type: application/json [11:00:24] [11:00:24]POST finish read [11:00:24]Found Content-Length = 621 [11:00:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190106", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:24]execute_script... [11:00: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)190106", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:24]POST & json_proto [11:00:24]process_json_proto [11:00:24]json parsed OK: [11:00:24]protocol is kg_v1.0 [11:00:24]action value=close_receipt [11:00:24]process_action close_receipt [11:00:24]cmd_close_receipt [11:00:24]MH_GetDate [11:00:24]Write to MH i2c: F0 00 00 39 15 3D [11:00:24]Write i2c OK [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: F0 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: F0 09 00 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: F0 09 00 39 15 00 CA 25 C3 66 C4 85 C2 66 CF [11:00:24]GetLastDocTimeStamp 1724064748 [11:00:24]current date 1724065226 [11:00:24]FM_GetShiftState [11:00:24]SAM_PROTO_GetShiftState [11:00:24]wFMCommunicate request_size=4 [11:00:24]MH_SAM_APDU [11:00:24]CAPDU: 80 13 01 00 [11:00:24]Write to MH i2c: E2 08 00 3A 15 80 13 01 00 00 00 00 00 CC [11:00:24]Write i2c OK [11:00:24]MH_I2C_Read... [11:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:24]Read from MH i2c: E2 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: E2 0E 00 [11:00:24]MH_I2C_Read... [11:00:24]Read from MH i2c: E2 0E 00 3A 15 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 86 [11:00:24]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:00:24]wFMCommunicate OK [11:00:24]SAM_PROTO_GetShiftState done [11:00:24]FM_GetShiftState done [11:00:24]opened in 1724026361 [11:00:24]opened+sec_in_day 1724112761 [11:00:24]quantity*price = 14000 [11:00:24]sum+1 = 14001 [11:00:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 64 19.08.2024 11:00 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49957 ФПД: 140386408634671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T110026&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49957&fm=140386408634671&tin=02508201610067®Number=0000000000092546&sum=14000 0 [11:00:25]StoreToDocumentArchive [11:00:25]shift 467 fd 49957 [11:00:25]save to /storage/0467/doc_00049957 [11:00:25]save last doc name /storage/0467/doc_00049957 to /storage/kkm_last_doc_name [11:00:25]save OK [11:00:25]Clear old archive folders... [11:00:25]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:00:25]tlvbuf is 00FA0C10 [11:00:25]SAM_PROTO_ClearQueue [11:00:25]wFMCommunicate request_size=4 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 09 00 00 [11:00:25]Write to MH i2c: E2 08 00 47 15 80 09 00 00 00 00 00 00 CE [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 03 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 03 00 47 15 00 90 00 D0 [11:00:25]RAPDU: 90 00 [11:00:25]wFMCommunicate OK [11:00:25]SAM_PROTO_ClearQueue done [11:00:25]KKMCreateOFDPacket [11:00:25]OFDProtocolAddRootSTLVToBuf [11:00:25]FM_MakeSignedData [11:00:25]FM_MakeSignedData [11:00:25]SAM_PROTO_SignData [11:00:25]wFMCommunicate request_size=4 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 0D 01 02 [11:00:25]Write to MH i2c: E2 08 00 48 15 80 0D 01 02 00 00 00 00 D6 [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 03 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 03 00 48 15 00 90 00 D1 [11:00:25]RAPDU: 90 00 [11:00:25]wFMCommunicate OK [11:00:25]wFMCommunicate request_size=255 [11:00:25]MH_SAM_APDU [11:00: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 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CA 25 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [11:00:25]Write to MH i2c: E2 02 01 49 15 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CA 25 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 F8 [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 03 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 03 00 49 15 00 90 00 D2 [11:00:25]RAPDU: 90 00 [11:00:25]wFMCommunicate OK [11:00:25]wFMCommunicate request_size=32 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 25 C3 00 00 35 04 06 00 7F AE 42 04 99 2F [11:00:25]Write to MH i2c: E2 23 00 4A 15 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 25 C3 00 00 35 04 06 00 7F AE 42 04 99 2F 00 00 51 [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 03 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 03 00 4A 15 00 90 00 D3 [11:00:25]RAPDU: 90 00 [11:00:25]wFMCommunicate OK [11:00:25]wFMCommunicate request_size=4 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 0D 03 02 [11:00:25]Write to MH i2c: E2 08 00 4B 15 80 0D 03 02 00 00 00 00 DB [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 0B 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 0B 00 4B 15 00 33 8D C2 0E 14 02 B8 C4 90 00 FE [11:00:25]RAPDU: 33 8D C2 0E 14 02 B8 C4 90 00 [11:00:26]wFMCommunicate OK [11:00:26]SAM_PROTO_SignData done [11:00:26]FM_MakeSignedData done [11:00:26]CreateOFDProtocolMessage [11:00:26]wFMCommunicate request_size=4 [11:00:26]MH_SAM_APDU [11:00:26]CAPDU: 80 11 00 00 [11:00:26]Write to MH i2c: E2 08 00 4C 15 80 11 00 00 00 00 00 00 DB [11:00:26]Write i2c OK [11:00:26]MH_I2C_Read... [11:00:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:26]Read from MH i2c: E2 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 17 00 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: E2 17 00 4C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 26 [11:00:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:00:26]wFMCommunicate OK [11:00:26]CreateOFDProtocolMessage done [11:00:26]OFDSenderStorePacket 49957 [11:00:26]StoreOFDPacket docnum=49957 [11:00:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 8E 80 1D 01 CD 52 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CA 25 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 25 C3 00 00 35 04 06 00 7F AE 42 04 99 2F 33 8D C2 0E 14 02 B8 C4 [11:00:26]CheckFolder [11:00:26]dirname=/storage/ofd_packets [11:00:26]CheckFolder done [11:00:26]ProducePacketName [11:00:26]name=ofd_packets/00049957 [11:00:26]NVStorageSaveData ofd_packets/00049957 [11:00:26]File name is /storage/ofd_packets/00049957 [11:00:26]Write 323 bytes [11:00:26]NVStorageSaveData done [11:00:26]OFDSenderStorePacket done [11:00:26]KKMCreateOFDPacket done [11:00:26]NVStorageSaveData kkm_last_timestamp [11:00:26]File name is /storage/kkm_last_timestamp [11:00:26]Write 4 bytes [11:00:26]NVStorageSaveData done [11:00:26]ExternCall_PrintAddStr [11:00:26]wPrintStart [11:00:26]Write to MH i2c: 01 00 00 4D 15 62 [11:00:26]Write i2c OK [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: 01 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: 01 07 00 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: 01 07 00 4D 15 00 00 00 00 00 FF 0F 77 [11:00:26]RasterBufferAndPrint [11:00:26]line Счет N : (3)190106 [11:00:26]line ИНН: 02508201610067 [11:00:26]line Контрольно-Кассовый Чек [11:00:26]line ПРОДАЖА [11:00:26]line Товар: 48743570 [11:00:26]line Сигареты Winston XStyle Blue [11:00:26]line 1.000 * 140.00 [11:00:26]line = 140.00 [11:00:26]line НДС 12% НСП 1% [11:00:26]line > о реализуемом товаре [11:00:26]line ИТОГО: 140.00 [11:00:26]line НСП 1% : 1.24 [11:00:26]line НДС 12% : 14.87 [11:00:26]line Наличными: 140.00 [11:00:26]line Безнал.: 0.00 [11:00:26]line Место: АЗС № 95 "Партнер Нефть" [11:00:26]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:00:26]line СНО: Общий режим [11:00:26]line Чек 64 19.08.2024 11:00 [11:00:26]line Смена: 467 ФФД: 1.0 [11:00:26]line ЗНМ: 0300000078 [11:00:26]line РНМ: 0000000000092546 [11:00:26]line Версия ККМ: 001 [11:00:26]line ФМ: 0000000000871800 [11:00:26]line ФД: 49957 [11:00:26]line ФПД: 140386408634671 [11:00:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T110026&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49957&fm=140386408634671&tin=02508201610067®Number=0000000000092546&sum=14000 [11:00:26]OFD Sender: Processing packet 49957 [packets to send 21, broken 20] [11:00:26]ProducePacketName [11:00:26]name=ofd_packets/00049957 [11:00:26]OFD Sender: To server: pG, [11:00:26]CommunicateWithHost lk.salyk.kg:30040 [11:00:26]ConnectInit lk.salyk.kg [11:00:26]line 0 [11:00:26]written 0, free lines is 4095 [11:00:26]Connected sock=10 [11:00:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 8E 80 1D 01 CD 52 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 CA 25 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 25 C3 00 00 35 04 06 00 7F AE 42 04 99 2F 33 8D C2 0E 14 02 B8 C4 [11:00:26]Write to MH i2c: 01 00 00 75 15 8A [11:00:26]Write i2c OK [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: 01 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: 01 07 00 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: 01 07 00 75 15 00 00 00 00 00 E4 0C 81 [11:00:26]RasterBufferAndPrint [11:00:26]line [11:00:26]line [11:00:26]line [11:00:26]line [11:00:26]line [11:00:26]written 0, free lines is 3306 [11:00:26]MH_Cut [11:00:26]Write to MH i2c: D1 01 00 7C 15 01 63 [11:00:26]Write i2c OK [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: D1 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: D1 01 00 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: D1 01 00 7C 15 00 62 [11:00:26]Write to MH i2c: 01 00 00 7D 15 92 [11:00:26]Write i2c OK [11:00:26]MH_I2C_Read... [11:00:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 6A A3 47 00 2D A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 25 C3 00 00 F4 03 04 00 38 D0 C2 66 B6 04 01 00 00 AC 95 B5 26 AC 45 C5 9E [11:00:27]CommunicateWithHost err = 0 [11:00:27]CheckOFDResponse [11:00:27]1017 (14) - 77093643461234 [11:00:27]1041 (16) - 0000000000871800 [11:00:27]1040 (4) - 49957 [11:00:27]1012 (4) - 19.08.2024 04:55 [11:00:27]1206 (1) - 0 [11:00:27]OFD Sender: Remove packet 49957 [11:00:27]ProducePacketName [11:00:27]name=ofd_packets/00049957 [11:00:27]NVStorageDeleteData [11:00:27]OFD Sender: No OFD packet to send [11:00:27]*** Cut start [11:00:27]*** Purtial cut [11:00:27]*** CUTSNS_PIN = 0 [11:00:27]*** Stage 1: CUTSNS_PIN = 1 [11:00:29]Read from MH i2c: 01 [11:00:29]MH_I2C_Read... [11:00:29]*** Stop cut motor [11:00:29]*** Cut end [11:00:29]Read from MH i2c: 01 07 00 [11:00:29]MH_I2C_Read... [11:00:29]Read from MH i2c: 01 07 00 7D 15 00 00 00 00 00 FF 0F A7 [11:00:29]process_action close_receipt done [11:00:29]requested_data is exist [11:00:29]produce_requested_data [11:00:29]requested_item fm.sn is exist - process it [11:00:29]wFMCommunicate request_size=4 [11:00:29]MH_SAM_APDU [11:00:29]CAPDU: 80 11 00 00 [11:00:29]Write to MH i2c: E2 08 00 7E 15 80 11 00 00 00 00 00 00 0D [11:00:29]Write i2c OK [11:00:29]MH_I2C_Read... [11:00:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:29]Read from MH i2c: E2 [11:00:29]MH_I2C_Read... [11:00:29]Read from MH i2c: E2 17 00 [11:00:29]MH_I2C_Read... [11:00:29]Read from MH i2c: E2 17 00 7E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 58 [11:00:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:00:29]wFMCommunicate OK [11:00:29]requested_item fd.num is exist - process it [11:00:29]SAM_PROTO_GetFieldsCounters [11:00:29]wFMCommunicate request_size=4 [11:00:29]MH_SAM_APDU [11:00:29]CAPDU: 80 13 00 00 [11:00:29]Write to MH i2c: E2 08 00 7F 15 80 13 00 00 00 00 00 00 10 [11:00:29]Write i2c OK [11:00:29]MH_I2C_Read... [11:00:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:29]Read from MH i2c: E2 [11:00:29]MH_I2C_Read... [11:00:29]Read from MH i2c: E2 62 00 [11:00:29]MH_I2C_Read... [11:00:29]Read from MH i2c: E2 62 00 7F 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 25 C3 00 00 0E 04 04 00 D3 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 A6 [11:00:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 25 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:29]wFMCommunicate OK [11:00:29]SAM_PROTO_GetFieldsCounters done [11:00:29]requested_item shift.num is exist - process it [11:00:29]requested_item shift.opened is exist - process it [11:00:29]req_shift_opened [11:00:29]FM_GetShiftState [11:00:29]SAM_PROTO_GetShiftState [11:00:29]wFMCommunicate request_size=4 [11:00:29]MH_SAM_APDU [11:00:29]CAPDU: 80 13 01 00 [11:00:29]Write to MH i2c: E2 08 00 80 15 80 13 01 00 00 00 00 00 12 [11:00:29]Write i2c OK [11:00:29]MH_I2C_Read... [11:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:29]Read from MH i2c: E2 [11:00:29]MH_I2C_Read... [11:00:29]Read from MH i2c: E2 0E 00 [11:00:29]MH_I2C_Read... [11:00:29]Read from MH i2c: E2 0E 00 80 15 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 CC [11:00:29]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:00:29]wFMCommunicate OK [11:00:29]SAM_PROTO_GetShiftState done [11:00:29]FM_GetShiftState done [11:00:29]req_shift_opened done [11:00:29]requested_item shift.open_date is exist - process it [11:00:29]req_shift_open_date [11:00:29]req_shift_open_date done [11:00:29]produce_requested_data done [11:00:29]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49957,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [11:00:29]process_action_free close_receipt [11:00:29]json_value_free [11:00:29]json_value_free done [11:00:29]process_json_proto returns [11:00:29]Send response to host [11:00:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49957,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [11:00:29]free response buf [11:00:29]execute_script done [11:00:29]execute_script returns [11:00:29]free content buf [11:00:29]Sock 7.Close socket [11:00:29]Sock 7.Thread stoped [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:03]accept exits with 9 [11:02:03]New connection [11:02:03]New thread 3067211108 created [11:02:03]Thread 3067354468 joined [11:02:03]Waiting for new connection... [11:02:03] Sock 9.Parse request [11:02:03]Sock 9.Check first char [11:02:03]Sock 9.First char is OK [11:02:03]request: POST /json_proto HTTP/1.0 [11:02:03]Method: POST [11:02:03]URL: /json_proto [11:02:03]Method is POST - this is cgi request [11:02:03]url: /json_proto [11:02:03]query_string will be loaded in cgi processing [11:02:03]execute_cgi json_proto POST (null) [11:02:03]execute_cgi path=json_proto method=POST [11:02:03]POST find Content-Length [11:02:03]Host: 172.17.46.196:8080 [11:02:03]Content-Length: 756 [11:02:03]Content-Type: application/json [11:02:03] [11:02:03]POST finish read [11:02:03]Found Content-Length = 756 [11:02:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30076840", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:03]execute_script... [11:02:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30076840", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:03]POST & json_proto [11:02:03]process_json_proto [11:02:03]json parsed OK: [11:02:03]protocol is kg_v1.0 [11:02:03]action value=close_receipt [11:02:03]process_action close_receipt [11:02:03]cmd_close_receipt [11:02:03]MH_GetDate [11:02:03]Write to MH i2c: F0 00 00 81 15 85 [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: F0 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: F0 09 00 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: F0 09 00 81 15 00 2E 26 C3 66 C4 85 C2 66 7C [11:02:03]GetLastDocTimeStamp 1724065226 [11:02:03]current date 1724065326 [11:02:03]FM_GetShiftState [11:02:03]SAM_PROTO_GetShiftState [11:02:03]wFMCommunicate request_size=4 [11:02:03]MH_SAM_APDU [11:02:03]CAPDU: 80 13 01 00 [11:02:03]Write to MH i2c: E2 08 00 82 15 80 13 01 00 00 00 00 00 14 [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:03]Read from MH i2c: E2 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 0E 00 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: E2 0E 00 82 15 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 CE [11:02:03]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:02:03]wFMCommunicate OK [11:02:03]SAM_PROTO_GetShiftState done [11:02:03]FM_GetShiftState done [11:02:03]opened in 1724026361 [11:02:03]opened+sec_in_day 1724112761 [11:02:03]quantity*price = 0 [11:02:03]sum+1 = 1 [11:02:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 65 19.08.2024 11:02 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30076840 ФМ: 0000000000871800 ФД: 49958 ФПД: 57415116670038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T110206&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49958&fm=57415116670038&tin=02508201610067®Number=0000000000092546&sum=0 [11:02:04]StoreToDocumentArchive [11:02:04]shift 467 fd 49958 [11:02:04]save to /storage/0467/doc_00049958 [11:02:04]save last doc name /storage/0467/doc_00049958 to /storage/kkm_last_doc_name [11:02:04]save OK [11:02:04]Clear old archive folders... [11:02:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:04]tlvbuf is B6F0A790 [11:02:04]SAM_PROTO_ClearQueue [11:02:04]wFMCommunicate request_size=4 [11:02:04]MH_SAM_APDU [11:02:04]CAPDU: 80 09 00 00 [11:02:04]Write to MH i2c: E2 08 00 8F 15 80 09 00 00 00 00 00 00 16 [11:02:04]Write i2c OK [11:02:04]MH_I2C_Read... [11:02:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:04]Read from MH i2c: E2 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: E2 03 00 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: E2 03 00 8F 15 00 90 00 18 [11:02:04]RAPDU: 90 00 [11:02:04]wFMCommunicate OK [11:02:04]SAM_PROTO_ClearQueue done [11:02:04]KKMCreateOFDPacket [11:02:04]OFDProtocolAddRootSTLVToBuf [11:02:04]FM_MakeSignedData [11:02:04]FM_MakeSignedData [11:02:04]SAM_PROTO_SignData [11:02:04]wFMCommunicate request_size=4 [11:02:04]MH_SAM_APDU [11:02:04]CAPDU: 80 0D 01 02 [11:02:04]Write to MH i2c: E2 08 00 90 15 80 0D 01 02 00 00 00 00 1E [11:02:04]Write i2c OK [11:02:04]MH_I2C_Read... [11:02:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:04]Read from MH i2c: E2 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: E2 03 00 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: E2 03 00 90 15 00 90 00 19 [11:02:04]RAPDU: 90 00 [11:02:04]wFMCommunicate OK [11:02:04]wFMCommunicate request_size=255 [11:02:04]MH_SAM_APDU [11:02:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 2E 26 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 26 C3 00 00 35 04 06 00 34 [11:02:04]Write to MH i2c: E2 02 01 91 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 2E 26 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 26 C3 00 00 35 04 06 00 34 00 00 3D [11:02:05]Write i2c OK [11:02:05]MH_I2C_Read... [11:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:05]Read from MH i2c: E2 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: E2 03 00 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: E2 03 00 91 15 00 90 00 1A [11:02:05]RAPDU: 90 00 [11:02:05]wFMCommunicate OK [11:02:05]wFMCommunicate request_size=10 [11:02:05]MH_SAM_APDU [11:02:05]CAPDU: 80 0D 02 02 05 37 FF A2 44 56 [11:02:05]Write to MH i2c: E2 0D 00 92 15 80 0D 02 02 05 00 37 FF A2 44 56 00 00 9D [11:02:05]Write i2c OK [11:02:05]MH_I2C_Read... [11:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:05]Read from MH i2c: E2 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: E2 03 00 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: E2 03 00 92 15 00 90 00 1B [11:02:05]RAPDU: 90 00 [11:02:05]wFMCommunicate OK [11:02:05]wFMCommunicate request_size=4 [11:02:05]MH_SAM_APDU [11:02:05]CAPDU: 80 0D 03 02 [11:02:05]Write to MH i2c: E2 08 00 93 15 80 0D 03 02 00 00 00 00 23 [11:02:05]Write i2c OK [11:02:05]MH_I2C_Read... [11:02:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:05]Read from MH i2c: E2 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: E2 0B 00 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: E2 0B 00 93 15 00 0F F1 4C F0 40 A7 FF 07 90 00 4D [11:02:05]RAPDU: 0F F1 4C F0 40 A7 FF 07 90 00 [11:02:05]wFMCommunicate OK [11:02:05]SAM_PROTO_SignData done [11:02:05]FM_MakeSignedData done [11:02:05]CreateOFDProtocolMessage [11:02:05]wFMCommunicate request_size=4 [11:02:05]MH_SAM_APDU [11:02:05]CAPDU: 80 11 00 00 [11:02:05]Write to MH i2c: E2 08 00 94 15 80 11 00 00 00 00 00 00 23 [11:02:05]Write i2c OK [11:02:05]MH_I2C_Read... [11:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:05]Read from MH i2c: E2 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: E2 17 00 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: E2 17 00 94 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6E [11:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:02:05]wFMCommunicate OK [11:02:05]CreateOFDProtocolMessage done [11:02:05]OFDSenderStorePacket 49958 [11:02:05]StoreOFDPacket docnum=49958 [11:02:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 B8 6C 07 01 4E 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 2E 26 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 26 C3 00 00 35 04 06 00 34 37 FF A2 44 56 0F F1 4C F0 40 A7 FF 07 [11:02:05]CheckFolder [11:02:05]dirname=/storage/ofd_packets [11:02:05]CheckFolder done [11:02:05]ProducePacketName [11:02:05]name=ofd_packets/00049958 [11:02:05]NVStorageSaveData ofd_packets/00049958 [11:02:05]File name is /storage/ofd_packets/00049958 [11:02:05]Write 301 bytes [11:02:05]NVStorageSaveData done [11:02:05]OFDSenderStorePacket done [11:02:05]KKMCreateOFDPacket done [11:02:05]NVStorageSaveData kkm_last_timestamp [11:02:05]File name is /storage/kkm_last_timestamp [11:02:05]Write 4 bytes [11:02:05]NVStorageSaveData done [11:02:05]ExternCall_PrintAddStr [11:02:05]wPrintStart [11:02:05]Write to MH i2c: 01 00 00 95 15 AA [11:02:05]Write i2c OK [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: 01 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: 01 07 00 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: 01 07 00 95 15 00 00 00 00 00 FF 0F BF [11:02:05]RasterBufferAndPrint [11:02:05]line Счет N : (1)11327691 [11:02:05]line ИНН: 02508201610067 [11:02:05]line Контрольно-Кассовый Чек [11:02:05]line ПРОДАЖА [11:02:05]line ТРК (МРК, ГНК) : 12 [11:02:05]line Товар: 2710124130 [11:02:05]line Аи-92-К-4 [11:02:05]line 20.000 * 0.00 [11:02:05]line = 0.00 [11:02:05]line НДС 12% НСП 1% [11:02:05]line > о реализуемом товаре [11:02:05]line ИТОГО: 0.00 [11:02:05]line НСП 1% : 0.00 [11:02:05]line НДС 12% : 0.00 [11:02:05]line Наличными: 0.00 [11:02:05]line Безнал.: 0.00 [11:02:05]line Место: АЗС № 95 "Партнер Нефть" [11:02:05]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:02:05]line СНО: Общий режим [11:02:05]line Чек 65 19.08.2024 11:02 [11:02:05]line Смена: 467 ФФД: 1.0 [11:02:05]line ЗНМ: 0300000078 [11:02:05]line РНМ: 0000000000092546 [11:02:05]line Версия ККМ: 001 [11:02:05]line Талоны: ТК ГПНА Online [11:02:05]line 30076840 [11:02:05]line ФМ: 0000000000871800 [11:02:05]line ФД: 49958 [11:02:05]line ФПД: 57415116670038 [11:02:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T110206&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49958&fm=57415116670038&tin=02508201610067®Number=0000000000092546&sum=0 [11:02:05]written 0, free lines is 4095 [11:02:05]OFD Sender: Processing packet 49958 [packets to send 21, broken 20] [11:02:05]ProducePacketName [11:02:05]name=ofd_packets/00049958 [11:02:05]OFD Sender: To server: pG, [11:02:05]CommunicateWithHost lk.salyk.kg:30040 [11:02:05]ConnectInit lk.salyk.kg [11:02:05]Connected sock=11 [11:02:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 B8 6C 07 01 4E 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 2E 26 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 26 C3 00 00 35 04 06 00 34 37 FF A2 44 56 0F F1 4C F0 40 A7 FF 07 [11:02:05]Write to MH i2c: 01 00 00 BF 15 D4 [11:02:05]Write i2c OK [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: 01 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: 01 07 00 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: 01 07 00 BF 15 00 00 00 00 00 D0 0C B7 [11:02:05]RasterBufferAndPrint [11:02:05]line [11:02:05]line [11:02:05]line [11:02:05]line [11:02:05]line [11:02:05]written 0, free lines is 3286 [11:02:05]MH_Cut [11:02:05]Write to MH i2c: D1 01 00 C6 15 01 AD [11:02:05]Write i2c OK [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: D1 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: D1 01 00 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: D1 01 00 C6 15 00 AC [11:02:05]Write to MH i2c: 01 00 00 C7 15 DC [11:02:05]Write i2c OK [11:02:05]MH_I2C_Read... [11:02:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 71 3A 47 00 25 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 26 C3 00 00 F4 03 04 00 9B D0 C2 66 B6 04 01 00 00 EF 38 22 41 44 34 95 E2 [11:02:06]CommunicateWithHost err = 0 [11:02:06]CheckOFDResponse [11:02:06]1017 (14) - 77093643461234 [11:02:06]1041 (16) - 0000000000871800 [11:02:06]1040 (4) - 49958 [11:02:06]1012 (4) - 19.08.2024 04:56 [11:02:06]1206 (1) - 0 [11:02:06]OFD Sender: Remove packet 49958 [11:02:06]ProducePacketName [11:02:06]name=ofd_packets/00049958 [11:02:06]NVStorageDeleteData [11:02:06]*** Cut start [11:02:06]*** Purtial cut [11:02:06]*** Stage 1: CUTSNS_PIN = 1 [11:02:06]OFD Sender: No OFD packet to send [11:02:06]Read from MH i2c: 01 [11:02:06]MH_I2C_Read... [11:02:06]*** Stop cut motor [11:02:06]*** Cut end [11:02:06]Read from MH i2c: 01 07 00 [11:02:06]MH_I2C_Read... [11:02:06]Read from MH i2c: 01 07 00 C7 15 00 00 00 00 00 FF 0F F1 [11:02:06]process_action close_receipt done [11:02:06]requested_data is exist [11:02:06]produce_requested_data [11:02:06]requested_item fm.sn is exist - process it [11:02:06]wFMCommunicate request_size=4 [11:02:06]MH_SAM_APDU [11:02:06]CAPDU: 80 11 00 00 [11:02:06]Write to MH i2c: E2 08 00 C8 15 80 11 00 00 00 00 00 00 57 [11:02:06]Write i2c OK [11:02:06]MH_I2C_Read... [11:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:06]Read from MH i2c: E2 [11:02:06]MH_I2C_Read... [11:02:06]Read from MH i2c: E2 17 00 [11:02:06]MH_I2C_Read... [11:02:06]Read from MH i2c: E2 17 00 C8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A2 [11:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:02:06]wFMCommunicate OK [11:02:06]requested_item fd.num is exist - process it [11:02:06]SAM_PROTO_GetFieldsCounters [11:02:06]wFMCommunicate request_size=4 [11:02:06]MH_SAM_APDU [11:02:06]CAPDU: 80 13 00 00 [11:02:06]Write to MH i2c: E2 08 00 C9 15 80 13 00 00 00 00 00 00 5A [11:02:07]Write i2c OK [11:02:07]MH_I2C_Read... [11:02:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:07]Read from MH i2c: E2 [11:02:07]MH_I2C_Read... [11:02:07]Read from MH i2c: E2 62 00 [11:02:07]MH_I2C_Read... [11:02:07]Read from MH i2c: E2 62 00 C9 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 26 C3 00 00 0E 04 04 00 D3 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 F4 [11:02:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 26 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:07]wFMCommunicate OK [11:02:07]SAM_PROTO_GetFieldsCounters done [11:02:07]requested_item shift.num is exist - process it [11:02:07]requested_item shift.opened is exist - process it [11:02:07]req_shift_opened [11:02:07]FM_GetShiftState [11:02:07]SAM_PROTO_GetShiftState [11:02:07]wFMCommunicate request_size=4 [11:02:07]MH_SAM_APDU [11:02:07]CAPDU: 80 13 01 00 [11:02:07]Write to MH i2c: E2 08 00 CA 15 80 13 01 00 00 00 00 00 5C [11:02:07]Write i2c OK [11:02:07]MH_I2C_Read... [11:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:07]Read from MH i2c: E2 [11:02:07]MH_I2C_Read... [11:02:07]Read from MH i2c: E2 0E 00 [11:02:07]MH_I2C_Read... [11:02:07]Read from MH i2c: E2 0E 00 CA 15 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 16 [11:02:07]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:02:07]wFMCommunicate OK [11:02:07]SAM_PROTO_GetShiftState done [11:02:07]FM_GetShiftState done [11:02:07]req_shift_opened done [11:02:07]requested_item shift.open_date is exist - process it [11:02:07]req_shift_open_date [11:02:07]req_shift_open_date done [11:02:07]produce_requested_data done [11:02:07]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49958,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [11:02:07]process_action_free close_receipt [11:02:07]json_value_free [11:02:07]json_value_free done [11:02:07]process_json_proto returns [11:02:07]Send response to host [11:02:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49958,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [11:02:07]free response buf [11:02:07]execute_script done [11:02:07]execute_script returns [11:02:07]free content buf [11:02:07]Sock 9.Close socket [11:02:07]Sock 9.Thread stoped [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:11:58]accept exits with 7 [11:11:58]New connection [11:11:58]New thread 3067354468 created [11:11:58]Thread 3067211108 joined [11:11:58]Waiting for new connection... [11:11:58] Sock 7.Parse request [11:11:58]Sock 7.Check first char [11:11:58]Sock 7.First char is OK [11:11:58]request: POST /json_proto HTTP/1.0 [11:11:58]Method: POST [11:11:58]URL: /json_proto [11:11:58]Method is POST - this is cgi request [11:11:58]url: /json_proto [11:11:58]query_string will be loaded in cgi processing [11:11:58]execute_cgi json_proto POST (null) [11:11:58]execute_cgi path=json_proto method=POST [11:11:58]POST find Content-Length [11:11:58]Host: 172.17.46.196:8080 [11:11:58]Content-Length: 675 [11:11:58]Content-Type: application/json [11:11:58] [11:11:58]POST finish read [11:11:58]Found Content-Length = 675 [11:11:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190107", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 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" ] } } [11:11:58]execute_script... [11:11: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)190107", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 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" ] } } [11:11:58]POST & json_proto [11:11:58]process_json_proto [11:11:58]json parsed OK: [11:11:58]protocol is kg_v1.0 [11:11:58]action value=close_receipt [11:11:58]process_action close_receipt [11:11:58]cmd_close_receipt [11:11:58]MH_GetDate [11:11:58]Write to MH i2c: F0 00 00 CB 15 CF [11:11:58]Write i2c OK [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: F0 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: F0 09 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: F0 09 00 CB 15 00 81 28 C3 66 C4 85 C2 66 1B [11:11:58]GetLastDocTimeStamp 1724065326 [11:11:58]current date 1724065921 [11:11:58]FM_GetShiftState [11:11:58]SAM_PROTO_GetShiftState [11:11:58]wFMCommunicate request_size=4 [11:11:58]MH_SAM_APDU [11:11:58]CAPDU: 80 13 01 00 [11:11:58]Write to MH i2c: E2 08 00 CC 15 80 13 01 00 00 00 00 00 5E [11:11:58]Write i2c OK [11:11:58]MH_I2C_Read... [11:11:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:58]Read from MH i2c: E2 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 0E 00 [11:11:58]MH_I2C_Read... [11:11:58]Read from MH i2c: E2 0E 00 CC 15 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 18 [11:11:58]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:11:58]wFMCommunicate OK [11:11:58]SAM_PROTO_GetShiftState done [11:11:58]FM_GetShiftState done [11:11:58]opened in 1724026361 [11:11:58]opened+sec_in_day 1724112761 [11:11:58]quantity*price = 9000 [11:11:58]sum+1 = 9001 [11:11:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 66 19.08.2024 11:12 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49959 ФПД: 205490992445002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111201&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49959&fm=205490992445002&tin=02508201610067®Number=0000000000092546&sum=9000 0 [11:12:00]StoreToDocumentArchive [11:12:00]shift 467 fd 49959 [11:12:00]save to /storage/0467/doc_00049959 [11:12:00]save last doc name /storage/0467/doc_00049959 to /storage/kkm_last_doc_name [11:12:00]save OK [11:12:00]Clear old archive folders... [11:12:00]ProcessDocumentItem done err = 0, tmpTLVsize=294 [11:12:00]tlvbuf is 00F6A540 [11:12:00]SAM_PROTO_ClearQueue [11:12:00]wFMCommunicate request_size=4 [11:12:00]MH_SAM_APDU [11:12:00]CAPDU: 80 09 00 00 [11:12:00]Write to MH i2c: E2 08 00 D9 15 80 09 00 00 00 00 00 00 60 [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:00]Read from MH i2c: E2 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 03 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 03 00 D9 15 00 90 00 62 [11:12:00]RAPDU: 90 00 [11:12:00]wFMCommunicate OK [11:12:00]SAM_PROTO_ClearQueue done [11:12:00]KKMCreateOFDPacket [11:12:00]OFDProtocolAddRootSTLVToBuf [11:12:00]FM_MakeSignedData [11:12:00]FM_MakeSignedData [11:12:00]SAM_PROTO_SignData [11:12:00]wFMCommunicate request_size=4 [11:12:00]MH_SAM_APDU [11:12:00]CAPDU: 80 0D 01 02 [11:12:00]Write to MH i2c: E2 08 00 DA 15 80 0D 01 02 00 00 00 00 68 [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:00]Read from MH i2c: E2 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 03 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 03 00 DA 15 00 90 00 63 [11:12:00]RAPDU: 90 00 [11:12:00]wFMCommunicate OK [11:12:00]wFMCommunicate request_size=255 [11:12:00]MH_SAM_APDU [11:12:00]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 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 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 42 00 00 00 F4 03 04 00 81 28 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [11:12:00]Write to MH i2c: E2 02 01 DB 15 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 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 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 42 00 00 00 F4 03 04 00 81 28 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 EE [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:00]Read from MH i2c: E2 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 03 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 03 00 DB 15 00 90 00 64 [11:12:00]RAPDU: 90 00 [11:12:00]wFMCommunicate OK [11:12:00]wFMCommunicate request_size=53 [11:12:00]MH_SAM_APDU [11:12:00]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 27 C3 00 00 35 04 06 00 BA E4 99 9B F6 4A [11:12:00]Write to MH i2c: E2 38 00 DC 15 80 0D 02 02 30 00 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 27 C3 00 00 35 04 06 00 BA E4 99 9B F6 4A 00 00 55 [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:00]Read from MH i2c: E2 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 03 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 03 00 DC 15 00 90 00 65 [11:12:00]RAPDU: 90 00 [11:12:00]wFMCommunicate OK [11:12:00]wFMCommunicate request_size=4 [11:12:00]MH_SAM_APDU [11:12:00]CAPDU: 80 0D 03 02 [11:12:00]Write to MH i2c: E2 08 00 DD 15 80 0D 03 02 00 00 00 00 6D [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:00]Read from MH i2c: E2 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 0B 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 0B 00 DD 15 00 37 BF 58 C0 7E F6 21 17 90 00 28 [11:12:00]RAPDU: 37 BF 58 C0 7E F6 21 17 90 00 [11:12:00]wFMCommunicate OK [11:12:00]SAM_PROTO_SignData done [11:12:00]FM_MakeSignedData done [11:12:00]CreateOFDProtocolMessage [11:12:00]wFMCommunicate request_size=4 [11:12:00]MH_SAM_APDU [11:12:00]CAPDU: 80 11 00 00 [11:12:00]Write to MH i2c: E2 08 00 DE 15 80 11 00 00 00 00 00 00 6D [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:00]Read from MH i2c: E2 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 17 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: E2 17 00 DE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B8 [11:12:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:12:00]wFMCommunicate OK [11:12:00]CreateOFDProtocolMessage done [11:12:00]OFDSenderStorePacket 49959 [11:12:00]StoreOFDPacket docnum=49959 [11:12:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 B6 20 32 01 27 56 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 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 42 00 00 00 F4 03 04 00 81 28 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 27 C3 00 00 35 04 06 00 BA E4 99 9B F6 4A 37 BF 58 C0 7E F6 21 17 [11:12:00]CheckFolder [11:12:00]dirname=/storage/ofd_packets [11:12:00]CheckFolder done [11:12:00]ProducePacketName [11:12:00]name=ofd_packets/00049959 [11:12:00]NVStorageSaveData ofd_packets/00049959 [11:12:00]File name is /storage/ofd_packets/00049959 [11:12:00]Write 344 bytes [11:12:00]NVStorageSaveData done [11:12:00]OFDSenderStorePacket done [11:12:00]KKMCreateOFDPacket done [11:12:00]NVStorageSaveData kkm_last_timestamp [11:12:00]File name is /storage/kkm_last_timestamp [11:12:00]Write 4 bytes [11:12:00]NVStorageSaveData done [11:12:00]ExternCall_PrintAddStr [11:12:00]wPrintStart [11:12:00]Write to MH i2c: 01 00 00 DF 15 F4 [11:12:00]Write i2c OK [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: 01 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: 01 07 00 [11:12:00]MH_I2C_Read... [11:12:00]Read from MH i2c: 01 07 00 DF 15 00 00 00 00 00 FF 0F 09 [11:12:00]RasterBufferAndPrint [11:12:00]line Счет N : (3)190107 [11:12:00]line ИНН: 02508201610067 [11:12:00]line Контрольно-Кассовый Чек [11:12:00]line ПРОДАЖА [11:12:00]line Товар: 4650243871828 [11:12:00]line Gorilla эн нап манго-кокос 0,45 ж/б [11:12:00]line 1.000 * 90.00 [11:12:00]line = 90.00 [11:12:00]line НДС 12% НСП 1% [11:12:00]line > о реализуемом товаре [11:12:00]line ИТОГО: 90.00 [11:12:00]line НСП 1% : 0.80 [11:12:00]line НДС 12% : 9.56 [11:12:00]line Наличными: 90.00 [11:12:00]line Безнал.: 0.00 [11:12:00]line Место: АЗС № 95 "Партнер Нефть" [11:12:00]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:12:00]line СНО: Общий режим [11:12:00]line Чек 66 19.08.2024 11:12 [11:12:00]line Смена: 467 ФФД: 1.0 [11:12:00]line ЗНМ: 0300000078 [11:12:00]line РНМ: 0000000000092546 [11:12:00]line Версия ККМ: 001 [11:12:00]line ФМ: 0000000000871800 [11:12:00]line ФД: 49959 [11:12:00]line ФПД: 205490992445002 [11:12:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111201&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49959&fm=205490992445002&tin=02508201610067®Number=0000000000092546&sum=9000 [11:12:01]line 0 [11:12:01]OFD Sender: Processing packet 49959 [packets to send 21, broken 20] [11:12:01]ProducePacketName [11:12:01]name=ofd_packets/00049959 [11:12:01]OFD Sender: To server: pG, [11:12:01]CommunicateWithHost lk.salyk.kg:30040 [11:12:01]ConnectInit lk.salyk.kg [11:12:01]written 0, free lines is 4095 [11:12:01]Connected sock=10 [11:12:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 B6 20 32 01 27 56 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 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 42 00 00 00 F4 03 04 00 81 28 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 27 C3 00 00 35 04 06 00 BA E4 99 9B F6 4A 37 BF 58 C0 7E F6 21 17 [11:12:01]Write to MH i2c: 01 00 00 08 16 1E [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: 01 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: 01 07 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: 01 07 00 08 16 00 00 00 00 00 D3 0C 04 [11:12:01]RasterBufferAndPrint [11:12:01]line [11:12:01]line [11:12:01]line [11:12:01]line [11:12:01]line [11:12:01]written 0, free lines is 3288 [11:12:01]MH_Cut [11:12:01]Write to MH i2c: D1 01 00 0F 16 01 F7 [11:12:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 52 6D 47 00 27 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 27 C3 00 00 F4 03 04 00 EE D2 C2 66 B6 04 01 00 00 3F CA 70 8A 96 B2 B2 56 [11:12:01]CommunicateWithHost err = 0 [11:12:01]CheckOFDResponse [11:12:01]1017 (14) - 77093643461234 [11:12:01]1041 (16) - 0000000000871800 [11:12:01]1040 (4) - 49959 [11:12:01]1012 (4) - 19.08.2024 05:06 [11:12:01]1206 (1) - 0 [11:12:01]OFD Sender: Remove packet 49959 [11:12:01]ProducePacketName [11:12:01]name=ofd_packets/00049959 [11:12:01]NVStorageDeleteData [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: D1 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: D1 01 00 [11:12:01]MH_I2C_Read... [11:12:01]Read from MH i2c: D1 01 00 0F 16 00 F6 [11:12:01]Write to MH i2c: 01 00 00 10 16 26 [11:12:01]Write i2c OK [11:12:01]MH_I2C_Read... [11:12:01]OFD Sender: No OFD packet to send [11:12:02]*** Cut start [11:12:02]*** Purtial cut [11:12:02]*** CUTSNS_PIN = 0 [11:12:02]*** Stage 1: CUTSNS_PIN = 1 [11:12:04]Read from MH i2c: 01 [11:12:04]MH_I2C_Read... [11:12:04]*** Stop cut motor [11:12:04]*** Cut end [11:12:04]Read from MH i2c: 01 07 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: 01 07 00 10 16 00 00 00 00 00 FF 0F 3B [11:12:04]process_action close_receipt done [11:12:04]requested_data is exist [11:12:04]produce_requested_data [11:12:04]requested_item fm.sn is exist - process it [11:12:04]wFMCommunicate request_size=4 [11:12:04]MH_SAM_APDU [11:12:04]CAPDU: 80 11 00 00 [11:12:04]Write to MH i2c: E2 08 00 11 16 80 11 00 00 00 00 00 00 A1 [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:04]Read from MH i2c: E2 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 17 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 17 00 11 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EC [11:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:12:04]wFMCommunicate OK [11:12:04]requested_item fd.num is exist - process it [11:12:04]SAM_PROTO_GetFieldsCounters [11:12:04]wFMCommunicate request_size=4 [11:12:04]MH_SAM_APDU [11:12:04]CAPDU: 80 13 00 00 [11:12:04]Write to MH i2c: E2 08 00 12 16 80 13 00 00 00 00 00 00 A4 [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:04]Read from MH i2c: E2 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 62 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 62 00 12 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 27 C3 00 00 0E 04 04 00 D3 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 42 [11:12:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 27 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:04]wFMCommunicate OK [11:12:04]SAM_PROTO_GetFieldsCounters done [11:12:04]requested_item shift.num is exist - process it [11:12:04]requested_item shift.opened is exist - process it [11:12:04]req_shift_opened [11:12:04]FM_GetShiftState [11:12:04]SAM_PROTO_GetShiftState [11:12:04]wFMCommunicate request_size=4 [11:12:04]MH_SAM_APDU [11:12:04]CAPDU: 80 13 01 00 [11:12:04]Write to MH i2c: E2 08 00 13 16 80 13 01 00 00 00 00 00 A6 [11:12:04]Write i2c OK [11:12:04]MH_I2C_Read... [11:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:04]Read from MH i2c: E2 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 0E 00 [11:12:04]MH_I2C_Read... [11:12:04]Read from MH i2c: E2 0E 00 13 16 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 60 [11:12:04]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:12:04]wFMCommunicate OK [11:12:04]SAM_PROTO_GetShiftState done [11:12:04]FM_GetShiftState done [11:12:04]req_shift_opened done [11:12:04]requested_item shift.open_date is exist - process it [11:12:04]req_shift_open_date [11:12:04]req_shift_open_date done [11:12:04]produce_requested_data done [11:12:04]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49959,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [11:12:04]process_action_free close_receipt [11:12:04]json_value_free [11:12:04]json_value_free done [11:12:04]process_json_proto returns [11:12:04]Send response to host [11:12:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49959,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [11:12:04]free response buf [11:12:04]execute_script done [11:12:04]execute_script returns [11:12:04]free content buf [11:12:04]Sock 7.Close socket [11:12:04]Sock 7.Thread stoped [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:07]OFD Sender: No OFD packet to send [11:16:12]OFD Sender: No OFD packet to send [11:16:17]OFD Sender: No OFD packet to send [11:16:22]OFD Sender: No OFD packet to send [11:16:27]OFD Sender: No OFD packet to send [11:16:32]OFD Sender: No OFD packet to send [11:16:37]OFD Sender: No OFD packet to send [11:16:42]OFD Sender: No OFD packet to send [11:16:44]accept exits with 9 [11:16:44]New connection [11:16:44]New thread 3067211108 created [11:16:44]Thread 3067354468 joined [11:16:44]Waiting for new connection... [11:16:44] Sock 9.Parse request [11:16:44]Sock 9.Check first char [11:16:44]Sock 9.First char is OK [11:16:44]request: POST /json_proto HTTP/1.0 [11:16:44]Method: POST [11:16:44]URL: /json_proto [11:16:44]Method is POST - this is cgi request [11:16:44]url: /json_proto [11:16:44]query_string will be loaded in cgi processing [11:16:44]execute_cgi json_proto POST (null) [11:16:44]execute_cgi path=json_proto method=POST [11:16:44]POST find Content-Length [11:16:44]Host: 172.17.46.196:8080 [11:16:44]Content-Length: 585 [11:16:44]Content-Type: application/json [11:16:44] [11:16:44]POST finish read [11:16:44]Found Content-Length = 585 [11:16:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190108", "tax_sys" : 0, "items" : [ { "code": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:44]execute_script... [11:16:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190108", "tax_sys" : 0, "items" : [ { "code": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:44]POST & json_proto [11:16:44]process_json_proto [11:16:44]json parsed OK: [11:16:44]protocol is kg_v1.0 [11:16:44]action value=close_receipt [11:16:44]process_action close_receipt [11:16:44]cmd_close_receipt [11:16:44]MH_GetDate [11:16:44]Write to MH i2c: F0 00 00 14 16 19 [11:16:44]Write i2c OK [11:16:44]MH_I2C_Read... [11:16:44]Read from MH i2c: F0 [11:16:44]MH_I2C_Read... [11:16:44]Read from MH i2c: F0 09 00 [11:16:44]MH_I2C_Read... [11:16:44]Read from MH i2c: F0 09 00 14 16 00 9F 29 C3 66 C4 85 C2 66 84 [11:16:44]GetLastDocTimeStamp 1724065921 [11:16:44]current date 1724066207 [11:16:44]FM_GetShiftState [11:16:44]SAM_PROTO_GetShiftState [11:16:44]wFMCommunicate request_size=4 [11:16:44]MH_SAM_APDU [11:16:44]CAPDU: 80 13 01 00 [11:16:44]Write to MH i2c: E2 08 00 15 16 80 13 01 00 00 00 00 00 A8 [11:16:44]Write i2c OK [11:16:44]MH_I2C_Read... [11:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:45]Read from MH i2c: E2 [11:16:45]MH_I2C_Read... [11:16:45]Read from MH i2c: E2 0E 00 [11:16:45]MH_I2C_Read... [11:16:45]Read from MH i2c: E2 0E 00 15 16 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 62 [11:16:45]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:16:45]wFMCommunicate OK [11:16:45]SAM_PROTO_GetShiftState done [11:16:45]FM_GetShiftState done [11:16:45]opened in 1724026361 [11:16:45]opened+sec_in_day 1724112761 [11:16:45]quantity*price = 4500 [11:16:45]sum+1 = 4501 [11:16:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 67 19.08.2024 11:16 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49960 ФПД: 245829258134607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111647&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49960&fm=245829258134607&tin=02508201610067®Number=0000000000092546&sum=4500 0 [11:16:46]StoreToDocumentArchive [11:16:46]shift 467 fd 49960 [11:16:46]save to /storage/0467/doc_00049960 [11:16:46]save last doc name /storage/0467/doc_00049960 to /storage/kkm_last_doc_name [11:16:46]save OK [11:16:46]Clear old archive folders... [11:16:46]ProcessDocumentItem done err = 0, tmpTLVsize=260 [11:16:46]tlvbuf is 0103F7E0 [11:16:46]SAM_PROTO_ClearQueue [11:16:46]wFMCommunicate request_size=4 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 09 00 00 [11:16:46]Write to MH i2c: E2 08 00 22 16 80 09 00 00 00 00 00 00 AA [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 22 16 00 90 00 AC [11:16:46]RAPDU: 90 00 [11:16:46]wFMCommunicate OK [11:16:46]SAM_PROTO_ClearQueue done [11:16:46]KKMCreateOFDPacket [11:16:46]OFDProtocolAddRootSTLVToBuf [11:16:46]FM_MakeSignedData [11:16:46]FM_MakeSignedData [11:16:46]SAM_PROTO_SignData [11:16:46]wFMCommunicate request_size=4 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 0D 01 02 [11:16:46]Write to MH i2c: E2 08 00 23 16 80 0D 01 02 00 00 00 00 B2 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 23 16 00 90 00 AD [11:16:46]RAPDU: 90 00 [11:16:46]wFMCommunicate OK [11:16:46]wFMCommunicate request_size=255 [11:16:46]MH_SAM_APDU [11:16:46]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 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9F 29 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 [11:16:46]Write to MH i2c: E2 02 01 24 16 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 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9F 29 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 00 00 2C [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 24 16 00 90 00 AE [11:16:46]RAPDU: 90 00 [11:16:46]wFMCommunicate OK [11:16:46]wFMCommunicate request_size=19 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 0D 02 02 0E 28 C3 00 00 35 04 06 00 DF 94 95 9B 44 4F [11:16:46]Write to MH i2c: E2 16 00 25 16 80 0D 02 02 0E 00 28 C3 00 00 35 04 06 00 DF 94 95 9B 44 4F 00 00 31 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 03 00 25 16 00 90 00 AF [11:16:46]RAPDU: 90 00 [11:16:46]wFMCommunicate OK [11:16:46]wFMCommunicate request_size=4 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 0D 03 02 [11:16:46]Write to MH i2c: E2 08 00 26 16 80 0D 03 02 00 00 00 00 B7 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 0B 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 0B 00 26 16 00 8B 71 3D F7 1C 57 42 7C 90 00 19 [11:16:46]RAPDU: 8B 71 3D F7 1C 57 42 7C 90 00 [11:16:46]wFMCommunicate OK [11:16:46]SAM_PROTO_SignData done [11:16:46]FM_MakeSignedData done [11:16:46]CreateOFDProtocolMessage [11:16:46]wFMCommunicate request_size=4 [11:16:46]MH_SAM_APDU [11:16:46]CAPDU: 80 11 00 00 [11:16:46]Write to MH i2c: E2 08 00 27 16 80 11 00 00 00 00 00 00 B7 [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:46]Read from MH i2c: E2 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 17 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: E2 17 00 27 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 02 [11:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:16:46]wFMCommunicate OK [11:16:46]CreateOFDProtocolMessage done [11:16:46]OFDSenderStorePacket 49960 [11:16:46]StoreOFDPacket docnum=49960 [11:16:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 18 01 00 00 C2 62 10 01 54 8C 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 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9F 29 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 28 C3 00 00 35 04 06 00 DF 94 95 9B 44 4F 8B 71 3D F7 1C 57 42 7C [11:16:46]CheckFolder [11:16:46]dirname=/storage/ofd_packets [11:16:46]CheckFolder done [11:16:46]ProducePacketName [11:16:46]name=ofd_packets/00049960 [11:16:46]NVStorageSaveData ofd_packets/00049960 [11:16:46]File name is /storage/ofd_packets/00049960 [11:16:46]Write 310 bytes [11:16:46]NVStorageSaveData done [11:16:46]OFDSenderStorePacket done [11:16:46]KKMCreateOFDPacket done [11:16:46]NVStorageSaveData kkm_last_timestamp [11:16:46]File name is /storage/kkm_last_timestamp [11:16:46]Write 4 bytes [11:16:46]NVStorageSaveData done [11:16:46]ExternCall_PrintAddStr [11:16:46]wPrintStart [11:16:46]Write to MH i2c: 01 00 00 28 16 3E [11:16:46]Write i2c OK [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 [11:16:46]MH_I2C_Read... [11:16:46]Read from MH i2c: 01 07 00 28 16 00 00 00 00 00 FF 0F 53 [11:16:46]RasterBufferAndPrint [11:16:46]line Счет N : (3)190108 [11:16:46]line ИНН: 02508201610067 [11:16:46]line Контрольно-Кассовый Чек [11:16:46]line ПРОДАЖА [11:16:46]line Товар: 50173617 [11:16:46]line Жев Orbit Eucalyptus [11:16:46]line 1.000 * 45.00 [11:16:46]line = 45.00 [11:16:46]line НДС 12% НСП 1% [11:16:46]line > о реализуемом товаре [11:16:46]line ИТОГО: 45.00 [11:16:46]line НСП 1% : 0.40 [11:16:46]line НДС 12% : 4.78 [11:16:46]line Наличными: 45.00 [11:16:46]line Безнал.: 0.00 [11:16:46]line Место: АЗС № 95 "Партнер Нефть" [11:16:46]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:16:46]line СНО: Общий режим [11:16:46]line Чек 67 19.08.2024 11:16 [11:16:46]line Смена: 467 ФФД: 1.0 [11:16:46]line ЗНМ: 0300000078 [11:16:46]line РНМ: 0000000000092546 [11:16:46]line Версия ККМ: 001 [11:16:46]line ФМ: 0000000000871800 [11:16:46]line ФД: 49960 [11:16:46]line ФПД: 245829258134607 [11:16:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111647&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49960&fm=245829258134607&tin=02508201610067®Number=0000000000092546&sum=4500 [11:16:46]line 0 [11:16:46]written 0, free lines is 4095 [11:16:46]OFD Sender: Processing packet 49960 [packets to send 21, broken 20] [11:16:46]ProducePacketName [11:16:46]name=ofd_packets/00049960 [11:16:46]OFD Sender: To server: pG, [11:16:46]CommunicateWithHost lk.salyk.kg:30040 [11:16:46]ConnectInit lk.salyk.kg [11:16:47]Connected sock=11 [11:16:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 18 01 00 00 C2 62 10 01 54 8C 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 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9F 29 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 28 C3 00 00 35 04 06 00 DF 94 95 9B 44 4F 8B 71 3D F7 1C 57 42 7C [11:16:47]Write to MH i2c: 01 00 00 50 16 66 [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 07 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: 01 07 00 50 16 00 00 00 00 00 E1 0C 5A [11:16:47]RasterBufferAndPrint [11:16:47]line [11:16:47]line [11:16:47]line [11:16:47]line [11:16:47]line [11:16:47]written 0, free lines is 3303 [11:16:47]MH_Cut [11:16:47]Write to MH i2c: D1 01 00 57 16 01 3F [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: D1 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: D1 01 00 [11:16:47]MH_I2C_Read... [11:16:47]Read from MH i2c: D1 01 00 57 16 00 3E [11:16:47]Write to MH i2c: 01 00 00 58 16 6E [11:16:47]Write i2c OK [11:16:47]MH_I2C_Read... [11:16:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 1D 59 47 00 63 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 28 C3 00 00 F4 03 04 00 0C D4 C2 66 B6 04 01 00 00 4B C9 04 4B 3E C9 95 A9 [11:16:47]CommunicateWithHost err = 0 [11:16:47]CheckOFDResponse [11:16:47]1017 (14) - 77093643461234 [11:16:47]1041 (16) - 0000000000871800 [11:16:47]1040 (4) - 49960 [11:16:47]1012 (4) - 19.08.2024 05:11 [11:16:47]1206 (1) - 0 [11:16:47]OFD Sender: Remove packet 49960 [11:16:47]ProducePacketName [11:16:47]name=ofd_packets/00049960 [11:16:47]NVStorageDeleteData [11:16:47]OFD Sender: No OFD packet to send [11:16:47]*** Cut start [11:16:47]*** Purtial cut [11:16:47]*** Stage 1: CUTSNS_PIN = 1 [11:16:48]Read from MH i2c: 01 [11:16:48]MH_I2C_Read... [11:16:48]*** Stop cut motor [11:16:48]*** Cut end [11:16:48]Read from MH i2c: 01 07 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 58 16 00 00 00 00 00 FF 0F 83 [11:16:48]process_action close_receipt done [11:16:48]requested_data is exist [11:16:48]produce_requested_data [11:16:48]requested_item fm.sn is exist - process it [11:16:48]wFMCommunicate request_size=4 [11:16:48]MH_SAM_APDU [11:16:48]CAPDU: 80 11 00 00 [11:16:48]Write to MH i2c: E2 08 00 59 16 80 11 00 00 00 00 00 00 E9 [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 17 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 17 00 59 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 34 [11:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:16:48]wFMCommunicate OK [11:16:48]requested_item fd.num is exist - process it [11:16:48]SAM_PROTO_GetFieldsCounters [11:16:48]wFMCommunicate request_size=4 [11:16:48]MH_SAM_APDU [11:16:48]CAPDU: 80 13 00 00 [11:16:48]Write to MH i2c: E2 08 00 5A 16 80 13 00 00 00 00 00 00 EC [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 62 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 62 00 5A 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 28 C3 00 00 0E 04 04 00 D3 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 8E [11:16:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 28 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:48]wFMCommunicate OK [11:16:48]SAM_PROTO_GetFieldsCounters done [11:16:48]requested_item shift.num is exist - process it [11:16:48]requested_item shift.opened is exist - process it [11:16:48]req_shift_opened [11:16:48]FM_GetShiftState [11:16:48]SAM_PROTO_GetShiftState [11:16:48]wFMCommunicate request_size=4 [11:16:48]MH_SAM_APDU [11:16:48]CAPDU: 80 13 01 00 [11:16:48]Write to MH i2c: E2 08 00 5B 16 80 13 01 00 00 00 00 00 EE [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:48]Read from MH i2c: E2 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 0E 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: E2 0E 00 5B 16 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A8 [11:16:48]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:16:48]wFMCommunicate OK [11:16:48]SAM_PROTO_GetShiftState done [11:16:48]FM_GetShiftState done [11:16:48]req_shift_opened done [11:16:48]requested_item shift.open_date is exist - process it [11:16:48]req_shift_open_date [11:16:48]req_shift_open_date done [11:16:48]produce_requested_data done [11:16:48]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49960,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [11:16:48]process_action_free close_receipt [11:16:48]json_value_free [11:16:48]json_value_free done [11:16:48]process_json_proto returns [11:16:48]Send response to host [11:16:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49960,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [11:16:48]free response buf [11:16:48]execute_script done [11:16:48]execute_script returns [11:16:48]free content buf [11:16:48]Sock 9.Close socket [11:16:48]Sock 9.Thread stoped [11:16:52]OFD Sender: No OFD packet to send [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:17]OFD Sender: No OFD packet to send [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:33]accept exits with 7 [11:17:33]New connection [11:17:33]New thread 3067354468 created [11:17:33]Thread 3067211108 joined [11:17:33]Waiting for new connection... [11:17:33] Sock 7.Parse request [11:17:33]Sock 7.Check first char [11:17:33]Sock 7.First char is OK [11:17:33]request: POST /json_proto HTTP/1.0 [11:17:33]Method: POST [11:17:33]URL: /json_proto [11:17:33]Method is POST - this is cgi request [11:17:33]url: /json_proto [11:17:33]query_string will be loaded in cgi processing [11:17:33]execute_cgi json_proto POST (null) [11:17:33]execute_cgi path=json_proto method=POST [11:17:33]POST find Content-Length [11:17:33]Host: 172.17.46.196:8080 [11:17:33]Content-Length: 753 [11:17:33]Content-Type: application/json [11:17:33] [11:17:33]POST finish read [11:17:33]Found Content-Length = 753 [11:17:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30098000", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:33]execute_script... [11:17:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30098000", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:33]POST & json_proto [11:17:33]process_json_proto [11:17:33]json parsed OK: [11:17:33]protocol is kg_v1.0 [11:17:33]action value=close_receipt [11:17:33]process_action close_receipt [11:17:33]cmd_close_receipt [11:17:33]MH_GetDate [11:17:33]Write to MH i2c: F0 00 00 5C 16 61 [11:17:33]Write i2c OK [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: F0 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: F0 09 00 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: F0 09 00 5C 16 00 CF 29 C3 66 C4 85 C2 66 FC [11:17:33]GetLastDocTimeStamp 1724066207 [11:17:33]current date 1724066255 [11:17:33]FM_GetShiftState [11:17:33]SAM_PROTO_GetShiftState [11:17:33]wFMCommunicate request_size=4 [11:17:33]MH_SAM_APDU [11:17:33]CAPDU: 80 13 01 00 [11:17:33]Write to MH i2c: E2 08 00 5D 16 80 13 01 00 00 00 00 00 F0 [11:17:33]Write i2c OK [11:17:33]MH_I2C_Read... [11:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:33]Read from MH i2c: E2 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: E2 0E 00 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: E2 0E 00 5D 16 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 AA [11:17:33]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:17:33]wFMCommunicate OK [11:17:33]SAM_PROTO_GetShiftState done [11:17:33]FM_GetShiftState done [11:17:33]opened in 1724026361 [11:17:33]opened+sec_in_day 1724112761 [11:17:33]quantity*price = 0 [11:17:33]sum+1 = 1 [11:17:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 68 19.08.2024 11:17 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30098000 ФМ: 0000000000871800 ФД: 49961 ФПД: 280632164244857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111735&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49961&fm=280632164244857&tin=02508201610067®Number=0000000000092546&sum=0 [11:17:34]StoreToDocumentArchive [11:17:34]shift 467 fd 49961 [11:17:34]save to /storage/0467/doc_00049961 [11:17:34]save last doc name /storage/0467/doc_00049961 to /storage/kkm_last_doc_name [11:17:34]save OK [11:17:34]Clear old archive folders... [11:17:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:17:34]tlvbuf is 00F6A240 [11:17:34]SAM_PROTO_ClearQueue [11:17:34]wFMCommunicate request_size=4 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 09 00 00 [11:17:34]Write to MH i2c: E2 08 00 6A 16 80 09 00 00 00 00 00 00 F2 [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 6A 16 00 90 00 F4 [11:17:34]RAPDU: 90 00 [11:17:34]wFMCommunicate OK [11:17:34]SAM_PROTO_ClearQueue done [11:17:34]KKMCreateOFDPacket [11:17:34]OFDProtocolAddRootSTLVToBuf [11:17:34]FM_MakeSignedData [11:17:34]FM_MakeSignedData [11:17:34]SAM_PROTO_SignData [11:17:34]wFMCommunicate request_size=4 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 0D 01 02 [11:17:34]Write to MH i2c: E2 08 00 6B 16 80 0D 01 02 00 00 00 00 FA [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 6B 16 00 90 00 F5 [11:17:34]RAPDU: 90 00 [11:17:34]wFMCommunicate OK [11:17:34]wFMCommunicate request_size=255 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 CF 29 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 29 C3 00 00 35 04 06 00 FF 3B C4 76 [11:17:34]Write to MH i2c: E2 02 01 6C 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 CF 29 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 29 C3 00 00 35 04 06 00 FF 3B C4 76 00 00 BB [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 6C 16 00 90 00 F6 [11:17:34]RAPDU: 90 00 [11:17:34]wFMCommunicate OK [11:17:34]wFMCommunicate request_size=7 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 0D 02 02 02 5D 79 [11:17:34]Write to MH i2c: E2 0A 00 6D 16 80 0D 02 02 02 00 5D 79 00 00 D7 [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 6D 16 00 90 00 F7 [11:17:34]RAPDU: 90 00 [11:17:34]wFMCommunicate OK [11:17:34]wFMCommunicate request_size=4 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 0D 03 02 [11:17:34]Write to MH i2c: E2 08 00 6E 16 80 0D 03 02 00 00 00 00 FF [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 0B 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 0B 00 6E 16 00 F4 D3 53 9F 71 37 44 43 90 00 E8 [11:17:34]RAPDU: F4 D3 53 9F 71 37 44 43 90 00 [11:17:34]wFMCommunicate OK [11:17:34]SAM_PROTO_SignData done [11:17:34]FM_MakeSignedData done [11:17:34]CreateOFDProtocolMessage [11:17:34]wFMCommunicate request_size=4 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 11 00 00 [11:17:34]Write to MH i2c: E2 08 00 6F 16 80 11 00 00 00 00 00 00 FF [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 17 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 17 00 6F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4A [11:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:17:34]wFMCommunicate OK [11:17:34]CreateOFDProtocolMessage done [11:17:34]OFDSenderStorePacket 49961 [11:17:34]StoreOFDPacket docnum=49961 [11:17:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 24 8E 04 01 22 A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 CF 29 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 29 C3 00 00 35 04 06 00 FF 3B C4 76 5D 79 F4 D3 53 9F 71 37 44 43 [11:17:34]CheckFolder [11:17:34]dirname=/storage/ofd_packets [11:17:34]CheckFolder done [11:17:34]ProducePacketName [11:17:34]name=ofd_packets/00049961 [11:17:34]NVStorageSaveData ofd_packets/00049961 [11:17:34]File name is /storage/ofd_packets/00049961 [11:17:34]Write 298 bytes [11:17:34]NVStorageSaveData done [11:17:34]OFDSenderStorePacket done [11:17:34]KKMCreateOFDPacket done [11:17:34]NVStorageSaveData kkm_last_timestamp [11:17:34]File name is /storage/kkm_last_timestamp [11:17:34]Write 4 bytes [11:17:34]NVStorageSaveData done [11:17:34]ExternCall_PrintAddStr [11:17:34]wPrintStart [11:17:34]Write to MH i2c: 01 00 00 70 16 86 [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: 01 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: 01 07 00 [11:17:34]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 70 16 00 00 00 00 00 FF 0F 9B [11:17:35]RasterBufferAndPrint [11:17:35]line Счет N : (1)11327704 [11:17:35]line ИНН: 02508201610067 [11:17:35]line Контрольно-Кассовый Чек [11:17:35]line ПРОДАЖА [11:17:35]line ТРК (МРК, ГНК) : 61 [11:17:35]line Товар: 2710194210 [11:17:35]line ДТ-К-5 [11:17:35]line 15.000 * 0.00 [11:17:35]line = 0.00 [11:17:35]line НДС 12% НСП 1% [11:17:35]line > о реализуемом товаре [11:17:35]line ИТОГО: 0.00 [11:17:35]line НСП 1% : 0.00 [11:17:35]line НДС 12% : 0.00 [11:17:35]line Наличными: 0.00 [11:17:35]line Безнал.: 0.00 [11:17:35]line Место: АЗС № 95 "Партнер Нефть" [11:17:35]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:17:35]line СНО: Общий режим [11:17:35]line Чек 68 19.08.2024 11:17 [11:17:35]line Смена: 467 ФФД: 1.0 [11:17:35]line ЗНМ: 0300000078 [11:17:35]line РНМ: 0000000000092546 [11:17:35]line Версия ККМ: 001 [11:17:35]line Талоны: ТК ГПНА Online [11:17:35]line 30098000 [11:17:35]line ФМ: 0000000000871800 [11:17:35]line ФД: 49961 [11:17:35]line ФПД: 280632164244857 [11:17:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111735&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49961&fm=280632164244857&tin=02508201610067®Number=0000000000092546&sum=0 [11:17:35]OFD Sender: Processing packet 49961 [packets to send 21, broken 20] [11:17:35]ProducePacketName [11:17:35]name=ofd_packets/00049961 [11:17:35]OFD Sender: To server: pG, [11:17:35]CommunicateWithHost lk.salyk.kg:30040 [11:17:35]ConnectInit lk.salyk.kg [11:17:35]written 0, free lines is 4095 [11:17:35]Write to MH i2c: 01 00 00 9A 16 B0 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 9A 16 00 00 00 00 00 CF 0C 92 [11:17:35]RasterBufferAndPrint [11:17:35]line [11:17:35]line [11:17:35]line [11:17:35]line [11:17:35]line [11:17:35]written 0, free lines is 3283 [11:17:35]MH_Cut [11:17:35]Write to MH i2c: D1 01 00 A1 16 01 89 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: D1 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: D1 01 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: D1 01 00 A1 16 00 88 [11:17:35]Write to MH i2c: 01 00 00 A2 16 B8 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:36]*** Cut start [11:17:36]*** Purtial cut [11:17:36]*** CUTSNS_PIN = 0 [11:17:36]*** Stage 1: CUTSNS_PIN = 1 [11:17:38]Read from MH i2c: 01 [11:17:38]MH_I2C_Read... [11:17:38]*** Stop cut motor [11:17:38]*** Cut end [11:17:38]Read from MH i2c: 01 07 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 07 00 A2 16 00 00 00 00 00 FF 0F CD [11:17:38]process_action close_receipt done [11:17:38]requested_data is exist [11:17:38]produce_requested_data [11:17:38]requested_item fm.sn is exist - process it [11:17:38]wFMCommunicate request_size=4 [11:17:38]MH_SAM_APDU [11:17:38]CAPDU: 80 11 00 00 [11:17:38]Write to MH i2c: E2 08 00 A3 16 80 11 00 00 00 00 00 00 33 [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:38]Read from MH i2c: E2 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 17 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 17 00 A3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7E [11:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:17:38]wFMCommunicate OK [11:17:38]requested_item fd.num is exist - process it [11:17:38]SAM_PROTO_GetFieldsCounters [11:17:38]wFMCommunicate request_size=4 [11:17:38]MH_SAM_APDU [11:17:38]CAPDU: 80 13 00 00 [11:17:38]Write to MH i2c: E2 08 00 A4 16 80 13 00 00 00 00 00 00 36 [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:38]Read from MH i2c: E2 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 62 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 62 00 A4 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 29 C3 00 00 0E 04 04 00 D3 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 DC [11:17:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 29 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:38]wFMCommunicate OK [11:17:38]SAM_PROTO_GetFieldsCounters done [11:17:38]requested_item shift.num is exist - process it [11:17:38]requested_item shift.opened is exist - process it [11:17:38]req_shift_opened [11:17:38]FM_GetShiftState [11:17:38]SAM_PROTO_GetShiftState [11:17:38]wFMCommunicate request_size=4 [11:17:38]MH_SAM_APDU [11:17:38]CAPDU: 80 13 01 00 [11:17:38]Write to MH i2c: E2 08 00 A5 16 80 13 01 00 00 00 00 00 38 [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:38]Read from MH i2c: E2 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 0E 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 0E 00 A5 16 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 F2 [11:17:38]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:17:38]wFMCommunicate OK [11:17:38]SAM_PROTO_GetShiftState done [11:17:38]FM_GetShiftState done [11:17:38]req_shift_opened done [11:17:38]requested_item shift.open_date is exist - process it [11:17:38]req_shift_open_date [11:17:38]req_shift_open_date done [11:17:38]produce_requested_data done [11:17:38]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49961,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [11:17:38]process_action_free close_receipt [11:17:38]json_value_free [11:17:38]json_value_free done [11:17:38]process_json_proto returns [11:17:38]Send response to host [11:17:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49961,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [11:17:38]free response buf [11:17:38]execute_script done [11:17:38]execute_script returns [11:17:38]free content buf [11:17:38]Sock 7.Close socket [11:17:38]Sock 7.Thread stoped [11:17:39]accept exits with 9 [11:17:39]New connection [11:17:39]New thread 3067211108 created [11:17:39]Thread 3067354468 joined [11:17:39]Waiting for new connection... [11:17:39] Sock 9.Parse request [11:17:39]Sock 9.Check first char [11:17:39]Sock 9.First char is OK [11:17:39]request: POST /json_proto HTTP/1.0 [11:17:39]Method: POST [11:17:39]URL: /json_proto [11:17:39]Method is POST - this is cgi request [11:17:39]url: /json_proto [11:17:39]query_string will be loaded in cgi processing [11:17:39]execute_cgi json_proto POST (null) [11:17:39]execute_cgi path=json_proto method=POST [11:17:39]POST find Content-Length [11:17:39]Host: 172.17.46.196:8080 [11:17:39]Content-Length: 621 [11:17:39]Content-Type: application/json [11:17:39] [11:17:39]POST finish read [11:17:39]Found Content-Length = 621 [11:17:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190110", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:39]execute_script... [11:17: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)190110", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:39]POST & json_proto [11:17:39]process_json_proto [11:17:39]json parsed OK: [11:17:39]protocol is kg_v1.0 [11:17:39]action value=close_receipt [11:17:39]process_action close_receipt [11:17:39]cmd_close_receipt [11:17:39]MH_GetDate [11:17:39]Write to MH i2c: F0 00 00 A6 16 AB [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: F0 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: F0 09 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: F0 09 00 A6 16 00 D6 29 C3 66 C4 85 C2 66 4D [11:17:39]GetLastDocTimeStamp 1724066255 [11:17:39]current date 1724066262 [11:17:39]FM_GetShiftState [11:17:39]SAM_PROTO_GetShiftState [11:17:39]wFMCommunicate request_size=4 [11:17:39]MH_SAM_APDU [11:17:39]CAPDU: 80 13 01 00 [11:17:39]Write to MH i2c: E2 08 00 A7 16 80 13 01 00 00 00 00 00 3A [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:39]Read from MH i2c: E2 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 0E 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: E2 0E 00 A7 16 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 F4 [11:17:39]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:17:39]wFMCommunicate OK [11:17:39]SAM_PROTO_GetShiftState done [11:17:39]FM_GetShiftState done [11:17:39]opened in 1724026361 [11:17:39]opened+sec_in_day 1724112761 [11:17:39]quantity*price = 26000 [11:17:39]sum+1 = 26001 [11:17:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 69 19.08.2024 11:17 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49962 ФПД: 69304440590479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111742&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49962&fm=69304440590479&tin=02508201610067®Number=0000000000092546&sum=26000 0 [11:17:41]StoreToDocumentArchive [11:17:41]shift 467 fd 49962 [11:17:41]save to /storage/0467/doc_00049962 [11:17:41]save last doc name /storage/0467/doc_00049962 to /storage/kkm_last_doc_name [11:17:41]save OK [11:17:41]Clear old archive folders... [11:17:41]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:17:41]tlvbuf is B6F3CB30 [11:17:41]SAM_PROTO_ClearQueue [11:17:41]wFMCommunicate request_size=4 [11:17:41]MH_SAM_APDU [11:17:41]CAPDU: 80 09 00 00 [11:17:41]Write to MH i2c: E2 08 00 B4 16 80 09 00 00 00 00 00 00 3C [11:17:41]Write i2c OK [11:17:41]MH_I2C_Read... [11:17:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:41]Read from MH i2c: E2 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 03 00 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 03 00 B4 16 00 90 00 3E [11:17:41]RAPDU: 90 00 [11:17:41]wFMCommunicate OK [11:17:41]SAM_PROTO_ClearQueue done [11:17:41]KKMCreateOFDPacket [11:17:41]OFDProtocolAddRootSTLVToBuf [11:17:41]FM_MakeSignedData [11:17:41]FM_MakeSignedData [11:17:41]SAM_PROTO_SignData [11:17:41]wFMCommunicate request_size=4 [11:17:41]MH_SAM_APDU [11:17:41]CAPDU: 80 0D 01 02 [11:17:41]Write to MH i2c: E2 08 00 B5 16 80 0D 01 02 00 00 00 00 44 [11:17:41]Write i2c OK [11:17:41]MH_I2C_Read... [11:17:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:41]Read from MH i2c: E2 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 03 00 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 03 00 B5 16 00 90 00 3F [11:17:41]RAPDU: 90 00 [11:17:41]wFMCommunicate OK [11:17:41]wFMCommunicate request_size=255 [11:17:41]MH_SAM_APDU [11:17:41]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 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D6 29 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [11:17:41]Write to MH i2c: E2 02 01 B6 16 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 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D6 29 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 3A [11:17:41]Write i2c OK [11:17:41]MH_I2C_Read... [11:17:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:41]Read from MH i2c: E2 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 03 00 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 03 00 B6 16 00 90 00 40 [11:17:41]RAPDU: 90 00 [11:17:41]wFMCommunicate OK [11:17:41]wFMCommunicate request_size=32 [11:17:41]MH_SAM_APDU [11:17:41]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 2A C3 00 00 35 04 06 00 3F 08 32 90 10 8F [11:17:41]Write to MH i2c: E2 23 00 B7 16 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 2A C3 00 00 35 04 06 00 3F 08 32 90 10 8F 00 00 31 [11:17:41]Write i2c OK [11:17:41]MH_I2C_Read... [11:17:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:41]Read from MH i2c: E2 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 03 00 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 03 00 B7 16 00 90 00 41 [11:17:41]RAPDU: 90 00 [11:17:41]wFMCommunicate OK [11:17:41]wFMCommunicate request_size=4 [11:17:41]MH_SAM_APDU [11:17:41]CAPDU: 80 0D 03 02 [11:17:41]Write to MH i2c: E2 08 00 B8 16 80 0D 03 02 00 00 00 00 49 [11:17:41]Write i2c OK [11:17:41]MH_I2C_Read... [11:17:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:41]Read from MH i2c: E2 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 0B 00 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 0B 00 B8 16 00 82 11 BC BE 77 0F 99 38 90 00 AE [11:17:41]RAPDU: 82 11 BC BE 77 0F 99 38 90 00 [11:17:41]wFMCommunicate OK [11:17:41]SAM_PROTO_SignData done [11:17:41]FM_MakeSignedData done [11:17:41]CreateOFDProtocolMessage [11:17:41]wFMCommunicate request_size=4 [11:17:41]MH_SAM_APDU [11:17:41]CAPDU: 80 11 00 00 [11:17:41]Write to MH i2c: E2 08 00 B9 16 80 11 00 00 00 00 00 00 49 [11:17:41]Write i2c OK [11:17:41]MH_I2C_Read... [11:17:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:41]Read from MH i2c: E2 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 17 00 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 17 00 B9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 94 [11:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:17:41]wFMCommunicate OK [11:17:41]CreateOFDProtocolMessage done [11:17:41]OFDSenderStorePacket 49962 [11:17:41]StoreOFDPacket docnum=49962 [11:17:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 DA 48 1D 01 EF E4 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D6 29 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2A C3 00 00 35 04 06 00 3F 08 32 90 10 8F 82 11 BC BE 77 0F 99 38 [11:17:41]CheckFolder [11:17:41]dirname=/storage/ofd_packets [11:17:41]CheckFolder done [11:17:41]ProducePacketName [11:17:41]name=ofd_packets/00049962 [11:17:41]NVStorageSaveData ofd_packets/00049962 [11:17:41]File name is /storage/ofd_packets/00049962 [11:17:41]Write 323 bytes [11:17:41]NVStorageSaveData done [11:17:41]OFDSenderStorePacket done [11:17:41]KKMCreateOFDPacket done [11:17:41]NVStorageSaveData kkm_last_timestamp [11:17:41]File name is /storage/kkm_last_timestamp [11:17:41]Write 4 bytes [11:17:41]NVStorageSaveData done [11:17:41]ExternCall_PrintAddStr [11:17:41]wPrintStart [11:17:41]Write to MH i2c: 01 00 00 BA 16 D0 [11:17:41]Write i2c OK [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: 01 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: 01 07 00 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: 01 07 00 BA 16 00 00 00 00 00 FF 0F E5 [11:17:41]RasterBufferAndPrint [11:17:41]line Счет N : (3)190110 [11:17:41]line ИНН: 02508201610067 [11:17:41]line Контрольно-Кассовый Чек [11:17:41]line ПРОДАЖА [11:17:41]line Товар: 4780014240406 [11:17:41]line Сигареты Sovereign Blue [11:17:41]line 2.000 * 130.00 [11:17:41]line = 260.00 [11:17:41]line НДС 12% НСП 1% [11:17:41]line > о реализуемом товаре [11:17:41]line ИТОГО: 260.00 [11:17:41]line НСП 1% : 2.30 [11:17:41]line НДС 12% : 27.61 [11:17:41]line Наличными: 260.00 [11:17:41]line Безнал.: 0.00 [11:17:41]line Место: АЗС № 95 "Партнер Нефть" [11:17:41]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:17:41]line СНО: Общий режим [11:17:41]line Чек 69 19.08.2024 11:17 [11:17:41]line Смена: 467 ФФД: 1.0 [11:17:41]line ЗНМ: 0300000078 [11:17:41]line РНМ: 0000000000092546 [11:17:41]line Версия ККМ: 001 [11:17:41]line ФМ: 0000000000871800 [11:17:41]line ФД: 49962 [11:17:41]line ФПД: 69304440590479 [11:17:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T111742&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49962&fm=69304440590479&tin=02508201610067®Number=0000000000092546&sum=26000 [11:17:41]line 0 [11:17:41]written 0, free lines is 4095 [11:17:42]Write to MH i2c: 01 00 00 E2 16 F8 [11:17:42]Write i2c OK [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: 01 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: 01 07 00 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: 01 07 00 E2 16 00 00 00 00 00 F7 0C 02 [11:17:42]RasterBufferAndPrint [11:17:42]line [11:17:42]line [11:17:42]line [11:17:42]line [11:17:42]line [11:17:42]written 0, free lines is 3329 [11:17:42]MH_Cut [11:17:42]Write to MH i2c: D1 01 00 E9 16 01 D1 [11:17:42]Write i2c OK [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: D1 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: D1 01 00 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: D1 01 00 E9 16 00 D0 [11:17:42]Write to MH i2c: 01 00 00 EA 16 00 [11:17:42]Write i2c OK [11:17:42]MH_I2C_Read... [11:17:43]*** Cut start [11:17:43]*** Purtial cut [11:17:43]*** Stage 1: CUTSNS_PIN = 1 [11:17:43]Read from MH i2c: 01 [11:17:43]MH_I2C_Read... [11:17:43]*** Stop cut motor [11:17:43]*** Cut end [11:17:43]Read from MH i2c: 01 07 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: 01 07 00 EA 16 00 00 00 00 00 FF 0F 15 [11:17:43]process_action close_receipt done [11:17:43]requested_data is exist [11:17:43]produce_requested_data [11:17:43]requested_item fm.sn is exist - process it [11:17:43]wFMCommunicate request_size=4 [11:17:43]MH_SAM_APDU [11:17:43]CAPDU: 80 11 00 00 [11:17:43]Write to MH i2c: E2 08 00 EB 16 80 11 00 00 00 00 00 00 7B [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:43]Read from MH i2c: E2 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 17 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 17 00 EB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C6 [11:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:17:43]wFMCommunicate OK [11:17:43]requested_item fd.num is exist - process it [11:17:43]SAM_PROTO_GetFieldsCounters [11:17:43]wFMCommunicate request_size=4 [11:17:43]MH_SAM_APDU [11:17:43]CAPDU: 80 13 00 00 [11:17:43]Write to MH i2c: E2 08 00 EC 16 80 13 00 00 00 00 00 00 7E [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:43]Read from MH i2c: E2 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 62 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 62 00 EC 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2A C3 00 00 0E 04 04 00 D3 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 28 [11:17:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2A C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:43]wFMCommunicate OK [11:17:43]SAM_PROTO_GetFieldsCounters done [11:17:43]requested_item shift.num is exist - process it [11:17:43]requested_item shift.opened is exist - process it [11:17:43]req_shift_opened [11:17:43]FM_GetShiftState [11:17:43]SAM_PROTO_GetShiftState [11:17:43]wFMCommunicate request_size=4 [11:17:43]MH_SAM_APDU [11:17:43]CAPDU: 80 13 01 00 [11:17:43]Write to MH i2c: E2 08 00 ED 16 80 13 01 00 00 00 00 00 80 [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:43]Read from MH i2c: E2 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 0E 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: E2 0E 00 ED 16 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 3A [11:17:43]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:17:43]wFMCommunicate OK [11:17:43]SAM_PROTO_GetShiftState done [11:17:43]FM_GetShiftState done [11:17:43]req_shift_opened done [11:17:43]requested_item shift.open_date is exist - process it [11:17:43]req_shift_open_date [11:17:43]req_shift_open_date done [11:17:43]produce_requested_data done [11:17:43]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49962,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [11:17:43]process_action_free close_receipt [11:17:43]json_value_free [11:17:43]json_value_free done [11:17:43]process_json_proto returns [11:17:43]Send response to host [11:17:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49962,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [11:17:43]free response buf [11:17:43]execute_script done [11:17:43]execute_script returns [11:17:43]free content buf [11:17:43]Sock 9.Close socket [11:17:43]Sock 9.Thread stoped [11:19:44]ConnectInit Can't connect to host [11:19:44]CommunicateWithHost connect error [11:19:44]CommunicateWithHost err = -1 [11:19:44]OFD Sender: Server communicate error [11:19:44]OFD Sender: Processing packet 49961 [packets to send 22, broken 20] [11:19:44]ProducePacketName [11:19:44]name=ofd_packets/00049961 [11:19:44]OFD Sender: To server: pG, [11:19:44]CommunicateWithHost lk.salyk.kg:30040 [11:19:44]ConnectInit lk.salyk.kg [11:19:44]Connected sock=9 [11:19:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 24 8E 04 01 22 A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 CF 29 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 29 C3 00 00 35 04 06 00 FF 3B C4 76 5D 79 F4 D3 53 9F 71 37 44 43 [11:19:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 75 A8 47 00 2A 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 29 C3 00 00 F4 03 04 00 BE D4 C2 66 B6 04 01 00 00 A0 67 53 44 4D 84 51 2B [11:19:45]CommunicateWithHost err = 0 [11:19:45]CheckOFDResponse [11:19:45]1017 (14) - 77093643461234 [11:19:45]1041 (16) - 0000000000871800 [11:19:45]1040 (4) - 49961 [11:19:45]1012 (4) - 19.08.2024 05:14 [11:19:45]1206 (1) - 0 [11:19:45]OFD Sender: Remove packet 49961 [11:19:45]ProducePacketName [11:19:45]name=ofd_packets/00049961 [11:19:45]NVStorageDeleteData [11:19:45]OFD Sender: Processing packet 49962 [packets to send 21, broken 20] [11:19:45]ProducePacketName [11:19:45]name=ofd_packets/00049962 [11:19:45]OFD Sender: To server: pG, [11:19:45]CommunicateWithHost lk.salyk.kg:30040 [11:19:45]ConnectInit lk.salyk.kg [11:19:45]Connected sock=9 [11:19:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 DA 48 1D 01 EF E4 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 D6 29 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2A C3 00 00 35 04 06 00 3F 08 32 90 10 8F 82 11 BC BE 77 0F 99 38 [11:19:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D5 8A 47 00 66 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2A C3 00 00 F4 03 04 00 BF D4 C2 66 B6 04 01 00 00 FF B8 A8 78 CC 9C D3 9C [11:19:46]CommunicateWithHost err = 0 [11:19:46]CheckOFDResponse [11:19:46]1017 (14) - 77093643461234 [11:19:46]1041 (16) - 0000000000871800 [11:19:46]1040 (4) - 49962 [11:19:46]1012 (4) - 19.08.2024 05:14 [11:19:46]1206 (1) - 0 [11:19:46]OFD Sender: Remove packet 49962 [11:19:46]ProducePacketName [11:19:46]name=ofd_packets/00049962 [11:19:46]NVStorageDeleteData [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:15]accept exits with 7 [11:22:15]New connection [11:22:15]New thread 3067354468 created [11:22:15]Thread 3067211108 joined [11:22:15]Waiting for new connection... [11:22:15] Sock 7.Parse request [11:22:15]Sock 7.Check first char [11:22:15]Sock 7.First char is OK [11:22:15]request: POST /json_proto HTTP/1.0 [11:22:15]Method: POST [11:22:15]URL: /json_proto [11:22:15]Method is POST - this is cgi request [11:22:15]url: /json_proto [11:22:15]query_string will be loaded in cgi processing [11:22:15]execute_cgi json_proto POST (null) [11:22:15]execute_cgi path=json_proto method=POST [11:22:15]POST find Content-Length [11:22:15]Host: 172.17.46.196:8080 [11:22:15]Content-Length: 706 [11:22:15]Content-Type: application/json [11:22:15] [11:22:15]POST finish read [11:22:15]Found Content-Length = 706 [11:22:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190111", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "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:22:15]execute_script... [11:22: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)190111", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "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:22:15]POST & json_proto [11:22:15]process_json_proto [11:22:15]json parsed OK: [11:22:15]protocol is kg_v1.0 [11:22:15]action value=close_receipt [11:22:15]process_action close_receipt [11:22:15]cmd_close_receipt [11:22:15]MH_GetDate [11:22:15]Write to MH i2c: F0 00 00 EE 16 F3 [11:22:15]Write i2c OK [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: F0 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: F0 09 00 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: F0 09 00 EE 16 00 EA 2A C3 66 C4 85 C2 66 AA [11:22:15]GetLastDocTimeStamp 1724066262 [11:22:15]current date 1724066538 [11:22:15]FM_GetShiftState [11:22:15]SAM_PROTO_GetShiftState [11:22:15]wFMCommunicate request_size=4 [11:22:15]MH_SAM_APDU [11:22:15]CAPDU: 80 13 01 00 [11:22:15]Write to MH i2c: E2 08 00 EF 16 80 13 01 00 00 00 00 00 82 [11:22:15]Write i2c OK [11:22:15]MH_I2C_Read... [11:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:15]Read from MH i2c: E2 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 0E 00 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 0E 00 EF 16 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 3C [11:22:15]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:22:15]wFMCommunicate OK [11:22:15]SAM_PROTO_GetShiftState done [11:22:15]FM_GetShiftState done [11:22:15]opened in 1724026361 [11:22:15]opened+sec_in_day 1724112761 [11:22:15]quantity*price = 12000 [11:22:15]sum+1 = 12001 [11:22:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 70 19.08.2024 11:22 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49963 ФПД: 164329509726211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112218&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49963&fm=164329509726211&tin=02508201610067®Number=0000000000092546&sum=12000 0 [11:22:17]StoreToDocumentArchive [11:22:17]shift 467 fd 49963 [11:22:17]save to /storage/0467/doc_00049963 [11:22:17]save last doc name /storage/0467/doc_00049963 to /storage/kkm_last_doc_name [11:22:17]save OK [11:22:17]Clear old archive folders... [11:22:17]ProcessDocumentItem done err = 0, tmpTLVsize=298 [11:22:17]tlvbuf is B6F0A490 [11:22:17]SAM_PROTO_ClearQueue [11:22:17]wFMCommunicate request_size=4 [11:22:17]MH_SAM_APDU [11:22:17]CAPDU: 80 09 00 00 [11:22:17]Write to MH i2c: E2 08 00 FC 16 80 09 00 00 00 00 00 00 84 [11:22:17]Write i2c OK [11:22:17]MH_I2C_Read... [11:22:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:17]Read from MH i2c: E2 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: E2 03 00 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: E2 03 00 FC 16 00 90 00 86 [11:22:17]RAPDU: 90 00 [11:22:17]wFMCommunicate OK [11:22:17]SAM_PROTO_ClearQueue done [11:22:17]KKMCreateOFDPacket [11:22:17]OFDProtocolAddRootSTLVToBuf [11:22:17]FM_MakeSignedData [11:22:17]FM_MakeSignedData [11:22:17]SAM_PROTO_SignData [11:22:17]wFMCommunicate request_size=4 [11:22:17]MH_SAM_APDU [11:22:17]CAPDU: 80 0D 01 02 [11:22:17]Write to MH i2c: E2 08 00 FD 16 80 0D 01 02 00 00 00 00 8C [11:22:17]Write i2c OK [11:22:17]MH_I2C_Read... [11:22:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:17]Read from MH i2c: E2 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: E2 03 00 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: E2 03 00 FD 16 00 90 00 87 [11:22:17]RAPDU: 90 00 [11:22:17]wFMCommunicate OK [11:22:17]wFMCommunicate request_size=255 [11:22:17]MH_SAM_APDU [11:22:17]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 46 00 00 00 F4 03 04 00 EA 2A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [11:22:17]Write to MH i2c: E2 02 01 FE 16 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 46 00 00 00 F4 03 04 00 EA 2A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 E1 [11:22:17]Write i2c OK [11:22:17]MH_I2C_Read... [11:22:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:17]Read from MH i2c: E2 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: E2 03 00 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: E2 03 00 FE 16 00 90 00 88 [11:22:17]RAPDU: 90 00 [11:22:17]wFMCommunicate OK [11:22:17]wFMCommunicate request_size=57 [11:22:17]MH_SAM_APDU [11:22:17]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2B C3 00 00 35 04 06 00 95 74 F2 0D A8 03 [11:22:17]Write to MH i2c: E2 3C 00 FF 16 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2B C3 00 00 35 04 06 00 95 74 F2 0D A8 03 00 00 E6 [11:22:17]Write i2c OK [11:22:17]MH_I2C_Read... [11:22:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:17]Read from MH i2c: E2 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: E2 03 00 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: E2 03 00 FF 16 00 90 00 89 [11:22:17]RAPDU: 90 00 [11:22:17]wFMCommunicate OK [11:22:17]wFMCommunicate request_size=4 [11:22:17]MH_SAM_APDU [11:22:17]CAPDU: 80 0D 03 02 [11:22:17]Write to MH i2c: E2 08 00 00 17 80 0D 03 02 00 00 00 00 92 [11:22:17]Write i2c OK [11:22:17]MH_I2C_Read... [11:22:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:17]Read from MH i2c: E2 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: E2 0B 00 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: E2 0B 00 00 17 00 DF C2 7B 5F D5 E0 14 E8 90 00 BF [11:22:17]RAPDU: DF C2 7B 5F D5 E0 14 E8 90 00 [11:22:17]wFMCommunicate OK [11:22:17]SAM_PROTO_SignData done [11:22:17]FM_MakeSignedData done [11:22:17]CreateOFDProtocolMessage [11:22:17]wFMCommunicate request_size=4 [11:22:17]MH_SAM_APDU [11:22:17]CAPDU: 80 11 00 00 [11:22:17]Write to MH i2c: E2 08 00 01 17 80 11 00 00 00 00 00 00 92 [11:22:17]Write i2c OK [11:22:17]MH_I2C_Read... [11:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:17]Read from MH i2c: E2 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: E2 17 00 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: E2 17 00 01 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DD [11:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:22:17]wFMCommunicate OK [11:22:17]CreateOFDProtocolMessage done [11:22:17]OFDSenderStorePacket 49963 [11:22:17]StoreOFDPacket docnum=49963 [11:22:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3E 01 00 00 4B 23 36 01 11 2F 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 46 00 00 00 F4 03 04 00 EA 2A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2B C3 00 00 35 04 06 00 95 74 F2 0D A8 03 DF C2 7B 5F D5 E0 14 E8 [11:22:17]CheckFolder [11:22:17]dirname=/storage/ofd_packets [11:22:17]CheckFolder done [11:22:17]ProducePacketName [11:22:17]name=ofd_packets/00049963 [11:22:17]NVStorageSaveData ofd_packets/00049963 [11:22:17]File name is /storage/ofd_packets/00049963 [11:22:17]Write 348 bytes [11:22:17]NVStorageSaveData done [11:22:17]OFDSenderStorePacket done [11:22:17]KKMCreateOFDPacket done [11:22:17]NVStorageSaveData kkm_last_timestamp [11:22:17]File name is /storage/kkm_last_timestamp [11:22:17]Write 4 bytes [11:22:17]NVStorageSaveData done [11:22:17]ExternCall_PrintAddStr [11:22:17]wPrintStart [11:22:17]Write to MH i2c: 01 00 00 02 17 19 [11:22:17]Write i2c OK [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: 01 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: 01 07 00 [11:22:17]MH_I2C_Read... [11:22:17]Read from MH i2c: 01 07 00 02 17 00 00 00 00 00 FF 0F 2E [11:22:17]RasterBufferAndPrint [11:22:17]line Счет N : (3)190111 [11:22:17]line ИНН: 02508201610067 [11:22:17]line Контрольно-Кассовый Чек [11:22:17]line ПРОДАЖА [11:22:17]line Товар: 5449000189356 [11:22:17]line Холодный чай Fuse манго ананас 1л [11:22:17]line 1.000 * 120.00 [11:22:17]line = 120.00 [11:22:17]line НДС 12% НСП 1% [11:22:17]line > о реализуемом товаре [11:22:17]line ИТОГО: 120.00 [11:22:17]line НСП 1% : 1.06 [11:22:17]line НДС 12% : 12.74 [11:22:17]line Наличными: 120.00 [11:22:17]line Безнал.: 0.00 [11:22:17]line Место: АЗС № 95 "Партнер Нефть" [11:22:17]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:22:17]line СНО: Общий режим [11:22:17]line Чек 70 19.08.2024 11:22 [11:22:17]line Смена: 467 ФФД: 1.0 [11:22:17]line ЗНМ: 0300000078 [11:22:17]line РНМ: 0000000000092546 [11:22:17]line Версия ККМ: 001 [11:22:17]line ФМ: 0000000000871800 [11:22:17]line ФД: 49963 [11:22:17]line ФПД: 164329509726211 [11:22:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112218&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49963&fm=164329509726211&tin=02508201610067®Number=0000000000092546&sum=12000 [11:22:17]line 0 [11:22:17]written 0, free lines is 4095 [11:22:17]OFD Sender: Processing packet 49963 [packets to send 21, broken 20] [11:22:17]ProducePacketName [11:22:17]name=ofd_packets/00049963 [11:22:17]OFD Sender: To server: pG, [11:22:17]CommunicateWithHost lk.salyk.kg:30040 [11:22:17]ConnectInit lk.salyk.kg [11:22:17]Connected sock=10 [11:22:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3E 01 00 00 4B 23 36 01 11 2F 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 46 00 00 00 F4 03 04 00 EA 2A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2B C3 00 00 35 04 06 00 95 74 F2 0D A8 03 DF C2 7B 5F D5 E0 14 E8 [11:22:18]Write to MH i2c: 01 00 00 2B 17 42 [11:22:18]Write i2c OK [11:22:18]MH_I2C_Read... [11:22:18]Read from MH i2c: 01 [11:22:18]MH_I2C_Read... [11:22:18]Read from MH i2c: 01 07 00 [11:22:18]MH_I2C_Read... [11:22:18]Read from MH i2c: 01 07 00 2B 17 00 00 00 00 00 EC 0C 41 [11:22:18]RasterBufferAndPrint [11:22:18]line [11:22:18]line [11:22:18]line [11:22:18]line [11:22:18]line [11:22:18]written 0, free lines is 3314 [11:22:18]MH_Cut [11:22:18]Write to MH i2c: D1 01 00 32 17 01 1B [11:22:18]Write i2c OK [11:22:18]MH_I2C_Read... [11:22:18]Read from MH i2c: D1 [11:22:18]MH_I2C_Read... [11:22:18]Read from MH i2c: D1 01 00 [11:22:18]MH_I2C_Read... [11:22:18]Read from MH i2c: D1 01 00 32 17 00 1A [11:22:18]Write to MH i2c: 01 00 00 33 17 4A [11:22:18]Write i2c OK [11:22:18]MH_I2C_Read... [11:22:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 62 E5 47 00 2E 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2B C3 00 00 F4 03 04 00 57 D5 C2 66 B6 04 01 00 00 ED 47 50 0F F6 65 07 97 [11:22:18]CommunicateWithHost err = 0 [11:22:18]CheckOFDResponse [11:22:18]1017 (14) - 77093643461234 [11:22:18]1041 (16) - 0000000000871800 [11:22:18]1040 (4) - 49963 [11:22:18]1012 (4) - 19.08.2024 05:17 [11:22:18]1206 (1) - 0 [11:22:18]OFD Sender: Remove packet 49963 [11:22:18]ProducePacketName [11:22:18]name=ofd_packets/00049963 [11:22:18]NVStorageDeleteData [11:22:18]OFD Sender: No OFD packet to send [11:22:18]*** Cut start [11:22:18]*** Purtial cut [11:22:18]*** CUTSNS_PIN = 0 [11:22:19]*** Stage 1: CUTSNS_PIN = 1 [11:22:20]Read from MH i2c: 01 [11:22:20]MH_I2C_Read... [11:22:20]*** Stop cut motor [11:22:20]*** Cut end [11:22:20]Read from MH i2c: 01 07 00 [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: 01 07 00 33 17 00 00 00 00 00 FF 0F 5F [11:22:20]process_action close_receipt done [11:22:20]requested_data is exist [11:22:20]produce_requested_data [11:22:20]requested_item fm.sn is exist - process it [11:22:20]wFMCommunicate request_size=4 [11:22:20]MH_SAM_APDU [11:22:20]CAPDU: 80 11 00 00 [11:22:20]Write to MH i2c: E2 08 00 34 17 80 11 00 00 00 00 00 00 C5 [11:22:20]Write i2c OK [11:22:20]MH_I2C_Read... [11:22:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:20]Read from MH i2c: E2 [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: E2 17 00 [11:22:20]MH_I2C_Read... [11:22:20]Read from MH i2c: E2 17 00 34 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 10 [11:22:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:22:20]wFMCommunicate OK [11:22:20]requested_item fd.num is exist - process it [11:22:20]SAM_PROTO_GetFieldsCounters [11:22:20]wFMCommunicate request_size=4 [11:22:20]MH_SAM_APDU [11:22:20]CAPDU: 80 13 00 00 [11:22:20]Write to MH i2c: E2 08 00 35 17 80 13 00 00 00 00 00 00 C8 [11:22:20]Write i2c OK [11:22:20]MH_I2C_Read... [11:22:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:21]Read from MH i2c: E2 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: E2 62 00 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: E2 62 00 35 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2B C3 00 00 0E 04 04 00 D3 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 76 [11:22:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2B C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:21]wFMCommunicate OK [11:22:21]SAM_PROTO_GetFieldsCounters done [11:22:21]requested_item shift.num is exist - process it [11:22:21]requested_item shift.opened is exist - process it [11:22:21]req_shift_opened [11:22:21]FM_GetShiftState [11:22:21]SAM_PROTO_GetShiftState [11:22:21]wFMCommunicate request_size=4 [11:22:21]MH_SAM_APDU [11:22:21]CAPDU: 80 13 01 00 [11:22:21]Write to MH i2c: E2 08 00 36 17 80 13 01 00 00 00 00 00 CA [11:22:21]Write i2c OK [11:22:21]MH_I2C_Read... [11:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:21]Read from MH i2c: E2 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: E2 0E 00 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: E2 0E 00 36 17 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 84 [11:22:21]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:22:21]wFMCommunicate OK [11:22:21]SAM_PROTO_GetShiftState done [11:22:21]FM_GetShiftState done [11:22:21]req_shift_opened done [11:22:21]requested_item shift.open_date is exist - process it [11:22:21]req_shift_open_date [11:22:21]req_shift_open_date done [11:22:21]produce_requested_data done [11:22:21]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49963,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [11:22:21]process_action_free close_receipt [11:22:21]json_value_free [11:22:21]json_value_free done [11:22:21]process_json_proto returns [11:22:21]Send response to host [11:22:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49963,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [11:22:21]free response buf [11:22:21]execute_script done [11:22:21]execute_script returns [11:22:21]free content buf [11:22:21]Sock 7.Close socket [11:22:21]Sock 7.Thread stoped [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:25]accept exits with 9 [11:26:25]New connection [11:26:25]New thread 3067211108 created [11:26:25]Thread 3067354468 joined [11:26:25]Waiting for new connection... [11:26:25] Sock 9.Parse request [11:26:25]Sock 9.Check first char [11:26:25]Sock 9.First char is OK [11:26:25]request: POST /json_proto HTTP/1.0 [11:26:25]Method: POST [11:26:25]URL: /json_proto [11:26:25]Method is POST - this is cgi request [11:26:25]url: /json_proto [11:26:25]query_string will be loaded in cgi processing [11:26:25]execute_cgi json_proto POST (null) [11:26:25]execute_cgi path=json_proto method=POST [11:26:25]POST find Content-Length [11:26:25]Host: 172.17.46.196:8080 [11:26:25]Content-Length: 951 [11:26:25]Content-Type: application/json [11:26:25] [11:26:25]POST finish read [11:26:25]Found Content-Length = 951 [11:26:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190112", "tax_sys" : 0, "items" : [ { "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" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:25]execute_script... [11:26: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)190112", "tax_sys" : 0, "items" : [ { "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" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:25]POST & json_proto [11:26:25]process_json_proto [11:26:25]json parsed OK: [11:26:25]protocol is kg_v1.0 [11:26:25]action value=close_receipt [11:26:25]process_action close_receipt [11:26:25]cmd_close_receipt [11:26:25]MH_GetDate [11:26:25]Write to MH i2c: F0 00 00 37 17 3D [11:26:25]Write i2c OK [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: F0 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: F0 09 00 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: F0 09 00 37 17 00 E3 2B C3 66 C4 85 C2 66 EE [11:26:25]GetLastDocTimeStamp 1724066538 [11:26:25]current date 1724066787 [11:26:25]FM_GetShiftState [11:26:25]SAM_PROTO_GetShiftState [11:26:25]wFMCommunicate request_size=4 [11:26:25]MH_SAM_APDU [11:26:25]CAPDU: 80 13 01 00 [11:26:25]Write to MH i2c: E2 08 00 38 17 80 13 01 00 00 00 00 00 CC [11:26:25]Write i2c OK [11:26:25]MH_I2C_Read... [11:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:25]Read from MH i2c: E2 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 0E 00 [11:26:25]MH_I2C_Read... [11:26:25]Read from MH i2c: E2 0E 00 38 17 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 86 [11:26:25]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:26:25]wFMCommunicate OK [11:26:25]SAM_PROTO_GetShiftState done [11:26:25]FM_GetShiftState done [11:26:25]opened in 1724026361 [11:26:25]opened+sec_in_day 1724112761 [11:26:25]quantity*price = 6500 [11:26:25]sum+1 = 6501 [11:26:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001154059 Напиток Lipton IceTea 0,5л зел чай 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.23 НДС 12% : 14.86 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 71 19.08.2024 11:26 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49964 ФПД: 56257459352672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112627&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49964&fm=56257459352672&tin=02508201610067®Number=0000000000092546&sum=14000 0 [11:26:26]StoreToDocumentArchive [11:26:26]shift 467 fd 49964 [11:26:26]save to /storage/0467/doc_00049964 [11:26:26]save last doc name /storage/0467/doc_00049964 to /storage/kkm_last_doc_name [11:26:26]save OK [11:26:26]Clear old archive folders... [11:26:26]ProcessDocumentItem done err = 0, tmpTLVsize=409 [11:26:26]tlvbuf is B6F3CC20 [11:26:26]SAM_PROTO_ClearQueue [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 09 00 00 [11:26:26]Write to MH i2c: E2 08 00 45 17 80 09 00 00 00 00 00 00 CE [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 45 17 00 90 00 D0 [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]SAM_PROTO_ClearQueue done [11:26:26]KKMCreateOFDPacket [11:26:26]OFDProtocolAddRootSTLVToBuf [11:26:26]FM_MakeSignedData [11:26:26]FM_MakeSignedData [11:26:26]SAM_PROTO_SignData [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 0D 01 02 [11:26:26]Write to MH i2c: E2 08 00 46 17 80 0D 01 02 00 00 00 00 D6 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 46 17 00 90 00 D1 [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]wFMCommunicate request_size=255 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 0D 02 02 FA 03 00 99 01 1E 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 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 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 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 [11:26:26]Write to MH i2c: E2 02 01 47 17 80 0D 02 02 FA 00 03 00 99 01 1E 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 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 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 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 00 00 B8 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 47 17 00 90 00 D2 [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]wFMCommunicate request_size=168 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 0D 02 02 A3 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 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 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 47 00 00 00 F4 03 04 00 E3 2B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2C C3 00 00 35 04 06 00 33 2A 75 E1 74 60 [11:26:26]Write to MH i2c: E2 AB 00 48 17 80 0D 02 02 A3 00 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 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 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 47 00 00 00 F4 03 04 00 E3 2B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2C C3 00 00 35 04 06 00 33 2A 75 E1 74 60 00 00 3D [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 48 17 00 90 00 D3 [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 0D 03 02 [11:26:26]Write to MH i2c: E2 08 00 49 17 80 0D 03 02 00 00 00 00 DB [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:27]Read from MH i2c: E2 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 0B 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 0B 00 49 17 00 A4 48 D8 8E 3B 52 E2 BC 90 00 59 [11:26:27]RAPDU: A4 48 D8 8E 3B 52 E2 BC 90 00 [11:26:27]wFMCommunicate OK [11:26:27]SAM_PROTO_SignData done [11:26:27]FM_MakeSignedData done [11:26:27]CreateOFDProtocolMessage [11:26:27]wFMCommunicate request_size=4 [11:26:27]MH_SAM_APDU [11:26:27]CAPDU: 80 11 00 00 [11:26:27]Write to MH i2c: E2 08 00 4A 17 80 11 00 00 00 00 00 00 DB [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:27]Read from MH i2c: E2 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 17 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: E2 17 00 4A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 26 [11:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:26:27]wFMCommunicate OK [11:26:27]CreateOFDProtocolMessage done [11:26:27]OFDSenderStorePacket 49964 [11:26:27]StoreOFDPacket docnum=49964 [11:26:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 AD 01 00 00 9F A7 A5 01 AA BC 5A 03 01 00 03 00 99 01 1E 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 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 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 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 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 47 00 00 00 F4 03 04 00 E3 2B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2C C3 00 00 35 04 06 00 33 2A 75 E1 74 60 A4 48 D8 8E 3B 52 E2 BC [11:26:27]CheckFolder [11:26:27]dirname=/storage/ofd_packets [11:26:27]CheckFolder done [11:26:27]ProducePacketName [11:26:27]name=ofd_packets/00049964 [11:26:27]NVStorageSaveData ofd_packets/00049964 [11:26:27]File name is /storage/ofd_packets/00049964 [11:26:27]Write 459 bytes [11:26:27]NVStorageSaveData done [11:26:27]OFDSenderStorePacket done [11:26:27]KKMCreateOFDPacket done [11:26:27]NVStorageSaveData kkm_last_timestamp [11:26:27]File name is /storage/kkm_last_timestamp [11:26:27]Write 4 bytes [11:26:27]NVStorageSaveData done [11:26:27]ExternCall_PrintAddStr [11:26:27]wPrintStart [11:26:27]Write to MH i2c: 01 00 00 4B 17 62 [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 07 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 07 00 4B 17 00 00 00 00 00 FF 0F 77 [11:26:27]RasterBufferAndPrint [11:26:27]line Счет N : (3)190112 [11:26:27]line ИНН: 02508201610067 [11:26:27]line Контрольно-Кассовый Чек [11:26:27]line ПРОДАЖА [11:26:27]line Товар: 5449000189325 [11:26:27]line Холодный чай Fuse персик 0,5л [11:26:27]line 1.000 * 65.00 [11:26:27]line = 65.00 [11:26:27]line НДС 12% НСП 1% [11:26:27]line > о реализуемом товаре [11:26:27]line Товар: 4870001154059 [11:26:27]line Напиток Lipton IceTea 0,5л зел чай [11:26:27]line 1.000 * 75.00 [11:26:27]line = 75.00 [11:26:27]line НДС 12% НСП 1% [11:26:27]line > о реализуемом товаре [11:26:27]line ИТОГО: 140.00 [11:26:27]line НСП 1% : 1.23 [11:26:27]line НДС 12% : 14.86 [11:26:27]line Наличными: 140.00 [11:26:27]line Безнал.: 0.00 [11:26:27]line Место: АЗС № 95 "Партнер Нефть" [11:26:27]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:26:27]line СНО: Общий режим [11:26:27]line Чек 71 19.08.2024 11:26 [11:26:27]line Смена: 467 ФФД: 1.0 [11:26:27]line ЗНМ: 0300000078 [11:26:27]line РНМ: 0000000000092546 [11:26:27]line Версия ККМ: 001 [11:26:27]line ФМ: 0000000000871800 [11:26:27]line ФД: 49964 [11:26:27]line ФПД: 56257459352672 [11:26:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112627&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49964&fm=56257459352672&tin=02508201610067®Number=0000000000092546&sum=14000 [11:26:27]line 0 [11:26:27]OFD Sender: Processing packet 49964 [packets to send 21, broken 20] [11:26:27]ProducePacketName [11:26:27]name=ofd_packets/00049964 [11:26:27]OFD Sender: To server: pG, [11:26:27]CommunicateWithHost lk.salyk.kg:30040 [11:26:27]ConnectInit lk.salyk.kg [11:26:27]written 0, free lines is 4095 [11:26:27]Connected sock=10 [11:26:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 AD 01 00 00 9F A7 A5 01 AA BC 5A 03 01 00 03 00 99 01 1E 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 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 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 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 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 47 00 00 00 F4 03 04 00 E3 2B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2C C3 00 00 35 04 06 00 33 2A 75 E1 74 60 A4 48 D8 8E 3B 52 E2 BC [11:26:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 90 33 47 00 B0 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2C C3 00 00 F4 03 04 00 51 D6 C2 66 B6 04 01 00 00 0C E6 AE 6E B5 65 A8 B1 [11:26:27]CommunicateWithHost err = 0 [11:26:27]CheckOFDResponse [11:26:27]1017 (14) - 77093643461234 [11:26:27]1041 (16) - 0000000000871800 [11:26:27]1040 (4) - 49964 [11:26:27]1012 (4) - 19.08.2024 05:21 [11:26:27]1206 (1) - 0 [11:26:27]OFD Sender: Remove packet 49964 [11:26:27]ProducePacketName [11:26:27]name=ofd_packets/00049964 [11:26:27]NVStorageDeleteData [11:26:27]Write to MH i2c: 01 00 00 7B 17 92 [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 07 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 07 00 7B 17 00 00 00 00 00 6E 0C 13 [11:26:27]RasterBufferAndPrint [11:26:27]line [11:26:27]line [11:26:27]line [11:26:27]line [11:26:27]line [11:26:27]written 0, free lines is 3188 [11:26:27]MH_Cut [11:26:27]Write to MH i2c: D1 01 00 82 17 01 6B [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: D1 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: D1 01 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: D1 01 00 82 17 00 6A [11:26:27]Write to MH i2c: 01 00 00 83 17 9A [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:28]OFD Sender: No OFD packet to send [11:26:28]*** Cut start [11:26:28]*** Purtial cut [11:26:28]*** Stage 1: CUTSNS_PIN = 1 [11:26:29]Read from MH i2c: 01 [11:26:29]MH_I2C_Read... [11:26:29]*** Stop cut motor [11:26:29]*** Cut end [11:26:29]Read from MH i2c: 01 07 00 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: 01 07 00 83 17 00 00 00 00 00 FF 0F AF [11:26:29]process_action close_receipt done [11:26:29]requested_data is exist [11:26:29]produce_requested_data [11:26:29]requested_item fm.sn is exist - process it [11:26:29]wFMCommunicate request_size=4 [11:26:29]MH_SAM_APDU [11:26:29]CAPDU: 80 11 00 00 [11:26:29]Write to MH i2c: E2 08 00 84 17 80 11 00 00 00 00 00 00 15 [11:26:29]Write i2c OK [11:26:29]MH_I2C_Read... [11:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:29]Read from MH i2c: E2 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 17 00 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 17 00 84 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 60 [11:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:26:29]wFMCommunicate OK [11:26:29]requested_item fd.num is exist - process it [11:26:29]SAM_PROTO_GetFieldsCounters [11:26:29]wFMCommunicate request_size=4 [11:26:29]MH_SAM_APDU [11:26:29]CAPDU: 80 13 00 00 [11:26:29]Write to MH i2c: E2 08 00 85 17 80 13 00 00 00 00 00 00 18 [11:26:29]Write i2c OK [11:26:29]MH_I2C_Read... [11:26:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:29]Read from MH i2c: E2 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 62 00 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 62 00 85 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2C C3 00 00 0E 04 04 00 D3 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 CA [11:26:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2C C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:29]wFMCommunicate OK [11:26:29]SAM_PROTO_GetFieldsCounters done [11:26:29]requested_item shift.num is exist - process it [11:26:29]requested_item shift.opened is exist - process it [11:26:29]req_shift_opened [11:26:29]FM_GetShiftState [11:26:29]SAM_PROTO_GetShiftState [11:26:29]wFMCommunicate request_size=4 [11:26:29]MH_SAM_APDU [11:26:29]CAPDU: 80 13 01 00 [11:26:29]Write to MH i2c: E2 08 00 86 17 80 13 01 00 00 00 00 00 1A [11:26:29]Write i2c OK [11:26:29]MH_I2C_Read... [11:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:29]Read from MH i2c: E2 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 0E 00 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 0E 00 86 17 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 D4 [11:26:29]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:26:29]wFMCommunicate OK [11:26:29]SAM_PROTO_GetShiftState done [11:26:29]FM_GetShiftState done [11:26:29]req_shift_opened done [11:26:29]requested_item shift.open_date is exist - process it [11:26:29]req_shift_open_date [11:26:29]req_shift_open_date done [11:26:29]produce_requested_data done [11:26:29]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49964,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [11:26:29]process_action_free close_receipt [11:26:29]json_value_free [11:26:29]json_value_free done [11:26:29]process_json_proto returns [11:26:29]Send response to host [11:26:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49964,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [11:26:29]free response buf [11:26:29]execute_script done [11:26:29]execute_script returns [11:26:29]free content buf [11:26:29]Sock 9.Close socket [11:26:29]Sock 9.Thread stoped [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:31]accept exits with 7 [11:28:31]New connection [11:28:31]New thread 3067354468 created [11:28:31]Thread 3067211108 joined [11:28:31]Waiting for new connection... [11:28:31] Sock 7.Parse request [11:28:31]Sock 7.Check first char [11:28:31]Sock 7.First char is OK [11:28:31]request: POST /json_proto HTTP/1.0 [11:28:31]Method: POST [11:28:31]URL: /json_proto [11:28:31]Method is POST - this is cgi request [11:28:31]url: /json_proto [11:28:31]query_string will be loaded in cgi processing [11:28:31]execute_cgi json_proto POST (null) [11:28:31]execute_cgi path=json_proto method=POST [11:28:31]POST find Content-Length [11:28:31]Host: 172.17.46.196:8080 [11:28:31]Content-Length: 807 [11:28:31]Content-Type: application/json [11:28:31] [11:28:31]POST finish read [11:28:31]Found Content-Length = 807 [11:28:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190113", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:31]execute_script... [11:28: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)190113", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:31]POST & json_proto [11:28:31]process_json_proto [11:28:31]json parsed OK: [11:28:31]protocol is kg_v1.0 [11:28:31]action value=close_receipt [11:28:31]process_action close_receipt [11:28:31]cmd_close_receipt [11:28:31]MH_GetDate [11:28:31]Write to MH i2c: F0 00 00 87 17 8D [11:28:31]Write i2c OK [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: F0 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: F0 09 00 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: F0 09 00 87 17 00 62 2C C3 66 C4 85 C2 66 BE [11:28:31]GetLastDocTimeStamp 1724066787 [11:28:31]current date 1724066914 [11:28:31]FM_GetShiftState [11:28:31]SAM_PROTO_GetShiftState [11:28:31]wFMCommunicate request_size=4 [11:28:31]MH_SAM_APDU [11:28:31]CAPDU: 80 13 01 00 [11:28:31]Write to MH i2c: E2 08 00 88 17 80 13 01 00 00 00 00 00 1C [11:28:31]Write i2c OK [11:28:31]MH_I2C_Read... [11:28:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:31]Read from MH i2c: E2 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 0E 00 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 0E 00 88 17 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 D6 [11:28:31]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:28:31]wFMCommunicate OK [11:28:31]SAM_PROTO_GetShiftState done [11:28:31]FM_GetShiftState done [11:28:31]opened in 1724026361 [11:28:31]opened+sec_in_day 1724112761 [11:28:31]quantity*price = 13000 [11:28:31]sum+1 = 13001 [11:28:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 72 19.08.2024 11:28 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49965 ФПД: 26914824466822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112834&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49965&fm=26914824466822&tin=02508201610067®Number=0000000000092546&sum=13000 0 [11:28:33]StoreToDocumentArchive [11:28:33]shift 467 fd 49965 [11:28:33]save to /storage/0467/doc_00049965 [11:28:33]save last doc name /storage/0467/doc_00049965 to /storage/kkm_last_doc_name [11:28:33]save OK [11:28:33]Clear old archive folders... [11:28:33]ProcessDocumentItem done err = 0, tmpTLVsize=282 [11:28:33]tlvbuf is B6F3C920 [11:28:33]SAM_PROTO_ClearQueue [11:28:33]wFMCommunicate request_size=4 [11:28:33]MH_SAM_APDU [11:28:33]CAPDU: 80 09 00 00 [11:28:33]Write to MH i2c: E2 08 00 95 17 80 09 00 00 00 00 00 00 1E [11:28:33]Write i2c OK [11:28:33]MH_I2C_Read... [11:28:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:33]Read from MH i2c: E2 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: E2 03 00 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: E2 03 00 95 17 00 90 00 20 [11:28:33]RAPDU: 90 00 [11:28:33]wFMCommunicate OK [11:28:33]SAM_PROTO_ClearQueue done [11:28:33]KKMCreateOFDPacket [11:28:33]OFDProtocolAddRootSTLVToBuf [11:28:33]FM_MakeSignedData [11:28:33]FM_MakeSignedData [11:28:33]SAM_PROTO_SignData [11:28:33]wFMCommunicate request_size=4 [11:28:33]MH_SAM_APDU [11:28:33]CAPDU: 80 0D 01 02 [11:28:33]Write to MH i2c: E2 08 00 96 17 80 0D 01 02 00 00 00 00 26 [11:28:33]Write i2c OK [11:28:33]MH_I2C_Read... [11:28:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:33]Read from MH i2c: E2 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: E2 03 00 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: E2 03 00 96 17 00 90 00 21 [11:28:33]RAPDU: 90 00 [11:28:33]wFMCommunicate OK [11:28:33]wFMCommunicate request_size=255 [11:28:33]MH_SAM_APDU [11:28:33]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 62 2C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [11:28:33]Write to MH i2c: E2 02 01 97 17 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 62 2C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 09 [11:28:33]Write i2c OK [11:28:33]MH_I2C_Read... [11:28:33]OFD Sender: No OFD packet to send [11:28:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:33]Read from MH i2c: E2 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: E2 03 00 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: E2 03 00 97 17 00 90 00 22 [11:28:33]RAPDU: 90 00 [11:28:33]wFMCommunicate OK [11:28:33]wFMCommunicate request_size=41 [11:28:33]MH_SAM_APDU [11:28:33]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2D C3 00 00 35 04 06 00 18 7A 98 8D 31 86 [11:28:33]Write to MH i2c: E2 2C 00 98 17 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2D C3 00 00 35 04 06 00 18 7A 98 8D 31 86 00 00 4E [11:28:33]Write i2c OK [11:28:33]MH_I2C_Read... [11:28:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:33]Read from MH i2c: E2 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: E2 03 00 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: E2 03 00 98 17 00 90 00 23 [11:28:33]RAPDU: 90 00 [11:28:33]wFMCommunicate OK [11:28:33]wFMCommunicate request_size=4 [11:28:33]MH_SAM_APDU [11:28:33]CAPDU: 80 0D 03 02 [11:28:33]Write to MH i2c: E2 08 00 99 17 80 0D 03 02 00 00 00 00 2B [11:28:33]Write i2c OK [11:28:33]MH_I2C_Read... [11:28:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:33]Read from MH i2c: E2 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: E2 0B 00 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: E2 0B 00 99 17 00 52 17 07 AA 71 F8 75 CC 90 00 F0 [11:28:33]RAPDU: 52 17 07 AA 71 F8 75 CC 90 00 [11:28:33]wFMCommunicate OK [11:28:33]SAM_PROTO_SignData done [11:28:33]FM_MakeSignedData done [11:28:33]CreateOFDProtocolMessage [11:28:33]wFMCommunicate request_size=4 [11:28:33]MH_SAM_APDU [11:28:33]CAPDU: 80 11 00 00 [11:28:33]Write to MH i2c: E2 08 00 9A 17 80 11 00 00 00 00 00 00 2B [11:28:33]Write i2c OK [11:28:33]MH_I2C_Read... [11:28:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:33]Read from MH i2c: E2 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: E2 17 00 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: E2 17 00 9A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 76 [11:28:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:28:33]wFMCommunicate OK [11:28:33]CreateOFDProtocolMessage done [11:28:33]OFDSenderStorePacket 49965 [11:28:33]StoreOFDPacket docnum=49965 [11:28:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 BB B2 26 01 94 AB 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 62 2C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2D C3 00 00 35 04 06 00 18 7A 98 8D 31 86 52 17 07 AA 71 F8 75 CC [11:28:33]CheckFolder [11:28:33]dirname=/storage/ofd_packets [11:28:33]CheckFolder done [11:28:33]ProducePacketName [11:28:33]name=ofd_packets/00049965 [11:28:33]NVStorageSaveData ofd_packets/00049965 [11:28:33]File name is /storage/ofd_packets/00049965 [11:28:33]Write 332 bytes [11:28:33]NVStorageSaveData done [11:28:33]OFDSenderStorePacket done [11:28:33]KKMCreateOFDPacket done [11:28:33]NVStorageSaveData kkm_last_timestamp [11:28:33]File name is /storage/kkm_last_timestamp [11:28:33]Write 4 bytes [11:28:33]NVStorageSaveData done [11:28:33]ExternCall_PrintAddStr [11:28:33]wPrintStart [11:28:33]Write to MH i2c: 01 00 00 9B 17 B2 [11:28:33]Write i2c OK [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: 01 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: 01 07 00 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: 01 07 00 9B 17 00 00 00 00 00 FF 0F C7 [11:28:33]RasterBufferAndPrint [11:28:33]line Счет N : (3)190113 [11:28:33]line ИНН: 02508201610067 [11:28:33]line Контрольно-Кассовый Чек [11:28:33]line ПРОДАЖА [11:28:33]line Товар: 2000036220012 [11:28:33]line Кофе Капучино XL(GABB TRADE) [11:28:33]line 1.000 * 130.00 [11:28:33]line = 130.00 [11:28:33]line НДС 12% НСП 1% [11:28:33]line > о реализуемом товаре [11:28:33]line ИТОГО: 130.00 [11:28:33]line НСП 1% : 1.15 [11:28:33]line НДС 12% : 13.80 [11:28:33]line Наличными: 0.00 [11:28:33]line Безнал.: 130.00 [11:28:33]line Место: АЗС № 95 "Партнер Нефть" [11:28:33]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:28:33]line СНО: Общий режим [11:28:33]line Чек 72 19.08.2024 11:28 [11:28:33]line Смена: 467 ФФД: 1.0 [11:28:33]line ЗНМ: 0300000078 [11:28:33]line РНМ: 0000000000092546 [11:28:33]line Версия ККМ: 001 [11:28:33]line Платежная система: O! деньги [11:28:33]line ФМ: 0000000000871800 [11:28:33]line ФД: 49965 [11:28:33]line ФПД: 26914824466822 [11:28:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T112834&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49965&fm=26914824466822&tin=02508201610067®Number=0000000000092546&sum=13000 [11:28:33]OFD Sender: Processing packet 49965 [packets to send 21, broken 20] [11:28:33]ProducePacketName [11:28:33]name=ofd_packets/00049965 [11:28:33]OFD Sender: To server: pG, [11:28:33]CommunicateWithHost lk.salyk.kg:30040 [11:28:33]ConnectInit lk.salyk.kg [11:28:33]line 0 [11:28:33]written 0, free lines is 4095 [11:28:34]Connected sock=10 [11:28:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 BB B2 26 01 94 AB 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 62 2C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2D C3 00 00 35 04 06 00 18 7A 98 8D 31 86 52 17 07 AA 71 F8 75 CC [11:28:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0F CC 47 00 2E 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2D C3 00 00 F4 03 04 00 CF D6 C2 66 B6 04 01 00 00 67 88 AA A4 2B 8D F5 23 [11:28:34]CommunicateWithHost err = 0 [11:28:34]CheckOFDResponse [11:28:34]1017 (14) - 77093643461234 [11:28:34]1041 (16) - 0000000000871800 [11:28:34]1040 (4) - 49965 [11:28:34]1012 (4) - 19.08.2024 05:23 [11:28:34]1206 (1) - 0 [11:28:34]OFD Sender: Remove packet 49965 [11:28:34]ProducePacketName [11:28:34]name=ofd_packets/00049965 [11:28:34]NVStorageDeleteData [11:28:34]Write to MH i2c: 01 00 00 C6 17 DD [11:28:34]Write i2c OK [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: 01 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: 01 07 00 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: 01 07 00 C6 17 00 00 00 00 00 D4 0C C4 [11:28:34]RasterBufferAndPrint [11:28:34]line [11:28:34]line [11:28:34]line [11:28:34]line [11:28:34]line [11:28:34]written 0, free lines is 3290 [11:28:34]MH_Cut [11:28:34]Write to MH i2c: D1 01 00 CD 17 01 B6 [11:28:34]Write i2c OK [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: D1 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: D1 01 00 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: D1 01 00 CD 17 00 B5 [11:28:34]Write to MH i2c: 01 00 00 CE 17 E5 [11:28:34]Write i2c OK [11:28:34]MH_I2C_Read... [11:28:34]OFD Sender: No OFD packet to send [11:28:35]*** Cut start [11:28:35]*** Purtial cut [11:28:35]*** CUTSNS_PIN = 0 [11:28:35]*** Stage 1: CUTSNS_PIN = 1 [11:28:37]Read from MH i2c: 01 [11:28:37]MH_I2C_Read... [11:28:37]*** Stop cut motor [11:28:37]*** Cut end [11:28:37]Read from MH i2c: 01 07 00 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: 01 07 00 CE 17 00 00 00 00 00 FF 0F FA [11:28:37]process_action close_receipt done [11:28:37]requested_data is exist [11:28:37]produce_requested_data [11:28:37]requested_item fm.sn is exist - process it [11:28:37]wFMCommunicate request_size=4 [11:28:37]MH_SAM_APDU [11:28:37]CAPDU: 80 11 00 00 [11:28:37]Write to MH i2c: E2 08 00 CF 17 80 11 00 00 00 00 00 00 60 [11:28:37]Write i2c OK [11:28:37]MH_I2C_Read... [11:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:37]Read from MH i2c: E2 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: E2 17 00 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: E2 17 00 CF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AB [11:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:28:37]wFMCommunicate OK [11:28:37]requested_item fd.num is exist - process it [11:28:37]SAM_PROTO_GetFieldsCounters [11:28:37]wFMCommunicate request_size=4 [11:28:37]MH_SAM_APDU [11:28:37]CAPDU: 80 13 00 00 [11:28:37]Write to MH i2c: E2 08 00 D0 17 80 13 00 00 00 00 00 00 63 [11:28:37]Write i2c OK [11:28:37]MH_I2C_Read... [11:28:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:37]Read from MH i2c: E2 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: E2 62 00 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: E2 62 00 D0 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2D C3 00 00 0E 04 04 00 D3 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 19 [11:28:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2D C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:37]wFMCommunicate OK [11:28:37]SAM_PROTO_GetFieldsCounters done [11:28:37]requested_item shift.num is exist - process it [11:28:37]requested_item shift.opened is exist - process it [11:28:37]req_shift_opened [11:28:37]FM_GetShiftState [11:28:37]SAM_PROTO_GetShiftState [11:28:37]wFMCommunicate request_size=4 [11:28:37]MH_SAM_APDU [11:28:37]CAPDU: 80 13 01 00 [11:28:37]Write to MH i2c: E2 08 00 D1 17 80 13 01 00 00 00 00 00 65 [11:28:37]Write i2c OK [11:28:37]MH_I2C_Read... [11:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:37]Read from MH i2c: E2 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: E2 0E 00 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: E2 0E 00 D1 17 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 1F [11:28:37]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:28:37]wFMCommunicate OK [11:28:37]SAM_PROTO_GetShiftState done [11:28:37]FM_GetShiftState done [11:28:37]req_shift_opened done [11:28:37]requested_item shift.open_date is exist - process it [11:28:37]req_shift_open_date [11:28:37]req_shift_open_date done [11:28:37]produce_requested_data done [11:28:37]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49965,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [11:28:37]process_action_free close_receipt [11:28:37]json_value_free [11:28:37]json_value_free done [11:28:37]process_json_proto returns [11:28:37]Send response to host [11:28:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49965,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [11:28:37]free response buf [11:28:37]execute_script done [11:28:37]execute_script returns [11:28:37]free content buf [11:28:37]Sock 7.Close socket [11:28:37]Sock 7.Thread stoped [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:20]accept exits with 9 [11:33:20]New connection [11:33:20]New thread 3067211108 created [11:33:20]Thread 3067354468 joined [11:33:20]Waiting for new connection... [11:33:20] Sock 9.Parse request [11:33:20]Sock 9.Check first char [11:33:20]Sock 9.First char is OK [11:33:20]request: POST /json_proto HTTP/1.0 [11:33:20]Method: POST [11:33:20]URL: /json_proto [11:33:20]Method is POST - this is cgi request [11:33:20]url: /json_proto [11:33:20]query_string will be loaded in cgi processing [11:33:20]execute_cgi json_proto POST (null) [11:33:20]execute_cgi path=json_proto method=POST [11:33:20]POST find Content-Length [11:33:20]Host: 172.17.46.196:8080 [11:33:20]Content-Length: 649 [11:33:20]Content-Type: application/json [11:33:20] [11:33:20]POST finish read [11:33:20]Found Content-Length = 649 [11:33:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190114", "tax_sys" : 0, "items" : [ { "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:20]execute_script... [11:33: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 : (3)190114", "tax_sys" : 0, "items" : [ { "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:20]POST & json_proto [11:33:20]process_json_proto [11:33:20]json parsed OK: [11:33:20]protocol is kg_v1.0 [11:33:20]action value=close_receipt [11:33:20]process_action close_receipt [11:33:20]cmd_close_receipt [11:33:20]MH_GetDate [11:33:20]Write to MH i2c: F0 00 00 D2 17 D8 [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: F0 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: F0 09 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: F0 09 00 D2 17 00 83 2D C3 66 C4 85 C2 66 2B [11:33:20]GetLastDocTimeStamp 1724066914 [11:33:20]current date 1724067203 [11:33:20]FM_GetShiftState [11:33:20]SAM_PROTO_GetShiftState [11:33:20]wFMCommunicate request_size=4 [11:33:20]MH_SAM_APDU [11:33:20]CAPDU: 80 13 01 00 [11:33:20]Write to MH i2c: E2 08 00 D3 17 80 13 01 00 00 00 00 00 67 [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:20]Read from MH i2c: E2 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 0E 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 0E 00 D3 17 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 21 [11:33:20]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:33:20]wFMCommunicate OK [11:33:20]SAM_PROTO_GetShiftState done [11:33:20]FM_GetShiftState done [11:33:20]opened in 1724026361 [11:33:20]opened+sec_in_day 1724112761 [11:33:20]quantity*price = 8500 [11:33:20]sum+1 = 8501 [11:33:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 73 19.08.2024 11:33 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49966 ФПД: 115170049892560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113323&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49966&fm=115170049892560&tin=02508201610067®Number=0000000000092546&sum=8500 0 [11:33:22]StoreToDocumentArchive [11:33:22]shift 467 fd 49966 [11:33:22]save to /storage/0467/doc_00049966 [11:33:22]save last doc name /storage/0467/doc_00049966 to /storage/kkm_last_doc_name [11:33:22]save OK [11:33:22]Clear old archive folders... [11:33:22]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:33:22]tlvbuf is 010341E0 [11:33:22]SAM_PROTO_ClearQueue [11:33:22]wFMCommunicate request_size=4 [11:33:22]MH_SAM_APDU [11:33:22]CAPDU: 80 09 00 00 [11:33:22]Write to MH i2c: E2 08 00 E0 17 80 09 00 00 00 00 00 00 69 [11:33:22]Write i2c OK [11:33:22]MH_I2C_Read... [11:33:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:22]Read from MH i2c: E2 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 03 00 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 03 00 E0 17 00 90 00 6B [11:33:22]RAPDU: 90 00 [11:33:22]wFMCommunicate OK [11:33:22]SAM_PROTO_ClearQueue done [11:33:22]KKMCreateOFDPacket [11:33:22]OFDProtocolAddRootSTLVToBuf [11:33:22]FM_MakeSignedData [11:33:22]FM_MakeSignedData [11:33:22]SAM_PROTO_SignData [11:33:22]wFMCommunicate request_size=4 [11:33:22]MH_SAM_APDU [11:33:22]CAPDU: 80 0D 01 02 [11:33:22]Write to MH i2c: E2 08 00 E1 17 80 0D 01 02 00 00 00 00 71 [11:33:22]Write i2c OK [11:33:22]MH_I2C_Read... [11:33:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:22]Read from MH i2c: E2 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 03 00 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 03 00 E1 17 00 90 00 6C [11:33:22]RAPDU: 90 00 [11:33:22]wFMCommunicate OK [11:33:22]wFMCommunicate request_size=255 [11:33:22]MH_SAM_APDU [11:33:22]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 49 00 00 00 F4 03 04 00 83 2D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [11:33:22]Write to MH i2c: E2 02 01 E2 17 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 49 00 00 00 F4 03 04 00 83 2D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 44 [11:33:22]Write i2c OK [11:33:22]MH_I2C_Read... [11:33:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:22]Read from MH i2c: E2 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 03 00 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 03 00 E2 17 00 90 00 6D [11:33:22]RAPDU: 90 00 [11:33:22]wFMCommunicate OK [11:33:22]wFMCommunicate request_size=39 [11:33:22]MH_SAM_APDU [11:33:22]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2E C3 00 00 35 04 06 00 68 BF 1D E9 A0 D0 [11:33:22]Write to MH i2c: E2 2A 00 E3 17 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2E C3 00 00 35 04 06 00 68 BF 1D E9 A0 D0 00 00 B5 [11:33:22]Write i2c OK [11:33:22]MH_I2C_Read... [11:33:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:22]Read from MH i2c: E2 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 03 00 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 03 00 E3 17 00 90 00 6E [11:33:22]RAPDU: 90 00 [11:33:22]wFMCommunicate OK [11:33:22]wFMCommunicate request_size=4 [11:33:22]MH_SAM_APDU [11:33:22]CAPDU: 80 0D 03 02 [11:33:22]Write to MH i2c: E2 08 00 E4 17 80 0D 03 02 00 00 00 00 76 [11:33:22]Write i2c OK [11:33:22]MH_I2C_Read... [11:33:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:22]Read from MH i2c: E2 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 0B 00 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 0B 00 E4 17 00 98 B2 F7 7D F8 73 70 E1 90 00 F1 [11:33:22]RAPDU: 98 B2 F7 7D F8 73 70 E1 90 00 [11:33:22]wFMCommunicate OK [11:33:22]SAM_PROTO_SignData done [11:33:22]FM_MakeSignedData done [11:33:22]CreateOFDProtocolMessage [11:33:22]wFMCommunicate request_size=4 [11:33:22]MH_SAM_APDU [11:33:22]CAPDU: 80 11 00 00 [11:33:22]Write to MH i2c: E2 08 00 E5 17 80 11 00 00 00 00 00 00 76 [11:33:22]Write i2c OK [11:33:22]MH_I2C_Read... [11:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:22]Read from MH i2c: E2 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 17 00 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 17 00 E5 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C1 [11:33:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:33:22]wFMCommunicate OK [11:33:22]CreateOFDProtocolMessage done [11:33:22]OFDSenderStorePacket 49966 [11:33:22]StoreOFDPacket docnum=49966 [11:33:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 16 42 24 01 5A 9E 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 49 00 00 00 F4 03 04 00 83 2D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2E C3 00 00 35 04 06 00 68 BF 1D E9 A0 D0 98 B2 F7 7D F8 73 70 E1 [11:33:22]CheckFolder [11:33:22]dirname=/storage/ofd_packets [11:33:22]CheckFolder done [11:33:22]ProducePacketName [11:33:22]name=ofd_packets/00049966 [11:33:22]NVStorageSaveData ofd_packets/00049966 [11:33:22]File name is /storage/ofd_packets/00049966 [11:33:22]Write 330 bytes [11:33:22]NVStorageSaveData done [11:33:22]OFDSenderStorePacket done [11:33:22]KKMCreateOFDPacket done [11:33:22]NVStorageSaveData kkm_last_timestamp [11:33:22]File name is /storage/kkm_last_timestamp [11:33:22]Write 4 bytes [11:33:22]NVStorageSaveData done [11:33:22]ExternCall_PrintAddStr [11:33:22]wPrintStart [11:33:22]Write to MH i2c: 01 00 00 E6 17 FD [11:33:22]Write i2c OK [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: 01 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: 01 07 00 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: 01 07 00 E6 17 00 00 00 00 00 FF 0F 12 [11:33:22]RasterBufferAndPrint [11:33:22]line Счет N : (3)190114 [11:33:22]line ИНН: 02508201610067 [11:33:22]line Контрольно-Кассовый Чек [11:33:22]line ПРОДАЖА [11:33:22]line Товар: 4870227272957 [11:33:22]line Лимонад Sunbel Тархун 1л [11:33:22]line 1.000 * 85.00 [11:33:22]line = 85.00 [11:33:22]line НДС 12% НСП 1% [11:33:22]line > о реализуемом товаре [11:33:22]line ИТОГО: 85.00 [11:33:22]line НСП 1% : 0.75 [11:33:22]line НДС 12% : 9.03 [11:33:22]line Наличными: 85.00 [11:33:22]line Безнал.: 0.00 [11:33:22]line Место: АЗС № 95 "Партнер Нефть" [11:33:22]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:33:22]line СНО: Общий режим [11:33:22]line Чек 73 19.08.2024 11:33 [11:33:22]line Смена: 467 ФФД: 1.0 [11:33:22]line ЗНМ: 0300000078 [11:33:22]line РНМ: 0000000000092546 [11:33:22]line Версия ККМ: 001 [11:33:22]line ФМ: 0000000000871800 [11:33:22]line ФД: 49966 [11:33:22]line ФПД: 115170049892560 [11:33:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113323&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49966&fm=115170049892560&tin=02508201610067®Number=0000000000092546&sum=8500 [11:33:23]line 0 [11:33:23]OFD Sender: Processing packet 49966 [packets to send 21, broken 20] [11:33:23]ProducePacketName [11:33:23]name=ofd_packets/00049966 [11:33:23]OFD Sender: To server: pG, [11:33:23]CommunicateWithHost lk.salyk.kg:30040 [11:33:23]ConnectInit lk.salyk.kg [11:33:23]written 0, free lines is 4095 [11:33:23]Connected sock=10 [11:33:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 16 42 24 01 5A 9E 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 49 00 00 00 F4 03 04 00 83 2D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2E C3 00 00 35 04 06 00 68 BF 1D E9 A0 D0 98 B2 F7 7D F8 73 70 E1 [11:33:23]Write to MH i2c: 01 00 00 0E 18 26 [11:33:23]Write i2c OK [11:33:23]MH_I2C_Read... [11:33:23]Read from MH i2c: 01 [11:33:23]MH_I2C_Read... [11:33:23]Read from MH i2c: 01 07 00 [11:33:23]MH_I2C_Read... [11:33:23]Read from MH i2c: 01 07 00 0E 18 00 00 00 00 00 FA 0C 33 [11:33:23]RasterBufferAndPrint [11:33:23]line [11:33:23]line [11:33:23]line [11:33:23]line [11:33:23]line [11:33:23]written 0, free lines is 3328 [11:33:23]MH_Cut [11:33:23]Write to MH i2c: D1 01 00 15 18 01 FF [11:33:23]Write i2c OK [11:33:23]MH_I2C_Read... [11:33:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F7 52 47 00 EB 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2E C3 00 00 F4 03 04 00 F0 D7 C2 66 B6 04 01 00 00 77 10 C5 21 D9 47 AB 8D [11:33:23]CommunicateWithHost err = 0 [11:33:23]CheckOFDResponse [11:33:23]1017 (14) - 77093643461234 [11:33:23]1041 (16) - 0000000000871800 [11:33:23]1040 (4) - 49966 [11:33:23]1012 (4) - 19.08.2024 05:28 [11:33:23]1206 (1) - 0 [11:33:23]OFD Sender: Remove packet 49966 [11:33:23]ProducePacketName [11:33:23]name=ofd_packets/00049966 [11:33:23]NVStorageDeleteData [11:33:23]Read from MH i2c: D1 [11:33:23]MH_I2C_Read... [11:33:23]Read from MH i2c: D1 01 00 [11:33:23]MH_I2C_Read... [11:33:23]Read from MH i2c: D1 01 00 15 18 00 FE [11:33:23]Write to MH i2c: 01 00 00 16 18 2E [11:33:23]Write i2c OK [11:33:23]MH_I2C_Read... [11:33:23]OFD Sender: No OFD packet to send [11:33:24]*** Cut start [11:33:24]*** Purtial cut [11:33:24]*** Stage 1: CUTSNS_PIN = 1 [11:33:24]Read from MH i2c: 01 [11:33:24]MH_I2C_Read... [11:33:24]*** Stop cut motor [11:33:24]*** Cut end [11:33:24]Read from MH i2c: 01 07 00 [11:33:24]MH_I2C_Read... [11:33:24]Read from MH i2c: 01 07 00 16 18 00 00 00 00 00 FF 0F 43 [11:33:24]process_action close_receipt done [11:33:24]requested_data is exist [11:33:24]produce_requested_data [11:33:24]requested_item fm.sn is exist - process it [11:33:24]wFMCommunicate request_size=4 [11:33:24]MH_SAM_APDU [11:33:24]CAPDU: 80 11 00 00 [11:33:24]Write to MH i2c: E2 08 00 17 18 80 11 00 00 00 00 00 00 A9 [11:33:24]Write i2c OK [11:33:24]MH_I2C_Read... [11:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:24]Read from MH i2c: E2 [11:33:24]MH_I2C_Read... [11:33:24]Read from MH i2c: E2 17 00 [11:33:24]MH_I2C_Read... [11:33:24]Read from MH i2c: E2 17 00 17 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F4 [11:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:33:24]wFMCommunicate OK [11:33:24]requested_item fd.num is exist - process it [11:33:24]SAM_PROTO_GetFieldsCounters [11:33:24]wFMCommunicate request_size=4 [11:33:24]MH_SAM_APDU [11:33:24]CAPDU: 80 13 00 00 [11:33:24]Write to MH i2c: E2 08 00 18 18 80 13 00 00 00 00 00 00 AC [11:33:24]Write i2c OK [11:33:24]MH_I2C_Read... [11:33:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:24]Read from MH i2c: E2 [11:33:24]MH_I2C_Read... [11:33:24]Read from MH i2c: E2 62 00 [11:33:24]MH_I2C_Read... [11:33:24]Read from MH i2c: E2 62 00 18 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2E C3 00 00 0E 04 04 00 D3 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 66 [11:33:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2E C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:24]wFMCommunicate OK [11:33:24]SAM_PROTO_GetFieldsCounters done [11:33:24]requested_item shift.num is exist - process it [11:33:24]requested_item shift.opened is exist - process it [11:33:24]req_shift_opened [11:33:24]FM_GetShiftState [11:33:24]SAM_PROTO_GetShiftState [11:33:24]wFMCommunicate request_size=4 [11:33:24]MH_SAM_APDU [11:33:24]CAPDU: 80 13 01 00 [11:33:24]Write to MH i2c: E2 08 00 19 18 80 13 01 00 00 00 00 00 AE [11:33:24]Write i2c OK [11:33:24]MH_I2C_Read... [11:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:24]Read from MH i2c: E2 [11:33:24]MH_I2C_Read... [11:33:24]Read from MH i2c: E2 0E 00 [11:33:24]MH_I2C_Read... [11:33:24]Read from MH i2c: E2 0E 00 19 18 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 68 [11:33:24]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:33:24]wFMCommunicate OK [11:33:24]SAM_PROTO_GetShiftState done [11:33:24]FM_GetShiftState done [11:33:24]req_shift_opened done [11:33:24]requested_item shift.open_date is exist - process it [11:33:24]req_shift_open_date [11:33:24]req_shift_open_date done [11:33:24]produce_requested_data done [11:33:24]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49966,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [11:33:24]process_action_free close_receipt [11:33:24]json_value_free [11:33:24]json_value_free done [11:33:24]process_json_proto returns [11:33:24]Send response to host [11:33:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49966,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [11:33:24]free response buf [11:33:24]execute_script done [11:33:24]execute_script returns [11:33:24]free content buf [11:33:24]Sock 9.Close socket [11:33:24]Sock 9.Thread stoped [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:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:48]accept exits with 7 [11:38:48]New connection [11:38:48]New thread 3067354468 created [11:38:48]Thread 3067211108 joined [11:38:48]Waiting for new connection... [11:38:48] Sock 7.Parse request [11:38:48]Sock 7.Check first char [11:38:48]Sock 7.First char is OK [11:38:48]request: POST /json_proto HTTP/1.0 [11:38:48]Method: POST [11:38:48]URL: /json_proto [11:38:48]Method is POST - this is cgi request [11:38:48]url: /json_proto [11:38:48]query_string will be loaded in cgi processing [11:38:48]execute_cgi json_proto POST (null) [11:38:48]execute_cgi path=json_proto method=POST [11:38:48]POST find Content-Length [11:38:48]Host: 172.17.46.196:8080 [11:38:48]Content-Length: 619 [11:38:48]Content-Type: application/json [11:38:48] [11:38:48]POST finish read [11:38:48]Found Content-Length = 619 [11:38:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190115", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:48]execute_script... [11:38: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)190115", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:48]POST & json_proto [11:38:48]process_json_proto [11:38:48]json parsed OK: [11:38:48]protocol is kg_v1.0 [11:38:48]action value=close_receipt [11:38:48]process_action close_receipt [11:38:48]cmd_close_receipt [11:38:48]MH_GetDate [11:38:48]Write to MH i2c: F0 00 00 1A 18 21 [11:38:48]Write i2c OK [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: F0 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: F0 09 00 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: F0 09 00 1A 18 00 CB 2E C3 66 C4 85 C2 66 BD [11:38:48]GetLastDocTimeStamp 1724067203 [11:38:48]current date 1724067531 [11:38:48]FM_GetShiftState [11:38:48]SAM_PROTO_GetShiftState [11:38:48]wFMCommunicate request_size=4 [11:38:48]MH_SAM_APDU [11:38:48]CAPDU: 80 13 01 00 [11:38:48]Write to MH i2c: E2 08 00 1B 18 80 13 01 00 00 00 00 00 B0 [11:38:48]Write i2c OK [11:38:48]MH_I2C_Read... [11:38:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:48]Read from MH i2c: E2 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: E2 0E 00 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: E2 0E 00 1B 18 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 6A [11:38:48]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:38:48]wFMCommunicate OK [11:38:48]SAM_PROTO_GetShiftState done [11:38:48]FM_GetShiftState done [11:38:48]opened in 1724026361 [11:38:48]opened+sec_in_day 1724112761 [11:38:48]quantity*price = 14000 [11:38:48]sum+1 = 14001 [11:38:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 74 19.08.2024 11:38 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49967 ФПД: 29370767938503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113851&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49967&fm=29370767938503&tin=02508201610067®Number=0000000000092546&sum=14000 0 [11:38:50]StoreToDocumentArchive [11:38:50]shift 467 fd 49967 [11:38:50]save to /storage/0467/doc_00049967 [11:38:50]save last doc name /storage/0467/doc_00049967 to /storage/kkm_last_doc_name [11:38:50]save OK [11:38:50]Clear old archive folders... [11:38:50]ProcessDocumentItem done err = 0, tmpTLVsize=271 [11:38:50]tlvbuf is 00F69E60 [11:38:50]SAM_PROTO_ClearQueue [11:38:50]wFMCommunicate request_size=4 [11:38:50]MH_SAM_APDU [11:38:50]CAPDU: 80 09 00 00 [11:38:50]Write to MH i2c: E2 08 00 28 18 80 09 00 00 00 00 00 00 B2 [11:38:50]Write i2c OK [11:38:50]MH_I2C_Read... [11:38:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:50]Read from MH i2c: E2 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: E2 03 00 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: E2 03 00 28 18 00 90 00 B4 [11:38:50]RAPDU: 90 00 [11:38:50]wFMCommunicate OK [11:38:50]SAM_PROTO_ClearQueue done [11:38:50]KKMCreateOFDPacket [11:38:50]OFDProtocolAddRootSTLVToBuf [11:38:50]FM_MakeSignedData [11:38:50]FM_MakeSignedData [11:38:50]SAM_PROTO_SignData [11:38:50]wFMCommunicate request_size=4 [11:38:50]MH_SAM_APDU [11:38:50]CAPDU: 80 0D 01 02 [11:38:50]Write to MH i2c: E2 08 00 29 18 80 0D 01 02 00 00 00 00 BA [11:38:50]Write i2c OK [11:38:50]MH_I2C_Read... [11:38:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:50]Read from MH i2c: E2 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: E2 03 00 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: E2 03 00 29 18 00 90 00 B5 [11:38:50]RAPDU: 90 00 [11:38:50]wFMCommunicate OK [11:38:50]wFMCommunicate request_size=255 [11:38:50]MH_SAM_APDU [11:38:50]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 CB 2E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:38:50]Write to MH i2c: E2 02 01 2A 18 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 CB 2E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 7F [11:38:50]Write i2c OK [11:38:50]MH_I2C_Read... [11:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:50]Read from MH i2c: E2 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: E2 03 00 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: E2 03 00 2A 18 00 90 00 B6 [11:38:50]RAPDU: 90 00 [11:38:50]wFMCommunicate OK [11:38:50]wFMCommunicate request_size=30 [11:38:50]MH_SAM_APDU [11:38:50]CAPDU: 80 0D 02 02 19 30 38 37 31 38 30 30 10 04 04 00 2F C3 00 00 35 04 06 00 1A B6 6A 30 93 C7 [11:38:50]Write to MH i2c: E2 21 00 2B 18 80 0D 02 02 19 00 30 38 37 31 38 30 30 10 04 04 00 2F C3 00 00 35 04 06 00 1A B6 6A 30 93 C7 00 00 64 [11:38:50]Write i2c OK [11:38:50]MH_I2C_Read... [11:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:50]Read from MH i2c: E2 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: E2 03 00 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: E2 03 00 2B 18 00 90 00 B7 [11:38:50]RAPDU: 90 00 [11:38:50]wFMCommunicate OK [11:38:50]wFMCommunicate request_size=4 [11:38:50]MH_SAM_APDU [11:38:50]CAPDU: 80 0D 03 02 [11:38:50]Write to MH i2c: E2 08 00 2C 18 80 0D 03 02 00 00 00 00 BF [11:38:50]Write i2c OK [11:38:50]MH_I2C_Read... [11:38:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:50]Read from MH i2c: E2 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: E2 0B 00 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: E2 0B 00 2C 18 00 68 46 D9 47 17 03 4A 1C 90 00 0E [11:38:50]RAPDU: 68 46 D9 47 17 03 4A 1C 90 00 [11:38:50]wFMCommunicate OK [11:38:50]SAM_PROTO_SignData done [11:38:50]FM_MakeSignedData done [11:38:50]CreateOFDProtocolMessage [11:38:50]wFMCommunicate request_size=4 [11:38:50]MH_SAM_APDU [11:38:50]CAPDU: 80 11 00 00 [11:38:50]Write to MH i2c: E2 08 00 2D 18 80 11 00 00 00 00 00 00 BF [11:38:50]Write i2c OK [11:38:50]MH_I2C_Read... [11:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:50]Read from MH i2c: E2 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: E2 17 00 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: E2 17 00 2D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0A [11:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:38:50]wFMCommunicate OK [11:38:50]CreateOFDProtocolMessage done [11:38:50]OFDSenderStorePacket 49967 [11:38:50]StoreOFDPacket docnum=49967 [11:38:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 E0 42 1B 01 7F 8B 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 CB 2E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2F C3 00 00 35 04 06 00 1A B6 6A 30 93 C7 68 46 D9 47 17 03 4A 1C [11:38:50]CheckFolder [11:38:50]dirname=/storage/ofd_packets [11:38:50]CheckFolder done [11:38:50]ProducePacketName [11:38:50]name=ofd_packets/00049967 [11:38:50]NVStorageSaveData ofd_packets/00049967 [11:38:50]File name is /storage/ofd_packets/00049967 [11:38:50]Write 321 bytes [11:38:50]NVStorageSaveData done [11:38:50]OFDSenderStorePacket done [11:38:50]KKMCreateOFDPacket done [11:38:50]NVStorageSaveData kkm_last_timestamp [11:38:50]File name is /storage/kkm_last_timestamp [11:38:50]Write 4 bytes [11:38:50]NVStorageSaveData done [11:38:50]ExternCall_PrintAddStr [11:38:50]wPrintStart [11:38:50]Write to MH i2c: 01 00 00 2E 18 46 [11:38:50]Write i2c OK [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: 01 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: 01 07 00 [11:38:50]MH_I2C_Read... [11:38:50]Read from MH i2c: 01 07 00 2E 18 00 00 00 00 00 FF 0F 5B [11:38:50]RasterBufferAndPrint [11:38:50]line Счет N : (3)190115 [11:38:50]line ИНН: 02508201610067 [11:38:50]line Контрольно-Кассовый Чек [11:38:50]line ПРОДАЖА [11:38:50]line Товар: 47802995 [11:38:50]line Сигареты Winston XS Silver [11:38:50]line 1.000 * 140.00 [11:38:50]line = 140.00 [11:38:50]line НДС 12% НСП 1% [11:38:50]line > о реализуемом товаре [11:38:50]line ИТОГО: 140.00 [11:38:50]line НСП 1% : 1.24 [11:38:50]line НДС 12% : 14.87 [11:38:50]line Наличными: 140.00 [11:38:50]line Безнал.: 0.00 [11:38:50]line Место: АЗС № 95 "Партнер Нефть" [11:38:50]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:38:50]line СНО: Общий режим [11:38:50]line Чек 74 19.08.2024 11:38 [11:38:50]line Смена: 467 ФФД: 1.0 [11:38:50]line ЗНМ: 0300000078 [11:38:50]line РНМ: 0000000000092546 [11:38:50]line Версия ККМ: 001 [11:38:50]line ФМ: 0000000000871800 [11:38:50]line ФД: 49967 [11:38:50]line ФПД: 29370767938503 [11:38:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T113851&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49967&fm=29370767938503&tin=02508201610067®Number=0000000000092546&sum=14000 [11:38:50]OFD Sender: Processing packet 49967 [packets to send 21, broken 20] [11:38:50]ProducePacketName [11:38:50]name=ofd_packets/00049967 [11:38:50]OFD Sender: To server: pG, [11:38:50]CommunicateWithHost lk.salyk.kg:30040 [11:38:50]ConnectInit lk.salyk.kg [11:38:50]line 0 [11:38:50]written 0, free lines is 4095 [11:38:51]Connected sock=10 [11:38:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 E0 42 1B 01 7F 8B 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 CB 2E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2F C3 00 00 35 04 06 00 1A B6 6A 30 93 C7 68 46 D9 47 17 03 4A 1C [11:38:51]Write to MH i2c: 01 00 00 56 18 6E [11:38:51]Write i2c OK [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: 01 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: 01 07 00 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: 01 07 00 56 18 00 00 00 00 00 EE 0C 6F [11:38:51]RasterBufferAndPrint [11:38:51]line [11:38:51]line [11:38:51]line [11:38:51]line [11:38:51]line [11:38:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 7D B2 47 00 E3 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2F C3 00 00 F4 03 04 00 38 D9 C2 66 B6 04 01 00 00 D2 B5 FF 25 65 07 0D 1B [11:38:51]CommunicateWithHost err = 0 [11:38:51]CheckOFDResponse [11:38:51]1017 (14) - 77093643461234 [11:38:51]1041 (16) - 0000000000871800 [11:38:51]1040 (4) - 49967 [11:38:51]1012 (4) - 19.08.2024 05:33 [11:38:51]1206 (1) - 0 [11:38:51]OFD Sender: Remove packet 49967 [11:38:51]ProducePacketName [11:38:51]name=ofd_packets/00049967 [11:38:51]NVStorageDeleteData [11:38:51]written 0, free lines is 3319 [11:38:51]MH_Cut [11:38:51]Write to MH i2c: D1 01 00 5D 18 01 47 [11:38:51]Write i2c OK [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: D1 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: D1 01 00 [11:38:51]MH_I2C_Read... [11:38:51]Read from MH i2c: D1 01 00 5D 18 00 46 [11:38:51]Write to MH i2c: 01 00 00 5E 18 76 [11:38:51]Write i2c OK [11:38:51]MH_I2C_Read... [11:38:51]OFD Sender: No OFD packet to send [11:38:52]*** Cut start [11:38:52]*** Purtial cut [11:38:52]*** CUTSNS_PIN = 0 [11:38:52]*** Stage 1: CUTSNS_PIN = 1 [11:38:54]Read from MH i2c: 01 [11:38:54]MH_I2C_Read... [11:38:54]*** Stop cut motor [11:38:54]*** Cut end [11:38:54]Read from MH i2c: 01 07 00 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: 01 07 00 5E 18 00 00 00 00 00 FF 0F 8B [11:38:54]process_action close_receipt done [11:38:54]requested_data is exist [11:38:54]produce_requested_data [11:38:54]requested_item fm.sn is exist - process it [11:38:54]wFMCommunicate request_size=4 [11:38:54]MH_SAM_APDU [11:38:54]CAPDU: 80 11 00 00 [11:38:54]Write to MH i2c: E2 08 00 5F 18 80 11 00 00 00 00 00 00 F1 [11:38:54]Write i2c OK [11:38:54]MH_I2C_Read... [11:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:54]Read from MH i2c: E2 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: E2 17 00 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: E2 17 00 5F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3C [11:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:38:54]wFMCommunicate OK [11:38:54]requested_item fd.num is exist - process it [11:38:54]SAM_PROTO_GetFieldsCounters [11:38:54]wFMCommunicate request_size=4 [11:38:54]MH_SAM_APDU [11:38:54]CAPDU: 80 13 00 00 [11:38:54]Write to MH i2c: E2 08 00 60 18 80 13 00 00 00 00 00 00 F4 [11:38:54]Write i2c OK [11:38:54]MH_I2C_Read... [11:38:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:54]Read from MH i2c: E2 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: E2 62 00 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: E2 62 00 60 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2F C3 00 00 0E 04 04 00 D3 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 B2 [11:38:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2F C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:54]wFMCommunicate OK [11:38:54]SAM_PROTO_GetFieldsCounters done [11:38:54]requested_item shift.num is exist - process it [11:38:54]requested_item shift.opened is exist - process it [11:38:54]req_shift_opened [11:38:54]FM_GetShiftState [11:38:54]SAM_PROTO_GetShiftState [11:38:54]wFMCommunicate request_size=4 [11:38:54]MH_SAM_APDU [11:38:54]CAPDU: 80 13 01 00 [11:38:54]Write to MH i2c: E2 08 00 61 18 80 13 01 00 00 00 00 00 F6 [11:38:54]Write i2c OK [11:38:54]MH_I2C_Read... [11:38:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:54]Read from MH i2c: E2 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: E2 0E 00 [11:38:54]MH_I2C_Read... [11:38:54]Read from MH i2c: E2 0E 00 61 18 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B0 [11:38:54]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:38:54]wFMCommunicate OK [11:38:54]SAM_PROTO_GetShiftState done [11:38:54]FM_GetShiftState done [11:38:54]req_shift_opened done [11:38:54]requested_item shift.open_date is exist - process it [11:38:54]req_shift_open_date [11:38:54]req_shift_open_date done [11:38:54]produce_requested_data done [11:38:54]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49967,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [11:38:54]process_action_free close_receipt [11:38:54]json_value_free [11:38:54]json_value_free done [11:38:54]process_json_proto returns [11:38:54]Send response to host [11:38:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49967,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [11:38:54]free response buf [11:38:54]execute_script done [11:38:54]execute_script returns [11:38:54]free content buf [11:38:54]Sock 7.Close socket [11:38:54]Sock 7.Thread stoped [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:12]accept exits with 9 [11:44:12]New connection [11:44:12]New thread 3067211108 created [11:44:12]Thread 3067354468 joined [11:44:12]Waiting for new connection... [11:44:12] Sock 9.Parse request [11:44:12]Sock 9.Check first char [11:44:12]Sock 9.First char is OK [11:44:12]request: POST /json_proto HTTP/1.0 [11:44:12]Method: POST [11:44:12]URL: /json_proto [11:44:12]Method is POST - this is cgi request [11:44:12]url: /json_proto [11:44:12]query_string will be loaded in cgi processing [11:44:12]execute_cgi json_proto POST (null) [11:44:12]execute_cgi path=json_proto method=POST [11:44:12]POST find Content-Length [11:44:12]Host: 172.17.46.196:8080 [11:44:12]Content-Length: 756 [11:44:12]Content-Type: application/json [11:44:12] [11:44:12]POST finish read [11:44:12]Found Content-Length = 756 [11:44:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106969", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:12]execute_script... [11:44:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106969", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:12]POST & json_proto [11:44:12]process_json_proto [11:44:12]json parsed OK: [11:44:12]protocol is kg_v1.0 [11:44:12]action value=close_receipt [11:44:12]process_action close_receipt [11:44:12]cmd_close_receipt [11:44:12]MH_GetDate [11:44:12]Write to MH i2c: F0 00 00 62 18 69 [11:44:12]Write i2c OK [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: F0 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: F0 09 00 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: F0 09 00 62 18 00 0E 30 C3 66 C4 85 C2 66 4A [11:44:12]GetLastDocTimeStamp 1724067531 [11:44:12]current date 1724067854 [11:44:12]FM_GetShiftState [11:44:12]SAM_PROTO_GetShiftState [11:44:12]wFMCommunicate request_size=4 [11:44:12]MH_SAM_APDU [11:44:12]CAPDU: 80 13 01 00 [11:44:12]Write to MH i2c: E2 08 00 63 18 80 13 01 00 00 00 00 00 F8 [11:44:12]Write i2c OK [11:44:12]MH_I2C_Read... [11:44:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:12]Read from MH i2c: E2 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 0E 00 [11:44:12]MH_I2C_Read... [11:44:12]Read from MH i2c: E2 0E 00 63 18 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B2 [11:44:12]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:44:12]wFMCommunicate OK [11:44:12]SAM_PROTO_GetShiftState done [11:44:12]FM_GetShiftState done [11:44:12]opened in 1724026361 [11:44:12]opened+sec_in_day 1724112761 [11:44:12]quantity*price = 0 [11:44:12]sum+1 = 1 [11:44:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 75 19.08.2024 11:44 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106969 ФМ: 0000000000871800 ФД: 49968 ФПД: 10835722653060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T114414&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49968&fm=10835722653060&tin=02508201610067®Number=0000000000092546&sum=0 [11:44:13]StoreToDocumentArchive [11:44:13]shift 467 fd 49968 [11:44:13]save to /storage/0467/doc_00049968 [11:44:13]save last doc name /storage/0467/doc_00049968 to /storage/kkm_last_doc_name [11:44:13]save OK [11:44:13]Clear old archive folders... [11:44:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:13]tlvbuf is B6F23260 [11:44:13]SAM_PROTO_ClearQueue [11:44:13]wFMCommunicate request_size=4 [11:44:13]MH_SAM_APDU [11:44:13]CAPDU: 80 09 00 00 [11:44:13]Write to MH i2c: E2 08 00 70 18 80 09 00 00 00 00 00 00 FA [11:44:13]Write i2c OK [11:44:13]MH_I2C_Read... [11:44:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:13]Read from MH i2c: E2 [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: E2 03 00 [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: E2 03 00 70 18 00 90 00 FC [11:44:13]RAPDU: 90 00 [11:44:13]wFMCommunicate OK [11:44:13]SAM_PROTO_ClearQueue done [11:44:13]KKMCreateOFDPacket [11:44:13]OFDProtocolAddRootSTLVToBuf [11:44:13]FM_MakeSignedData [11:44:13]FM_MakeSignedData [11:44:13]SAM_PROTO_SignData [11:44:13]wFMCommunicate request_size=4 [11:44:13]MH_SAM_APDU [11:44:13]CAPDU: 80 0D 01 02 [11:44:13]Write to MH i2c: E2 08 00 71 18 80 0D 01 02 00 00 00 00 02 [11:44:13]Write i2c OK [11:44:13]MH_I2C_Read... [11:44:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:13]Read from MH i2c: E2 [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: E2 03 00 [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: E2 03 00 71 18 00 90 00 FD [11:44:13]RAPDU: 90 00 [11:44:13]wFMCommunicate OK [11:44:13]wFMCommunicate request_size=255 [11:44:13]MH_SAM_APDU [11:44:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 0E 30 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 30 C3 00 00 35 04 06 00 09 [11:44:13]Write to MH i2c: E2 02 01 72 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 0E 30 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 30 C3 00 00 35 04 06 00 09 00 00 BD [11:44:13]Write i2c OK [11:44:13]MH_I2C_Read... [11:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:13]Read from MH i2c: E2 [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: E2 03 00 [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: E2 03 00 72 18 00 90 00 FE [11:44:13]RAPDU: 90 00 [11:44:13]wFMCommunicate OK [11:44:13]wFMCommunicate request_size=10 [11:44:13]MH_SAM_APDU [11:44:13]CAPDU: 80 0D 02 02 05 DA E3 66 4D 84 [11:44:13]Write to MH i2c: E2 0D 00 73 18 80 0D 02 02 05 00 DA E3 66 4D 84 00 00 03 [11:44:13]Write i2c OK [11:44:13]MH_I2C_Read... [11:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:13]Read from MH i2c: E2 [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: E2 03 00 [11:44:13]MH_I2C_Read... [11:44:13]Read from MH i2c: E2 03 00 73 18 00 90 00 FF [11:44:13]RAPDU: 90 00 [11:44:13]wFMCommunicate OK [11:44:13]wFMCommunicate request_size=4 [11:44:13]MH_SAM_APDU [11:44:13]CAPDU: 80 0D 03 02 [11:44:13]Write to MH i2c: E2 08 00 74 18 80 0D 03 02 00 00 00 00 07 [11:44:13]Write i2c OK [11:44:13]MH_I2C_Read... [11:44:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:14]Read from MH i2c: E2 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: E2 0B 00 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: E2 0B 00 74 18 00 A6 77 12 71 70 53 0D A0 90 00 18 [11:44:14]RAPDU: A6 77 12 71 70 53 0D A0 90 00 [11:44:14]wFMCommunicate OK [11:44:14]SAM_PROTO_SignData done [11:44:14]FM_MakeSignedData done [11:44:14]CreateOFDProtocolMessage [11:44:14]wFMCommunicate request_size=4 [11:44:14]MH_SAM_APDU [11:44:14]CAPDU: 80 11 00 00 [11:44:14]Write to MH i2c: E2 08 00 75 18 80 11 00 00 00 00 00 00 07 [11:44:14]Write i2c OK [11:44:14]MH_I2C_Read... [11:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:14]Read from MH i2c: E2 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: E2 17 00 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: E2 17 00 75 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 52 [11:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:44:14]wFMCommunicate OK [11:44:14]CreateOFDProtocolMessage done [11:44:14]OFDSenderStorePacket 49968 [11:44:14]StoreOFDPacket docnum=49968 [11:44:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 BA FD 07 01 87 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 0E 30 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 30 C3 00 00 35 04 06 00 09 DA E3 66 4D 84 A6 77 12 71 70 53 0D A0 [11:44:14]CheckFolder [11:44:14]dirname=/storage/ofd_packets [11:44:14]CheckFolder done [11:44:14]ProducePacketName [11:44:14]name=ofd_packets/00049968 [11:44:14]NVStorageSaveData ofd_packets/00049968 [11:44:14]File name is /storage/ofd_packets/00049968 [11:44:14]Write 301 bytes [11:44:14]NVStorageSaveData done [11:44:14]OFDSenderStorePacket done [11:44:14]KKMCreateOFDPacket done [11:44:14]NVStorageSaveData kkm_last_timestamp [11:44:14]File name is /storage/kkm_last_timestamp [11:44:14]Write 4 bytes [11:44:14]NVStorageSaveData done [11:44:14]ExternCall_PrintAddStr [11:44:14]wPrintStart [11:44:14]Write to MH i2c: 01 00 00 76 18 8E [11:44:14]Write i2c OK [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: 01 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: 01 07 00 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: 01 07 00 76 18 00 00 00 00 00 FF 0F A3 [11:44:14]RasterBufferAndPrint [11:44:14]line Счет N : (1)11327734 [11:44:14]line ИНН: 02508201610067 [11:44:14]line Контрольно-Кассовый Чек [11:44:14]line ПРОДАЖА [11:44:14]line ТРК (МРК, ГНК) : 32 [11:44:14]line Товар: 2710124130 [11:44:14]line Аи-92-К-4 [11:44:14]line 10.000 * 0.00 [11:44:14]line = 0.00 [11:44:14]line НДС 12% НСП 1% [11:44:14]line > о реализуемом товаре [11:44:14]line ИТОГО: 0.00 [11:44:14]line НСП 1% : 0.00 [11:44:14]line НДС 12% : 0.00 [11:44:14]line Наличными: 0.00 [11:44:14]line Безнал.: 0.00 [11:44:14]line Место: АЗС № 95 "Партнер Нефть" [11:44:14]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:44:14]line СНО: Общий режим [11:44:14]line Чек 75 19.08.2024 11:44 [11:44:14]line Смена: 467 ФФД: 1.0 [11:44:14]line ЗНМ: 0300000078 [11:44:14]line РНМ: 0000000000092546 [11:44:14]line Версия ККМ: 001 [11:44:14]line Талоны: ТК ГПНА Online [11:44:14]line 30106969 [11:44:14]line ФМ: 0000000000871800 [11:44:14]line ФД: 49968 [11:44:14]line ФПД: 10835722653060 [11:44:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T114414&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49968&fm=10835722653060&tin=02508201610067®Number=0000000000092546&sum=0 [11:44:14]written 0, free lines is 4095 [11:44:14]OFD Sender: Processing packet 49968 [packets to send 21, broken 20] [11:44:14]ProducePacketName [11:44:14]name=ofd_packets/00049968 [11:44:14]OFD Sender: To server: pG, [11:44:14]CommunicateWithHost lk.salyk.kg:30040 [11:44:14]ConnectInit lk.salyk.kg [11:44:14]Write to MH i2c: 01 00 00 A0 18 B8 [11:44:14]Write i2c OK [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: 01 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: 01 07 00 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: 01 07 00 A0 18 00 00 00 00 00 CF 0C 9A [11:44:14]RasterBufferAndPrint [11:44:14]line [11:44:14]line [11:44:14]line [11:44:14]line [11:44:14]line [11:44:14]written 0, free lines is 3285 [11:44:14]MH_Cut [11:44:14]Write to MH i2c: D1 01 00 A7 18 01 91 [11:44:14]Write i2c OK [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: D1 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: D1 01 00 [11:44:14]MH_I2C_Read... [11:44:14]Read from MH i2c: D1 01 00 A7 18 00 90 [11:44:14]Write to MH i2c: 01 00 00 A8 18 C0 [11:44:14]Write i2c OK [11:44:14]MH_I2C_Read... [11:44:14]Connected sock=10 [11:44:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 BA FD 07 01 87 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 0E 30 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 30 C3 00 00 35 04 06 00 09 DA E3 66 4D 84 A6 77 12 71 70 53 0D A0 [11:44:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 2B 88 47 00 91 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 30 C3 00 00 F4 03 04 00 7C DA C2 66 B6 04 01 00 00 99 8E 8D BC 2B B7 BB 61 [11:44:14]CommunicateWithHost err = 0 [11:44:14]CheckOFDResponse [11:44:14]1017 (14) - 77093643461234 [11:44:14]1041 (16) - 0000000000871800 [11:44:14]1040 (4) - 49968 [11:44:14]1012 (4) - 19.08.2024 05:39 [11:44:14]1206 (1) - 0 [11:44:14]OFD Sender: Remove packet 49968 [11:44:14]ProducePacketName [11:44:14]name=ofd_packets/00049968 [11:44:14]NVStorageDeleteData [11:44:15]*** Cut start [11:44:15]*** Purtial cut [11:44:15]*** Stage 1: CUTSNS_PIN = 1 [11:44:15]OFD Sender: No OFD packet to send [11:44:15]Read from MH i2c: 01 [11:44:15]MH_I2C_Read... [11:44:15]*** Stop cut motor [11:44:15]*** Cut end [11:44:15]Read from MH i2c: 01 07 00 [11:44:15]MH_I2C_Read... [11:44:15]Read from MH i2c: 01 07 00 A8 18 00 00 00 00 00 FF 0F D5 [11:44:15]process_action close_receipt done [11:44:15]requested_data is exist [11:44:15]produce_requested_data [11:44:15]requested_item fm.sn is exist - process it [11:44:15]wFMCommunicate request_size=4 [11:44:15]MH_SAM_APDU [11:44:15]CAPDU: 80 11 00 00 [11:44:15]Write to MH i2c: E2 08 00 A9 18 80 11 00 00 00 00 00 00 3B [11:44:15]Write i2c OK [11:44:15]MH_I2C_Read... [11:44:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:15]Read from MH i2c: E2 [11:44:15]MH_I2C_Read... [11:44:15]Read from MH i2c: E2 17 00 [11:44:15]MH_I2C_Read... [11:44:15]Read from MH i2c: E2 17 00 A9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 86 [11:44:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:44:15]wFMCommunicate OK [11:44:15]requested_item fd.num is exist - process it [11:44:15]SAM_PROTO_GetFieldsCounters [11:44:15]wFMCommunicate request_size=4 [11:44:15]MH_SAM_APDU [11:44:15]CAPDU: 80 13 00 00 [11:44:15]Write to MH i2c: E2 08 00 AA 18 80 13 00 00 00 00 00 00 3E [11:44:15]Write i2c OK [11:44:15]MH_I2C_Read... [11:44:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:15]Read from MH i2c: E2 [11:44:15]MH_I2C_Read... [11:44:15]Read from MH i2c: E2 62 00 [11:44:15]MH_I2C_Read... [11:44:15]Read from MH i2c: E2 62 00 AA 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 30 C3 00 00 0E 04 04 00 D3 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 00 [11:44:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 30 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:15]wFMCommunicate OK [11:44:15]SAM_PROTO_GetFieldsCounters done [11:44:15]requested_item shift.num is exist - process it [11:44:15]requested_item shift.opened is exist - process it [11:44:15]req_shift_opened [11:44:15]FM_GetShiftState [11:44:15]SAM_PROTO_GetShiftState [11:44:15]wFMCommunicate request_size=4 [11:44:15]MH_SAM_APDU [11:44:15]CAPDU: 80 13 01 00 [11:44:15]Write to MH i2c: E2 08 00 AB 18 80 13 01 00 00 00 00 00 40 [11:44:15]Write i2c OK [11:44:15]MH_I2C_Read... [11:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:15]Read from MH i2c: E2 [11:44:15]MH_I2C_Read... [11:44:15]Read from MH i2c: E2 0E 00 [11:44:15]MH_I2C_Read... [11:44:15]Read from MH i2c: E2 0E 00 AB 18 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 FA [11:44:15]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:44:15]wFMCommunicate OK [11:44:15]SAM_PROTO_GetShiftState done [11:44:15]FM_GetShiftState done [11:44:15]req_shift_opened done [11:44:15]requested_item shift.open_date is exist - process it [11:44:15]req_shift_open_date [11:44:15]req_shift_open_date done [11:44:15]produce_requested_data done [11:44:15]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49968,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [11:44:15]process_action_free close_receipt [11:44:15]json_value_free [11:44:15]json_value_free done [11:44:15]process_json_proto returns [11:44:15]Send response to host [11:44:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49968,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [11:44:15]free response buf [11:44:15]execute_script done [11:44:15]execute_script returns [11:44:15]free content buf [11:44:15]Sock 9.Close socket [11:44:15]Sock 9.Thread stoped [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:41]accept exits with 7 [11:44:41]New connection [11:44:41]New thread 3067354468 created [11:44:41]Thread 3067211108 joined [11:44:41]Waiting for new connection... [11:44:41] Sock 7.Parse request [11:44:41]Sock 7.Check first char [11:44:41]Sock 7.First char is OK [11:44:41]request: POST /json_proto HTTP/1.0 [11:44:41]Method: POST [11:44:41]URL: /json_proto [11:44:41]Method is POST - this is cgi request [11:44:41]url: /json_proto [11:44:41]query_string will be loaded in cgi processing [11:44:41]execute_cgi json_proto POST (null) [11:44:41]execute_cgi path=json_proto method=POST [11:44:41]POST find Content-Length [11:44:41]Host: 172.17.46.196:8080 [11:44:41]Content-Length: 627 [11:44:41]Content-Type: application/json [11:44:41] [11:44:41]POST finish read [11:44:41]Found Content-Length = 627 [11:44:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190116", "tax_sys" : 0, "items" : [ { "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:41]execute_script... [11:44: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)190116", "tax_sys" : 0, "items" : [ { "code": "4700007690018", "name": "\u041D\u0435\u0433\u0430\u0437 \u0432\u043E\u0434\u0430 Pamir 0,5 \u043B", "price" : 30.00, "quantity" : 2.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:41]POST & json_proto [11:44:41]process_json_proto [11:44:41]json parsed OK: [11:44:41]protocol is kg_v1.0 [11:44:41]action value=close_receipt [11:44:41]process_action close_receipt [11:44:41]cmd_close_receipt [11:44:41]MH_GetDate [11:44:41]Write to MH i2c: F0 00 00 AC 18 B3 [11:44:41]Write i2c OK [11:44:41]MH_I2C_Read... [11:44:41]Read from MH i2c: F0 [11:44:41]MH_I2C_Read... [11:44:41]Read from MH i2c: F0 09 00 [11:44:41]MH_I2C_Read... [11:44:41]Read from MH i2c: F0 09 00 AC 18 00 2C 30 C3 66 C4 85 C2 66 B2 [11:44:41]GetLastDocTimeStamp 1724067854 [11:44:41]current date 1724067884 [11:44:41]FM_GetShiftState [11:44:41]SAM_PROTO_GetShiftState [11:44:41]wFMCommunicate request_size=4 [11:44:41]MH_SAM_APDU [11:44:41]CAPDU: 80 13 01 00 [11:44:41]Write to MH i2c: E2 08 00 AD 18 80 13 01 00 00 00 00 00 42 [11:44:41]Write i2c OK [11:44:41]MH_I2C_Read... [11:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:41]Read from MH i2c: E2 [11:44:41]MH_I2C_Read... [11:44:41]Read from MH i2c: E2 0E 00 [11:44:41]MH_I2C_Read... [11:44:41]Read from MH i2c: E2 0E 00 AD 18 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 FC [11:44:41]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:44:41]wFMCommunicate OK [11:44:41]SAM_PROTO_GetShiftState done [11:44:41]FM_GetShiftState done [11:44:41]opened in 1724026361 [11:44:41]opened+sec_in_day 1724112761 [11:44:41]quantity*price = 6000 [11:44:41]sum+1 = 6001 [11:44:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 76 19.08.2024 11:44 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49969 ФПД: 74233497713088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T114444&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49969&fm=74233497713088&tin=02508201610067®Number=0000000000092546&sum=6000 0 [11:44:42]StoreToDocumentArchive [11:44:42]shift 467 fd 49969 [11:44:42]save to /storage/0467/doc_00049969 [11:44:42]save last doc name /storage/0467/doc_00049969 to /storage/kkm_last_doc_name [11:44:42]save OK [11:44:42]Clear old archive folders... [11:44:42]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:44:42]tlvbuf is 01060DE0 [11:44:42]SAM_PROTO_ClearQueue [11:44:42]wFMCommunicate request_size=4 [11:44:42]MH_SAM_APDU [11:44:42]CAPDU: 80 09 00 00 [11:44:42]Write to MH i2c: E2 08 00 BA 18 80 09 00 00 00 00 00 00 44 [11:44:42]Write i2c OK [11:44:42]MH_I2C_Read... [11:44:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:42]Read from MH i2c: E2 [11:44:42]MH_I2C_Read... [11:44:42]Read from MH i2c: E2 03 00 [11:44:42]MH_I2C_Read... [11:44:42]Read from MH i2c: E2 03 00 BA 18 00 90 00 46 [11:44:42]RAPDU: 90 00 [11:44:42]wFMCommunicate OK [11:44:42]SAM_PROTO_ClearQueue done [11:44:42]KKMCreateOFDPacket [11:44:42]OFDProtocolAddRootSTLVToBuf [11:44:42]FM_MakeSignedData [11:44:42]FM_MakeSignedData [11:44:42]SAM_PROTO_SignData [11:44:42]wFMCommunicate request_size=4 [11:44:42]MH_SAM_APDU [11:44:42]CAPDU: 80 0D 01 02 [11:44:42]Write to MH i2c: E2 08 00 BB 18 80 0D 01 02 00 00 00 00 4C [11:44:42]Write i2c OK [11:44:42]MH_I2C_Read... [11:44:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:43]Read from MH i2c: E2 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 03 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 03 00 BB 18 00 90 00 47 [11:44:43]RAPDU: 90 00 [11:44:43]wFMCommunicate OK [11:44:43]wFMCommunicate request_size=255 [11:44:43]MH_SAM_APDU [11:44:43]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 2C 30 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 [11:44:43]Write to MH i2c: E2 02 01 BC 18 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 2C 30 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 00 00 1F [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:43]Read from MH i2c: E2 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 03 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 03 00 BC 18 00 90 00 48 [11:44:43]RAPDU: 90 00 [11:44:43]wFMCommunicate OK [11:44:43]wFMCommunicate request_size=33 [11:44:43]MH_SAM_APDU [11:44:43]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 30 30 10 04 04 00 31 C3 00 00 35 04 06 00 43 83 D5 42 F9 C0 [11:44:43]Write to MH i2c: E2 24 00 BD 18 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 30 30 10 04 04 00 31 C3 00 00 35 04 06 00 43 83 D5 42 F9 C0 00 00 60 [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:43]Read from MH i2c: E2 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 03 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 03 00 BD 18 00 90 00 49 [11:44:43]RAPDU: 90 00 [11:44:43]wFMCommunicate OK [11:44:43]wFMCommunicate request_size=4 [11:44:43]MH_SAM_APDU [11:44:43]CAPDU: 80 0D 03 02 [11:44:43]Write to MH i2c: E2 08 00 BE 18 80 0D 03 02 00 00 00 00 51 [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:43]Read from MH i2c: E2 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 0B 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 0B 00 BE 18 00 DA 0B 38 1F DD 0C 64 7E 90 00 59 [11:44:43]RAPDU: DA 0B 38 1F DD 0C 64 7E 90 00 [11:44:43]wFMCommunicate OK [11:44:43]SAM_PROTO_SignData done [11:44:43]FM_MakeSignedData done [11:44:43]CreateOFDProtocolMessage [11:44:43]wFMCommunicate request_size=4 [11:44:43]MH_SAM_APDU [11:44:43]CAPDU: 80 11 00 00 [11:44:43]Write to MH i2c: E2 08 00 BF 18 80 11 00 00 00 00 00 00 51 [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:43]Read from MH i2c: E2 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 17 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 17 00 BF 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9C [11:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:44:43]wFMCommunicate OK [11:44:43]CreateOFDProtocolMessage done [11:44:43]OFDSenderStorePacket 49969 [11:44:43]StoreOFDPacket docnum=49969 [11:44:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 CD 0A 1E 01 50 5F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 2C 30 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 31 C3 00 00 35 04 06 00 43 83 D5 42 F9 C0 DA 0B 38 1F DD 0C 64 7E [11:44:43]CheckFolder [11:44:43]dirname=/storage/ofd_packets [11:44:43]CheckFolder done [11:44:43]ProducePacketName [11:44:43]name=ofd_packets/00049969 [11:44:43]NVStorageSaveData ofd_packets/00049969 [11:44:43]File name is /storage/ofd_packets/00049969 [11:44:43]Write 324 bytes [11:44:43]NVStorageSaveData done [11:44:43]OFDSenderStorePacket done [11:44:43]KKMCreateOFDPacket done [11:44:43]NVStorageSaveData kkm_last_timestamp [11:44:43]File name is /storage/kkm_last_timestamp [11:44:43]Write 4 bytes [11:44:43]NVStorageSaveData done [11:44:43]ExternCall_PrintAddStr [11:44:43]wPrintStart [11:44:43]Write to MH i2c: 01 00 00 C0 18 D8 [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: 01 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: 01 07 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: 01 07 00 C0 18 00 00 00 00 00 FF 0F ED [11:44:43]RasterBufferAndPrint [11:44:43]line Счет N : (3)190116 [11:44:43]line ИНН: 02508201610067 [11:44:43]line Контрольно-Кассовый Чек [11:44:43]line ПРОДАЖА [11:44:43]line Товар: 4700007690018 [11:44:43]line Негаз вода Pamir 0,5 л [11:44:43]line 2.000 * 30.00 [11:44:43]line = 60.00 [11:44:43]line НДС 12% НСП 1% [11:44:43]line > о реализуемом товаре [11:44:43]line ИТОГО: 60.00 [11:44:43]line НСП 1% : 0.53 [11:44:43]line НДС 12% : 6.37 [11:44:43]line Наличными: 60.00 [11:44:43]line Безнал.: 0.00 [11:44:43]line Место: АЗС № 95 "Партнер Нефть" [11:44:43]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:44:43]line СНО: Общий режим [11:44:43]line Чек 76 19.08.2024 11:44 [11:44:43]line Смена: 467 ФФД: 1.0 [11:44:43]line ЗНМ: 0300000078 [11:44:43]line РНМ: 0000000000092546 [11:44:43]line Версия ККМ: 001 [11:44:43]line ФМ: 0000000000871800 [11:44:43]line ФД: 49969 [11:44:43]line ФПД: 74233497713088 [11:44:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T114444&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49969&fm=74233497713088&tin=02508201610067®Number=0000000000092546&sum=6000 [11:44:43]OFD Sender: Processing packet 49969 [packets to send 21, broken 20] [11:44:43]ProducePacketName [11:44:43]name=ofd_packets/00049969 [11:44:43]OFD Sender: To server: pG, [11:44:43]CommunicateWithHost lk.salyk.kg:30040 [11:44:43]ConnectInit lk.salyk.kg [11:44:43]line 0 [11:44:43]written 0, free lines is 4095 [11:44:43]Connected sock=10 [11:44:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 CD 0A 1E 01 50 5F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 37 30 30 30 30 37 36 39 30 30 31 38 06 04 20 00 D0 9D D0 B5 D0 B3 D0 B0 D0 B7 20 D0 B2 D0 BE D0 B4 D0 B0 20 50 61 6D 69 72 20 30 2C 35 20 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 2C 30 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 31 C3 00 00 35 04 06 00 43 83 D5 42 F9 C0 DA 0B 38 1F DD 0C 64 7E [11:44:44]Write to MH i2c: 01 00 00 E8 18 00 [11:44:44]Write i2c OK [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: 01 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: 01 07 00 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: 01 07 00 E8 18 00 00 00 00 00 F4 0C 07 [11:44:44]RasterBufferAndPrint [11:44:44]line [11:44:44]line [11:44:44]line [11:44:44]line [11:44:44]line [11:44:44]written 0, free lines is 3322 [11:44:44]MH_Cut [11:44:44]Write to MH i2c: D1 01 00 EF 18 01 D9 [11:44:44]Write i2c OK [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: D1 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: D1 01 00 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: D1 01 00 EF 18 00 D8 [11:44:44]Write to MH i2c: 01 00 00 F0 18 08 [11:44:44]Write i2c OK [11:44:44]MH_I2C_Read... [11:44:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 AE B3 47 00 DE E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 31 C3 00 00 F4 03 04 00 99 DA C2 66 B6 04 01 00 00 45 5D 4F 34 63 8E 4E FB [11:44:44]CommunicateWithHost err = 0 [11:44:44]CheckOFDResponse [11:44:44]1017 (14) - 77093643461234 [11:44:44]1041 (16) - 0000000000871800 [11:44:44]1040 (4) - 49969 [11:44:44]1012 (4) - 19.08.2024 05:39 [11:44:44]1206 (1) - 0 [11:44:44]OFD Sender: Remove packet 49969 [11:44:44]ProducePacketName [11:44:44]name=ofd_packets/00049969 [11:44:44]NVStorageDeleteData [11:44:45]*** Cut start [11:44:45]*** Purtial cut [11:44:45]*** CUTSNS_PIN = 0 [11:44:45]OFD Sender: No OFD packet to send [11:44:45]*** Stage 1: CUTSNS_PIN = 1 [11:44:47]Read from MH i2c: 01 [11:44:47]MH_I2C_Read... [11:44:47]*** Stop cut motor [11:44:47]*** Cut end [11:44:47]Read from MH i2c: 01 07 00 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: 01 07 00 F0 18 00 00 00 00 00 FF 0F 1D [11:44:47]process_action close_receipt done [11:44:47]requested_data is exist [11:44:47]produce_requested_data [11:44:47]requested_item fm.sn is exist - process it [11:44:47]wFMCommunicate request_size=4 [11:44:47]MH_SAM_APDU [11:44:47]CAPDU: 80 11 00 00 [11:44:47]Write to MH i2c: E2 08 00 F1 18 80 11 00 00 00 00 00 00 83 [11:44:47]Write i2c OK [11:44:47]MH_I2C_Read... [11:44:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:47]Read from MH i2c: E2 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 17 00 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 17 00 F1 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CE [11:44:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:44:47]wFMCommunicate OK [11:44:47]requested_item fd.num is exist - process it [11:44:47]SAM_PROTO_GetFieldsCounters [11:44:47]wFMCommunicate request_size=4 [11:44:47]MH_SAM_APDU [11:44:47]CAPDU: 80 13 00 00 [11:44:47]Write to MH i2c: E2 08 00 F2 18 80 13 00 00 00 00 00 00 86 [11:44:47]Write i2c OK [11:44:47]MH_I2C_Read... [11:44:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:47]Read from MH i2c: E2 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 62 00 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 62 00 F2 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 31 C3 00 00 0E 04 04 00 D3 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 4C [11:44:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 31 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:47]wFMCommunicate OK [11:44:47]SAM_PROTO_GetFieldsCounters done [11:44:47]requested_item shift.num is exist - process it [11:44:47]requested_item shift.opened is exist - process it [11:44:47]req_shift_opened [11:44:47]FM_GetShiftState [11:44:47]SAM_PROTO_GetShiftState [11:44:47]wFMCommunicate request_size=4 [11:44:47]MH_SAM_APDU [11:44:47]CAPDU: 80 13 01 00 [11:44:47]Write to MH i2c: E2 08 00 F3 18 80 13 01 00 00 00 00 00 88 [11:44:47]Write i2c OK [11:44:47]MH_I2C_Read... [11:44:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:47]Read from MH i2c: E2 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 0E 00 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 0E 00 F3 18 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 42 [11:44:47]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:44:47]wFMCommunicate OK [11:44:47]SAM_PROTO_GetShiftState done [11:44:47]FM_GetShiftState done [11:44:47]req_shift_opened done [11:44:47]requested_item shift.open_date is exist - process it [11:44:47]req_shift_open_date [11:44:47]req_shift_open_date done [11:44:47]produce_requested_data done [11:44:47]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49969,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [11:44:47]process_action_free close_receipt [11:44:47]json_value_free [11:44:47]json_value_free done [11:44:47]process_json_proto returns [11:44:47]Send response to host [11:44:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49969,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [11:44:47]free response buf [11:44:47]execute_script done [11:44:47]execute_script returns [11:44:47]free content buf [11:44:47]Sock 7.Close socket [11:44:47]Sock 7.Thread stoped [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:45]accept exits with 9 [11:46:45]New connection [11:46:45]New thread 3067211108 created [11:46:45]Thread 3067354468 joined [11:46:45]Waiting for new connection... [11:46:45] Sock 9.Parse request [11:46:45]Sock 9.Check first char [11:46:45]Sock 9.First char is OK [11:46:45]request: POST /json_proto HTTP/1.0 [11:46:45]Method: POST [11:46:45]URL: /json_proto [11:46:45]Method is POST - this is cgi request [11:46:45]url: /json_proto [11:46:45]query_string will be loaded in cgi processing [11:46:45]execute_cgi json_proto POST (null) [11:46:45]execute_cgi path=json_proto method=POST [11:46:45]POST find Content-Length [11:46:45]Host: 172.17.46.196:8080 [11:46:45]Content-Length: 1104 [11:46:45]Content-Type: application/json [11:46:45] [11:46:45]POST finish read [11:46:45]Found Content-Length = 1104 [11:46:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190117", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:45]execute_script... [11:46:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190117", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:45]POST & json_proto [11:46:45]process_json_proto [11:46:45]json parsed OK: [11:46:45]protocol is kg_v1.0 [11:46:45]action value=close_receipt [11:46:45]process_action close_receipt [11:46:45]cmd_close_receipt [11:46:45]MH_GetDate [11:46:45]Write to MH i2c: F0 00 00 F4 18 FB [11:46:45]Write i2c OK [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: F0 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: F0 09 00 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: F0 09 00 F4 18 00 A7 30 C3 66 C4 85 C2 66 75 [11:46:45]GetLastDocTimeStamp 1724067884 [11:46:45]current date 1724068007 [11:46:45]FM_GetShiftState [11:46:45]SAM_PROTO_GetShiftState [11:46:45]wFMCommunicate request_size=4 [11:46:45]MH_SAM_APDU [11:46:45]CAPDU: 80 13 01 00 [11:46:45]Write to MH i2c: E2 08 00 F5 18 80 13 01 00 00 00 00 00 8A [11:46:45]Write i2c OK [11:46:45]MH_I2C_Read... [11:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:45]Read from MH i2c: E2 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: E2 0E 00 [11:46:45]MH_I2C_Read... [11:46:45]Read from MH i2c: E2 0E 00 F5 18 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 44 [11:46:45]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:46:45]wFMCommunicate OK [11:46:45]SAM_PROTO_GetShiftState done [11:46:45]FM_GetShiftState done [11:46:45]opened in 1724026361 [11:46:45]opened+sec_in_day 1724112761 [11:46:45]quantity*price = 14000 [11:46:45]sum+1 = 14001 [11:46:45]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 50173617 Жев Orbit Eucalyptus 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000176431 Сок Piko Pulpy апельсин ПЭТ 0,5л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.74 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 77 19.08.2024 11:46 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49970 ФПД: 83104444830386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T114647&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49970&fm=83104444830386&tin=02508201610067®Number=0000000000092546&sum=28000 0 [11:46:46]StoreToDocumentArchive [11:46:46]shift 467 fd 49970 [11:46:46]save to /storage/0467/doc_00049970 [11:46:46]save last doc name /storage/0467/doc_00049970 to /storage/kkm_last_doc_name [11:46:46]save OK [11:46:46]Clear old archive folders... [11:46:46]ProcessDocumentItem done err = 0, tmpTLVsize=484 [11:46:46]tlvbuf is B6F0A9F0 [11:46:46]SAM_PROTO_ClearQueue [11:46:46]wFMCommunicate request_size=4 [11:46:46]MH_SAM_APDU [11:46:46]CAPDU: 80 09 00 00 [11:46:46]Write to MH i2c: E2 08 00 02 19 80 09 00 00 00 00 00 00 8D [11:46:46]Write i2c OK [11:46:46]MH_I2C_Read... [11:46:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:46]Read from MH i2c: E2 [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: E2 03 00 [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: E2 03 00 02 19 00 90 00 8F [11:46:46]RAPDU: 90 00 [11:46:46]wFMCommunicate OK [11:46:46]SAM_PROTO_ClearQueue done [11:46:46]KKMCreateOFDPacket [11:46:46]OFDProtocolAddRootSTLVToBuf [11:46:46]FM_MakeSignedData [11:46:46]FM_MakeSignedData [11:46:46]SAM_PROTO_SignData [11:46:46]wFMCommunicate request_size=4 [11:46:46]MH_SAM_APDU [11:46:46]CAPDU: 80 0D 01 02 [11:46:46]Write to MH i2c: E2 08 00 03 19 80 0D 01 02 00 00 00 00 95 [11:46:46]Write i2c OK [11:46:46]MH_I2C_Read... [11:46:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:46]Read from MH i2c: E2 [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: E2 03 00 [11:46:46]MH_I2C_Read... [11:46:46]Read from MH i2c: E2 03 00 03 19 00 90 00 90 [11:46:46]RAPDU: 90 00 [11:46:46]wFMCommunicate OK [11:46:46]wFMCommunicate request_size=255 [11:46:46]MH_SAM_APDU [11:46:46]CAPDU: 80 0D 02 02 FA 03 00 E4 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 [11:46:46]Write to MH i2c: E2 02 01 04 19 80 0D 02 02 FA 00 03 00 E4 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 00 00 11 [11:46:46]Write i2c OK [11:46:46]MH_I2C_Read... [11:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:47]Read from MH i2c: E2 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 03 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 03 00 04 19 00 90 00 91 [11:46:47]RAPDU: 90 00 [11:46:47]wFMCommunicate OK [11:46:47]wFMCommunicate request_size=243 [11:46:47]MH_SAM_APDU [11:46:47]CAPDU: 80 0D 02 02 EE BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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 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 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A7 30 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 32 C3 00 00 35 04 06 00 4B 95 42 E9 D2 B2 [11:46:47]Write to MH i2c: E2 F6 00 05 19 80 0D 02 02 EE 00 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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 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 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A7 30 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 32 C3 00 00 35 04 06 00 4B 95 42 E9 D2 B2 00 00 68 [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:47]Read from MH i2c: E2 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 03 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 03 00 05 19 00 90 00 92 [11:46:47]RAPDU: 90 00 [11:46:47]wFMCommunicate OK [11:46:47]wFMCommunicate request_size=4 [11:46:47]MH_SAM_APDU [11:46:47]CAPDU: 80 0D 03 02 [11:46:47]Write to MH i2c: E2 08 00 06 19 80 0D 03 02 00 00 00 00 9A [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:47]Read from MH i2c: E2 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 0B 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 0B 00 06 19 00 14 CB 13 54 53 24 DB 1F 90 00 52 [11:46:47]RAPDU: 14 CB 13 54 53 24 DB 1F 90 00 [11:46:47]wFMCommunicate OK [11:46:47]SAM_PROTO_SignData done [11:46:47]FM_MakeSignedData done [11:46:47]CreateOFDProtocolMessage [11:46:47]wFMCommunicate request_size=4 [11:46:47]MH_SAM_APDU [11:46:47]CAPDU: 80 11 00 00 [11:46:47]Write to MH i2c: E2 08 00 07 19 80 11 00 00 00 00 00 00 9A [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:47]Read from MH i2c: E2 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 17 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: E2 17 00 07 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E5 [11:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:46:47]wFMCommunicate OK [11:46:47]CreateOFDProtocolMessage done [11:46:47]OFDSenderStorePacket 49970 [11:46:47]StoreOFDPacket docnum=49970 [11:46:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 F8 01 00 00 F7 39 F0 01 73 20 5A 03 01 00 03 00 E4 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A7 30 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 32 C3 00 00 35 04 06 00 4B 95 42 E9 D2 B2 14 CB 13 54 53 24 DB 1F [11:46:47]CheckFolder [11:46:47]dirname=/storage/ofd_packets [11:46:47]CheckFolder done [11:46:47]ProducePacketName [11:46:47]name=ofd_packets/00049970 [11:46:47]NVStorageSaveData ofd_packets/00049970 [11:46:47]File name is /storage/ofd_packets/00049970 [11:46:47]Write 534 bytes [11:46:47]NVStorageSaveData done [11:46:47]OFDSenderStorePacket done [11:46:47]KKMCreateOFDPacket done [11:46:47]NVStorageSaveData kkm_last_timestamp [11:46:47]File name is /storage/kkm_last_timestamp [11:46:47]Write 4 bytes [11:46:47]NVStorageSaveData done [11:46:47]OFD Sender: Processing packet 49970 [packets to send 21, broken 20] [11:46:47]ProducePacketName [11:46:47]name=ofd_packets/00049970 [11:46:47]OFD Sender: To server: pG, [11:46:47]CommunicateWithHost lk.salyk.kg:30040 [11:46:47]ConnectInit lk.salyk.kg [11:46:47]ExternCall_PrintAddStr [11:46:47]wPrintStart [11:46:47]Write to MH i2c: 01 00 00 08 19 21 [11:46:47]Write i2c OK [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: 01 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: 01 07 00 [11:46:47]MH_I2C_Read... [11:46:47]Read from MH i2c: 01 07 00 08 19 00 00 00 00 00 FF 0F 36 [11:46:47]RasterBufferAndPrint [11:46:47]line Счет N : (3)190117 [11:46:47]line ИНН: 02508201610067 [11:46:47]line Контрольно-Кассовый Чек [11:46:47]line ПРОДАЖА [11:46:47]line Товар: 48743587 [11:46:47]line Сигареты Winston XStyle Silver [11:46:47]line 1.000 * 140.00 [11:46:47]line = 140.00 [11:46:47]line НДС 12% НСП 1% [11:46:47]line > о реализуемом товаре [11:46:47]line Товар: 50173617 [11:46:47]line Жев Orbit Eucalyptus [11:46:47]line 1.000 * 45.00 [11:46:47]line = 45.00 [11:46:47]line НДС 12% НСП 1% [11:46:47]line > о реализуемом товаре [11:46:47]line Товар: 5449000176431 [11:46:47]line Сок Piko Pulpy апельсин ПЭТ 0,5л [11:46:47]line 1.000 * 95.00 [11:46:47]line = 95.00 [11:46:47]line НДС 12% НСП 1% [11:46:47]line > о реализуемом товаре [11:46:47]line ИТОГО: 280.00 [11:46:47]line НСП 1% : 2.48 [11:46:47]line НДС 12% : 29.74 [11:46:47]line Наличными: 280.00 [11:46:47]line Безнал.: 0.00 [11:46:47]line Место: АЗС № 95 "Партнер Нефть" [11:46:47]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:46:47]line СНО: Общий режим [11:46:47]line Чек 77 19.08.2024 11:46 [11:46:47]line Смена: 467 ФФД: 1.0 [11:46:47]line ЗНМ: 0300000078 [11:46:47]line РНМ: 0000000000092546 [11:46:47]line Версия ККМ: 001 [11:46:47]line ФМ: 0000000000871800 [11:46:47]line ФД: 49970 [11:46:47]line ФПД: 83104444830386 [11:46:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T114647&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49970&fm=83104444830386&tin=02508201610067®Number=0000000000092546&sum=28000 [11:46:47]line 0 [11:46:47]written 0, free lines is 4095 [11:46:47]Connected sock=11 [11:46:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 F8 01 00 00 F7 39 F0 01 73 20 5A 03 01 00 03 00 E4 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 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 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 A7 30 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 32 C3 00 00 35 04 06 00 4B 95 42 E9 D2 B2 14 CB 13 54 53 24 DB 1F [11:46:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 6F 0F 47 00 F4 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 32 C3 00 00 F4 03 04 00 15 DB C2 66 B6 04 01 00 00 10 6B 07 EE C9 53 08 2A [11:46:48]CommunicateWithHost err = 0 [11:46:48]CheckOFDResponse [11:46:48]1017 (14) - 77093643461234 [11:46:48]1041 (16) - 0000000000871800 [11:46:48]1040 (4) - 49970 [11:46:48]1012 (4) - 19.08.2024 05:41 [11:46:48]1206 (1) - 0 [11:46:48]OFD Sender: Remove packet 49970 [11:46:48]ProducePacketName [11:46:48]name=ofd_packets/00049970 [11:46:48]NVStorageDeleteData [11:46:48]Write to MH i2c: 01 00 00 3E 19 57 [11:46:48]Write i2c OK [11:46:48]MH_I2C_Read... [11:46:48]Read from MH i2c: 01 [11:46:48]MH_I2C_Read... [11:46:48]Read from MH i2c: 01 07 00 [11:46:48]MH_I2C_Read... [11:46:48]Read from MH i2c: 01 07 00 3E 19 00 00 00 00 00 04 0C 6E [11:46:48]RasterBufferAndPrint [11:46:48]line [11:46:48]line [11:46:48]line [11:46:48]line [11:46:48]line [11:46:48]written 0, free lines is 3084 [11:46:48]MH_Cut [11:46:48]Write to MH i2c: D1 01 00 45 19 01 30 [11:46:48]Write i2c OK [11:46:48]MH_I2C_Read... [11:46:48]Read from MH i2c: D1 [11:46:48]MH_I2C_Read... [11:46:48]Read from MH i2c: D1 01 00 [11:46:48]MH_I2C_Read... [11:46:48]Read from MH i2c: D1 01 00 45 19 00 2F [11:46:48]Write to MH i2c: 01 00 00 46 19 5F [11:46:48]Write i2c OK [11:46:48]MH_I2C_Read... [11:46:48]OFD Sender: No OFD packet to send [11:46:49]*** Cut start [11:46:49]*** Purtial cut [11:46:49]*** Stage 1: CUTSNS_PIN = 1 [11:46:49]Read from MH i2c: 01 [11:46:49]MH_I2C_Read... [11:46:49]*** Stop cut motor [11:46:49]*** Cut end [11:46:49]Read from MH i2c: 01 07 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: 01 07 00 46 19 00 00 00 00 00 FF 0F 74 [11:46:49]process_action close_receipt done [11:46:49]requested_data is exist [11:46:49]produce_requested_data [11:46:49]requested_item fm.sn is exist - process it [11:46:49]wFMCommunicate request_size=4 [11:46:49]MH_SAM_APDU [11:46:49]CAPDU: 80 11 00 00 [11:46:49]Write to MH i2c: E2 08 00 47 19 80 11 00 00 00 00 00 00 DA [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:49]Read from MH i2c: E2 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 17 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 17 00 47 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 25 [11:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:46:49]wFMCommunicate OK [11:46:49]requested_item fd.num is exist - process it [11:46:49]SAM_PROTO_GetFieldsCounters [11:46:49]wFMCommunicate request_size=4 [11:46:49]MH_SAM_APDU [11:46:49]CAPDU: 80 13 00 00 [11:46:49]Write to MH i2c: E2 08 00 48 19 80 13 00 00 00 00 00 00 DD [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:49]Read from MH i2c: E2 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 62 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 62 00 48 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 32 C3 00 00 0E 04 04 00 D3 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 A7 [11:46:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 32 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:49]wFMCommunicate OK [11:46:49]SAM_PROTO_GetFieldsCounters done [11:46:49]requested_item shift.num is exist - process it [11:46:49]requested_item shift.opened is exist - process it [11:46:49]req_shift_opened [11:46:49]FM_GetShiftState [11:46:49]SAM_PROTO_GetShiftState [11:46:49]wFMCommunicate request_size=4 [11:46:49]MH_SAM_APDU [11:46:49]CAPDU: 80 13 01 00 [11:46:49]Write to MH i2c: E2 08 00 49 19 80 13 01 00 00 00 00 00 DF [11:46:49]Write i2c OK [11:46:49]MH_I2C_Read... [11:46:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:49]Read from MH i2c: E2 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 0E 00 [11:46:49]MH_I2C_Read... [11:46:49]Read from MH i2c: E2 0E 00 49 19 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 99 [11:46:49]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:46:49]wFMCommunicate OK [11:46:49]SAM_PROTO_GetShiftState done [11:46:49]FM_GetShiftState done [11:46:49]req_shift_opened done [11:46:49]requested_item shift.open_date is exist - process it [11:46:49]req_shift_open_date [11:46:49]req_shift_open_date done [11:46:49]produce_requested_data done [11:46:49]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49970,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [11:46:49]process_action_free close_receipt [11:46:49]json_value_free [11:46:49]json_value_free done [11:46:49]process_json_proto returns [11:46:49]Send response to host [11:46:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49970,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [11:46:49]free response buf [11:46:49]execute_script done [11:46:49]execute_script returns [11:46:49]free content buf [11:46:49]Sock 9.Close socket [11:46:49]Sock 9.Thread stoped [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:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:05]accept exits with 7 [11:49:05]New connection [11:49:05]New thread 3067354468 created [11:49:05]Thread 3067211108 joined [11:49:05]Waiting for new connection... [11:49:05] Sock 7.Parse request [11:49:05]Sock 7.Check first char [11:49:05]Sock 7.First char is OK [11:49:05]request: POST /json_proto HTTP/1.0 [11:49:05]Method: POST [11:49:05]URL: /json_proto [11:49:05]Method is POST - this is cgi request [11:49:05]url: /json_proto [11:49:05]query_string will be loaded in cgi processing [11:49:05]execute_cgi json_proto POST (null) [11:49:05]execute_cgi path=json_proto method=POST [11:49:05]POST find Content-Length [11:49:05]Host: 172.17.46.196:8080 [11:49:05]Content-Length: 748 [11:49:05]Content-Type: application/json [11:49:05] [11:49:05]POST finish read [11:49:05]Found Content-Length = 748 [11:49:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190118", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:05]execute_script... [11:49: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)190118", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:05]POST & json_proto [11:49:05]process_json_proto [11:49:05]json parsed OK: [11:49:05]protocol is kg_v1.0 [11:49:05]action value=close_receipt [11:49:05]process_action close_receipt [11:49:05]cmd_close_receipt [11:49:05]MH_GetDate [11:49:05]Write to MH i2c: F0 00 00 4A 19 52 [11:49:05]Write i2c OK [11:49:05]MH_I2C_Read... [11:49:05]Read from MH i2c: F0 [11:49:05]MH_I2C_Read... [11:49:05]Read from MH i2c: F0 09 00 [11:49:05]MH_I2C_Read... [11:49:05]Read from MH i2c: F0 09 00 4A 19 00 34 31 C3 66 C4 85 C2 66 5A [11:49:05]GetLastDocTimeStamp 1724068007 [11:49:05]current date 1724068148 [11:49:05]FM_GetShiftState [11:49:05]SAM_PROTO_GetShiftState [11:49:05]wFMCommunicate request_size=4 [11:49:05]MH_SAM_APDU [11:49:05]CAPDU: 80 13 01 00 [11:49:05]Write to MH i2c: E2 08 00 4B 19 80 13 01 00 00 00 00 00 E1 [11:49:05]Write i2c OK [11:49:05]MH_I2C_Read... [11:49:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:05]Read from MH i2c: E2 [11:49:05]MH_I2C_Read... [11:49:05]Read from MH i2c: E2 0E 00 [11:49:05]MH_I2C_Read... [11:49:05]Read from MH i2c: E2 0E 00 4B 19 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 9B [11:49:05]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:49:05]wFMCommunicate OK [11:49:05]SAM_PROTO_GetShiftState done [11:49:05]FM_GetShiftState done [11:49:05]opened in 1724026361 [11:49:05]opened+sec_in_day 1724112761 [11:49:05]quantity*price = 12500 [11:49:05]sum+1 = 12501 [11:49:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 78 19.08.2024 11:49 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49971 ФПД: 252971393103354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T114908&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49971&fm=252971393103354&tin=02508201610067®Number=0000000000092546&sum=12500 0 [11:49:06]StoreToDocumentArchive [11:49:06]shift 467 fd 49971 [11:49:06]save to /storage/0467/doc_00049971 [11:49:06]save last doc name /storage/0467/doc_00049971 to /storage/kkm_last_doc_name [11:49:06]save OK [11:49:06]Clear old archive folders... [11:49:06]ProcessDocumentItem done err = 0, tmpTLVsize=312 [11:49:06]tlvbuf is B6FB7790 [11:49:06]SAM_PROTO_ClearQueue [11:49:06]wFMCommunicate request_size=4 [11:49:06]MH_SAM_APDU [11:49:06]CAPDU: 80 09 00 00 [11:49:06]Write to MH i2c: E2 08 00 58 19 80 09 00 00 00 00 00 00 E3 [11:49:06]Write i2c OK [11:49:06]MH_I2C_Read... [11:49:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:07]Read from MH i2c: E2 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: E2 03 00 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: E2 03 00 58 19 00 90 00 E5 [11:49:07]RAPDU: 90 00 [11:49:07]wFMCommunicate OK [11:49:07]SAM_PROTO_ClearQueue done [11:49:07]KKMCreateOFDPacket [11:49:07]OFDProtocolAddRootSTLVToBuf [11:49:07]FM_MakeSignedData [11:49:07]FM_MakeSignedData [11:49:07]SAM_PROTO_SignData [11:49:07]wFMCommunicate request_size=4 [11:49:07]MH_SAM_APDU [11:49:07]CAPDU: 80 0D 01 02 [11:49:07]Write to MH i2c: E2 08 00 59 19 80 0D 01 02 00 00 00 00 EB [11:49:07]Write i2c OK [11:49:07]MH_I2C_Read... [11:49:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:07]Read from MH i2c: E2 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: E2 03 00 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: E2 03 00 59 19 00 90 00 E6 [11:49:07]RAPDU: 90 00 [11:49:07]wFMCommunicate OK [11:49:07]wFMCommunicate request_size=255 [11:49:07]MH_SAM_APDU [11:49:07]CAPDU: 80 0D 02 02 FA 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 34 31 C3 66 0E 04 04 00 D3 [11:49:07]Write to MH i2c: E2 02 01 5A 19 80 0D 02 02 FA 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 34 31 C3 66 0E 04 04 00 D3 00 00 B6 [11:49:07]Write i2c OK [11:49:07]MH_I2C_Read... [11:49:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:07]Read from MH i2c: E2 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: E2 03 00 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: E2 03 00 5A 19 00 90 00 E7 [11:49:07]RAPDU: 90 00 [11:49:07]wFMCommunicate OK [11:49:07]wFMCommunicate request_size=71 [11:49:07]MH_SAM_APDU [11:49:07]CAPDU: 80 0D 02 02 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 33 C3 00 00 35 04 06 00 E6 13 7E 06 35 FA [11:49:07]Write to MH i2c: E2 4A 00 5B 19 80 0D 02 02 42 00 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 33 C3 00 00 35 04 06 00 E6 13 7E 06 35 FA 00 00 A3 [11:49:07]Write i2c OK [11:49:07]MH_I2C_Read... [11:49:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:07]Read from MH i2c: E2 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: E2 03 00 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: E2 03 00 5B 19 00 90 00 E8 [11:49:07]RAPDU: 90 00 [11:49:07]wFMCommunicate OK [11:49:07]wFMCommunicate request_size=4 [11:49:07]MH_SAM_APDU [11:49:07]CAPDU: 80 0D 03 02 [11:49:07]Write to MH i2c: E2 08 00 5C 19 80 0D 03 02 00 00 00 00 F0 [11:49:07]Write i2c OK [11:49:07]MH_I2C_Read... [11:49:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:07]Read from MH i2c: E2 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: E2 0B 00 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: E2 0B 00 5C 19 00 AD 0E C6 BC 7F D0 84 8B 90 00 8C [11:49:07]RAPDU: AD 0E C6 BC 7F D0 84 8B 90 00 [11:49:07]wFMCommunicate OK [11:49:07]SAM_PROTO_SignData done [11:49:07]FM_MakeSignedData done [11:49:07]CreateOFDProtocolMessage [11:49:07]wFMCommunicate request_size=4 [11:49:07]MH_SAM_APDU [11:49:07]CAPDU: 80 11 00 00 [11:49:07]Write to MH i2c: E2 08 00 5D 19 80 11 00 00 00 00 00 00 F0 [11:49:07]Write i2c OK [11:49:07]MH_I2C_Read... [11:49:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:07]Read from MH i2c: E2 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: E2 17 00 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: E2 17 00 5D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3B [11:49:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:49:07]wFMCommunicate OK [11:49:07]CreateOFDProtocolMessage done [11:49:07]OFDSenderStorePacket 49971 [11:49:07]StoreOFDPacket docnum=49971 [11:49:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4C 01 00 00 2C E7 44 01 C6 E0 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 34 31 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 33 C3 00 00 35 04 06 00 E6 13 7E 06 35 FA AD 0E C6 BC 7F D0 84 8B [11:49:07]CheckFolder [11:49:07]dirname=/storage/ofd_packets [11:49:07]CheckFolder done [11:49:07]ProducePacketName [11:49:07]name=ofd_packets/00049971 [11:49:07]NVStorageSaveData ofd_packets/00049971 [11:49:07]File name is /storage/ofd_packets/00049971 [11:49:07]Write 362 bytes [11:49:07]NVStorageSaveData done [11:49:07]OFDSenderStorePacket done [11:49:07]KKMCreateOFDPacket done [11:49:07]NVStorageSaveData kkm_last_timestamp [11:49:07]File name is /storage/kkm_last_timestamp [11:49:07]Write 4 bytes [11:49:07]NVStorageSaveData done [11:49:07]ExternCall_PrintAddStr [11:49:07]wPrintStart [11:49:07]Write to MH i2c: 01 00 00 5E 19 77 [11:49:07]Write i2c OK [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: 01 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: 01 07 00 [11:49:07]MH_I2C_Read... [11:49:07]Read from MH i2c: 01 07 00 5E 19 00 00 00 00 00 FF 0F 8C [11:49:07]RasterBufferAndPrint [11:49:07]line Счет N : (3)190118 [11:49:07]line ИНН: 02508201610067 [11:49:07]line Контрольно-Кассовый Чек [11:49:07]line ПРОДАЖА [11:49:07]line Товар: 4870202521254 [11:49:07]line Чай холодный MAXI черный со вкусом клубн [11:49:07]line 1.000 * 125.00 [11:49:07]line = 125.00 [11:49:07]line НДС 12% НСП 1% [11:49:07]line > о реализуемом товаре [11:49:07]line ИТОГО: 125.00 [11:49:07]line НСП 1% : 1.11 [11:49:07]line НДС 12% : 13.27 [11:49:07]line Наличными: 125.00 [11:49:07]line Безнал.: 0.00 [11:49:07]line Место: АЗС № 95 "Партнер Нефть" [11:49:07]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:49:07]line СНО: Общий режим [11:49:07]line Чек 78 19.08.2024 11:49 [11:49:07]line Смена: 467 ФФД: 1.0 [11:49:07]line ЗНМ: 0300000078 [11:49:07]line РНМ: 0000000000092546 [11:49:07]line Версия ККМ: 001 [11:49:07]line ФМ: 0000000000871800 [11:49:07]line ФД: 49971 [11:49:07]line ФПД: 252971393103354 [11:49:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T114908&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49971&fm=252971393103354&tin=02508201610067®Number=0000000000092546&sum=12500 [11:49:07]line 0 [11:49:07]OFD Sender: Processing packet 49971 [packets to send 21, broken 20] [11:49:07]ProducePacketName [11:49:07]name=ofd_packets/00049971 [11:49:07]OFD Sender: To server: pG, [11:49:07]CommunicateWithHost lk.salyk.kg:30040 [11:49:07]ConnectInit lk.salyk.kg [11:49:07]written 0, free lines is 4095 [11:49:08]Connected sock=10 [11:49:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4C 01 00 00 2C E7 44 01 C6 E0 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 34 31 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 33 C3 00 00 35 04 06 00 E6 13 7E 06 35 FA AD 0E C6 BC 7F D0 84 8B [11:49:08]Write to MH i2c: 01 00 00 87 19 A0 [11:49:08]Write i2c OK [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: 01 [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: 01 07 00 [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: 01 07 00 87 19 00 00 00 00 00 E6 0C 99 [11:49:08]RasterBufferAndPrint [11:49:08]line [11:49:08]line [11:49:08]line [11:49:08]line [11:49:08]line [11:49:08]written 0, free lines is 3311 [11:49:08]MH_Cut [11:49:08]Write to MH i2c: D1 01 00 8E 19 01 79 [11:49:08]Write i2c OK [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: D1 [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: D1 01 00 [11:49:08]MH_I2C_Read... [11:49:08]Read from MH i2c: D1 01 00 8E 19 00 78 [11:49:08]Write to MH i2c: 01 00 00 8F 19 A8 [11:49:08]Write i2c OK [11:49:08]MH_I2C_Read... [11:49:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 13 8F 47 00 0F FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 33 C3 00 00 F4 03 04 00 A2 DB C2 66 B6 04 01 00 00 59 CF 3C 41 99 43 18 0A [11:49:08]CommunicateWithHost err = 0 [11:49:08]CheckOFDResponse [11:49:08]1017 (14) - 77093643461234 [11:49:08]1041 (16) - 0000000000871800 [11:49:08]1040 (4) - 49971 [11:49:08]1012 (4) - 19.08.2024 05:44 [11:49:08]1206 (1) - 0 [11:49:08]OFD Sender: Remove packet 49971 [11:49:08]ProducePacketName [11:49:08]name=ofd_packets/00049971 [11:49:08]NVStorageDeleteData [11:49:08]OFD Sender: No OFD packet to send [11:49:09]*** Cut start [11:49:09]*** Purtial cut [11:49:09]*** CUTSNS_PIN = 0 [11:49:09]*** Stage 1: CUTSNS_PIN = 1 [11:49:11]Read from MH i2c: 01 [11:49:11]MH_I2C_Read... [11:49:11]*** Stop cut motor [11:49:11]*** Cut end [11:49:11]Read from MH i2c: 01 07 00 [11:49:11]MH_I2C_Read... [11:49:11]Read from MH i2c: 01 07 00 8F 19 00 00 00 00 00 FF 0F BD [11:49:11]process_action close_receipt done [11:49:11]requested_data is exist [11:49:11]produce_requested_data [11:49:11]requested_item fm.sn is exist - process it [11:49:11]wFMCommunicate request_size=4 [11:49:11]MH_SAM_APDU [11:49:11]CAPDU: 80 11 00 00 [11:49:11]Write to MH i2c: E2 08 00 90 19 80 11 00 00 00 00 00 00 23 [11:49:11]Write i2c OK [11:49:11]MH_I2C_Read... [11:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:11]Read from MH i2c: E2 [11:49:11]MH_I2C_Read... [11:49:11]Read from MH i2c: E2 17 00 [11:49:11]MH_I2C_Read... [11:49:11]Read from MH i2c: E2 17 00 90 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6E [11:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:49:11]wFMCommunicate OK [11:49:11]requested_item fd.num is exist - process it [11:49:11]SAM_PROTO_GetFieldsCounters [11:49:11]wFMCommunicate request_size=4 [11:49:11]MH_SAM_APDU [11:49:11]CAPDU: 80 13 00 00 [11:49:11]Write to MH i2c: E2 08 00 91 19 80 13 00 00 00 00 00 00 26 [11:49:11]Write i2c OK [11:49:11]MH_I2C_Read... [11:49:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:11]Read from MH i2c: E2 [11:49:11]MH_I2C_Read... [11:49:11]Read from MH i2c: E2 62 00 [11:49:11]MH_I2C_Read... [11:49:11]Read from MH i2c: E2 62 00 91 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 33 C3 00 00 0E 04 04 00 D3 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 F4 [11:49:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 33 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:11]wFMCommunicate OK [11:49:11]SAM_PROTO_GetFieldsCounters done [11:49:11]requested_item shift.num is exist - process it [11:49:11]requested_item shift.opened is exist - process it [11:49:11]req_shift_opened [11:49:11]FM_GetShiftState [11:49:11]SAM_PROTO_GetShiftState [11:49:11]wFMCommunicate request_size=4 [11:49:11]MH_SAM_APDU [11:49:11]CAPDU: 80 13 01 00 [11:49:11]Write to MH i2c: E2 08 00 92 19 80 13 01 00 00 00 00 00 28 [11:49:11]Write i2c OK [11:49:11]MH_I2C_Read... [11:49:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:11]Read from MH i2c: E2 [11:49:11]MH_I2C_Read... [11:49:11]Read from MH i2c: E2 0E 00 [11:49:11]MH_I2C_Read... [11:49:11]Read from MH i2c: E2 0E 00 92 19 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 E2 [11:49:11]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:49:11]wFMCommunicate OK [11:49:11]SAM_PROTO_GetShiftState done [11:49:11]FM_GetShiftState done [11:49:11]req_shift_opened done [11:49:11]requested_item shift.open_date is exist - process it [11:49:11]req_shift_open_date [11:49:11]req_shift_open_date done [11:49:11]produce_requested_data done [11:49:11]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49971,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [11:49:11]process_action_free close_receipt [11:49:11]json_value_free [11:49:11]json_value_free done [11:49:11]process_json_proto returns [11:49:11]Send response to host [11:49:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49971,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [11:49:11]free response buf [11:49:11]execute_script done [11:49:11]execute_script returns [11:49:11]free content buf [11:49:11]Sock 7.Close socket [11:49:11]Sock 7.Thread stoped [11:49:13]OFD Sender: No OFD packet to send [11:49:15]accept exits with 9 [11:49:15]New connection [11:49:15]New thread 3067211108 created [11:49:15]Thread 3067354468 joined [11:49:15]Waiting for new connection... [11:49:15] Sock 9.Parse request [11:49:15]Sock 9.Check first char [11:49:15]Sock 9.First char is OK [11:49:15]request: POST /json_proto HTTP/1.0 [11:49:15]Method: POST [11:49:15]URL: /json_proto [11:49:15]Method is POST - this is cgi request [11:49:15]url: /json_proto [11:49:15]query_string will be loaded in cgi processing [11:49:15]execute_cgi json_proto POST (null) [11:49:15]execute_cgi path=json_proto method=POST [11:49:15]POST find Content-Length [11:49:15]Host: 172.17.46.196:8080 [11:49:15]Content-Length: 756 [11:49:15]Content-Type: application/json [11:49:15] [11:49:15]POST finish read [11:49:15]Found Content-Length = 756 [11:49:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30034047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:15]execute_script... [11:49:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30034047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:15]POST & json_proto [11:49:15]process_json_proto [11:49:15]json parsed OK: [11:49:15]protocol is kg_v1.0 [11:49:15]action value=close_receipt [11:49:15]process_action close_receipt [11:49:15]cmd_close_receipt [11:49:15]MH_GetDate [11:49:15]Write to MH i2c: F0 00 00 93 19 9B [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: F0 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: F0 09 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: F0 09 00 93 19 00 3D 31 C3 66 C4 85 C2 66 AC [11:49:15]GetLastDocTimeStamp 1724068148 [11:49:15]current date 1724068157 [11:49:15]FM_GetShiftState [11:49:15]SAM_PROTO_GetShiftState [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 13 01 00 [11:49:15]Write to MH i2c: E2 08 00 94 19 80 13 01 00 00 00 00 00 2A [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 0E 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 0E 00 94 19 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 E4 [11:49:15]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:49:15]wFMCommunicate OK [11:49:15]SAM_PROTO_GetShiftState done [11:49:15]FM_GetShiftState done [11:49:15]opened in 1724026361 [11:49:15]opened+sec_in_day 1724112761 [11:49:15]quantity*price = 0 [11:49:15]sum+1 = 1 [11:49:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 79 19.08.2024 11:49 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30034047 ФМ: 0000000000871800 ФД: 49972 ФПД: 133605800825292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T114917&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49972&fm=133605800825292&tin=02508201610067®Number=0000000000092546&sum=0 [11:49:16]StoreToDocumentArchive [11:49:16]shift 467 fd 49972 [11:49:16]save to /storage/0467/doc_00049972 [11:49:16]save last doc name /storage/0467/doc_00049972 to /storage/kkm_last_doc_name [11:49:16]save OK [11:49:16]Clear old archive folders... [11:49:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:16]tlvbuf is 00F7AD00 [11:49:16]SAM_PROTO_ClearQueue [11:49:16]wFMCommunicate request_size=4 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 09 00 00 [11:49:16]Write to MH i2c: E2 08 00 A1 19 80 09 00 00 00 00 00 00 2C [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 A1 19 00 90 00 2E [11:49:16]RAPDU: 90 00 [11:49:16]wFMCommunicate OK [11:49:16]SAM_PROTO_ClearQueue done [11:49:16]KKMCreateOFDPacket [11:49:16]OFDProtocolAddRootSTLVToBuf [11:49:16]FM_MakeSignedData [11:49:16]FM_MakeSignedData [11:49:16]SAM_PROTO_SignData [11:49:16]wFMCommunicate request_size=4 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 0D 01 02 [11:49:16]Write to MH i2c: E2 08 00 A2 19 80 0D 01 02 00 00 00 00 34 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 A2 19 00 90 00 2F [11:49:16]RAPDU: 90 00 [11:49:16]wFMCommunicate OK [11:49:16]wFMCommunicate request_size=255 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 3D 31 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 34 C3 00 00 35 04 06 00 79 [11:49:16]Write to MH i2c: E2 02 01 A3 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 3D 31 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 34 C3 00 00 35 04 06 00 79 00 00 32 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 A3 19 00 90 00 30 [11:49:16]RAPDU: 90 00 [11:49:16]wFMCommunicate OK [11:49:16]wFMCommunicate request_size=10 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 0D 02 02 05 83 86 4C 51 CC [11:49:16]Write to MH i2c: E2 0D 00 A4 19 80 0D 02 02 05 00 83 86 4C 51 CC 00 00 B3 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 03 00 A4 19 00 90 00 31 [11:49:16]RAPDU: 90 00 [11:49:16]wFMCommunicate OK [11:49:16]wFMCommunicate request_size=4 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 0D 03 02 [11:49:16]Write to MH i2c: E2 08 00 A5 19 80 0D 03 02 00 00 00 00 39 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 0B 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 0B 00 A5 19 00 A3 4E 00 4A 23 39 AB 64 90 00 E0 [11:49:16]RAPDU: A3 4E 00 4A 23 39 AB 64 90 00 [11:49:16]wFMCommunicate OK [11:49:16]SAM_PROTO_SignData done [11:49:16]FM_MakeSignedData done [11:49:16]CreateOFDProtocolMessage [11:49:16]wFMCommunicate request_size=4 [11:49:16]MH_SAM_APDU [11:49:16]CAPDU: 80 11 00 00 [11:49:16]Write to MH i2c: E2 08 00 A6 19 80 11 00 00 00 00 00 00 39 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:16]Read from MH i2c: E2 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 17 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: E2 17 00 A6 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 84 [11:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:49:16]wFMCommunicate OK [11:49:16]CreateOFDProtocolMessage done [11:49:16]OFDSenderStorePacket 49972 [11:49:16]StoreOFDPacket docnum=49972 [11:49:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 AE 92 07 01 8E 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 3D 31 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 34 C3 00 00 35 04 06 00 79 83 86 4C 51 CC A3 4E 00 4A 23 39 AB 64 [11:49:16]CheckFolder [11:49:16]dirname=/storage/ofd_packets [11:49:16]CheckFolder done [11:49:16]ProducePacketName [11:49:16]name=ofd_packets/00049972 [11:49:16]NVStorageSaveData ofd_packets/00049972 [11:49:16]File name is /storage/ofd_packets/00049972 [11:49:16]Write 301 bytes [11:49:16]NVStorageSaveData done [11:49:16]OFDSenderStorePacket done [11:49:16]KKMCreateOFDPacket done [11:49:16]NVStorageSaveData kkm_last_timestamp [11:49:16]File name is /storage/kkm_last_timestamp [11:49:16]Write 4 bytes [11:49:16]NVStorageSaveData done [11:49:16]ExternCall_PrintAddStr [11:49:16]wPrintStart [11:49:16]Write to MH i2c: 01 00 00 A7 19 C0 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: 01 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: 01 07 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: 01 07 00 A7 19 00 00 00 00 00 FF 0F D5 [11:49:16]RasterBufferAndPrint [11:49:16]line Счет N : (1)11327741 [11:49:16]line ИНН: 02508201610067 [11:49:16]line Контрольно-Кассовый Чек [11:49:16]line ПРОДАЖА [11:49:16]line ТРК (МРК, ГНК) : 22 [11:49:16]line Товар: 2710124130 [11:49:16]line Аи-92-К-4 [11:49:16]line 15.000 * 0.00 [11:49:16]line = 0.00 [11:49:16]line НДС 12% НСП 1% [11:49:16]line > о реализуемом товаре [11:49:16]line ИТОГО: 0.00 [11:49:16]line НСП 1% : 0.00 [11:49:16]line НДС 12% : 0.00 [11:49:16]line Наличными: 0.00 [11:49:16]line Безнал.: 0.00 [11:49:16]line Место: АЗС № 95 "Партнер Нефть" [11:49:16]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:49:16]line СНО: Общий режим [11:49:16]line Чек 79 19.08.2024 11:49 [11:49:16]line Смена: 467 ФФД: 1.0 [11:49:16]line ЗНМ: 0300000078 [11:49:16]line РНМ: 0000000000092546 [11:49:16]line Версия ККМ: 001 [11:49:16]line Талоны: ТК ГПНА Online [11:49:16]line 30034047 [11:49:16]line ФМ: 0000000000871800 [11:49:16]line ФД: 49972 [11:49:16]line ФПД: 133605800825292 [11:49:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T114917&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49972&fm=133605800825292&tin=02508201610067®Number=0000000000092546&sum=0 [11:49:16]written 0, free lines is 4095 [11:49:16]OFD Sender: Processing packet 49972 [packets to send 21, broken 20] [11:49:16]ProducePacketName [11:49:16]name=ofd_packets/00049972 [11:49:16]OFD Sender: To server: pG, [11:49:16]CommunicateWithHost lk.salyk.kg:30040 [11:49:16]ConnectInit lk.salyk.kg [11:49:17]Connected sock=10 [11:49:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 AE 92 07 01 8E 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 3D 31 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 34 C3 00 00 35 04 06 00 79 83 86 4C 51 CC A3 4E 00 4A 23 39 AB 64 [11:49:17]Write to MH i2c: 01 00 00 D1 19 EA [11:49:17]Write i2c OK [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: 01 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: 01 07 00 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: 01 07 00 D1 19 00 00 00 00 00 D1 0C CE [11:49:17]RasterBufferAndPrint [11:49:17]line [11:49:17]line [11:49:17]line [11:49:17]line [11:49:17]line [11:49:17]written 0, free lines is 3289 [11:49:17]MH_Cut [11:49:17]Write to MH i2c: D1 01 00 D8 19 01 C3 [11:49:17]Write i2c OK [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: D1 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: D1 01 00 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: D1 01 00 D8 19 00 C2 [11:49:17]Write to MH i2c: 01 00 00 D9 19 F2 [11:49:17]Write i2c OK [11:49:17]MH_I2C_Read... [11:49:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 7C 98 47 00 3B 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 34 C3 00 00 F4 03 04 00 AA DB C2 66 B6 04 01 00 00 29 0F 7F 36 D8 26 28 1F [11:49:17]CommunicateWithHost err = 0 [11:49:17]CheckOFDResponse [11:49:17]1017 (14) - 77093643461234 [11:49:17]1041 (16) - 0000000000871800 [11:49:17]1040 (4) - 49972 [11:49:17]1012 (4) - 19.08.2024 05:44 [11:49:17]1206 (1) - 0 [11:49:17]OFD Sender: Remove packet 49972 [11:49:17]ProducePacketName [11:49:17]name=ofd_packets/00049972 [11:49:17]NVStorageDeleteData [11:49:17]OFD Sender: No OFD packet to send [11:49:17]*** Cut start [11:49:17]*** Purtial cut [11:49:17]*** Stage 1: CUTSNS_PIN = 1 [11:49:18]Read from MH i2c: 01 [11:49:18]MH_I2C_Read... [11:49:18]*** Stop cut motor [11:49:18]*** Cut end [11:49:18]Read from MH i2c: 01 07 00 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: 01 07 00 D9 19 00 00 00 00 00 FF 0F 07 [11:49:18]process_action close_receipt done [11:49:18]requested_data is exist [11:49:18]produce_requested_data [11:49:18]requested_item fm.sn is exist - process it [11:49:18]wFMCommunicate request_size=4 [11:49:18]MH_SAM_APDU [11:49:18]CAPDU: 80 11 00 00 [11:49:18]Write to MH i2c: E2 08 00 DA 19 80 11 00 00 00 00 00 00 6D [11:49:18]Write i2c OK [11:49:18]MH_I2C_Read... [11:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:18]Read from MH i2c: E2 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 17 00 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 17 00 DA 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B8 [11:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:49:18]wFMCommunicate OK [11:49:18]requested_item fd.num is exist - process it [11:49:18]SAM_PROTO_GetFieldsCounters [11:49:18]wFMCommunicate request_size=4 [11:49:18]MH_SAM_APDU [11:49:18]CAPDU: 80 13 00 00 [11:49:18]Write to MH i2c: E2 08 00 DB 19 80 13 00 00 00 00 00 00 70 [11:49:18]Write i2c OK [11:49:18]MH_I2C_Read... [11:49:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:18]Read from MH i2c: E2 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 62 00 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 62 00 DB 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 34 C3 00 00 0E 04 04 00 D3 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 42 [11:49:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 34 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:18]wFMCommunicate OK [11:49:18]SAM_PROTO_GetFieldsCounters done [11:49:18]requested_item shift.num is exist - process it [11:49:18]requested_item shift.opened is exist - process it [11:49:18]req_shift_opened [11:49:18]FM_GetShiftState [11:49:18]SAM_PROTO_GetShiftState [11:49:18]wFMCommunicate request_size=4 [11:49:18]MH_SAM_APDU [11:49:18]CAPDU: 80 13 01 00 [11:49:18]Write to MH i2c: E2 08 00 DC 19 80 13 01 00 00 00 00 00 72 [11:49:18]Write i2c OK [11:49:18]MH_I2C_Read... [11:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:18]Read from MH i2c: E2 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 0E 00 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 0E 00 DC 19 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 2C [11:49:18]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:49:18]wFMCommunicate OK [11:49:18]SAM_PROTO_GetShiftState done [11:49:18]FM_GetShiftState done [11:49:18]req_shift_opened done [11:49:18]requested_item shift.open_date is exist - process it [11:49:18]req_shift_open_date [11:49:18]req_shift_open_date done [11:49:18]produce_requested_data done [11:49:18]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49972,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [11:49:18]process_action_free close_receipt [11:49:18]json_value_free [11:49:18]json_value_free done [11:49:18]process_json_proto returns [11:49:18]Send response to host [11:49:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49972,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [11:49:18]free response buf [11:49:18]execute_script done [11:49:18]execute_script returns [11:49:18]free content buf [11:49:18]Sock 9.Close socket [11:49:18]Sock 9.Thread stoped [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51: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:57]accept exits with 7 [11:55:57]New connection [11:55:57]New thread 3067354468 created [11:55:57]Thread 3067211108 joined [11:55:57]Waiting for new connection... [11:55:57] Sock 7.Parse request [11:55:57]Sock 7.Check first char [11:55:57]Sock 7.First char is OK [11:55:57]request: POST /json_proto HTTP/1.0 [11:55:57]Method: POST [11:55:57]URL: /json_proto [11:55:57]Method is POST - this is cgi request [11:55:57]url: /json_proto [11:55:57]query_string will be loaded in cgi processing [11:55:57]execute_cgi json_proto POST (null) [11:55:57]execute_cgi path=json_proto method=POST [11:55:57]POST find Content-Length [11:55:57]Host: 172.17.46.196:8080 [11:55:57]Content-Length: 756 [11:55:57]Content-Type: application/json [11:55:57] [11:55:57]POST finish read [11:55:57]Found Content-Length = 756 [11:55:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30133104", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:57]execute_script... [11:55:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30133104", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:57]POST & json_proto [11:55:57]process_json_proto [11:55:57]json parsed OK: [11:55:57]protocol is kg_v1.0 [11:55:57]action value=close_receipt [11:55:57]process_action close_receipt [11:55:57]cmd_close_receipt [11:55:57]MH_GetDate [11:55:57]Write to MH i2c: F0 00 00 DD 19 E5 [11:55:57]Write i2c OK [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: F0 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: F0 09 00 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: F0 09 00 DD 19 00 CF 32 C3 66 C4 85 C2 66 89 [11:55:57]GetLastDocTimeStamp 1724068157 [11:55:57]current date 1724068559 [11:55:57]FM_GetShiftState [11:55:57]SAM_PROTO_GetShiftState [11:55:57]wFMCommunicate request_size=4 [11:55:57]MH_SAM_APDU [11:55:57]CAPDU: 80 13 01 00 [11:55:57]Write to MH i2c: E2 08 00 DE 19 80 13 01 00 00 00 00 00 74 [11:55:57]Write i2c OK [11:55:57]MH_I2C_Read... [11:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:57]Read from MH i2c: E2 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: E2 0E 00 [11:55:57]MH_I2C_Read... [11:55:57]Read from MH i2c: E2 0E 00 DE 19 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 2E [11:55:57]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:55:57]wFMCommunicate OK [11:55:57]SAM_PROTO_GetShiftState done [11:55:57]FM_GetShiftState done [11:55:57]opened in 1724026361 [11:55:57]opened+sec_in_day 1724112761 [11:55:57]quantity*price = 0 [11:55:57]sum+1 = 1 [11:55:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 80 19.08.2024 11:55 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30133104 ФМ: 0000000000871800 ФД: 49973 ФПД: 27505828357327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T115559&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49973&fm=27505828357327&tin=02508201610067®Number=0000000000092546&sum=0 [11:55:58]StoreToDocumentArchive [11:55:58]shift 467 fd 49973 [11:55:58]save to /storage/0467/doc_00049973 [11:55:58]save last doc name /storage/0467/doc_00049973 to /storage/kkm_last_doc_name [11:55:58]save OK [11:55:58]Clear old archive folders... [11:55:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:58]tlvbuf is B6F3C440 [11:55:58]SAM_PROTO_ClearQueue [11:55:58]wFMCommunicate request_size=4 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 09 00 00 [11:55:58]Write to MH i2c: E2 08 00 EB 19 80 09 00 00 00 00 00 00 76 [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:58]Read from MH i2c: E2 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 03 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 03 00 EB 19 00 90 00 78 [11:55:58]RAPDU: 90 00 [11:55:58]wFMCommunicate OK [11:55:58]SAM_PROTO_ClearQueue done [11:55:58]KKMCreateOFDPacket [11:55:58]OFDProtocolAddRootSTLVToBuf [11:55:58]FM_MakeSignedData [11:55:58]FM_MakeSignedData [11:55:58]SAM_PROTO_SignData [11:55:58]wFMCommunicate request_size=4 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 0D 01 02 [11:55:58]Write to MH i2c: E2 08 00 EC 19 80 0D 01 02 00 00 00 00 7E [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:58]Read from MH i2c: E2 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 03 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 03 00 EC 19 00 90 00 79 [11:55:58]RAPDU: 90 00 [11:55:58]wFMCommunicate OK [11:55:58]wFMCommunicate request_size=255 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 CF 32 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 35 C3 00 00 35 04 06 00 19 [11:55:58]Write to MH i2c: E2 02 01 ED 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 CF 32 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 35 C3 00 00 35 04 06 00 19 00 00 16 [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:58]Read from MH i2c: E2 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 03 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 03 00 ED 19 00 90 00 7A [11:55:58]RAPDU: 90 00 [11:55:58]wFMCommunicate OK [11:55:58]wFMCommunicate request_size=10 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 0D 02 02 05 04 33 20 E4 CF [11:55:58]Write to MH i2c: E2 0D 00 EE 19 80 0D 02 02 05 00 04 33 20 E4 CF 00 00 95 [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:58]Read from MH i2c: E2 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 03 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 03 00 EE 19 00 90 00 7B [11:55:58]RAPDU: 90 00 [11:55:58]wFMCommunicate OK [11:55:58]wFMCommunicate request_size=4 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 0D 03 02 [11:55:58]Write to MH i2c: E2 08 00 EF 19 80 0D 03 02 00 00 00 00 83 [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:58]Read from MH i2c: E2 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 0B 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 0B 00 EF 19 00 88 E2 E2 7E 09 1B 20 16 90 00 A8 [11:55:58]RAPDU: 88 E2 E2 7E 09 1B 20 16 90 00 [11:55:58]wFMCommunicate OK [11:55:58]SAM_PROTO_SignData done [11:55:58]FM_MakeSignedData done [11:55:58]CreateOFDProtocolMessage [11:55:58]wFMCommunicate request_size=4 [11:55:58]MH_SAM_APDU [11:55:58]CAPDU: 80 11 00 00 [11:55:58]Write to MH i2c: E2 08 00 F0 19 80 11 00 00 00 00 00 00 83 [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:58]Read from MH i2c: E2 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 17 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: E2 17 00 F0 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CE [11:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:55:58]wFMCommunicate OK [11:55:58]CreateOFDProtocolMessage done [11:55:58]OFDSenderStorePacket 49973 [11:55:58]StoreOFDPacket docnum=49973 [11:55:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 E6 4F 07 01 AB 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 CF 32 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 35 C3 00 00 35 04 06 00 19 04 33 20 E4 CF 88 E2 E2 7E 09 1B 20 16 [11:55:58]CheckFolder [11:55:58]dirname=/storage/ofd_packets [11:55:58]CheckFolder done [11:55:58]ProducePacketName [11:55:58]name=ofd_packets/00049973 [11:55:58]NVStorageSaveData ofd_packets/00049973 [11:55:58]File name is /storage/ofd_packets/00049973 [11:55:58]Write 301 bytes [11:55:58]NVStorageSaveData done [11:55:58]OFDSenderStorePacket done [11:55:58]KKMCreateOFDPacket done [11:55:58]NVStorageSaveData kkm_last_timestamp [11:55:58]File name is /storage/kkm_last_timestamp [11:55:58]Write 4 bytes [11:55:58]NVStorageSaveData done [11:55:58]ExternCall_PrintAddStr [11:55:58]wPrintStart [11:55:58]Write to MH i2c: 01 00 00 F1 19 0A [11:55:58]Write i2c OK [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: 01 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: 01 07 00 [11:55:58]MH_I2C_Read... [11:55:58]Read from MH i2c: 01 07 00 F1 19 00 00 00 00 00 FF 0F 1F [11:55:58]RasterBufferAndPrint [11:55:58]line Счет N : (1)11327749 [11:55:58]line ИНН: 02508201610067 [11:55:58]line Контрольно-Кассовый Чек [11:55:58]line ПРОДАЖА [11:55:58]line ТРК (МРК, ГНК) : 22 [11:55:58]line Товар: 2710124130 [11:55:58]line Аи-92-К-4 [11:55:58]line 10.000 * 0.00 [11:55:58]line = 0.00 [11:55:58]line НДС 12% НСП 1% [11:55:58]line > о реализуемом товаре [11:55:58]line ИТОГО: 0.00 [11:55:58]line НСП 1% : 0.00 [11:55:58]line НДС 12% : 0.00 [11:55:58]line Наличными: 0.00 [11:55:58]line Безнал.: 0.00 [11:55:58]line Место: АЗС № 95 "Партнер Нефть" [11:55:58]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:55:58]line СНО: Общий режим [11:55:58]line Чек 80 19.08.2024 11:55 [11:55:58]line Смена: 467 ФФД: 1.0 [11:55:58]line ЗНМ: 0300000078 [11:55:58]line РНМ: 0000000000092546 [11:55:58]line Версия ККМ: 001 [11:55:58]line Талоны: ТК ГПНА Online [11:55:58]line 30133104 [11:55:58]line ФМ: 0000000000871800 [11:55:58]line ФД: 49973 [11:55:58]line ФПД: 27505828357327 [11:55:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T115559&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49973&fm=27505828357327&tin=02508201610067®Number=0000000000092546&sum=0 [11:55:59]written 0, free lines is 4095 [11:55:59]OFD Sender: Processing packet 49973 [packets to send 21, broken 20] [11:55:59]ProducePacketName [11:55:59]name=ofd_packets/00049973 [11:55:59]OFD Sender: To server: pG, [11:55:59]CommunicateWithHost lk.salyk.kg:30040 [11:55:59]ConnectInit lk.salyk.kg [11:55:59]Connected sock=10 [11:55:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 E6 4F 07 01 AB 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 CF 32 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 35 C3 00 00 35 04 06 00 19 04 33 20 E4 CF 88 E2 E2 7E 09 1B 20 16 [11:55:59]Write to MH i2c: 01 00 00 1B 1A 35 [11:55:59]Write i2c OK [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: 01 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: 01 07 00 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: 01 07 00 1B 1A 00 00 00 00 00 C7 0C 0F [11:55:59]RasterBufferAndPrint [11:55:59]line [11:55:59]line [11:55:59]line [11:55:59]line [11:55:59]line [11:55:59]written 0, free lines is 3279 [11:55:59]MH_Cut [11:55:59]Write to MH i2c: D1 01 00 22 1A 01 0E [11:55:59]Write i2c OK [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: D1 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: D1 01 00 [11:55:59]MH_I2C_Read... [11:55:59]Read from MH i2c: D1 01 00 22 1A 00 0D [11:55:59]Write to MH i2c: 01 00 00 23 1A 3D [11:55:59]Write i2c OK [11:55:59]MH_I2C_Read... [11:55:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 84 FF 47 00 63 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 35 C3 00 00 F4 03 04 00 3D DD C2 66 B6 04 01 00 00 6D 1B B7 1F D1 A2 D6 52 [11:55:59]CommunicateWithHost err = 0 [11:55:59]CheckOFDResponse [11:55:59]1017 (14) - 77093643461234 [11:55:59]1041 (16) - 0000000000871800 [11:55:59]1040 (4) - 49973 [11:55:59]1012 (4) - 19.08.2024 05:50 [11:55:59]1206 (1) - 0 [11:55:59]OFD Sender: Remove packet 49973 [11:55:59]ProducePacketName [11:55:59]name=ofd_packets/00049973 [11:55:59]NVStorageDeleteData [11:56:00]OFD Sender: No OFD packet to send [11:56:00]*** Cut start [11:56:00]*** Purtial cut [11:56:00]*** CUTSNS_PIN = 0 [11:56:00]*** Stage 1: CUTSNS_PIN = 1 [11:56:02]Read from MH i2c: 01 [11:56:02]MH_I2C_Read... [11:56:02]*** Stop cut motor [11:56:02]*** Cut end [11:56:02]Read from MH i2c: 01 07 00 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: 01 07 00 23 1A 00 00 00 00 00 FF 0F 52 [11:56:02]process_action close_receipt done [11:56:02]requested_data is exist [11:56:02]produce_requested_data [11:56:02]requested_item fm.sn is exist - process it [11:56:02]wFMCommunicate request_size=4 [11:56:02]MH_SAM_APDU [11:56:02]CAPDU: 80 11 00 00 [11:56:02]Write to MH i2c: E2 08 00 24 1A 80 11 00 00 00 00 00 00 B8 [11:56:02]Write i2c OK [11:56:02]MH_I2C_Read... [11:56:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:02]Read from MH i2c: E2 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 17 00 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 17 00 24 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 03 [11:56:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:56:02]wFMCommunicate OK [11:56:02]requested_item fd.num is exist - process it [11:56:02]SAM_PROTO_GetFieldsCounters [11:56:02]wFMCommunicate request_size=4 [11:56:02]MH_SAM_APDU [11:56:02]CAPDU: 80 13 00 00 [11:56:02]Write to MH i2c: E2 08 00 25 1A 80 13 00 00 00 00 00 00 BB [11:56:02]Write i2c OK [11:56:02]MH_I2C_Read... [11:56:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:02]Read from MH i2c: E2 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 62 00 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 62 00 25 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 35 C3 00 00 0E 04 04 00 D3 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 91 [11:56:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 35 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:02]wFMCommunicate OK [11:56:02]SAM_PROTO_GetFieldsCounters done [11:56:02]requested_item shift.num is exist - process it [11:56:02]requested_item shift.opened is exist - process it [11:56:02]req_shift_opened [11:56:02]FM_GetShiftState [11:56:02]SAM_PROTO_GetShiftState [11:56:02]wFMCommunicate request_size=4 [11:56:02]MH_SAM_APDU [11:56:02]CAPDU: 80 13 01 00 [11:56:02]Write to MH i2c: E2 08 00 26 1A 80 13 01 00 00 00 00 00 BD [11:56:02]Write i2c OK [11:56:02]MH_I2C_Read... [11:56:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:02]Read from MH i2c: E2 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 0E 00 [11:56:02]MH_I2C_Read... [11:56:02]Read from MH i2c: E2 0E 00 26 1A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 77 [11:56:02]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [11:56:02]wFMCommunicate OK [11:56:02]SAM_PROTO_GetShiftState done [11:56:02]FM_GetShiftState done [11:56:02]req_shift_opened done [11:56:02]requested_item shift.open_date is exist - process it [11:56:02]req_shift_open_date [11:56:02]req_shift_open_date done [11:56:02]produce_requested_data done [11:56:02]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49973,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [11:56:02]process_action_free close_receipt [11:56:02]json_value_free [11:56:02]json_value_free done [11:56:02]process_json_proto returns [11:56:02]Send response to host [11:56:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49973,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [11:56:02]free response buf [11:56:02]execute_script done [11:56:02]execute_script returns [11:56:02]free content buf [11:56:02]Sock 7.Close socket [11:56:02]Sock 7.Thread stoped [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:12]accept exits with 9 [12:10:12]New connection [12:10:12]New thread 3067211108 created [12:10:12]Thread 3067354468 joined [12:10:12]Waiting for new connection... [12:10:12] Sock 9.Parse request [12:10:12]Sock 9.Check first char [12:10:12]Sock 9.First char is OK [12:10:12]request: POST /json_proto HTTP/1.0 [12:10:12]Method: POST [12:10:12]URL: /json_proto [12:10:12]Method is POST - this is cgi request [12:10:12]url: /json_proto [12:10:12]query_string will be loaded in cgi processing [12:10:12]execute_cgi json_proto POST (null) [12:10:12]execute_cgi path=json_proto method=POST [12:10:12]POST find Content-Length [12:10:12]Host: 172.17.46.196:8080 [12:10:12]Content-Length: 646 [12:10:12]Content-Type: application/json [12:10:12] [12:10:12]POST finish read [12:10:12]Found Content-Length = 646 [12:10:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190119", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:12]execute_script... [12:10:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190119", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:12]POST & json_proto [12:10:12]process_json_proto [12:10:12]json parsed OK: [12:10:12]protocol is kg_v1.0 [12:10:12]action value=close_receipt [12:10:12]process_action close_receipt [12:10:12]cmd_close_receipt [12:10:12]MH_GetDate [12:10:12]Write to MH i2c: F0 00 00 27 1A 30 [12:10:12]Write i2c OK [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: F0 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: F0 09 00 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: F0 09 00 27 1A 00 27 36 C3 66 C4 85 C2 66 30 [12:10:12]GetLastDocTimeStamp 1724068559 [12:10:12]current date 1724069415 [12:10:12]FM_GetShiftState [12:10:12]SAM_PROTO_GetShiftState [12:10:12]wFMCommunicate request_size=4 [12:10:12]MH_SAM_APDU [12:10:12]CAPDU: 80 13 01 00 [12:10:12]Write to MH i2c: E2 08 00 28 1A 80 13 01 00 00 00 00 00 BF [12:10:12]Write i2c OK [12:10:12]MH_I2C_Read... [12:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:12]Read from MH i2c: E2 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: E2 0E 00 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: E2 0E 00 28 1A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 79 [12:10:12]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:10:12]wFMCommunicate OK [12:10:12]SAM_PROTO_GetShiftState done [12:10:12]FM_GetShiftState done [12:10:12]opened in 1724026361 [12:10:12]opened+sec_in_day 1724112761 [12:10:12]quantity*price = 13000 [12:10:12]sum+1 = 13001 [12:10:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 81 19.08.2024 12:10 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49974 ФПД: 215052863787259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T121015&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49974&fm=215052863787259&tin=02508201610067®Number=0000000000092546&sum=13000 0 [12:10:13]StoreToDocumentArchive [12:10:13]shift 467 fd 49974 [12:10:13]save to /storage/0467/doc_00049974 [12:10:13]save last doc name /storage/0467/doc_00049974 to /storage/kkm_last_doc_name [12:10:13]save OK [12:10:13]Clear old archive folders... [12:10:13]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:10:13]tlvbuf is 01068300 [12:10:13]SAM_PROTO_ClearQueue [12:10:13]wFMCommunicate request_size=4 [12:10:13]MH_SAM_APDU [12:10:13]CAPDU: 80 09 00 00 [12:10:13]Write to MH i2c: E2 08 00 35 1A 80 09 00 00 00 00 00 00 C1 [12:10:13]Write i2c OK [12:10:13]MH_I2C_Read... [12:10:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:13]Read from MH i2c: E2 [12:10:13]MH_I2C_Read... [12:10:13]Read from MH i2c: E2 03 00 [12:10:13]MH_I2C_Read... [12:10:13]Read from MH i2c: E2 03 00 35 1A 00 90 00 C3 [12:10:13]RAPDU: 90 00 [12:10:13]wFMCommunicate OK [12:10:13]SAM_PROTO_ClearQueue done [12:10:13]KKMCreateOFDPacket [12:10:13]OFDProtocolAddRootSTLVToBuf [12:10:13]FM_MakeSignedData [12:10:13]FM_MakeSignedData [12:10:13]SAM_PROTO_SignData [12:10:13]wFMCommunicate request_size=4 [12:10:13]MH_SAM_APDU [12:10:13]CAPDU: 80 0D 01 02 [12:10:13]Write to MH i2c: E2 08 00 36 1A 80 0D 01 02 00 00 00 00 C9 [12:10:13]Write i2c OK [12:10:13]MH_I2C_Read... [12:10:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:14]Read from MH i2c: E2 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 03 00 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 03 00 36 1A 00 90 00 C4 [12:10:14]RAPDU: 90 00 [12:10:14]wFMCommunicate OK [12:10:14]wFMCommunicate request_size=255 [12:10:14]MH_SAM_APDU [12:10:14]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 51 00 00 00 F4 03 04 00 27 36 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [12:10:14]Write to MH i2c: E2 02 01 37 1A 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 51 00 00 00 F4 03 04 00 27 36 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 84 [12:10:14]Write i2c OK [12:10:14]MH_I2C_Read... [12:10:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:14]Read from MH i2c: E2 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 03 00 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 03 00 37 1A 00 90 00 C5 [12:10:14]RAPDU: 90 00 [12:10:14]wFMCommunicate OK [12:10:14]wFMCommunicate request_size=41 [12:10:14]MH_SAM_APDU [12:10:14]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 36 C3 00 00 35 04 06 00 C3 96 E5 8D D0 FB [12:10:14]Write to MH i2c: E2 2C 00 38 1A 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 36 C3 00 00 35 04 06 00 C3 96 E5 8D D0 FB 00 00 22 [12:10:14]Write i2c OK [12:10:14]MH_I2C_Read... [12:10:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:14]Read from MH i2c: E2 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 03 00 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 03 00 38 1A 00 90 00 C6 [12:10:14]RAPDU: 90 00 [12:10:14]wFMCommunicate OK [12:10:14]wFMCommunicate request_size=4 [12:10:14]MH_SAM_APDU [12:10:14]CAPDU: 80 0D 03 02 [12:10:14]Write to MH i2c: E2 08 00 39 1A 80 0D 03 02 00 00 00 00 CE [12:10:14]Write i2c OK [12:10:14]MH_I2C_Read... [12:10:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:14]Read from MH i2c: E2 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 0B 00 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 0B 00 39 1A 00 4C 10 2E A4 95 F0 7A 8C 90 00 88 [12:10:14]RAPDU: 4C 10 2E A4 95 F0 7A 8C 90 00 [12:10:14]wFMCommunicate OK [12:10:14]SAM_PROTO_SignData done [12:10:14]FM_MakeSignedData done [12:10:14]CreateOFDProtocolMessage [12:10:14]wFMCommunicate request_size=4 [12:10:14]MH_SAM_APDU [12:10:14]CAPDU: 80 11 00 00 [12:10:14]Write to MH i2c: E2 08 00 3A 1A 80 11 00 00 00 00 00 00 CE [12:10:14]Write i2c OK [12:10:14]MH_I2C_Read... [12:10:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:14]Read from MH i2c: E2 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 17 00 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 17 00 3A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 19 [12:10:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:10:14]wFMCommunicate OK [12:10:14]CreateOFDProtocolMessage done [12:10:14]OFDSenderStorePacket 49974 [12:10:14]StoreOFDPacket docnum=49974 [12:10:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 20 68 26 01 1A 03 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 51 00 00 00 F4 03 04 00 27 36 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 36 C3 00 00 35 04 06 00 C3 96 E5 8D D0 FB 4C 10 2E A4 95 F0 7A 8C [12:10:14]CheckFolder [12:10:14]dirname=/storage/ofd_packets [12:10:14]CheckFolder done [12:10:14]ProducePacketName [12:10:14]name=ofd_packets/00049974 [12:10:14]NVStorageSaveData ofd_packets/00049974 [12:10:14]File name is /storage/ofd_packets/00049974 [12:10:14]Write 332 bytes [12:10:14]NVStorageSaveData done [12:10:14]OFDSenderStorePacket done [12:10:14]KKMCreateOFDPacket done [12:10:14]NVStorageSaveData kkm_last_timestamp [12:10:14]File name is /storage/kkm_last_timestamp [12:10:14]Write 4 bytes [12:10:14]NVStorageSaveData done [12:10:14]ExternCall_PrintAddStr [12:10:14]wPrintStart [12:10:14]Write to MH i2c: 01 00 00 3B 1A 55 [12:10:14]Write i2c OK [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: 01 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: 01 07 00 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: 01 07 00 3B 1A 00 00 00 00 00 FF 0F 6A [12:10:14]RasterBufferAndPrint [12:10:14]line Счет N : (3)190119 [12:10:14]line ИНН: 02508201610067 [12:10:14]line Контрольно-Кассовый Чек [12:10:14]line ПРОДАЖА [12:10:14]line Товар: 2000036220012 [12:10:14]line Кофе Капучино XL(GABB TRADE) [12:10:14]line 1.000 * 130.00 [12:10:14]line = 130.00 [12:10:14]line НДС 12% НСП 1% [12:10:14]line > о реализуемом товаре [12:10:14]line ИТОГО: 130.00 [12:10:14]line НСП 1% : 1.15 [12:10:14]line НДС 12% : 13.80 [12:10:14]line Наличными: 130.00 [12:10:14]line Безнал.: 0.00 [12:10:14]line Место: АЗС № 95 "Партнер Нефть" [12:10:14]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:10:14]line СНО: Общий режим [12:10:14]line Чек 81 19.08.2024 12:10 [12:10:14]line Смена: 467 ФФД: 1.0 [12:10:14]line ЗНМ: 0300000078 [12:10:14]line РНМ: 0000000000092546 [12:10:14]line Версия ККМ: 001 [12:10:14]line ФМ: 0000000000871800 [12:10:14]line ФД: 49974 [12:10:14]line ФПД: 215052863787259 [12:10:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T121015&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49974&fm=215052863787259&tin=02508201610067®Number=0000000000092546&sum=13000 [12:10:14]line 0 [12:10:14]OFD Sender: Processing packet 49974 [packets to send 21, broken 20] [12:10:14]ProducePacketName [12:10:14]name=ofd_packets/00049974 [12:10:14]OFD Sender: To server: pG, [12:10:14]CommunicateWithHost lk.salyk.kg:30040 [12:10:14]ConnectInit lk.salyk.kg [12:10:14]written 0, free lines is 4095 [12:10:15]Write to MH i2c: 01 00 00 64 1A 7E [12:10:15]Write i2c OK [12:10:15]MH_I2C_Read... [12:10:15]Read from MH i2c: 01 [12:10:15]MH_I2C_Read... [12:10:15]Read from MH i2c: 01 07 00 [12:10:15]MH_I2C_Read... [12:10:15]Read from MH i2c: 01 07 00 64 1A 00 00 00 00 00 D1 0C 62 [12:10:15]RasterBufferAndPrint [12:10:15]line [12:10:15]line [12:10:15]line [12:10:15]line [12:10:15]line [12:10:15]written 0, free lines is 3288 [12:10:15]MH_Cut [12:10:15]Write to MH i2c: D1 01 00 6B 1A 01 57 [12:10:15]Write i2c OK [12:10:15]MH_I2C_Read... [12:10:15]Read from MH i2c: D1 [12:10:15]MH_I2C_Read... [12:10:15]Read from MH i2c: D1 01 00 [12:10:15]MH_I2C_Read... [12:10:15]Read from MH i2c: D1 01 00 6B 1A 00 56 [12:10:15]Write to MH i2c: 01 00 00 6C 1A 86 [12:10:15]Write i2c OK [12:10:15]MH_I2C_Read... [12:10:15]*** Cut start [12:10:15]*** Purtial cut [12:10:16]*** Stage 1: CUTSNS_PIN = 1 [12:10:16]Read from MH i2c: 01 [12:10:16]MH_I2C_Read... [12:10:16]*** Stop cut motor [12:10:16]*** Cut end [12:10:16]Read from MH i2c: 01 07 00 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: 01 07 00 6C 1A 00 00 00 00 00 FF 0F 9B [12:10:16]process_action close_receipt done [12:10:16]requested_data is exist [12:10:16]produce_requested_data [12:10:16]requested_item fm.sn is exist - process it [12:10:16]wFMCommunicate request_size=4 [12:10:16]MH_SAM_APDU [12:10:16]CAPDU: 80 11 00 00 [12:10:16]Write to MH i2c: E2 08 00 6D 1A 80 11 00 00 00 00 00 00 01 [12:10:16]Write i2c OK [12:10:16]MH_I2C_Read... [12:10:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:16]Read from MH i2c: E2 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 17 00 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 17 00 6D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4C [12:10:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:10:16]wFMCommunicate OK [12:10:16]requested_item fd.num is exist - process it [12:10:16]SAM_PROTO_GetFieldsCounters [12:10:16]wFMCommunicate request_size=4 [12:10:16]MH_SAM_APDU [12:10:16]CAPDU: 80 13 00 00 [12:10:16]Write to MH i2c: E2 08 00 6E 1A 80 13 00 00 00 00 00 00 04 [12:10:16]Write i2c OK [12:10:16]MH_I2C_Read... [12:10:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:16]Read from MH i2c: E2 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 62 00 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 62 00 6E 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 36 C3 00 00 0E 04 04 00 D3 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 DE [12:10:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 36 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:16]wFMCommunicate OK [12:10:16]SAM_PROTO_GetFieldsCounters done [12:10:16]requested_item shift.num is exist - process it [12:10:16]requested_item shift.opened is exist - process it [12:10:16]req_shift_opened [12:10:16]FM_GetShiftState [12:10:16]SAM_PROTO_GetShiftState [12:10:16]wFMCommunicate request_size=4 [12:10:16]MH_SAM_APDU [12:10:16]CAPDU: 80 13 01 00 [12:10:16]Write to MH i2c: E2 08 00 6F 1A 80 13 01 00 00 00 00 00 06 [12:10:16]Write i2c OK [12:10:16]MH_I2C_Read... [12:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:16]Read from MH i2c: E2 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 0E 00 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 0E 00 6F 1A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 C0 [12:10:16]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:10:16]wFMCommunicate OK [12:10:16]SAM_PROTO_GetShiftState done [12:10:16]FM_GetShiftState done [12:10:16]req_shift_opened done [12:10:16]requested_item shift.open_date is exist - process it [12:10:16]req_shift_open_date [12:10:16]req_shift_open_date done [12:10:16]produce_requested_data done [12:10:16]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49974,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [12:10:16]process_action_free close_receipt [12:10:16]json_value_free [12:10:16]json_value_free done [12:10:16]process_json_proto returns [12:10:16]Send response to host [12:10:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49974,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [12:10:16]free response buf [12:10:16]execute_script done [12:10:16]execute_script returns [12:10:16]free content buf [12:10:16]Sock 9.Close socket [12:10:16]Sock 9.Thread stoped [12:11:22]accept exits with 7 [12:11:22]New connection [12:11:22]New thread 3067354468 created [12:11:22]Thread 3067211108 joined [12:11:22]Waiting for new connection... [12:11:22] Sock 7.Parse request [12:11:22]Sock 7.Check first char [12:11:22]Sock 7.First char is OK [12:11:22]request: POST /json_proto HTTP/1.0 [12:11:22]Method: POST [12:11:22]URL: /json_proto [12:11:22]Method is POST - this is cgi request [12:11:22]url: /json_proto [12:11:22]query_string will be loaded in cgi processing [12:11:22]execute_cgi json_proto POST (null) [12:11:22]execute_cgi path=json_proto method=POST [12:11:22]POST find Content-Length [12:11:22]Host: 172.17.46.196:8080 [12:11:22]Content-Length: 616 [12:11:22]Content-Type: application/json [12:11:22] [12:11:22]POST finish read [12:11:22]Found Content-Length = 616 [12:11:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190120", "tax_sys" : 0, "items" : [ { "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "price" : 155.00, "quantity" : 2.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" ] } } [12:11:22]execute_script... [12:11:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190120", "tax_sys" : 0, "items" : [ { "code": "4640030091584", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Gold", "price" : 155.00, "quantity" : 2.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" ] } } [12:11:22]POST & json_proto [12:11:22]process_json_proto [12:11:22]json parsed OK: [12:11:22]protocol is kg_v1.0 [12:11:22]action value=close_receipt [12:11:22]process_action close_receipt [12:11:22]cmd_close_receipt [12:11:22]MH_GetDate [12:11:22]Write to MH i2c: F0 00 00 70 1A 79 [12:11:22]Write i2c OK [12:11:22]MH_I2C_Read... [12:11:22]Read from MH i2c: F0 [12:11:22]MH_I2C_Read... [12:11:22]Read from MH i2c: F0 09 00 [12:11:22]MH_I2C_Read... [12:11:22]Read from MH i2c: F0 09 00 70 1A 00 6D 36 C3 66 C4 85 C2 66 BF [12:11:22]GetLastDocTimeStamp 1724069415 [12:11:22]current date 1724069485 [12:11:22]FM_GetShiftState [12:11:22]SAM_PROTO_GetShiftState [12:11:22]wFMCommunicate request_size=4 [12:11:22]MH_SAM_APDU [12:11:22]CAPDU: 80 13 01 00 [12:11:22]Write to MH i2c: E2 08 00 71 1A 80 13 01 00 00 00 00 00 08 [12:11:22]Write i2c OK [12:11:22]MH_I2C_Read... [12:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:22]Read from MH i2c: E2 [12:11:22]MH_I2C_Read... [12:11:22]Read from MH i2c: E2 0E 00 [12:11:22]MH_I2C_Read... [12:11:22]Read from MH i2c: E2 0E 00 71 1A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 C2 [12:11:22]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:11:22]wFMCommunicate OK [12:11:22]SAM_PROTO_GetShiftState done [12:11:22]FM_GetShiftState done [12:11:22]opened in 1724026361 [12:11:22]opened+sec_in_day 1724112761 [12:11:22]quantity*price = 31000 [12:11:22]sum+1 = 31001 [12:11:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 310.00 НСП 1% : 2.74 НДС 12% : 32.92 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 82 19.08.2024 12:11 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49975 ФПД: 3030990532242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T121125&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49975&fm=3030990532242&tin=02508201610067®Number=0000000000092546&sum=31000 0 [12:11:23]StoreToDocumentArchive [12:11:23]shift 467 fd 49975 [12:11:23]save to /storage/0467/doc_00049975 [12:11:23]save last doc name /storage/0467/doc_00049975 to /storage/kkm_last_doc_name [12:11:23]save OK [12:11:23]Clear old archive folders... [12:11:23]ProcessDocumentItem done err = 0, tmpTLVsize=268 [12:11:23]tlvbuf is 00F676C0 [12:11:23]SAM_PROTO_ClearQueue [12:11:23]wFMCommunicate request_size=4 [12:11:23]MH_SAM_APDU [12:11:23]CAPDU: 80 09 00 00 [12:11:23]Write to MH i2c: E2 08 00 7E 1A 80 09 00 00 00 00 00 00 0A [12:11:23]Write i2c OK [12:11:23]MH_I2C_Read... [12:11:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:24]Read from MH i2c: E2 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: E2 03 00 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: E2 03 00 7E 1A 00 90 00 0C [12:11:24]RAPDU: 90 00 [12:11:24]wFMCommunicate OK [12:11:24]SAM_PROTO_ClearQueue done [12:11:24]KKMCreateOFDPacket [12:11:24]OFDProtocolAddRootSTLVToBuf [12:11:24]FM_MakeSignedData [12:11:24]FM_MakeSignedData [12:11:24]SAM_PROTO_SignData [12:11:24]wFMCommunicate request_size=4 [12:11:24]MH_SAM_APDU [12:11:24]CAPDU: 80 0D 01 02 [12:11:24]Write to MH i2c: E2 08 00 7F 1A 80 0D 01 02 00 00 00 00 12 [12:11:24]Write i2c OK [12:11:24]MH_I2C_Read... [12:11:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:24]Read from MH i2c: E2 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: E2 03 00 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: E2 03 00 7F 1A 00 90 00 0D [12:11:24]RAPDU: 90 00 [12:11:24]wFMCommunicate OK [12:11:24]wFMCommunicate request_size=255 [12:11:24]MH_SAM_APDU [12:11:24]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 D0 07 00 00 00 00 00 37 04 06 00 8C 3C 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 52 00 00 00 F4 03 04 00 6D 36 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [12:11:24]Write to MH i2c: E2 02 01 80 1A 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 D0 07 00 00 00 00 00 37 04 06 00 8C 3C 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 52 00 00 00 F4 03 04 00 6D 36 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 6D [12:11:24]Write i2c OK [12:11:24]MH_I2C_Read... [12:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:24]Read from MH i2c: E2 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: E2 03 00 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: E2 03 00 80 1A 00 90 00 0E [12:11:24]RAPDU: 90 00 [12:11:24]wFMCommunicate OK [12:11:24]wFMCommunicate request_size=27 [12:11:24]MH_SAM_APDU [12:11:24]CAPDU: 80 0D 02 02 16 31 38 30 30 10 04 04 00 37 C3 00 00 35 04 06 00 02 C1 B5 1D 2E 92 [12:11:24]Write to MH i2c: E2 1E 00 81 1A 80 0D 02 02 16 00 31 38 30 30 10 04 04 00 37 C3 00 00 35 04 06 00 02 C1 B5 1D 2E 92 00 00 B0 [12:11:24]Write i2c OK [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: E2 [12:11:24]MH_I2C_Read... [12:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:24]Read from MH i2c: E2 03 00 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: E2 03 00 81 1A 00 90 00 0F [12:11:24]RAPDU: 90 00 [12:11:24]wFMCommunicate OK [12:11:24]wFMCommunicate request_size=4 [12:11:24]MH_SAM_APDU [12:11:24]CAPDU: 80 0D 03 02 [12:11:24]Write to MH i2c: E2 08 00 82 1A 80 0D 03 02 00 00 00 00 17 [12:11:24]Write i2c OK [12:11:24]MH_I2C_Read... [12:11:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:24]Read from MH i2c: E2 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: E2 0B 00 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: E2 0B 00 82 1A 00 5C E2 A4 BD C3 14 29 3A 90 00 F1 [12:11:24]RAPDU: 5C E2 A4 BD C3 14 29 3A 90 00 [12:11:24]wFMCommunicate OK [12:11:24]SAM_PROTO_SignData done [12:11:24]FM_MakeSignedData done [12:11:24]CreateOFDProtocolMessage [12:11:24]wFMCommunicate request_size=4 [12:11:24]MH_SAM_APDU [12:11:24]CAPDU: 80 11 00 00 [12:11:24]Write to MH i2c: E2 08 00 83 1A 80 11 00 00 00 00 00 00 17 [12:11:24]Write i2c OK [12:11:24]MH_I2C_Read... [12:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:24]Read from MH i2c: E2 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: E2 17 00 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: E2 17 00 83 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 62 [12:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:11:24]wFMCommunicate OK [12:11:24]CreateOFDProtocolMessage done [12:11:24]OFDSenderStorePacket 49975 [12:11:24]StoreOFDPacket docnum=49975 [12:11:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 20 01 00 00 98 9C 18 01 64 12 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 D0 07 00 00 00 00 00 37 04 06 00 8C 3C 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 52 00 00 00 F4 03 04 00 6D 36 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 37 C3 00 00 35 04 06 00 02 C1 B5 1D 2E 92 5C E2 A4 BD C3 14 29 3A [12:11:24]CheckFolder [12:11:24]dirname=/storage/ofd_packets [12:11:24]CheckFolder done [12:11:24]ProducePacketName [12:11:24]name=ofd_packets/00049975 [12:11:24]NVStorageSaveData ofd_packets/00049975 [12:11:24]File name is /storage/ofd_packets/00049975 [12:11:24]Write 318 bytes [12:11:24]NVStorageSaveData done [12:11:24]OFDSenderStorePacket done [12:11:24]KKMCreateOFDPacket done [12:11:24]NVStorageSaveData kkm_last_timestamp [12:11:24]File name is /storage/kkm_last_timestamp [12:11:24]Write 4 bytes [12:11:24]NVStorageSaveData done [12:11:24]ExternCall_PrintAddStr [12:11:24]wPrintStart [12:11:24]Write to MH i2c: 01 00 00 84 1A 9E [12:11:24]Write i2c OK [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: 01 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: 01 07 00 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: 01 07 00 84 1A 00 00 00 00 00 FF 0F B3 [12:11:24]RasterBufferAndPrint [12:11:24]line Счет N : (3)190120 [12:11:24]line ИНН: 02508201610067 [12:11:24]line Контрольно-Кассовый Чек [12:11:24]line ПРОДАЖА [12:11:24]line Товар: 4640030091584 [12:11:24]line Сигареты Esse Gold [12:11:24]line 2.000 * 155.00 [12:11:24]line = 310.00 [12:11:24]line НДС 12% НСП 1% [12:11:24]line > о реализуемом товаре [12:11:24]line ИТОГО: 310.00 [12:11:24]line НСП 1% : 2.74 [12:11:24]line НДС 12% : 32.92 [12:11:24]line Наличными: 310.00 [12:11:24]line Безнал.: 0.00 [12:11:24]line Место: АЗС № 95 "Партнер Нефть" [12:11:24]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:11:24]line СНО: Общий режим [12:11:24]line Чек 82 19.08.2024 12:11 [12:11:24]line Смена: 467 ФФД: 1.0 [12:11:24]line ЗНМ: 0300000078 [12:11:24]line РНМ: 0000000000092546 [12:11:24]line Версия ККМ: 001 [12:11:24]line ФМ: 0000000000871800 [12:11:24]line ФД: 49975 [12:11:24]line ФПД: 3030990532242 [12:11:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T121125&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49975&fm=3030990532242&tin=02508201610067®Number=0000000000092546&sum=31000 [12:11:24]line 0 [12:11:24]written 0, free lines is 4095 [12:11:24]Write to MH i2c: 01 00 00 AC 1A C6 [12:11:24]Write i2c OK [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: 01 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: 01 07 00 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: 01 07 00 AC 1A 00 00 00 00 00 E4 0C BD [12:11:24]RasterBufferAndPrint [12:11:24]line [12:11:24]line [12:11:24]line [12:11:24]line [12:11:24]line [12:11:24]written 0, free lines is 3306 [12:11:24]MH_Cut [12:11:24]Write to MH i2c: D1 01 00 B3 1A 01 9F [12:11:24]Write i2c OK [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: D1 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: D1 01 00 [12:11:24]MH_I2C_Read... [12:11:24]Read from MH i2c: D1 01 00 B3 1A 00 9E [12:11:24]Write to MH i2c: 01 00 00 B4 1A CE [12:11:24]Write i2c OK [12:11:24]MH_I2C_Read... [12:11:25]*** Cut start [12:11:25]*** Purtial cut [12:11:25]*** CUTSNS_PIN = 0 [12:11:25]*** Stage 1: CUTSNS_PIN = 1 [12:11:27]Read from MH i2c: 01 [12:11:27]MH_I2C_Read... [12:11:27]*** Stop cut motor [12:11:27]*** Cut end [12:11:27]Read from MH i2c: 01 07 00 [12:11:27]MH_I2C_Read... [12:11:27]Read from MH i2c: 01 07 00 B4 1A 00 00 00 00 00 FF 0F E3 [12:11:27]process_action close_receipt done [12:11:27]requested_data is exist [12:11:27]produce_requested_data [12:11:27]requested_item fm.sn is exist - process it [12:11:27]wFMCommunicate request_size=4 [12:11:27]MH_SAM_APDU [12:11:27]CAPDU: 80 11 00 00 [12:11:27]Write to MH i2c: E2 08 00 B5 1A 80 11 00 00 00 00 00 00 49 [12:11:27]Write i2c OK [12:11:27]MH_I2C_Read... [12:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:27]Read from MH i2c: E2 [12:11:27]MH_I2C_Read... [12:11:27]Read from MH i2c: E2 17 00 [12:11:27]MH_I2C_Read... [12:11:27]Read from MH i2c: E2 17 00 B5 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 94 [12:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:11:27]wFMCommunicate OK [12:11:27]requested_item fd.num is exist - process it [12:11:27]SAM_PROTO_GetFieldsCounters [12:11:27]wFMCommunicate request_size=4 [12:11:27]MH_SAM_APDU [12:11:27]CAPDU: 80 13 00 00 [12:11:27]Write to MH i2c: E2 08 00 B6 1A 80 13 00 00 00 00 00 00 4C [12:11:27]Write i2c OK [12:11:27]MH_I2C_Read... [12:11:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:27]Read from MH i2c: E2 [12:11:27]MH_I2C_Read... [12:11:27]Read from MH i2c: E2 62 00 [12:11:27]MH_I2C_Read... [12:11:27]Read from MH i2c: E2 62 00 B6 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 37 C3 00 00 0E 04 04 00 D3 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 2A [12:11:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 37 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:27]wFMCommunicate OK [12:11:27]SAM_PROTO_GetFieldsCounters done [12:11:27]requested_item shift.num is exist - process it [12:11:27]requested_item shift.opened is exist - process it [12:11:27]req_shift_opened [12:11:27]FM_GetShiftState [12:11:27]SAM_PROTO_GetShiftState [12:11:27]wFMCommunicate request_size=4 [12:11:27]MH_SAM_APDU [12:11:27]CAPDU: 80 13 01 00 [12:11:27]Write to MH i2c: E2 08 00 B7 1A 80 13 01 00 00 00 00 00 4E [12:11:27]Write i2c OK [12:11:27]MH_I2C_Read... [12:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:27]Read from MH i2c: E2 [12:11:27]MH_I2C_Read... [12:11:27]Read from MH i2c: E2 0E 00 [12:11:27]MH_I2C_Read... [12:11:28]Read from MH i2c: E2 0E 00 B7 1A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 08 [12:11:28]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:11:28]wFMCommunicate OK [12:11:28]SAM_PROTO_GetShiftState done [12:11:28]FM_GetShiftState done [12:11:28]req_shift_opened done [12:11:28]requested_item shift.open_date is exist - process it [12:11:28]req_shift_open_date [12:11:28]req_shift_open_date done [12:11:28]produce_requested_data done [12:11:28]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49975,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [12:11:28]process_action_free close_receipt [12:11:28]json_value_free [12:11:28]json_value_free done [12:11:28]process_json_proto returns [12:11:28]Send response to host [12:11:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49975,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [12:11:28]free response buf [12:11:28]execute_script done [12:11:28]execute_script returns [12:11:28]free content buf [12:11:28]Sock 7.Close socket [12:11:28]Sock 7.Thread stoped [12:12:14]accept exits with 9 [12:12:14]New connection [12:12:14]New thread 3067211108 created [12:12:14]Thread 3067354468 joined [12:12:14]Waiting for new connection... [12:12:14] Sock 9.Parse request [12:12:14]Sock 9.Check first char [12:12:14]Sock 9.First char is OK [12:12:14]request: POST /json_proto HTTP/1.0 [12:12:14]Method: POST [12:12:14]URL: /json_proto [12:12:14]Method is POST - this is cgi request [12:12:14]url: /json_proto [12:12:14]query_string will be loaded in cgi processing [12:12:14]execute_cgi json_proto POST (null) [12:12:14]execute_cgi path=json_proto method=POST [12:12:14]POST find Content-Length [12:12:14]Host: 172.17.46.196:8080 [12:12:14]Content-Length: 756 [12:12:14]Content-Type: application/json [12:12:14] [12:12:14]POST finish read [12:12:14]Found Content-Length = 756 [12:12:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30034047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:14]execute_script... [12:12:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30034047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:14]POST & json_proto [12:12:14]process_json_proto [12:12:14]json parsed OK: [12:12:14]protocol is kg_v1.0 [12:12:14]action value=close_receipt [12:12:14]process_action close_receipt [12:12:14]cmd_close_receipt [12:12:14]MH_GetDate [12:12:14]Write to MH i2c: F0 00 00 B8 1A C1 [12:12:14]Write i2c OK [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: F0 [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: F0 09 00 [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: F0 09 00 B8 1A 00 A1 36 C3 66 C4 85 C2 66 3B [12:12:14]GetLastDocTimeStamp 1724069485 [12:12:14]current date 1724069537 [12:12:14]FM_GetShiftState [12:12:14]SAM_PROTO_GetShiftState [12:12:14]wFMCommunicate request_size=4 [12:12:14]MH_SAM_APDU [12:12:14]CAPDU: 80 13 01 00 [12:12:14]Write to MH i2c: E2 08 00 B9 1A 80 13 01 00 00 00 00 00 50 [12:12:14]Write i2c OK [12:12:14]MH_I2C_Read... [12:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:14]Read from MH i2c: E2 [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: E2 0E 00 [12:12:14]MH_I2C_Read... [12:12:14]Read from MH i2c: E2 0E 00 B9 1A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 0A [12:12:14]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:12:14]wFMCommunicate OK [12:12:14]SAM_PROTO_GetShiftState done [12:12:14]FM_GetShiftState done [12:12:14]opened in 1724026361 [12:12:14]opened+sec_in_day 1724112761 [12:12:14]quantity*price = 0 [12:12:14]sum+1 = 1 [12:12:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 83 19.08.2024 12:12 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30034047 ФМ: 0000000000871800 ФД: 49976 ФПД: 136054813353270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T121217&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49976&fm=136054813353270&tin=02508201610067®Number=0000000000092546&sum=0 [12:12:15]StoreToDocumentArchive [12:12:15]shift 467 fd 49976 [12:12:15]save to /storage/0467/doc_00049976 [12:12:15]save last doc name /storage/0467/doc_00049976 to /storage/kkm_last_doc_name [12:12:15]save OK [12:12:15]Clear old archive folders... [12:12:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:15]tlvbuf is 00F663C0 [12:12:15]SAM_PROTO_ClearQueue [12:12:15]wFMCommunicate request_size=4 [12:12:15]MH_SAM_APDU [12:12:15]CAPDU: 80 09 00 00 [12:12:15]Write to MH i2c: E2 08 00 C6 1A 80 09 00 00 00 00 00 00 52 [12:12:15]Write i2c OK [12:12:15]MH_I2C_Read... [12:12:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:15]Read from MH i2c: E2 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 03 00 [12:12:15]MH_I2C_Read... [12:12:15]Read from MH i2c: E2 03 00 C6 1A 00 90 00 54 [12:12:15]RAPDU: 90 00 [12:12:15]wFMCommunicate OK [12:12:15]SAM_PROTO_ClearQueue done [12:12:15]KKMCreateOFDPacket [12:12:15]OFDProtocolAddRootSTLVToBuf [12:12:15]FM_MakeSignedData [12:12:15]FM_MakeSignedData [12:12:15]SAM_PROTO_SignData [12:12:15]wFMCommunicate request_size=4 [12:12:15]MH_SAM_APDU [12:12:15]CAPDU: 80 0D 01 02 [12:12:15]Write to MH i2c: E2 08 00 C7 1A 80 0D 01 02 00 00 00 00 5A [12:12:15]Write i2c OK [12:12:15]MH_I2C_Read... [12:12:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:16]Read from MH i2c: E2 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 03 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 03 00 C7 1A 00 90 00 55 [12:12:16]RAPDU: 90 00 [12:12:16]wFMCommunicate OK [12:12:16]wFMCommunicate request_size=255 [12:12:16]MH_SAM_APDU [12:12:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A1 36 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 38 C3 00 00 35 04 06 00 7B [12:12:16]Write to MH i2c: E2 02 01 C8 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A1 36 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 38 C3 00 00 35 04 06 00 7B 00 00 67 [12:12:16]Write i2c OK [12:12:16]MH_I2C_Read... [12:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:16]Read from MH i2c: E2 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 03 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 03 00 C8 1A 00 90 00 56 [12:12:16]RAPDU: 90 00 [12:12:16]wFMCommunicate OK [12:12:16]wFMCommunicate request_size=10 [12:12:16]MH_SAM_APDU [12:12:16]CAPDU: 80 0D 02 02 05 BD BA D1 E5 36 [12:12:16]Write to MH i2c: E2 0D 00 C9 1A 80 0D 02 02 05 00 BD BA D1 E5 36 00 00 CA [12:12:16]Write i2c OK [12:12:16]MH_I2C_Read... [12:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:16]Read from MH i2c: E2 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 03 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 03 00 C9 1A 00 90 00 57 [12:12:16]RAPDU: 90 00 [12:12:16]wFMCommunicate OK [12:12:16]wFMCommunicate request_size=4 [12:12:16]MH_SAM_APDU [12:12:16]CAPDU: 80 0D 03 02 [12:12:16]Write to MH i2c: E2 08 00 CA 1A 80 0D 03 02 00 00 00 00 5F [12:12:16]Write i2c OK [12:12:16]MH_I2C_Read... [12:12:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:16]Read from MH i2c: E2 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 0B 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 0B 00 CA 1A 00 7C 75 4C B7 45 20 3D A8 90 00 9E [12:12:16]RAPDU: 7C 75 4C B7 45 20 3D A8 90 00 [12:12:16]wFMCommunicate OK [12:12:16]SAM_PROTO_SignData done [12:12:16]FM_MakeSignedData done [12:12:16]CreateOFDProtocolMessage [12:12:16]wFMCommunicate request_size=4 [12:12:16]MH_SAM_APDU [12:12:16]CAPDU: 80 11 00 00 [12:12:16]Write to MH i2c: E2 08 00 CB 1A 80 11 00 00 00 00 00 00 5F [12:12:16]Write i2c OK [12:12:16]MH_I2C_Read... [12:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:16]Read from MH i2c: E2 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 17 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: E2 17 00 CB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AA [12:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:12:16]wFMCommunicate OK [12:12:16]CreateOFDProtocolMessage done [12:12:16]OFDSenderStorePacket 49976 [12:12:16]StoreOFDPacket docnum=49976 [12:12:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 F0 12 07 01 0F D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A1 36 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 38 C3 00 00 35 04 06 00 7B BD BA D1 E5 36 7C 75 4C B7 45 20 3D A8 [12:12:16]CheckFolder [12:12:16]dirname=/storage/ofd_packets [12:12:16]CheckFolder done [12:12:16]ProducePacketName [12:12:16]name=ofd_packets/00049976 [12:12:16]NVStorageSaveData ofd_packets/00049976 [12:12:16]File name is /storage/ofd_packets/00049976 [12:12:16]Write 301 bytes [12:12:16]NVStorageSaveData done [12:12:16]OFDSenderStorePacket done [12:12:16]KKMCreateOFDPacket done [12:12:16]NVStorageSaveData kkm_last_timestamp [12:12:16]File name is /storage/kkm_last_timestamp [12:12:16]Write 4 bytes [12:12:16]NVStorageSaveData done [12:12:16]ExternCall_PrintAddStr [12:12:16]wPrintStart [12:12:16]Write to MH i2c: 01 00 00 CC 1A E6 [12:12:16]Write i2c OK [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: 01 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: 01 07 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: 01 07 00 CC 1A 00 00 00 00 00 FF 0F FB [12:12:16]RasterBufferAndPrint [12:12:16]line Счет N : (1)11327757 [12:12:16]line ИНН: 02508201610067 [12:12:16]line Контрольно-Кассовый Чек [12:12:16]line ПРОДАЖА [12:12:16]line ТРК (МРК, ГНК) : 42 [12:12:16]line Товар: 2710124130 [12:12:16]line Аи-92-К-4 [12:12:16]line 20.000 * 0.00 [12:12:16]line = 0.00 [12:12:16]line НДС 12% НСП 1% [12:12:16]line > о реализуемом товаре [12:12:16]line ИТОГО: 0.00 [12:12:16]line НСП 1% : 0.00 [12:12:16]line НДС 12% : 0.00 [12:12:16]line Наличными: 0.00 [12:12:16]line Безнал.: 0.00 [12:12:16]line Место: АЗС № 95 "Партнер Нефть" [12:12:16]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:12:16]line СНО: Общий режим [12:12:16]line Чек 83 19.08.2024 12:12 [12:12:16]line Смена: 467 ФФД: 1.0 [12:12:16]line ЗНМ: 0300000078 [12:12:16]line РНМ: 0000000000092546 [12:12:16]line Версия ККМ: 001 [12:12:16]line Талоны: ТК ГПНА Online [12:12:16]line 30034047 [12:12:16]line ФМ: 0000000000871800 [12:12:16]line ФД: 49976 [12:12:16]line ФПД: 136054813353270 [12:12:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T121217&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49976&fm=136054813353270&tin=02508201610067®Number=0000000000092546&sum=0 [12:12:16]written 0, free lines is 4095 [12:12:16]Write to MH i2c: 01 00 00 F6 1A 10 [12:12:16]Write i2c OK [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: 01 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: 01 07 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: 01 07 00 F6 1A 00 00 00 00 00 C8 0C EB [12:12:16]RasterBufferAndPrint [12:12:16]line [12:12:16]line [12:12:16]line [12:12:16]line [12:12:16]line [12:12:16]written 0, free lines is 3279 [12:12:16]MH_Cut [12:12:16]Write to MH i2c: D1 01 00 FD 1A 01 E9 [12:12:16]Write i2c OK [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: D1 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: D1 01 00 [12:12:16]MH_I2C_Read... [12:12:16]Read from MH i2c: D1 01 00 FD 1A 00 E8 [12:12:16]Write to MH i2c: 01 00 00 FE 1A 18 [12:12:16]Write i2c OK [12:12:16]MH_I2C_Read... [12:12:17]*** Cut start [12:12:17]*** Purtial cut [12:12:17]*** Stage 1: CUTSNS_PIN = 1 [12:12:17]Read from MH i2c: 01 [12:12:17]MH_I2C_Read... [12:12:17]*** Stop cut motor [12:12:17]*** Cut end [12:12:17]Read from MH i2c: 01 07 00 [12:12:17]MH_I2C_Read... [12:12:17]Read from MH i2c: 01 07 00 FE 1A 00 00 00 00 00 FF 0F 2D [12:12:17]process_action close_receipt done [12:12:17]requested_data is exist [12:12:17]produce_requested_data [12:12:17]requested_item fm.sn is exist - process it [12:12:17]wFMCommunicate request_size=4 [12:12:17]MH_SAM_APDU [12:12:17]CAPDU: 80 11 00 00 [12:12:17]Write to MH i2c: E2 08 00 FF 1A 80 11 00 00 00 00 00 00 93 [12:12:17]Write i2c OK [12:12:17]MH_I2C_Read... [12:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:18]Read from MH i2c: E2 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 17 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 17 00 FF 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DE [12:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:12:18]wFMCommunicate OK [12:12:18]requested_item fd.num is exist - process it [12:12:18]SAM_PROTO_GetFieldsCounters [12:12:18]wFMCommunicate request_size=4 [12:12:18]MH_SAM_APDU [12:12:18]CAPDU: 80 13 00 00 [12:12:18]Write to MH i2c: E2 08 00 00 1B 80 13 00 00 00 00 00 00 97 [12:12:18]Write i2c OK [12:12:18]MH_I2C_Read... [12:12:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:18]Read from MH i2c: E2 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 62 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 62 00 00 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 38 C3 00 00 0E 04 04 00 D3 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 79 [12:12:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 38 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:18]wFMCommunicate OK [12:12:18]SAM_PROTO_GetFieldsCounters done [12:12:18]requested_item shift.num is exist - process it [12:12:18]requested_item shift.opened is exist - process it [12:12:18]req_shift_opened [12:12:18]FM_GetShiftState [12:12:18]SAM_PROTO_GetShiftState [12:12:18]wFMCommunicate request_size=4 [12:12:18]MH_SAM_APDU [12:12:18]CAPDU: 80 13 01 00 [12:12:18]Write to MH i2c: E2 08 00 01 1B 80 13 01 00 00 00 00 00 99 [12:12:18]Write i2c OK [12:12:18]MH_I2C_Read... [12:12:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:18]Read from MH i2c: E2 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 0E 00 [12:12:18]MH_I2C_Read... [12:12:18]Read from MH i2c: E2 0E 00 01 1B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 53 [12:12:18]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:12:18]wFMCommunicate OK [12:12:18]SAM_PROTO_GetShiftState done [12:12:18]FM_GetShiftState done [12:12:18]req_shift_opened done [12:12:18]requested_item shift.open_date is exist - process it [12:12:18]req_shift_open_date [12:12:18]req_shift_open_date done [12:12:18]produce_requested_data done [12:12:18]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49976,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [12:12:18]process_action_free close_receipt [12:12:18]json_value_free [12:12:18]json_value_free done [12:12:18]process_json_proto returns [12:12:18]Send response to host [12:12:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49976,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [12:12:18]free response buf [12:12:18]execute_script done [12:12:18]execute_script returns [12:12:18]free content buf [12:12:18]Sock 9.Close socket [12:12:18]Sock 9.Thread stoped [12:12:28]ConnectInit Can't connect to host [12:12:28]CommunicateWithHost connect error [12:12:28]CommunicateWithHost err = -1 [12:12:28]OFD Sender: Server communicate error [12:12:28]OFD Sender: Processing packet 49974 [packets to send 23, broken 20] [12:12:28]ProducePacketName [12:12:28]name=ofd_packets/00049974 [12:12:28]OFD Sender: To server: pG, [12:12:28]CommunicateWithHost lk.salyk.kg:30040 [12:12:28]ConnectInit lk.salyk.kg [12:12:29]Connected sock=9 [12:12:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 20 68 26 01 1A 03 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 51 00 00 00 F4 03 04 00 27 36 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 36 C3 00 00 35 04 06 00 C3 96 E5 8D D0 FB 4C 10 2E A4 95 F0 7A 8C [12:12:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 82 A6 47 00 BB 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 36 C3 00 00 F4 03 04 00 1A E1 C2 66 B6 04 01 00 00 36 11 A6 EE 48 F5 BF 73 [12:12:29]CommunicateWithHost err = 0 [12:12:29]CheckOFDResponse [12:12:29]1017 (14) - 77093643461234 [12:12:29]1041 (16) - 0000000000871800 [12:12:29]1040 (4) - 49974 [12:12:29]1012 (4) - 19.08.2024 06:07 [12:12:29]1206 (1) - 0 [12:12:29]OFD Sender: Remove packet 49974 [12:12:29]ProducePacketName [12:12:29]name=ofd_packets/00049974 [12:12:29]NVStorageDeleteData [12:12:30]OFD Sender: Processing packet 49975 [packets to send 22, broken 20] [12:12:30]ProducePacketName [12:12:30]name=ofd_packets/00049975 [12:12:30]OFD Sender: To server: pG, [12:12:30]CommunicateWithHost lk.salyk.kg:30040 [12:12:30]ConnectInit lk.salyk.kg [12:12:30]Connected sock=9 [12:12:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 20 01 00 00 98 9C 18 01 64 12 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 D0 07 00 00 00 00 00 37 04 06 00 8C 3C 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 52 00 00 00 F4 03 04 00 6D 36 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 37 C3 00 00 35 04 06 00 02 C1 B5 1D 2E 92 5C E2 A4 BD C3 14 29 3A [12:12:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 EC EF 47 00 C7 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 37 C3 00 00 F4 03 04 00 1C E1 C2 66 B6 04 01 00 00 A6 D4 15 95 7A D9 D9 6E [12:12:30]CommunicateWithHost err = 0 [12:12:30]CheckOFDResponse [12:12:30]1017 (14) - 77093643461234 [12:12:30]1041 (16) - 0000000000871800 [12:12:30]1040 (4) - 49975 [12:12:30]1012 (4) - 19.08.2024 06:07 [12:12:30]1206 (1) - 0 [12:12:30]OFD Sender: Remove packet 49975 [12:12:30]ProducePacketName [12:12:30]name=ofd_packets/00049975 [12:12:30]NVStorageDeleteData [12:12:31]OFD Sender: Processing packet 49976 [packets to send 21, broken 20] [12:12:31]ProducePacketName [12:12:31]name=ofd_packets/00049976 [12:12:31]OFD Sender: To server: pG, [12:12:31]CommunicateWithHost lk.salyk.kg:30040 [12:12:31]ConnectInit lk.salyk.kg [12:12:31]Connected sock=9 [12:12:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 F0 12 07 01 0F D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A1 36 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 38 C3 00 00 35 04 06 00 7B BD BA D1 E5 36 7C 75 4C B7 45 20 3D A8 [12:12:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 CB 45 47 00 BB 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 38 C3 00 00 F4 03 04 00 1D E1 C2 66 B6 04 01 00 00 AD 8F D8 36 72 25 BE 60 [12:12:31]CommunicateWithHost err = 0 [12:12:31]CheckOFDResponse [12:12:31]1017 (14) - 77093643461234 [12:12:31]1041 (16) - 0000000000871800 [12:12:31]1040 (4) - 49976 [12:12:31]1012 (4) - 19.08.2024 06:07 [12:12:31]1206 (1) - 0 [12:12:31]OFD Sender: Remove packet 49976 [12:12:31]ProducePacketName [12:12:31]name=ofd_packets/00049976 [12:12:31]NVStorageDeleteData [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:26]accept exits with 7 [12:17:26]New connection [12:17:26]New thread 3067354468 created [12:17:26]Thread 3067211108 joined [12:17:26]Waiting for new connection... [12:17:26] Sock 7.Parse request [12:17:26]Sock 7.Check first char [12:17:26]Sock 7.First char is OK [12:17:26]request: POST /json_proto HTTP/1.0 [12:17:26]Method: POST [12:17:26]URL: /json_proto [12:17:26]Method is POST - this is cgi request [12:17:26]url: /json_proto [12:17:26]query_string will be loaded in cgi processing [12:17:26]execute_cgi json_proto POST (null) [12:17:26]execute_cgi path=json_proto method=POST [12:17:26]POST find Content-Length [12:17:26]Host: 172.17.46.196:8080 [12:17:26]Content-Length: 591 [12:17:26]Content-Type: application/json [12:17:26] [12:17:26]POST finish read [12:17:26]Found Content-Length = 591 [12:17:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190121", "tax_sys" : 0, "items" : [ { "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:26]execute_script... [12:17: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)190121", "tax_sys" : 0, "items" : [ { "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:26]POST & json_proto [12:17:26]process_json_proto [12:17:26]json parsed OK: [12:17:26]protocol is kg_v1.0 [12:17:26]action value=close_receipt [12:17:26]process_action close_receipt [12:17:26]cmd_close_receipt [12:17:26]MH_GetDate [12:17:26]Write to MH i2c: F0 00 00 02 1B 0C [12:17:26]Write i2c OK [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: F0 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: F0 09 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: F0 09 00 02 1B 00 D9 37 C3 66 C4 85 C2 66 BF [12:17:26]GetLastDocTimeStamp 1724069537 [12:17:26]current date 1724069849 [12:17:26]FM_GetShiftState [12:17:26]SAM_PROTO_GetShiftState [12:17:26]wFMCommunicate request_size=4 [12:17:26]MH_SAM_APDU [12:17:26]CAPDU: 80 13 01 00 [12:17:26]Write to MH i2c: E2 08 00 03 1B 80 13 01 00 00 00 00 00 9B [12:17:26]Write i2c OK [12:17:26]MH_I2C_Read... [12:17:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:26]Read from MH i2c: E2 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 0E 00 [12:17:26]MH_I2C_Read... [12:17:26]Read from MH i2c: E2 0E 00 03 1B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 55 [12:17:26]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:17:26]wFMCommunicate OK [12:17:26]SAM_PROTO_GetShiftState done [12:17:26]FM_GetShiftState done [12:17:26]opened in 1724026361 [12:17:26]opened+sec_in_day 1724112761 [12:17:26]quantity*price = 4500 [12:17:26]sum+1 = 4501 [12:17:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 84 19.08.2024 12:17 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49977 ФПД: 41070570867456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T121729&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49977&fm=41070570867456&tin=02508201610067®Number=0000000000092546&sum=4500 0 [12:17:28]StoreToDocumentArchive [12:17:28]shift 467 fd 49977 [12:17:28]save to /storage/0467/doc_00049977 [12:17:28]save last doc name /storage/0467/doc_00049977 to /storage/kkm_last_doc_name [12:17:28]save OK [12:17:28]Clear old archive folders... [12:17:28]ProcessDocumentItem done err = 0, tmpTLVsize=266 [12:17:28]tlvbuf is B6F3CD10 [12:17:28]SAM_PROTO_ClearQueue [12:17:28]wFMCommunicate request_size=4 [12:17:28]MH_SAM_APDU [12:17:28]CAPDU: 80 09 00 00 [12:17:28]Write to MH i2c: E2 08 00 10 1B 80 09 00 00 00 00 00 00 9D [12:17:28]Write i2c OK [12:17:28]MH_I2C_Read... [12:17:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:28]Read from MH i2c: E2 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 03 00 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 03 00 10 1B 00 90 00 9F [12:17:28]RAPDU: 90 00 [12:17:28]wFMCommunicate OK [12:17:28]SAM_PROTO_ClearQueue done [12:17:28]KKMCreateOFDPacket [12:17:28]OFDProtocolAddRootSTLVToBuf [12:17:28]FM_MakeSignedData [12:17:28]FM_MakeSignedData [12:17:28]SAM_PROTO_SignData [12:17:28]wFMCommunicate request_size=4 [12:17:28]MH_SAM_APDU [12:17:28]CAPDU: 80 0D 01 02 [12:17:28]Write to MH i2c: E2 08 00 11 1B 80 0D 01 02 00 00 00 00 A5 [12:17:28]Write i2c OK [12:17:28]MH_I2C_Read... [12:17:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:28]Read from MH i2c: E2 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 03 00 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 03 00 11 1B 00 90 00 A0 [12:17:28]RAPDU: 90 00 [12:17:28]wFMCommunicate OK [12:17:28]wFMCommunicate request_size=255 [12:17:28]MH_SAM_APDU [12:17:28]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D9 37 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [12:17:28]Write to MH i2c: E2 02 01 12 1B 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D9 37 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 BA [12:17:28]Write i2c OK [12:17:28]MH_I2C_Read... [12:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:28]Read from MH i2c: E2 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 03 00 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 03 00 12 1B 00 90 00 A1 [12:17:28]RAPDU: 90 00 [12:17:28]wFMCommunicate OK [12:17:28]wFMCommunicate request_size=25 [12:17:28]MH_SAM_APDU [12:17:28]CAPDU: 80 0D 02 02 14 30 30 10 04 04 00 39 C3 00 00 35 04 06 00 25 5A 7C C9 8B 00 [12:17:28]Write to MH i2c: E2 1C 00 13 1B 80 0D 02 02 14 00 30 30 10 04 04 00 39 C3 00 00 35 04 06 00 25 5A 7C C9 8B 00 00 00 D2 [12:17:28]Write i2c OK [12:17:28]MH_I2C_Read... [12:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:28]Read from MH i2c: E2 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 03 00 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 03 00 13 1B 00 90 00 A2 [12:17:28]RAPDU: 90 00 [12:17:28]wFMCommunicate OK [12:17:28]wFMCommunicate request_size=4 [12:17:28]MH_SAM_APDU [12:17:28]CAPDU: 80 0D 03 02 [12:17:28]Write to MH i2c: E2 08 00 14 1B 80 0D 03 02 00 00 00 00 AA [12:17:28]Write i2c OK [12:17:28]MH_I2C_Read... [12:17:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:28]Read from MH i2c: E2 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 0B 00 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 0B 00 14 1B 00 DD 76 08 BA 23 D8 4D 58 90 00 60 [12:17:28]RAPDU: DD 76 08 BA 23 D8 4D 58 90 00 [12:17:28]wFMCommunicate OK [12:17:28]SAM_PROTO_SignData done [12:17:28]FM_MakeSignedData done [12:17:28]CreateOFDProtocolMessage [12:17:28]wFMCommunicate request_size=4 [12:17:28]MH_SAM_APDU [12:17:28]CAPDU: 80 11 00 00 [12:17:28]Write to MH i2c: E2 08 00 15 1B 80 11 00 00 00 00 00 00 AA [12:17:28]Write i2c OK [12:17:28]MH_I2C_Read... [12:17:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:28]Read from MH i2c: E2 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 17 00 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: E2 17 00 15 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F5 [12:17:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:17:28]wFMCommunicate OK [12:17:28]CreateOFDProtocolMessage done [12:17:28]OFDSenderStorePacket 49977 [12:17:28]StoreOFDPacket docnum=49977 [12:17:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 DD 6C 16 01 D5 D1 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D9 37 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 39 C3 00 00 35 04 06 00 25 5A 7C C9 8B 00 DD 76 08 BA 23 D8 4D 58 [12:17:28]CheckFolder [12:17:28]dirname=/storage/ofd_packets [12:17:28]CheckFolder done [12:17:28]ProducePacketName [12:17:28]name=ofd_packets/00049977 [12:17:28]NVStorageSaveData ofd_packets/00049977 [12:17:28]File name is /storage/ofd_packets/00049977 [12:17:28]Write 316 bytes [12:17:28]NVStorageSaveData done [12:17:28]OFDSenderStorePacket done [12:17:28]KKMCreateOFDPacket done [12:17:28]NVStorageSaveData kkm_last_timestamp [12:17:28]File name is /storage/kkm_last_timestamp [12:17:28]Write 4 bytes [12:17:28]NVStorageSaveData done [12:17:28]ExternCall_PrintAddStr [12:17:28]wPrintStart [12:17:28]Write to MH i2c: 01 00 00 16 1B 31 [12:17:28]Write i2c OK [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: 01 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: 01 07 00 [12:17:28]MH_I2C_Read... [12:17:28]Read from MH i2c: 01 07 00 16 1B 00 00 00 00 00 FF 0F 46 [12:17:28]RasterBufferAndPrint [12:17:28]line Счет N : (3)190121 [12:17:28]line ИНН: 02508201610067 [12:17:28]line Контрольно-Кассовый Чек [12:17:28]line ПРОДАЖА [12:17:28]line Товар: 42069942 [12:17:28]line Жев Orbit White Fresh Mint [12:17:28]line 1.000 * 45.00 [12:17:28]line = 45.00 [12:17:28]line НДС 12% НСП 1% [12:17:28]line > о реализуемом товаре [12:17:28]line ИТОГО: 45.00 [12:17:28]line НСП 1% : 0.40 [12:17:28]line НДС 12% : 4.78 [12:17:28]line Наличными: 45.00 [12:17:28]line Безнал.: 0.00 [12:17:28]line Место: АЗС № 95 "Партнер Нефть" [12:17:28]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:17:28]line СНО: Общий режим [12:17:28]line Чек 84 19.08.2024 12:17 [12:17:28]line Смена: 467 ФФД: 1.0 [12:17:28]line ЗНМ: 0300000078 [12:17:28]line РНМ: 0000000000092546 [12:17:28]line Версия ККМ: 001 [12:17:28]line ФМ: 0000000000871800 [12:17:28]line ФД: 49977 [12:17:28]line ФПД: 41070570867456 [12:17:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T121729&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49977&fm=41070570867456&tin=02508201610067®Number=0000000000092546&sum=4500 [12:17:28]line 0 [12:17:28]OFD Sender: Processing packet 49977 [packets to send 21, broken 20] [12:17:28]ProducePacketName [12:17:28]name=ofd_packets/00049977 [12:17:28]OFD Sender: To server: pG, [12:17:28]CommunicateWithHost lk.salyk.kg:30040 [12:17:28]ConnectInit lk.salyk.kg [12:17:28]written 0, free lines is 4095 [12:17:29]Connected sock=10 [12:17:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 DD 6C 16 01 D5 D1 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 D9 37 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 39 C3 00 00 35 04 06 00 25 5A 7C C9 8B 00 DD 76 08 BA 23 D8 4D 58 [12:17:29]Write to MH i2c: 01 00 00 3E 1B 59 [12:17:29]Write i2c OK [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: 01 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: 01 07 00 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: 01 07 00 3E 1B 00 00 00 00 00 D2 0C 3E [12:17:29]RasterBufferAndPrint [12:17:29]line [12:17:29]line [12:17:29]line [12:17:29]line [12:17:29]line [12:17:29]written 0, free lines is 3289 [12:17:29]MH_Cut [12:17:29]Write to MH i2c: D1 01 00 45 1B 01 32 [12:17:29]Write i2c OK [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: D1 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: D1 01 00 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: D1 01 00 45 1B 00 31 [12:17:29]Write to MH i2c: 01 00 00 46 1B 61 [12:17:29]Write i2c OK [12:17:29]MH_I2C_Read... [12:17:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F0 93 47 00 23 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 39 C3 00 00 F4 03 04 00 46 E2 C2 66 B6 04 01 00 00 7B F0 AE C1 BD D1 EB D2 [12:17:29]CommunicateWithHost err = 0 [12:17:29]CheckOFDResponse [12:17:29]1017 (14) - 77093643461234 [12:17:29]1041 (16) - 0000000000871800 [12:17:29]1040 (4) - 49977 [12:17:29]1012 (4) - 19.08.2024 06:12 [12:17:29]1206 (1) - 0 [12:17:29]OFD Sender: Remove packet 49977 [12:17:29]ProducePacketName [12:17:29]name=ofd_packets/00049977 [12:17:29]NVStorageDeleteData [12:17:29]OFD Sender: No OFD packet to send [12:17:30]*** Cut start [12:17:30]*** Purtial cut [12:17:30]*** CUTSNS_PIN = 0 [12:17:30]*** Stage 1: CUTSNS_PIN = 1 [12:17:32]Read from MH i2c: 01 [12:17:32]MH_I2C_Read... [12:17:32]*** Stop cut motor [12:17:32]*** Cut end [12:17:32]Read from MH i2c: 01 07 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: 01 07 00 46 1B 00 00 00 00 00 FF 0F 76 [12:17:32]process_action close_receipt done [12:17:32]requested_data is exist [12:17:32]produce_requested_data [12:17:32]requested_item fm.sn is exist - process it [12:17:32]wFMCommunicate request_size=4 [12:17:32]MH_SAM_APDU [12:17:32]CAPDU: 80 11 00 00 [12:17:32]Write to MH i2c: E2 08 00 47 1B 80 11 00 00 00 00 00 00 DC [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:32]Read from MH i2c: E2 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 17 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 17 00 47 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 27 [12:17:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:17:32]wFMCommunicate OK [12:17:32]requested_item fd.num is exist - process it [12:17:32]SAM_PROTO_GetFieldsCounters [12:17:32]wFMCommunicate request_size=4 [12:17:32]MH_SAM_APDU [12:17:32]CAPDU: 80 13 00 00 [12:17:32]Write to MH i2c: E2 08 00 48 1B 80 13 00 00 00 00 00 00 DF [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:32]Read from MH i2c: E2 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 62 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 62 00 48 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 39 C3 00 00 0E 04 04 00 D3 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 C5 [12:17:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 39 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:32]wFMCommunicate OK [12:17:32]SAM_PROTO_GetFieldsCounters done [12:17:32]requested_item shift.num is exist - process it [12:17:32]requested_item shift.opened is exist - process it [12:17:32]req_shift_opened [12:17:32]FM_GetShiftState [12:17:32]SAM_PROTO_GetShiftState [12:17:32]wFMCommunicate request_size=4 [12:17:32]MH_SAM_APDU [12:17:32]CAPDU: 80 13 01 00 [12:17:32]Write to MH i2c: E2 08 00 49 1B 80 13 01 00 00 00 00 00 E1 [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:32]Read from MH i2c: E2 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 0E 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: E2 0E 00 49 1B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 9B [12:17:32]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:17:32]wFMCommunicate OK [12:17:32]SAM_PROTO_GetShiftState done [12:17:32]FM_GetShiftState done [12:17:32]req_shift_opened done [12:17:32]requested_item shift.open_date is exist - process it [12:17:32]req_shift_open_date [12:17:32]req_shift_open_date done [12:17:32]produce_requested_data done [12:17:32]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49977,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [12:17:32]process_action_free close_receipt [12:17:32]json_value_free [12:17:32]json_value_free done [12:17:32]process_json_proto returns [12:17:32]Send response to host [12:17:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49977,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [12:17:32]free response buf [12:17:32]execute_script done [12:17:32]execute_script returns [12:17:32]free content buf [12:17:32]Sock 7.Close socket [12:17:32]Sock 7.Thread stoped [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:39]OFD Sender: No OFD packet to send [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:15]OFD Sender: No OFD packet to send [12:20:20]OFD Sender: No OFD packet to send [12:20:25]OFD Sender: No OFD packet to send [12:20:30]OFD Sender: No OFD packet to send [12:20:35]OFD Sender: No OFD packet to send [12:20:39]accept exits with 9 [12:20:39]New connection [12:20:39]New thread 3067211108 created [12:20:39]Thread 3067354468 joined [12:20:39]Waiting for new connection... [12:20:39] Sock 9.Parse request [12:20:39]Sock 9.Check first char [12:20:39]Sock 9.First char is OK [12:20:39]request: POST /json_proto HTTP/1.0 [12:20:39]Method: POST [12:20:39]URL: /json_proto [12:20:39]Method is POST - this is cgi request [12:20:39]url: /json_proto [12:20:39]query_string will be loaded in cgi processing [12:20:39]execute_cgi json_proto POST (null) [12:20:39]execute_cgi path=json_proto method=POST [12:20:39]POST find Content-Length [12:20:39]Host: 172.17.46.196:8080 [12:20:39]Content-Length: 752 [12:20:39]Content-Type: application/json [12:20:39] [12:20:39]POST finish read [12:20:39]Found Content-Length = 752 [12:20:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 9.510, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30149258", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:39]execute_script... [12:20:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 9.510, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30149258", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:39]POST & json_proto [12:20:39]process_json_proto [12:20:39]json parsed OK: [12:20:39]protocol is kg_v1.0 [12:20:39]action value=close_receipt [12:20:39]process_action close_receipt [12:20:39]cmd_close_receipt [12:20:39]MH_GetDate [12:20:39]Write to MH i2c: F0 00 00 4A 1B 54 [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: F0 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: F0 09 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: F0 09 00 4A 1B 00 9A 38 C3 66 C4 85 C2 66 C9 [12:20:39]GetLastDocTimeStamp 1724069849 [12:20:39]current date 1724070042 [12:20:39]FM_GetShiftState [12:20:39]SAM_PROTO_GetShiftState [12:20:39]wFMCommunicate request_size=4 [12:20:39]MH_SAM_APDU [12:20:39]CAPDU: 80 13 01 00 [12:20:39]Write to MH i2c: E2 08 00 4B 1B 80 13 01 00 00 00 00 00 E3 [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:39]Read from MH i2c: E2 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 0E 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: E2 0E 00 4B 1B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 9D [12:20:39]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:20:39]wFMCommunicate OK [12:20:39]SAM_PROTO_GetShiftState done [12:20:39]FM_GetShiftState done [12:20:39]opened in 1724026361 [12:20:39]opened+sec_in_day 1724112761 [12:20:39]quantity*price = 0 [12:20:39]sum+1 = 1 [12:20:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 85 19.08.2024 12:20 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30149258 ФМ: 0000000000871800 ФД: 49978 ФПД: 92906355711237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122042&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49978&fm=92906355711237&tin=02508201610067®Number=0000000000092546&sum=0 [12:20:40]StoreToDocumentArchive [12:20:40]shift 467 fd 49978 [12:20:40]save to /storage/0467/doc_00049978 [12:20:40]save last doc name /storage/0467/doc_00049978 to /storage/kkm_last_doc_name [12:20:40]save OK [12:20:40]Clear old archive folders... [12:20:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:20:40]tlvbuf is 010429A0 [12:20:40]SAM_PROTO_ClearQueue [12:20:40]wFMCommunicate request_size=4 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 09 00 00 [12:20:40]Write to MH i2c: E2 08 00 58 1B 80 09 00 00 00 00 00 00 E5 [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 03 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 03 00 58 1B 00 90 00 E7 [12:20:40]RAPDU: 90 00 [12:20:40]wFMCommunicate OK [12:20:40]SAM_PROTO_ClearQueue done [12:20:40]KKMCreateOFDPacket [12:20:40]OFDProtocolAddRootSTLVToBuf [12:20:40]FM_MakeSignedData [12:20:40]FM_MakeSignedData [12:20:40]SAM_PROTO_SignData [12:20:40]wFMCommunicate request_size=4 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 0D 01 02 [12:20:40]Write to MH i2c: E2 08 00 59 1B 80 0D 01 02 00 00 00 00 ED [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 03 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 03 00 59 1B 00 90 00 E8 [12:20:40]RAPDU: 90 00 [12:20:40]wFMCommunicate OK [12:20:40]wFMCommunicate request_size=255 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 25 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 9A 38 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3A C3 00 00 35 04 06 00 54 7F 72 54 [12:20:40]Write to MH i2c: E2 02 01 5A 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 25 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 9A 38 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3A C3 00 00 35 04 06 00 54 7F 72 54 00 00 48 [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 5A 1B 00 90 00 E9 [12:20:41]RAPDU: 90 00 [12:20:41]wFMCommunicate OK [12:20:41]wFMCommunicate request_size=7 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 0D 02 02 02 5D 05 [12:20:41]Write to MH i2c: E2 0A 00 5B 1B 80 0D 02 02 02 00 5D 05 00 00 56 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 5B 1B 00 90 00 EA [12:20:41]RAPDU: 90 00 [12:20:41]wFMCommunicate OK [12:20:41]wFMCommunicate request_size=4 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 0D 03 02 [12:20:41]Write to MH i2c: E2 08 00 5C 1B 80 0D 03 02 00 00 00 00 F2 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 0B 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 0B 00 5C 1B 00 E1 BA 7B 10 AE 90 53 F8 90 00 A2 [12:20:41]RAPDU: E1 BA 7B 10 AE 90 53 F8 90 00 [12:20:41]wFMCommunicate OK [12:20:41]SAM_PROTO_SignData done [12:20:41]FM_MakeSignedData done [12:20:41]CreateOFDProtocolMessage [12:20:41]wFMCommunicate request_size=4 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 11 00 00 [12:20:41]Write to MH i2c: E2 08 00 5D 1B 80 11 00 00 00 00 00 00 F2 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 17 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 17 00 5D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3D [12:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:20:41]wFMCommunicate OK [12:20:41]CreateOFDProtocolMessage done [12:20:41]OFDSenderStorePacket 49978 [12:20:41]StoreOFDPacket docnum=49978 [12:20:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 B0 2A 04 01 89 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 25 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 9A 38 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3A C3 00 00 35 04 06 00 54 7F 72 54 5D 05 E1 BA 7B 10 AE 90 53 F8 [12:20:41]CheckFolder [12:20:41]dirname=/storage/ofd_packets [12:20:41]CheckFolder done [12:20:41]ProducePacketName [12:20:41]name=ofd_packets/00049978 [12:20:41]NVStorageSaveData ofd_packets/00049978 [12:20:41]File name is /storage/ofd_packets/00049978 [12:20:41]Write 298 bytes [12:20:41]NVStorageSaveData done [12:20:41]OFDSenderStorePacket done [12:20:41]KKMCreateOFDPacket done [12:20:41]NVStorageSaveData kkm_last_timestamp [12:20:41]File name is /storage/kkm_last_timestamp [12:20:41]Write 4 bytes [12:20:41]NVStorageSaveData done [12:20:41]ExternCall_PrintAddStr [12:20:41]wPrintStart [12:20:41]Write to MH i2c: 01 00 00 5E 1B 79 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: 01 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: 01 07 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: 01 07 00 5E 1B 00 00 00 00 00 FF 0F 8E [12:20:41]RasterBufferAndPrint [12:20:41]line Счет N : (1)11327763 [12:20:41]line ИНН: 02508201610067 [12:20:41]line Контрольно-Кассовый Чек [12:20:41]line ПРОДАЖА [12:20:41]line ТРК (МРК, ГНК) : 51 [12:20:41]line Товар: 2710194210 [12:20:41]line ДТ-К-5 [12:20:41]line 9.510 * 0.00 [12:20:41]line = 0.00 [12:20:41]line НДС 12% НСП 1% [12:20:41]line > о реализуемом товаре [12:20:41]line ИТОГО: 0.00 [12:20:41]line НСП 1% : 0.00 [12:20:41]line НДС 12% : 0.00 [12:20:41]line Наличными: 0.00 [12:20:41]line Безнал.: 0.00 [12:20:41]line Место: АЗС № 95 "Партнер Нефть" [12:20:41]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:20:41]line СНО: Общий режим [12:20:41]line Чек 85 19.08.2024 12:20 [12:20:41]line Смена: 467 ФФД: 1.0 [12:20:41]line ЗНМ: 0300000078 [12:20:41]line РНМ: 0000000000092546 [12:20:41]line Версия ККМ: 001 [12:20:41]line Талоны: ТК ГПНА Online [12:20:41]line 30149258 [12:20:41]line ФМ: 0000000000871800 [12:20:41]line ФД: 49978 [12:20:41]line ФПД: 92906355711237 [12:20:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122042&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49978&fm=92906355711237&tin=02508201610067®Number=0000000000092546&sum=0 [12:20:41]OFD Sender: Processing packet 49978 [packets to send 21, broken 20] [12:20:41]ProducePacketName [12:20:41]name=ofd_packets/00049978 [12:20:41]OFD Sender: To server: pG, [12:20:41]CommunicateWithHost lk.salyk.kg:30040 [12:20:41]ConnectInit lk.salyk.kg [12:20:41]written 0, free lines is 4095 [12:20:42]Connected sock=11 [12:20:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 B0 2A 04 01 89 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 25 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 9A 38 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3A C3 00 00 35 04 06 00 54 7F 72 54 5D 05 E1 BA 7B 10 AE 90 53 F8 [12:20:42]Write to MH i2c: 01 00 00 88 1B A3 [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: 01 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: 01 07 00 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: 01 07 00 88 1B 00 00 00 00 00 C8 0C 7E [12:20:42]RasterBufferAndPrint [12:20:42]line [12:20:42]line [12:20:42]line [12:20:42]line [12:20:42]line [12:20:42]written 0, free lines is 3279 [12:20:42]MH_Cut [12:20:42]Write to MH i2c: D1 01 00 8F 1B 01 7C [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: D1 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: D1 01 00 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: D1 01 00 8F 1B 00 7B [12:20:42]Write to MH i2c: 01 00 00 90 1B AB [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 FE 31 47 00 99 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3A C3 00 00 F4 03 04 00 07 E3 C2 66 B6 04 01 00 00 FF FA D1 42 00 69 F1 BE [12:20:42]CommunicateWithHost err = 0 [12:20:42]CheckOFDResponse [12:20:42]1017 (14) - 77093643461234 [12:20:42]1041 (16) - 0000000000871800 [12:20:42]1040 (4) - 49978 [12:20:42]1012 (4) - 19.08.2024 06:15 [12:20:42]1206 (1) - 0 [12:20:42]OFD Sender: Remove packet 49978 [12:20:42]ProducePacketName [12:20:42]name=ofd_packets/00049978 [12:20:42]NVStorageDeleteData [12:20:42]OFD Sender: No OFD packet to send [12:20:42]*** Cut start [12:20:42]*** Purtial cut [12:20:42]*** Stage 1: CUTSNS_PIN = 1 [12:20:43]Read from MH i2c: 01 [12:20:43]MH_I2C_Read... [12:20:43]*** Stop cut motor [12:20:43]*** Cut end [12:20:43]Read from MH i2c: 01 07 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 07 00 90 1B 00 00 00 00 00 FF 0F C0 [12:20:43]process_action close_receipt done [12:20:43]requested_data is exist [12:20:43]produce_requested_data [12:20:43]requested_item fm.sn is exist - process it [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 11 00 00 [12:20:43]Write to MH i2c: E2 08 00 91 1B 80 11 00 00 00 00 00 00 26 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 17 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 17 00 91 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 71 [12:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:20:43]wFMCommunicate OK [12:20:43]requested_item fd.num is exist - process it [12:20:43]SAM_PROTO_GetFieldsCounters [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 13 00 00 [12:20:43]Write to MH i2c: E2 08 00 92 1B 80 13 00 00 00 00 00 00 29 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 62 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 62 00 92 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3A C3 00 00 0E 04 04 00 D3 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 13 [12:20:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3A C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:43]wFMCommunicate OK [12:20:43]SAM_PROTO_GetFieldsCounters done [12:20:43]requested_item shift.num is exist - process it [12:20:43]requested_item shift.opened is exist - process it [12:20:43]req_shift_opened [12:20:43]FM_GetShiftState [12:20:43]SAM_PROTO_GetShiftState [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 13 01 00 [12:20:43]Write to MH i2c: E2 08 00 93 1B 80 13 01 00 00 00 00 00 2B [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 0E 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 0E 00 93 1B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 E5 [12:20:43]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:20:43]wFMCommunicate OK [12:20:43]SAM_PROTO_GetShiftState done [12:20:43]FM_GetShiftState done [12:20:43]req_shift_opened done [12:20:43]requested_item shift.open_date is exist - process it [12:20:43]req_shift_open_date [12:20:43]req_shift_open_date done [12:20:43]produce_requested_data done [12:20:43]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49978,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [12:20:43]process_action_free close_receipt [12:20:43]json_value_free [12:20:43]json_value_free done [12:20:43]process_json_proto returns [12:20:43]Send response to host [12:20:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49978,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [12:20:43]free response buf [12:20:43]execute_script done [12:20:43]execute_script returns [12:20:43]free content buf [12:20:43]Sock 9.Close socket [12:20:43]Sock 9.Thread stoped [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:21]accept exits with 7 [12:25:21]New connection [12:25:21]New thread 3067354468 created [12:25:21]Thread 3067211108 joined [12:25:21]Waiting for new connection... [12:25:21] Sock 7.Parse request [12:25:21]Sock 7.Check first char [12:25:21]Sock 7.First char is OK [12:25:21]request: POST /json_proto HTTP/1.0 [12:25:21]Method: POST [12:25:21]URL: /json_proto [12:25:21]Method is POST - this is cgi request [12:25:21]url: /json_proto [12:25:21]query_string will be loaded in cgi processing [12:25:21]execute_cgi json_proto POST (null) [12:25:21]execute_cgi path=json_proto method=POST [12:25:21]POST find Content-Length [12:25:21]Host: 172.17.46.196:8080 [12:25:21]Content-Length: 756 [12:25:21]Content-Type: application/json [12:25:21] [12:25:21]POST finish read [12:25:21]Found Content-Length = 756 [12:25:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30026340", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:21]execute_script... [12:25:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30026340", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:21]POST & json_proto [12:25:21]process_json_proto [12:25:21]json parsed OK: [12:25:21]protocol is kg_v1.0 [12:25:21]action value=close_receipt [12:25:21]process_action close_receipt [12:25:21]cmd_close_receipt [12:25:21]MH_GetDate [12:25:21]Write to MH i2c: F0 00 00 94 1B 9E [12:25:21]Write i2c OK [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: F0 [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: F0 09 00 [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: F0 09 00 94 1B 00 B3 39 C3 66 C4 85 C2 66 2D [12:25:21]GetLastDocTimeStamp 1724070042 [12:25:21]current date 1724070323 [12:25:21]FM_GetShiftState [12:25:21]SAM_PROTO_GetShiftState [12:25:21]wFMCommunicate request_size=4 [12:25:21]MH_SAM_APDU [12:25:21]CAPDU: 80 13 01 00 [12:25:21]Write to MH i2c: E2 08 00 95 1B 80 13 01 00 00 00 00 00 2D [12:25:21]Write i2c OK [12:25:21]MH_I2C_Read... [12:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:21]Read from MH i2c: E2 [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: E2 0E 00 [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: E2 0E 00 95 1B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 E7 [12:25:21]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:25:21]wFMCommunicate OK [12:25:21]SAM_PROTO_GetShiftState done [12:25:21]FM_GetShiftState done [12:25:21]opened in 1724026361 [12:25:21]opened+sec_in_day 1724112761 [12:25:21]quantity*price = 0 [12:25:21]sum+1 = 1 [12:25:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 86 19.08.2024 12:25 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30026340 ФМ: 0000000000871800 ФД: 49979 ФПД: 182872870092724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122523&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49979&fm=182872870092724&tin=02508201610067®Number=0000000000092546&sum=0 [12:25:22]StoreToDocumentArchive [12:25:22]shift 467 fd 49979 [12:25:22]save to /storage/0467/doc_00049979 [12:25:22]save last doc name /storage/0467/doc_00049979 to /storage/kkm_last_doc_name [12:25:22]save OK [12:25:22]Clear old archive folders... [12:25:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:22]tlvbuf is B6F3C4B0 [12:25:22]SAM_PROTO_ClearQueue [12:25:22]wFMCommunicate request_size=4 [12:25:22]MH_SAM_APDU [12:25:22]CAPDU: 80 09 00 00 [12:25:22]Write to MH i2c: E2 08 00 A2 1B 80 09 00 00 00 00 00 00 2F [12:25:22]Write i2c OK [12:25:22]MH_I2C_Read... [12:25:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:22]Read from MH i2c: E2 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 03 00 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 03 00 A2 1B 00 90 00 31 [12:25:22]RAPDU: 90 00 [12:25:22]wFMCommunicate OK [12:25:22]SAM_PROTO_ClearQueue done [12:25:22]KKMCreateOFDPacket [12:25:22]OFDProtocolAddRootSTLVToBuf [12:25:22]FM_MakeSignedData [12:25:22]FM_MakeSignedData [12:25:22]SAM_PROTO_SignData [12:25:22]wFMCommunicate request_size=4 [12:25:22]MH_SAM_APDU [12:25:22]CAPDU: 80 0D 01 02 [12:25:22]Write to MH i2c: E2 08 00 A3 1B 80 0D 01 02 00 00 00 00 37 [12:25:22]Write i2c OK [12:25:22]MH_I2C_Read... [12:25:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:22]Read from MH i2c: E2 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 03 00 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 03 00 A3 1B 00 90 00 32 [12:25:22]RAPDU: 90 00 [12:25:22]wFMCommunicate OK [12:25:22]wFMCommunicate request_size=255 [12:25:22]MH_SAM_APDU [12:25:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 B3 39 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3B C3 00 00 35 04 06 00 A6 [12:25:22]Write to MH i2c: E2 02 01 A4 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 B3 39 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3B C3 00 00 35 04 06 00 A6 00 00 8A [12:25:22]Write i2c OK [12:25:22]MH_I2C_Read... [12:25:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:22]Read from MH i2c: E2 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 03 00 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 03 00 A4 1B 00 90 00 33 [12:25:22]RAPDU: 90 00 [12:25:22]wFMCommunicate OK [12:25:22]wFMCommunicate request_size=10 [12:25:22]MH_SAM_APDU [12:25:22]CAPDU: 80 0D 02 02 05 52 68 75 FF B4 [12:25:22]Write to MH i2c: E2 0D 00 A5 1B 80 0D 02 02 05 00 52 68 75 FF B4 00 00 26 [12:25:22]Write i2c OK [12:25:22]MH_I2C_Read... [12:25:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:22]Read from MH i2c: E2 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 03 00 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 03 00 A5 1B 00 90 00 34 [12:25:22]RAPDU: 90 00 [12:25:22]wFMCommunicate OK [12:25:22]wFMCommunicate request_size=4 [12:25:22]MH_SAM_APDU [12:25:22]CAPDU: 80 0D 03 02 [12:25:22]Write to MH i2c: E2 08 00 A6 1B 80 0D 03 02 00 00 00 00 3C [12:25:22]Write i2c OK [12:25:22]MH_I2C_Read... [12:25:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:22]Read from MH i2c: E2 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 0B 00 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 0B 00 A6 1B 00 BE 94 75 99 68 38 E1 63 90 00 81 [12:25:22]RAPDU: BE 94 75 99 68 38 E1 63 90 00 [12:25:22]wFMCommunicate OK [12:25:22]SAM_PROTO_SignData done [12:25:22]FM_MakeSignedData done [12:25:22]CreateOFDProtocolMessage [12:25:22]wFMCommunicate request_size=4 [12:25:22]MH_SAM_APDU [12:25:22]CAPDU: 80 11 00 00 [12:25:22]Write to MH i2c: E2 08 00 A7 1B 80 11 00 00 00 00 00 00 3C [12:25:22]Write i2c OK [12:25:22]MH_I2C_Read... [12:25:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:22]Read from MH i2c: E2 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 17 00 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: E2 17 00 A7 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 87 [12:25:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:25:22]wFMCommunicate OK [12:25:22]CreateOFDProtocolMessage done [12:25:22]OFDSenderStorePacket 49979 [12:25:22]StoreOFDPacket docnum=49979 [12:25:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 C8 DA 07 01 4D 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 B3 39 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3B C3 00 00 35 04 06 00 A6 52 68 75 FF B4 BE 94 75 99 68 38 E1 63 [12:25:22]CheckFolder [12:25:22]dirname=/storage/ofd_packets [12:25:22]CheckFolder done [12:25:22]ProducePacketName [12:25:22]name=ofd_packets/00049979 [12:25:22]NVStorageSaveData ofd_packets/00049979 [12:25:22]File name is /storage/ofd_packets/00049979 [12:25:22]Write 301 bytes [12:25:22]NVStorageSaveData done [12:25:22]OFDSenderStorePacket done [12:25:22]KKMCreateOFDPacket done [12:25:22]NVStorageSaveData kkm_last_timestamp [12:25:22]File name is /storage/kkm_last_timestamp [12:25:22]Write 4 bytes [12:25:22]NVStorageSaveData done [12:25:22]ExternCall_PrintAddStr [12:25:22]wPrintStart [12:25:22]Write to MH i2c: 01 00 00 A8 1B C3 [12:25:22]Write i2c OK [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: 01 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: 01 07 00 [12:25:22]MH_I2C_Read... [12:25:22]Read from MH i2c: 01 07 00 A8 1B 00 00 00 00 00 FF 0F D8 [12:25:22]RasterBufferAndPrint [12:25:22]line Счет N : (1)11327767 [12:25:22]line ИНН: 02508201610067 [12:25:22]line Контрольно-Кассовый Чек [12:25:22]line ПРОДАЖА [12:25:22]line ТРК (МРК, ГНК) : 12 [12:25:22]line Товар: 2710124130 [12:25:22]line Аи-92-К-4 [12:25:22]line 20.000 * 0.00 [12:25:22]line = 0.00 [12:25:22]line НДС 12% НСП 1% [12:25:22]line > о реализуемом товаре [12:25:22]line ИТОГО: 0.00 [12:25:22]line НСП 1% : 0.00 [12:25:22]line НДС 12% : 0.00 [12:25:22]line Наличными: 0.00 [12:25:22]line Безнал.: 0.00 [12:25:22]line Место: АЗС № 95 "Партнер Нефть" [12:25:22]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:25:22]line СНО: Общий режим [12:25:22]line Чек 86 19.08.2024 12:25 [12:25:22]line Смена: 467 ФФД: 1.0 [12:25:22]line ЗНМ: 0300000078 [12:25:22]line РНМ: 0000000000092546 [12:25:22]line Версия ККМ: 001 [12:25:22]line Талоны: ТК ГПНА Online [12:25:22]line 30026340 [12:25:22]line ФМ: 0000000000871800 [12:25:22]line ФД: 49979 [12:25:22]line ФПД: 182872870092724 [12:25:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T122523&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49979&fm=182872870092724&tin=02508201610067®Number=0000000000092546&sum=0 [12:25:22]written 0, free lines is 4095 [12:25:22]OFD Sender: Processing packet 49979 [packets to send 21, broken 20] [12:25:22]ProducePacketName [12:25:22]name=ofd_packets/00049979 [12:25:22]OFD Sender: To server: pG, [12:25:22]CommunicateWithHost lk.salyk.kg:30040 [12:25:22]ConnectInit lk.salyk.kg [12:25:23]Connected sock=10 [12:25:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 C8 DA 07 01 4D 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 B3 39 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3B C3 00 00 35 04 06 00 A6 52 68 75 FF B4 BE 94 75 99 68 38 E1 63 [12:25:23]Write to MH i2c: 01 00 00 D2 1B ED [12:25:23]Write i2c OK [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: 01 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: 01 07 00 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: 01 07 00 D2 1B 00 00 00 00 00 D5 0C D5 [12:25:23]RasterBufferAndPrint [12:25:23]line [12:25:23]line [12:25:23]line [12:25:23]line [12:25:23]line [12:25:23]written 0, free lines is 3291 [12:25:23]MH_Cut [12:25:23]Write to MH i2c: D1 01 00 D9 1B 01 C6 [12:25:23]Write i2c OK [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: D1 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: D1 01 00 [12:25:23]MH_I2C_Read... [12:25:23]Read from MH i2c: D1 01 00 D9 1B 00 C5 [12:25:23]Write to MH i2c: 01 00 00 DA 1B F5 [12:25:23]Write i2c OK [12:25:23]MH_I2C_Read... [12:25:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 7E C6 47 00 F4 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3B C3 00 00 F4 03 04 00 20 E4 C2 66 B6 04 01 00 00 B5 B0 D0 37 4D 98 19 8B [12:25:23]CommunicateWithHost err = 0 [12:25:23]CheckOFDResponse [12:25:23]1017 (14) - 77093643461234 [12:25:23]1041 (16) - 0000000000871800 [12:25:23]1040 (4) - 49979 [12:25:23]1012 (4) - 19.08.2024 06:20 [12:25:23]1206 (1) - 0 [12:25:23]OFD Sender: Remove packet 49979 [12:25:23]ProducePacketName [12:25:23]name=ofd_packets/00049979 [12:25:23]NVStorageDeleteData [12:25:23]OFD Sender: No OFD packet to send [12:25:24]*** Cut start [12:25:24]*** Purtial cut [12:25:24]*** CUTSNS_PIN = 0 [12:25:24]*** Stage 1: CUTSNS_PIN = 1 [12:25:26]Read from MH i2c: 01 [12:25:26]MH_I2C_Read... [12:25:26]*** Stop cut motor [12:25:26]*** Cut end [12:25:26]Read from MH i2c: 01 07 00 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: 01 07 00 DA 1B 00 00 00 00 00 FF 0F 0A [12:25:26]process_action close_receipt done [12:25:26]requested_data is exist [12:25:26]produce_requested_data [12:25:26]requested_item fm.sn is exist - process it [12:25:26]wFMCommunicate request_size=4 [12:25:26]MH_SAM_APDU [12:25:26]CAPDU: 80 11 00 00 [12:25:26]Write to MH i2c: E2 08 00 DB 1B 80 11 00 00 00 00 00 00 70 [12:25:26]Write i2c OK [12:25:26]MH_I2C_Read... [12:25:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:26]Read from MH i2c: E2 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 17 00 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 17 00 DB 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BB [12:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:25:26]wFMCommunicate OK [12:25:26]requested_item fd.num is exist - process it [12:25:26]SAM_PROTO_GetFieldsCounters [12:25:26]wFMCommunicate request_size=4 [12:25:26]MH_SAM_APDU [12:25:26]CAPDU: 80 13 00 00 [12:25:26]Write to MH i2c: E2 08 00 DC 1B 80 13 00 00 00 00 00 00 73 [12:25:26]Write i2c OK [12:25:26]MH_I2C_Read... [12:25:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:26]Read from MH i2c: E2 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 62 00 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 62 00 DC 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3B C3 00 00 0E 04 04 00 D3 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 61 [12:25:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3B C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:26]wFMCommunicate OK [12:25:26]SAM_PROTO_GetFieldsCounters done [12:25:26]requested_item shift.num is exist - process it [12:25:26]requested_item shift.opened is exist - process it [12:25:26]req_shift_opened [12:25:26]FM_GetShiftState [12:25:26]SAM_PROTO_GetShiftState [12:25:26]wFMCommunicate request_size=4 [12:25:26]MH_SAM_APDU [12:25:26]CAPDU: 80 13 01 00 [12:25:26]Write to MH i2c: E2 08 00 DD 1B 80 13 01 00 00 00 00 00 75 [12:25:26]Write i2c OK [12:25:26]MH_I2C_Read... [12:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:26]Read from MH i2c: E2 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 0E 00 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 0E 00 DD 1B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 2F [12:25:26]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:25:26]wFMCommunicate OK [12:25:26]SAM_PROTO_GetShiftState done [12:25:26]FM_GetShiftState done [12:25:26]req_shift_opened done [12:25:26]requested_item shift.open_date is exist - process it [12:25:26]req_shift_open_date [12:25:26]req_shift_open_date done [12:25:26]produce_requested_data done [12:25:26]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49979,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [12:25:26]process_action_free close_receipt [12:25:26]json_value_free [12:25:26]json_value_free done [12:25:26]process_json_proto returns [12:25:26]Send response to host [12:25:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49979,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [12:25:26]free response buf [12:25:26]execute_script done [12:25:26]execute_script returns [12:25:26]free content buf [12:25:26]Sock 7.Close socket [12:25:26]Sock 7.Thread stoped [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:42]accept exits with 9 [12:36:42]New connection [12:36:42]New thread 3067211108 created [12:36:42]Thread 3067354468 joined [12:36:42]Waiting for new connection... [12:36:42] Sock 9.Parse request [12:36:42]Sock 9.Check first char [12:36:42]Sock 9.First char is OK [12:36:42]request: POST /json_proto HTTP/1.0 [12:36:42]Method: POST [12:36:42]URL: /json_proto [12:36:42]Method is POST - this is cgi request [12:36:42]url: /json_proto [12:36:42]query_string will be loaded in cgi processing [12:36:42]execute_cgi json_proto POST (null) [12:36:42]execute_cgi path=json_proto method=POST [12:36:42]POST find Content-Length [12:36:42]Host: 172.17.46.196:8080 [12:36:42]Content-Length: 1141 [12:36:42]Content-Type: application/json [12:36:42] [12:36:42]POST finish read [12:36:42]Found Content-Length = 1141 [12:36:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190122", "tax_sys" : 0, "items" : [ { "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \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 }]} ,{ "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\u0432\u043A", "price" : 86.00, "quantity" : 1.000, "sum" : 86.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:42]execute_script... [12:36: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)190122", "tax_sys" : 0, "items" : [ { "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \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 }]} ,{ "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\u0432\u043A", "price" : 86.00, "quantity" : 1.000, "sum" : 86.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:42]POST & json_proto [12:36:42]process_json_proto [12:36:42]json parsed OK: [12:36:42]protocol is kg_v1.0 [12:36:42]action value=close_receipt [12:36:42]process_action close_receipt [12:36:42]cmd_close_receipt [12:36:42]MH_GetDate [12:36:42]Write to MH i2c: F0 00 00 DE 1B E8 [12:36:42]Write i2c OK [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: F0 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: F0 09 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: F0 09 00 DE 1B 00 5D 3C C3 66 C4 85 C2 66 24 [12:36:42]GetLastDocTimeStamp 1724070323 [12:36:42]current date 1724071005 [12:36:42]FM_GetShiftState [12:36:42]SAM_PROTO_GetShiftState [12:36:42]wFMCommunicate request_size=4 [12:36:42]MH_SAM_APDU [12:36:42]CAPDU: 80 13 01 00 [12:36:42]Write to MH i2c: E2 08 00 DF 1B 80 13 01 00 00 00 00 00 77 [12:36:42]Write i2c OK [12:36:42]MH_I2C_Read... [12:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:42]Read from MH i2c: E2 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 0E 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 0E 00 DF 1B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 31 [12:36:42]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:36:42]wFMCommunicate OK [12:36:42]SAM_PROTO_GetShiftState done [12:36:42]FM_GetShiftState done [12:36:42]opened in 1724026361 [12:36:42]opened+sec_in_day 1724112761 [12:36:42]quantity*price = 6500 [12:36:42]sum+1 = 6501 [12:36:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4603290004848 Печ.зат.TONDI Сэнд.шок-сл.вк 1.000 * 86.00 = 86.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.33 НДС 12% : 16.03 Наличными: 0.00 Безнал.: 151.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 87 19.08.2024 12:36 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49980 ФПД: 101046752941175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T123645&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49980&fm=101046752941175&tin=02508201610067®Number=0000000000092546&sum=15100 0 [12:36:44]StoreToDocumentArchive [12:36:44]shift 467 fd 49980 [12:36:44]save to /storage/0467/doc_00049980 [12:36:44]save last doc name /storage/0467/doc_00049980 to /storage/kkm_last_doc_name [12:36:44]save OK [12:36:44]Clear old archive folders... [12:36:44]ProcessDocumentItem done err = 0, tmpTLVsize=414 [12:36:44]tlvbuf is B6E0A1A0 [12:36:44]SAM_PROTO_ClearQueue [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 09 00 00 [12:36:44]Write to MH i2c: E2 08 00 EC 1B 80 09 00 00 00 00 00 00 79 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 EC 1B 00 90 00 7B [12:36:44]RAPDU: 90 00 [12:36:44]wFMCommunicate OK [12:36:44]SAM_PROTO_ClearQueue done [12:36:44]KKMCreateOFDPacket [12:36:44]OFDProtocolAddRootSTLVToBuf [12:36:44]FM_MakeSignedData [12:36:44]FM_MakeSignedData [12:36:44]SAM_PROTO_SignData [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 0D 01 02 [12:36:44]Write to MH i2c: E2 08 00 ED 1B 80 0D 01 02 00 00 00 00 81 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 ED 1B 00 90 00 7C [12:36:44]RAPDU: 90 00 [12:36:44]wFMCommunicate OK [12:36:44]wFMCommunicate request_size=255 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 0D 02 02 FA 03 00 9E 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [12:36:44]Write to MH i2c: E2 02 01 EE 1B 80 0D 02 02 FA 00 03 00 9E 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 D4 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 EE 1B 00 90 00 7D [12:36:44]RAPDU: 90 00 [12:36:44]wFMCommunicate OK [12:36:44]wFMCommunicate request_size=173 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 0D 02 02 A8 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 5D 3C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3C C3 00 00 35 04 06 00 5B E6 C7 D0 94 77 [12:36:44]Write to MH i2c: E2 B0 00 EF 1B 80 0D 02 02 A8 00 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 5D 3C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3C C3 00 00 35 04 06 00 5B E6 C7 D0 94 77 00 00 1A [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]OFD Sender: No OFD packet to send [12:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 EF 1B 00 90 00 7E [12:36:44]RAPDU: 90 00 [12:36:44]wFMCommunicate OK [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 0D 03 02 [12:36:44]Write to MH i2c: E2 08 00 F0 1B 80 0D 03 02 00 00 00 00 86 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 0B 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 0B 00 F0 1B 00 66 FD 08 D2 EF D3 1C 79 90 00 1B [12:36:44]RAPDU: 66 FD 08 D2 EF D3 1C 79 90 00 [12:36:44]wFMCommunicate OK [12:36:44]SAM_PROTO_SignData done [12:36:44]FM_MakeSignedData done [12:36:44]CreateOFDProtocolMessage [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 11 00 00 [12:36:44]Write to MH i2c: E2 08 00 F1 1B 80 11 00 00 00 00 00 00 86 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 17 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 17 00 F1 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D1 [12:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:36:44]wFMCommunicate OK [12:36:44]CreateOFDProtocolMessage done [12:36:44]OFDSenderStorePacket 49980 [12:36:44]StoreOFDPacket docnum=49980 [12:36:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B2 01 00 00 CE 76 AA 01 35 75 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 5D 3C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3C C3 00 00 35 04 06 00 5B E6 C7 D0 94 77 66 FD 08 D2 EF D3 1C 79 [12:36:44]CheckFolder [12:36:44]dirname=/storage/ofd_packets [12:36:44]CheckFolder done [12:36:44]ProducePacketName [12:36:44]name=ofd_packets/00049980 [12:36:44]NVStorageSaveData ofd_packets/00049980 [12:36:45]File name is /storage/ofd_packets/00049980 [12:36:45]Write 464 bytes [12:36:45]NVStorageSaveData done [12:36:45]OFDSenderStorePacket done [12:36:45]KKMCreateOFDPacket done [12:36:45]NVStorageSaveData kkm_last_timestamp [12:36:45]File name is /storage/kkm_last_timestamp [12:36:45]Write 4 bytes [12:36:45]NVStorageSaveData done [12:36:45]ExternCall_PrintAddStr [12:36:45]wPrintStart [12:36:45]Write to MH i2c: 01 00 00 F2 1B 0D [12:36:45]Write i2c OK [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: 01 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: 01 07 00 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: 01 07 00 F2 1B 00 00 00 00 00 FF 0F 22 [12:36:45]RasterBufferAndPrint [12:36:45]line Счет N : (3)190122 [12:36:45]line ИНН: 02508201610067 [12:36:45]line Контрольно-Кассовый Чек [12:36:45]line ПРОДАЖА [12:36:45]line Товар: 4870001571535 [12:36:45]line Вода ASU пит н.газ персик ПЭТ 0,5л [12:36:45]line 1.000 * 65.00 [12:36:45]line = 65.00 [12:36:45]line НДС 12% НСП 1% [12:36:45]line > о реализуемом товаре [12:36:45]line Товар: 4603290004848 [12:36:45]line Печ.зат.TONDI Сэнд.шок-сл.вк [12:36:45]line 1.000 * 86.00 [12:36:45]line = 86.00 [12:36:45]line НДС 12% НСП 1% [12:36:45]line > о реализуемом товаре [12:36:45]line ИТОГО: 151.00 [12:36:45]line НСП 1% : 1.33 [12:36:45]line НДС 12% : 16.03 [12:36:45]line Наличными: 0.00 [12:36:45]line Безнал.: 151.00 [12:36:45]line Место: АЗС № 95 "Партнер Нефть" [12:36:45]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:36:45]line СНО: Общий режим [12:36:45]line Чек 87 19.08.2024 12:36 [12:36:45]line Смена: 467 ФФД: 1.0 [12:36:45]line ЗНМ: 0300000078 [12:36:45]line РНМ: 0000000000092546 [12:36:45]line Версия ККМ: 001 [12:36:45]line Платежная система: O! деньги [12:36:45]line ФМ: 0000000000871800 [12:36:45]line ФД: 49980 [12:36:45]line ФПД: 101046752941175 [12:36:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T123645&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49980&fm=101046752941175&tin=02508201610067®Number=0000000000092546&sum=15100 [12:36:45]line 0 [12:36:45]written 0, free lines is 4095 [12:36:45]OFD Sender: Processing packet 49980 [packets to send 21, broken 20] [12:36:45]ProducePacketName [12:36:45]name=ofd_packets/00049980 [12:36:45]OFD Sender: To server: pG, [12:36:45]CommunicateWithHost lk.salyk.kg:30040 [12:36:45]ConnectInit lk.salyk.kg [12:36:45]Write to MH i2c: 01 00 00 23 1C 3F [12:36:45]Write i2c OK [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: 01 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: 01 07 00 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: 01 07 00 23 1C 00 00 00 00 00 51 0C A3 [12:36:45]RasterBufferAndPrint [12:36:45]line [12:36:45]line [12:36:45]line [12:36:45]line [12:36:45]line [12:36:45]written 0, free lines is 3159 [12:36:45]MH_Cut [12:36:45]Write to MH i2c: D1 01 00 2A 1C 01 18 [12:36:45]Write i2c OK [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: D1 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: D1 01 00 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: D1 01 00 2A 1C 00 17 [12:36:45]Write to MH i2c: 01 00 00 2B 1C 47 [12:36:45]Write i2c OK [12:36:45]MH_I2C_Read... [12:36:45]Connected sock=11 [12:36:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B2 01 00 00 CE 76 AA 01 35 75 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 5D 3C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3C C3 00 00 35 04 06 00 5B E6 C7 D0 94 77 66 FD 08 D2 EF D3 1C 79 [12:36:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E8 35 47 00 69 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3C C3 00 00 F4 03 04 00 CB E6 C2 66 B6 04 01 00 00 9C A7 9A F7 04 87 E1 CB [12:36:45]CommunicateWithHost err = 0 [12:36:45]CheckOFDResponse [12:36:45]1017 (14) - 77093643461234 [12:36:45]1041 (16) - 0000000000871800 [12:36:45]1040 (4) - 49980 [12:36:45]1012 (4) - 19.08.2024 06:31 [12:36:45]1206 (1) - 0 [12:36:45]OFD Sender: Remove packet 49980 [12:36:45]ProducePacketName [12:36:45]name=ofd_packets/00049980 [12:36:45]NVStorageDeleteData [12:36:46]OFD Sender: No OFD packet to send [12:36:46]*** Cut start [12:36:46]*** Purtial cut [12:36:46]*** Stage 1: CUTSNS_PIN = 1 [12:36:46]Read from MH i2c: 01 [12:36:46]MH_I2C_Read... [12:36:46]*** Stop cut motor [12:36:46]*** Cut end [12:36:46]Read from MH i2c: 01 07 00 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: 01 07 00 2B 1C 00 00 00 00 00 FF 0F 5C [12:36:46]process_action close_receipt done [12:36:46]requested_data is exist [12:36:46]produce_requested_data [12:36:46]requested_item fm.sn is exist - process it [12:36:46]wFMCommunicate request_size=4 [12:36:46]MH_SAM_APDU [12:36:46]CAPDU: 80 11 00 00 [12:36:46]Write to MH i2c: E2 08 00 2C 1C 80 11 00 00 00 00 00 00 C2 [12:36:46]Write i2c OK [12:36:46]MH_I2C_Read... [12:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:46]Read from MH i2c: E2 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 17 00 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 17 00 2C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0D [12:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:36:46]wFMCommunicate OK [12:36:46]requested_item fd.num is exist - process it [12:36:46]SAM_PROTO_GetFieldsCounters [12:36:46]wFMCommunicate request_size=4 [12:36:46]MH_SAM_APDU [12:36:46]CAPDU: 80 13 00 00 [12:36:46]Write to MH i2c: E2 08 00 2D 1C 80 13 00 00 00 00 00 00 C5 [12:36:46]Write i2c OK [12:36:46]MH_I2C_Read... [12:36:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:46]Read from MH i2c: E2 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 62 00 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 62 00 2D 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3C C3 00 00 0E 04 04 00 D3 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 B7 [12:36:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3C C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:46]wFMCommunicate OK [12:36:46]SAM_PROTO_GetFieldsCounters done [12:36:46]requested_item shift.num is exist - process it [12:36:46]requested_item shift.opened is exist - process it [12:36:46]req_shift_opened [12:36:46]FM_GetShiftState [12:36:46]SAM_PROTO_GetShiftState [12:36:46]wFMCommunicate request_size=4 [12:36:46]MH_SAM_APDU [12:36:46]CAPDU: 80 13 01 00 [12:36:46]Write to MH i2c: E2 08 00 2E 1C 80 13 01 00 00 00 00 00 C7 [12:36:46]Write i2c OK [12:36:46]MH_I2C_Read... [12:36:47]Read from MH i2c: E2 [12:36:47]MH_I2C_Read... [12:36:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:47]Read from MH i2c: E2 0E 00 [12:36:47]MH_I2C_Read... [12:36:47]Read from MH i2c: E2 0E 00 2E 1C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 81 [12:36:47]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:36:47]wFMCommunicate OK [12:36:47]SAM_PROTO_GetShiftState done [12:36:47]FM_GetShiftState done [12:36:47]req_shift_opened done [12:36:47]requested_item shift.open_date is exist - process it [12:36:47]req_shift_open_date [12:36:47]req_shift_open_date done [12:36:47]produce_requested_data done [12:36:47]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49980,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [12:36:47]process_action_free close_receipt [12:36:47]json_value_free [12:36:47]json_value_free done [12:36:47]process_json_proto returns [12:36:47]Send response to host [12:36:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49980,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [12:36:47]free response buf [12:36:47]execute_script done [12:36:47]execute_script returns [12:36:47]free content buf [12:36:47]Sock 9.Close socket [12:36:47]Sock 9.Thread stoped [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:16]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:38:01]OFD Sender: No OFD packet to send [12:38:06]OFD Sender: No OFD packet to send [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:41]accept exits with 7 [12:43:41]New connection [12:43:41]New thread 3067354468 created [12:43:41]Thread 3067211108 joined [12:43:41]Waiting for new connection... [12:43:41] Sock 7.Parse request [12:43:41]Sock 7.Check first char [12:43:41]Sock 7.First char is OK [12:43:41]request: POST /json_proto HTTP/1.0 [12:43:41]Method: POST [12:43:41]URL: /json_proto [12:43:41]Method is POST - this is cgi request [12:43:41]url: /json_proto [12:43:41]query_string will be loaded in cgi processing [12:43:41]execute_cgi json_proto POST (null) [12:43:41]execute_cgi path=json_proto method=POST [12:43:41]POST find Content-Length [12:43:41]Host: 172.17.46.196:8080 [12:43:41]Content-Length: 1011 [12:43:41]Content-Type: application/json [12:43:41] [12:43:41]POST finish read [12:43:41]Found Content-Length = 1011 [12:43:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190123", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:41]execute_script... [12:43: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)190123", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:41]POST & json_proto [12:43:41]process_json_proto [12:43:41]json parsed OK: [12:43:41]protocol is kg_v1.0 [12:43:41]action value=close_receipt [12:43:41]process_action close_receipt [12:43:41]cmd_close_receipt [12:43:41]MH_GetDate [12:43:41]Write to MH i2c: F0 00 00 2F 1C 3A [12:43:41]Write i2c OK [12:43:41]MH_I2C_Read... [12:43:41]Read from MH i2c: F0 [12:43:41]MH_I2C_Read... [12:43:41]Read from MH i2c: F0 09 00 [12:43:41]MH_I2C_Read... [12:43:41]Read from MH i2c: F0 09 00 2F 1C 00 00 3E C3 66 C4 85 C2 66 1B [12:43:41]GetLastDocTimeStamp 1724071005 [12:43:41]current date 1724071424 [12:43:41]FM_GetShiftState [12:43:41]SAM_PROTO_GetShiftState [12:43:41]wFMCommunicate request_size=4 [12:43:41]MH_SAM_APDU [12:43:41]CAPDU: 80 13 01 00 [12:43:41]Write to MH i2c: E2 08 00 30 1C 80 13 01 00 00 00 00 00 C9 [12:43:41]Write i2c OK [12:43:41]MH_I2C_Read... [12:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:41]Read from MH i2c: E2 [12:43:41]MH_I2C_Read... [12:43:41]Read from MH i2c: E2 0E 00 [12:43:41]MH_I2C_Read... [12:43:41]Read from MH i2c: E2 0E 00 30 1C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 83 [12:43:41]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:43:41]wFMCommunicate OK [12:43:41]SAM_PROTO_GetShiftState done [12:43:41]FM_GetShiftState done [12:43:41]opened in 1724026361 [12:43:41]opened+sec_in_day 1724112761 [12:43:41]quantity*price = 6500 [12:43:41]sum+1 = 6501 [12:43:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003956 Шок батончик ALBENI SUPER Альбени Супер 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.23 НДС 12% : 14.86 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 88 19.08.2024 12:43 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49981 ФПД: 114110839170456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T124344&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49981&fm=114110839170456&tin=02508201610067®Number=0000000000092546&sum=14000 0 [12:43:43]StoreToDocumentArchive [12:43:43]shift 467 fd 49981 [12:43:43]save to /storage/0467/doc_00049981 [12:43:43]save last doc name /storage/0467/doc_00049981 to /storage/kkm_last_doc_name [12:43:43]save OK [12:43:43]Clear old archive folders... [12:43:43]ProcessDocumentItem done err = 0, tmpTLVsize=429 [12:43:43]tlvbuf is B6F0AA10 [12:43:43]SAM_PROTO_ClearQueue [12:43:43]wFMCommunicate request_size=4 [12:43:43]MH_SAM_APDU [12:43:43]CAPDU: 80 09 00 00 [12:43:43]Write to MH i2c: E2 08 00 3D 1C 80 09 00 00 00 00 00 00 CB [12:43:43]Write i2c OK [12:43:43]MH_I2C_Read... [12:43:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:43]Read from MH i2c: E2 [12:43:43]MH_I2C_Read... [12:43:43]Read from MH i2c: E2 03 00 [12:43:43]MH_I2C_Read... [12:43:43]Read from MH i2c: E2 03 00 3D 1C 00 90 00 CD [12:43:43]RAPDU: 90 00 [12:43:43]wFMCommunicate OK [12:43:43]SAM_PROTO_ClearQueue done [12:43:43]KKMCreateOFDPacket [12:43:43]OFDProtocolAddRootSTLVToBuf [12:43:43]FM_MakeSignedData [12:43:43]FM_MakeSignedData [12:43:43]SAM_PROTO_SignData [12:43:43]wFMCommunicate request_size=4 [12:43:43]MH_SAM_APDU [12:43:43]CAPDU: 80 0D 01 02 [12:43:43]Write to MH i2c: E2 08 00 3E 1C 80 0D 01 02 00 00 00 00 D3 [12:43:43]Write i2c OK [12:43:43]MH_I2C_Read... [12:43:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:43]Read from MH i2c: E2 [12:43:43]MH_I2C_Read... [12:43:43]Read from MH i2c: E2 03 00 [12:43:43]MH_I2C_Read... [12:43:43]Read from MH i2c: E2 03 00 3E 1C 00 90 00 CE [12:43:43]RAPDU: 90 00 [12:43:43]wFMCommunicate OK [12:43:43]wFMCommunicate request_size=255 [12:43:43]MH_SAM_APDU [12:43:43]CAPDU: 80 0D 02 02 FA 03 00 AD 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 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 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 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 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 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 [12:43:43]Write to MH i2c: E2 02 01 3F 1C 80 0D 02 02 FA 00 03 00 AD 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 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 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 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 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 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 38 [12:43:43]Write i2c OK [12:43:43]MH_I2C_Read... [12:43:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:43]Read from MH i2c: E2 [12:43:43]MH_I2C_Read... [12:43:43]Read from MH i2c: E2 03 00 [12:43:43]MH_I2C_Read... [12:43:43]Read from MH i2c: E2 03 00 3F 1C 00 90 00 CF [12:43:43]RAPDU: 90 00 [12:43:43]wFMCommunicate OK [12:43:43]wFMCommunicate request_size=188 [12:43:43]MH_SAM_APDU [12:43:43]CAPDU: 80 0D 02 02 B7 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 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 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 58 00 00 00 F4 03 04 00 00 3E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3D C3 00 00 35 04 06 00 67 C8 80 08 A5 98 [12:43:43]Write to MH i2c: E2 BF 00 40 1C 80 0D 02 02 B7 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 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 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 58 00 00 00 F4 03 04 00 00 3E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3D C3 00 00 35 04 06 00 67 C8 80 08 A5 98 00 00 D4 [12:43:43]Write i2c OK [12:43:43]MH_I2C_Read... [12:43:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:43]Read from MH i2c: E2 [12:43:43]MH_I2C_Read... [12:43:43]Read from MH i2c: E2 03 00 [12:43:43]MH_I2C_Read... [12:43:43]Read from MH i2c: E2 03 00 40 1C 00 90 00 D0 [12:43:43]RAPDU: 90 00 [12:43:43]wFMCommunicate OK [12:43:43]wFMCommunicate request_size=4 [12:43:43]MH_SAM_APDU [12:43:43]CAPDU: 80 0D 03 02 [12:43:43]Write to MH i2c: E2 08 00 41 1C 80 0D 03 02 00 00 00 00 D8 [12:43:43]Write i2c OK [12:43:43]MH_I2C_Read... [12:43:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:43]Read from MH i2c: E2 [12:43:43]MH_I2C_Read... [12:43:43]Read from MH i2c: E2 0B 00 [12:43:43]MH_I2C_Read... [12:43:43]Read from MH i2c: E2 0B 00 41 1C 00 AA 2F 36 EC 7C 39 6F 0F 90 00 07 [12:43:43]RAPDU: AA 2F 36 EC 7C 39 6F 0F 90 00 [12:43:43]wFMCommunicate OK [12:43:43]SAM_PROTO_SignData done [12:43:43]FM_MakeSignedData done [12:43:43]CreateOFDProtocolMessage [12:43:43]wFMCommunicate request_size=4 [12:43:43]MH_SAM_APDU [12:43:43]CAPDU: 80 11 00 00 [12:43:43]Write to MH i2c: E2 08 00 42 1C 80 11 00 00 00 00 00 00 D8 [12:43:43]Write i2c OK [12:43:43]MH_I2C_Read... [12:43:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:43]Read from MH i2c: E2 [12:43:43]MH_I2C_Read... [12:43:43]Read from MH i2c: E2 17 00 [12:43:43]MH_I2C_Read... [12:43:43]Read from MH i2c: E2 17 00 42 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 23 [12:43:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:43:43]wFMCommunicate OK [12:43:43]CreateOFDProtocolMessage done [12:43:43]OFDSenderStorePacket 49981 [12:43:43]StoreOFDPacket docnum=49981 [12:43:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 C1 01 00 00 F1 59 B9 01 FB 17 5A 03 01 00 03 00 AD 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 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 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 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 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 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 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 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 58 00 00 00 F4 03 04 00 00 3E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3D C3 00 00 35 04 06 00 67 C8 80 08 A5 98 AA 2F 36 EC 7C 39 6F 0F [12:43:43]CheckFolder [12:43:43]dirname=/storage/ofd_packets [12:43:43]CheckFolder done [12:43:43]ProducePacketName [12:43:43]name=ofd_packets/00049981 [12:43:43]NVStorageSaveData ofd_packets/00049981 [12:43:43]File name is /storage/ofd_packets/00049981 [12:43:43]Write 479 bytes [12:43:43]NVStorageSaveData done [12:43:43]OFDSenderStorePacket done [12:43:43]KKMCreateOFDPacket done [12:43:43]NVStorageSaveData kkm_last_timestamp [12:43:43]File name is /storage/kkm_last_timestamp [12:43:43]Write 4 bytes [12:43:43]NVStorageSaveData done [12:43:43]ExternCall_PrintAddStr [12:43:43]wPrintStart [12:43:43]Write to MH i2c: 01 00 00 43 1C 5F [12:43:44]Write i2c OK [12:43:44]MH_I2C_Read... [12:43:44]OFD Sender: Processing packet 49981 [packets to send 21, broken 20] [12:43:44]ProducePacketName [12:43:44]name=ofd_packets/00049981 [12:43:44]OFD Sender: To server: pG, [12:43:44]CommunicateWithHost lk.salyk.kg:30040 [12:43:44]ConnectInit lk.salyk.kg [12:43:44]Read from MH i2c: 01 [12:43:44]MH_I2C_Read... [12:43:44]Read from MH i2c: 01 07 00 [12:43:44]MH_I2C_Read... [12:43:44]Read from MH i2c: 01 07 00 43 1C 00 00 00 00 00 FF 0F 74 [12:43:44]RasterBufferAndPrint [12:43:44]line Счет N : (3)190123 [12:43:44]line ИНН: 02508201610067 [12:43:44]line Контрольно-Кассовый Чек [12:43:44]line ПРОДАЖА [12:43:44]line Товар: 5449000027450 [12:43:44]line Напиток FuzeTea чай манго,ром 0,5л [12:43:44]line 1.000 * 65.00 [12:43:44]line = 65.00 [12:43:44]line НДС 12% НСП 1% [12:43:44]line > о реализуемом товаре [12:43:44]line Товар: 4870112003956 [12:43:44]line Шок батончик ALBENI SUPER Альбени Супер [12:43:44]line 1.000 * 75.00 [12:43:44]line = 75.00 [12:43:44]line НДС 12% НСП 1% [12:43:44]line > о реализуемом товаре [12:43:44]line ИТОГО: 140.00 [12:43:44]line НСП 1% : 1.23 [12:43:44]line НДС 12% : 14.86 [12:43:44]line Наличными: 140.00 [12:43:44]line Безнал.: 0.00 [12:43:44]line Место: АЗС № 95 "Партнер Нефть" [12:43:44]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:43:44]line СНО: Общий режим [12:43:44]line Чек 88 19.08.2024 12:43 [12:43:44]line Смена: 467 ФФД: 1.0 [12:43:44]line ЗНМ: 0300000078 [12:43:44]line РНМ: 0000000000092546 [12:43:44]line Версия ККМ: 001 [12:43:44]line ФМ: 0000000000871800 [12:43:44]line ФД: 49981 [12:43:44]line ФПД: 114110839170456 [12:43:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T124344&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49981&fm=114110839170456&tin=02508201610067®Number=0000000000092546&sum=14000 [12:43:44]line 0 [12:43:44]written 0, free lines is 4095 [12:43:44]Connected sock=10 [12:43:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 C1 01 00 00 F1 59 B9 01 FB 17 5A 03 01 00 03 00 AD 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 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 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 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 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 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 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 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 58 00 00 00 F4 03 04 00 00 3E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3D C3 00 00 35 04 06 00 67 C8 80 08 A5 98 AA 2F 36 EC 7C 39 6F 0F [12:43:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 6E 19 47 00 3E E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3D C3 00 00 F4 03 04 00 6E E8 C2 66 B6 04 01 00 00 DD 9F 56 F3 8E 67 8C B3 [12:43:44]CommunicateWithHost err = 0 [12:43:44]CheckOFDResponse [12:43:44]1017 (14) - 77093643461234 [12:43:44]1041 (16) - 0000000000871800 [12:43:44]1040 (4) - 49981 [12:43:44]1012 (4) - 19.08.2024 06:38 [12:43:44]1206 (1) - 0 [12:43:44]OFD Sender: Remove packet 49981 [12:43:44]ProducePacketName [12:43:44]name=ofd_packets/00049981 [12:43:44]NVStorageDeleteData [12:43:44]Write to MH i2c: 01 00 00 73 1C 8F [12:43:44]Write i2c OK [12:43:44]MH_I2C_Read... [12:43:44]Read from MH i2c: 01 [12:43:44]MH_I2C_Read... [12:43:44]Read from MH i2c: 01 07 00 [12:43:44]MH_I2C_Read... [12:43:44]Read from MH i2c: 01 07 00 73 1C 00 00 00 00 00 6F 0C 11 [12:43:44]RasterBufferAndPrint [12:43:44]line [12:43:44]line [12:43:44]line [12:43:44]line [12:43:44]line [12:43:44]written 0, free lines is 3192 [12:43:44]MH_Cut [12:43:44]Write to MH i2c: D1 01 00 7A 1C 01 68 [12:43:44]Write i2c OK [12:43:44]MH_I2C_Read... [12:43:44]Read from MH i2c: D1 [12:43:44]MH_I2C_Read... [12:43:44]Read from MH i2c: D1 01 00 [12:43:44]MH_I2C_Read... [12:43:44]Read from MH i2c: D1 01 00 7A 1C 00 67 [12:43:44]Write to MH i2c: 01 00 00 7B 1C 97 [12:43:44]Write i2c OK [12:43:44]MH_I2C_Read... [12:43:45]OFD Sender: No OFD packet to send [12:43:45]*** Cut start [12:43:45]*** Purtial cut [12:43:45]*** CUTSNS_PIN = 0 [12:43:45]*** Stage 1: CUTSNS_PIN = 1 [12:43:47]Read from MH i2c: 01 [12:43:47]MH_I2C_Read... [12:43:47]*** Stop cut motor [12:43:47]*** Cut end [12:43:47]Read from MH i2c: 01 07 00 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: 01 07 00 7B 1C 00 00 00 00 00 FF 0F AC [12:43:47]process_action close_receipt done [12:43:47]requested_data is exist [12:43:47]produce_requested_data [12:43:47]requested_item fm.sn is exist - process it [12:43:47]wFMCommunicate request_size=4 [12:43:47]MH_SAM_APDU [12:43:47]CAPDU: 80 11 00 00 [12:43:47]Write to MH i2c: E2 08 00 7C 1C 80 11 00 00 00 00 00 00 12 [12:43:47]Write i2c OK [12:43:47]MH_I2C_Read... [12:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:47]Read from MH i2c: E2 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 17 00 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 17 00 7C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5D [12:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:43:47]wFMCommunicate OK [12:43:47]requested_item fd.num is exist - process it [12:43:47]SAM_PROTO_GetFieldsCounters [12:43:47]wFMCommunicate request_size=4 [12:43:47]MH_SAM_APDU [12:43:47]CAPDU: 80 13 00 00 [12:43:47]Write to MH i2c: E2 08 00 7D 1C 80 13 00 00 00 00 00 00 15 [12:43:47]Write i2c OK [12:43:47]MH_I2C_Read... [12:43:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:47]Read from MH i2c: E2 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 62 00 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 62 00 7D 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3D C3 00 00 0E 04 04 00 D3 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 0B [12:43:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3D C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:43:47]wFMCommunicate OK [12:43:47]SAM_PROTO_GetFieldsCounters done [12:43:47]requested_item shift.num is exist - process it [12:43:47]requested_item shift.opened is exist - process it [12:43:47]req_shift_opened [12:43:47]FM_GetShiftState [12:43:47]SAM_PROTO_GetShiftState [12:43:47]wFMCommunicate request_size=4 [12:43:47]MH_SAM_APDU [12:43:47]CAPDU: 80 13 01 00 [12:43:47]Write to MH i2c: E2 08 00 7E 1C 80 13 01 00 00 00 00 00 17 [12:43:47]Write i2c OK [12:43:47]MH_I2C_Read... [12:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:47]Read from MH i2c: E2 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 0E 00 [12:43:47]MH_I2C_Read... [12:43:47]Read from MH i2c: E2 0E 00 7E 1C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 D1 [12:43:47]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:43:47]wFMCommunicate OK [12:43:47]SAM_PROTO_GetShiftState done [12:43:47]FM_GetShiftState done [12:43:47]req_shift_opened done [12:43:47]requested_item shift.open_date is exist - process it [12:43:47]req_shift_open_date [12:43:47]req_shift_open_date done [12:43:47]produce_requested_data done [12:43:47]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49981,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [12:43:47]process_action_free close_receipt [12:43:47]json_value_free [12:43:47]json_value_free done [12:43:47]process_json_proto returns [12:43:47]Send response to host [12:43:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49981,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [12:43:47]free response buf [12:43:47]execute_script done [12:43:47]execute_script returns [12:43:47]free content buf [12:43:47]Sock 7.Close socket [12:43:47]Sock 7.Thread stoped [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:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:08]accept exits with 9 [12:47:08]New connection [12:47:08]New thread 3067211108 created [12:47:08]Thread 3067354468 joined [12:47:08]Waiting for new connection... [12:47:08] Sock 9.Parse request [12:47:08]Sock 9.Check first char [12:47:08]Sock 9.First char is OK [12:47:08]request: POST /json_proto HTTP/1.0 [12:47:08]Method: POST [12:47:08]URL: /json_proto [12:47:08]Method is POST - this is cgi request [12:47:08]url: /json_proto [12:47:08]query_string will be loaded in cgi processing [12:47:08]execute_cgi json_proto POST (null) [12:47:08]execute_cgi path=json_proto method=POST [12:47:08]POST find Content-Length [12:47:08]Host: 172.17.46.196:8080 [12:47:08]Content-Length: 756 [12:47:08]Content-Type: application/json [12:47:08] [12:47:08]POST finish read [12:47:08]Found Content-Length = 756 [12:47:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30010955", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:08]execute_script... [12:47:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30010955", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:08]POST & json_proto [12:47:08]process_json_proto [12:47:08]json parsed OK: [12:47:08]protocol is kg_v1.0 [12:47:08]action value=close_receipt [12:47:08]process_action close_receipt [12:47:08]cmd_close_receipt [12:47:08]MH_GetDate [12:47:08]Write to MH i2c: F0 00 00 7F 1C 8A [12:47:08]Write i2c OK [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: F0 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: F0 09 00 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: F0 09 00 7F 1C 00 CF 3E C3 66 C4 85 C2 66 3A [12:47:08]GetLastDocTimeStamp 1724071424 [12:47:08]current date 1724071631 [12:47:08]FM_GetShiftState [12:47:08]SAM_PROTO_GetShiftState [12:47:08]wFMCommunicate request_size=4 [12:47:08]MH_SAM_APDU [12:47:08]CAPDU: 80 13 01 00 [12:47:08]Write to MH i2c: E2 08 00 80 1C 80 13 01 00 00 00 00 00 19 [12:47:08]Write i2c OK [12:47:08]MH_I2C_Read... [12:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:08]Read from MH i2c: E2 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 0E 00 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 0E 00 80 1C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 D3 [12:47:08]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:47:08]wFMCommunicate OK [12:47:08]SAM_PROTO_GetShiftState done [12:47:08]FM_GetShiftState done [12:47:08]opened in 1724026361 [12:47:08]opened+sec_in_day 1724112761 [12:47:08]quantity*price = 0 [12:47:08]sum+1 = 1 [12:47:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 89 19.08.2024 12:47 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30010955 ФМ: 0000000000871800 ФД: 49982 ФПД: 49412802687656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T124711&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49982&fm=49412802687656&tin=02508201610067®Number=0000000000092546&sum=0 [12:47:10]StoreToDocumentArchive [12:47:10]shift 467 fd 49982 [12:47:10]save to /storage/0467/doc_00049982 [12:47:10]save last doc name /storage/0467/doc_00049982 to /storage/kkm_last_doc_name [12:47:10]save OK [12:47:10]Clear old archive folders... [12:47:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:10]tlvbuf is 01071A00 [12:47:10]SAM_PROTO_ClearQueue [12:47:10]wFMCommunicate request_size=4 [12:47:10]MH_SAM_APDU [12:47:10]CAPDU: 80 09 00 00 [12:47:10]Write to MH i2c: E2 08 00 8D 1C 80 09 00 00 00 00 00 00 1B [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:10]Read from MH i2c: E2 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 8D 1C 00 90 00 1D [12:47:10]RAPDU: 90 00 [12:47:10]wFMCommunicate OK [12:47:10]SAM_PROTO_ClearQueue done [12:47:10]KKMCreateOFDPacket [12:47:10]OFDProtocolAddRootSTLVToBuf [12:47:10]FM_MakeSignedData [12:47:10]FM_MakeSignedData [12:47:10]SAM_PROTO_SignData [12:47:10]wFMCommunicate request_size=4 [12:47:10]MH_SAM_APDU [12:47:10]CAPDU: 80 0D 01 02 [12:47:10]Write to MH i2c: E2 08 00 8E 1C 80 0D 01 02 00 00 00 00 23 [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:10]Read from MH i2c: E2 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 8E 1C 00 90 00 1E [12:47:10]RAPDU: 90 00 [12:47:10]wFMCommunicate OK [12:47:10]wFMCommunicate request_size=255 [12:47:10]MH_SAM_APDU [12:47:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 CF 3E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3E C3 00 00 35 04 06 00 2C [12:47:10]Write to MH i2c: E2 02 01 8F 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 CF 3E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3E C3 00 00 35 04 06 00 2C 00 00 28 [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]OFD Sender: No OFD packet to send [12:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:10]Read from MH i2c: E2 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 8F 1C 00 90 00 1F [12:47:10]RAPDU: 90 00 [12:47:10]wFMCommunicate OK [12:47:10]wFMCommunicate request_size=10 [12:47:10]MH_SAM_APDU [12:47:10]CAPDU: 80 0D 02 02 05 F0 D0 8D 32 A8 [12:47:10]Write to MH i2c: E2 0D 00 90 1C 80 0D 02 02 05 00 F0 D0 8D 32 A8 00 00 57 [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:10]Read from MH i2c: E2 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 03 00 90 1C 00 90 00 20 [12:47:10]RAPDU: 90 00 [12:47:10]wFMCommunicate OK [12:47:10]wFMCommunicate request_size=4 [12:47:10]MH_SAM_APDU [12:47:10]CAPDU: 80 0D 03 02 [12:47:10]Write to MH i2c: E2 08 00 91 1C 80 0D 03 02 00 00 00 00 28 [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:10]Read from MH i2c: E2 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 0B 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 0B 00 91 1C 00 78 CB 72 0A 6D CA 9C 62 90 00 1D [12:47:10]RAPDU: 78 CB 72 0A 6D CA 9C 62 90 00 [12:47:10]wFMCommunicate OK [12:47:10]SAM_PROTO_SignData done [12:47:10]FM_MakeSignedData done [12:47:10]CreateOFDProtocolMessage [12:47:10]wFMCommunicate request_size=4 [12:47:10]MH_SAM_APDU [12:47:10]CAPDU: 80 11 00 00 [12:47:10]Write to MH i2c: E2 08 00 92 1C 80 11 00 00 00 00 00 00 28 [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:10]Read from MH i2c: E2 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 17 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: E2 17 00 92 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 73 [12:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:47:10]wFMCommunicate OK [12:47:10]CreateOFDProtocolMessage done [12:47:10]OFDSenderStorePacket 49982 [12:47:10]StoreOFDPacket docnum=49982 [12:47:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 11 F9 07 01 E2 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 CF 3E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3E C3 00 00 35 04 06 00 2C F0 D0 8D 32 A8 78 CB 72 0A 6D CA 9C 62 [12:47:10]CheckFolder [12:47:10]dirname=/storage/ofd_packets [12:47:10]CheckFolder done [12:47:10]ProducePacketName [12:47:10]name=ofd_packets/00049982 [12:47:10]NVStorageSaveData ofd_packets/00049982 [12:47:10]File name is /storage/ofd_packets/00049982 [12:47:10]Write 301 bytes [12:47:10]NVStorageSaveData done [12:47:10]OFDSenderStorePacket done [12:47:10]KKMCreateOFDPacket done [12:47:10]NVStorageSaveData kkm_last_timestamp [12:47:10]File name is /storage/kkm_last_timestamp [12:47:10]Write 4 bytes [12:47:10]NVStorageSaveData done [12:47:10]ExternCall_PrintAddStr [12:47:10]wPrintStart [12:47:10]Write to MH i2c: 01 00 00 93 1C AF [12:47:10]Write i2c OK [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: 01 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: 01 07 00 [12:47:10]MH_I2C_Read... [12:47:10]Read from MH i2c: 01 07 00 93 1C 00 00 00 00 00 FF 0F C4 [12:47:10]RasterBufferAndPrint [12:47:10]line Счет N : (1)11327783 [12:47:10]line ИНН: 02508201610067 [12:47:10]line Контрольно-Кассовый Чек [12:47:10]line ПРОДАЖА [12:47:10]line ТРК (МРК, ГНК) : 21 [12:47:10]line Товар: 2710124500 [12:47:10]line Аи-95-К-5 [12:47:10]line 20.000 * 0.00 [12:47:10]line = 0.00 [12:47:10]line НДС 12% НСП 1% [12:47:10]line > о реализуемом товаре [12:47:10]line ИТОГО: 0.00 [12:47:10]line НСП 1% : 0.00 [12:47:10]line НДС 12% : 0.00 [12:47:10]line Наличными: 0.00 [12:47:10]line Безнал.: 0.00 [12:47:10]line Место: АЗС № 95 "Партнер Нефть" [12:47:10]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:47:10]line СНО: Общий режим [12:47:10]line Чек 89 19.08.2024 12:47 [12:47:10]line Смена: 467 ФФД: 1.0 [12:47:10]line ЗНМ: 0300000078 [12:47:10]line РНМ: 0000000000092546 [12:47:10]line Версия ККМ: 001 [12:47:10]line Талоны: ТК ГПНА Online [12:47:10]line 30010955 [12:47:10]line ФМ: 0000000000871800 [12:47:10]line ФД: 49982 [12:47:10]line ФПД: 49412802687656 [12:47:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T124711&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49982&fm=49412802687656&tin=02508201610067®Number=0000000000092546&sum=0 [12:47:10]written 0, free lines is 4095 [12:47:10]OFD Sender: Processing packet 49982 [packets to send 21, broken 20] [12:47:10]ProducePacketName [12:47:10]name=ofd_packets/00049982 [12:47:10]OFD Sender: To server: pG, [12:47:10]CommunicateWithHost lk.salyk.kg:30040 [12:47:10]ConnectInit lk.salyk.kg [12:47:11]Write to MH i2c: 01 00 00 BD 1C D9 [12:47:11]Write i2c OK [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: 01 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: 01 07 00 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: 01 07 00 BD 1C 00 00 00 00 00 D3 0C BF [12:47:11]RasterBufferAndPrint [12:47:11]line [12:47:11]line [12:47:11]line [12:47:11]line [12:47:11]line [12:47:11]written 0, free lines is 3288 [12:47:11]MH_Cut [12:47:11]Write to MH i2c: D1 01 00 C4 1C 01 B2 [12:47:11]Write i2c OK [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: D1 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: D1 01 00 [12:47:11]MH_I2C_Read... [12:47:11]Read from MH i2c: D1 01 00 C4 1C 00 B1 [12:47:11]Write to MH i2c: 01 00 00 C5 1C E1 [12:47:11]Write i2c OK [12:47:11]MH_I2C_Read... [12:47:11]Connected sock=10 [12:47:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 11 F9 07 01 E2 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 CF 3E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3E C3 00 00 35 04 06 00 2C F0 D0 8D 32 A8 78 CB 72 0A 6D CA 9C 62 [12:47:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 42 6F 47 00 12 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3E C3 00 00 F4 03 04 00 3D E9 C2 66 B6 04 01 00 00 C7 AF 00 9F 3D 9F 2A 68 [12:47:11]CommunicateWithHost err = 0 [12:47:11]CheckOFDResponse [12:47:11]1017 (14) - 77093643461234 [12:47:11]1041 (16) - 0000000000871800 [12:47:11]1040 (4) - 49982 [12:47:11]1012 (4) - 19.08.2024 06:42 [12:47:11]1206 (1) - 0 [12:47:11]OFD Sender: Remove packet 49982 [12:47:11]ProducePacketName [12:47:11]name=ofd_packets/00049982 [12:47:11]NVStorageDeleteData [12:47:12]*** Cut start [12:47:12]*** Purtial cut [12:47:12]*** Stage 1: CUTSNS_PIN = 1 [12:47:12]OFD Sender: No OFD packet to send [12:47:12]Read from MH i2c: 01 [12:47:12]MH_I2C_Read... [12:47:12]*** Stop cut motor [12:47:12]*** Cut end [12:47:12]Read from MH i2c: 01 07 00 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: 01 07 00 C5 1C 00 00 00 00 00 FF 0F F6 [12:47:12]process_action close_receipt done [12:47:12]requested_data is exist [12:47:12]produce_requested_data [12:47:12]requested_item fm.sn is exist - process it [12:47:12]wFMCommunicate request_size=4 [12:47:12]MH_SAM_APDU [12:47:12]CAPDU: 80 11 00 00 [12:47:12]Write to MH i2c: E2 08 00 C6 1C 80 11 00 00 00 00 00 00 5C [12:47:12]Write i2c OK [12:47:12]MH_I2C_Read... [12:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:12]Read from MH i2c: E2 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 17 00 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 17 00 C6 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A7 [12:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:47:12]wFMCommunicate OK [12:47:12]requested_item fd.num is exist - process it [12:47:12]SAM_PROTO_GetFieldsCounters [12:47:12]wFMCommunicate request_size=4 [12:47:12]MH_SAM_APDU [12:47:12]CAPDU: 80 13 00 00 [12:47:12]Write to MH i2c: E2 08 00 C7 1C 80 13 00 00 00 00 00 00 5F [12:47:12]Write i2c OK [12:47:12]MH_I2C_Read... [12:47:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:12]Read from MH i2c: E2 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 62 00 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 62 00 C7 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3E C3 00 00 0E 04 04 00 D3 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 59 [12:47:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3E C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:12]wFMCommunicate OK [12:47:12]SAM_PROTO_GetFieldsCounters done [12:47:12]requested_item shift.num is exist - process it [12:47:12]requested_item shift.opened is exist - process it [12:47:12]req_shift_opened [12:47:12]FM_GetShiftState [12:47:12]SAM_PROTO_GetShiftState [12:47:12]wFMCommunicate request_size=4 [12:47:12]MH_SAM_APDU [12:47:12]CAPDU: 80 13 01 00 [12:47:12]Write to MH i2c: E2 08 00 C8 1C 80 13 01 00 00 00 00 00 61 [12:47:12]Write i2c OK [12:47:12]MH_I2C_Read... [12:47:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:12]Read from MH i2c: E2 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 0E 00 [12:47:12]MH_I2C_Read... [12:47:12]Read from MH i2c: E2 0E 00 C8 1C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 1B [12:47:12]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:47:12]wFMCommunicate OK [12:47:12]SAM_PROTO_GetShiftState done [12:47:12]FM_GetShiftState done [12:47:12]req_shift_opened done [12:47:12]requested_item shift.open_date is exist - process it [12:47:12]req_shift_open_date [12:47:12]req_shift_open_date done [12:47:12]produce_requested_data done [12:47:12]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49982,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [12:47:12]process_action_free close_receipt [12:47:12]json_value_free [12:47:12]json_value_free done [12:47:12]process_json_proto returns [12:47:12]Send response to host [12:47:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49982,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [12:47:12]free response buf [12:47:12]execute_script done [12:47:12]execute_script returns [12:47:12]free content buf [12:47:12]Sock 9.Close socket [12:47:12]Sock 9.Thread stoped [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:00]accept exits with 7 [12:58:00]New connection [12:58:00]New thread 3067354468 created [12:58:00]Thread 3067211108 joined [12:58:00]Waiting for new connection... [12:58:00] Sock 7.Parse request [12:58:00]Sock 7.Check first char [12:58:00]Sock 7.First char is OK [12:58:00]request: POST /json_proto HTTP/1.0 [12:58:00]Method: POST [12:58:00]URL: /json_proto [12:58:00]Method is POST - this is cgi request [12:58:00]url: /json_proto [12:58:00]query_string will be loaded in cgi processing [12:58:00]execute_cgi json_proto POST (null) [12:58:00]execute_cgi path=json_proto method=POST [12:58:00]POST find Content-Length [12:58:00]Host: 172.17.46.196:8080 [12:58:00]Content-Length: 756 [12:58:00]Content-Type: application/json [12:58:00] [12:58:00]POST finish read [12:58:00]Found Content-Length = 756 [12:58:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30147419", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:00]execute_script... [12:58:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30147419", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:00]POST & json_proto [12:58:00]process_json_proto [12:58:00]json parsed OK: [12:58:00]protocol is kg_v1.0 [12:58:00]action value=close_receipt [12:58:00]process_action close_receipt [12:58:00]cmd_close_receipt [12:58:00]MH_GetDate [12:58:00]Write to MH i2c: F0 00 00 C9 1C D4 [12:58:00]Write i2c OK [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: F0 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: F0 09 00 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: F0 09 00 C9 1C 00 5B 41 C3 66 C4 85 C2 66 13 [12:58:00]GetLastDocTimeStamp 1724071631 [12:58:00]current date 1724072283 [12:58:00]FM_GetShiftState [12:58:00]SAM_PROTO_GetShiftState [12:58:00]wFMCommunicate request_size=4 [12:58:00]MH_SAM_APDU [12:58:00]CAPDU: 80 13 01 00 [12:58:00]Write to MH i2c: E2 08 00 CA 1C 80 13 01 00 00 00 00 00 63 [12:58:00]Write i2c OK [12:58:00]MH_I2C_Read... [12:58:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:00]Read from MH i2c: E2 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: E2 0E 00 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: E2 0E 00 CA 1C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 1D [12:58:00]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:58:00]wFMCommunicate OK [12:58:00]SAM_PROTO_GetShiftState done [12:58:00]FM_GetShiftState done [12:58:00]opened in 1724026361 [12:58:00]opened+sec_in_day 1724112761 [12:58:00]quantity*price = 0 [12:58:00]sum+1 = 1 [12:58:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 90 19.08.2024 12:58 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30147419 ФМ: 0000000000871800 ФД: 49983 ФПД: 37642330134499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T125803&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49983&fm=37642330134499&tin=02508201610067®Number=0000000000092546&sum=0 [12:58:01]StoreToDocumentArchive [12:58:01]shift 467 fd 49983 [12:58:01]save to /storage/0467/doc_00049983 [12:58:01]save last doc name /storage/0467/doc_00049983 to /storage/kkm_last_doc_name [12:58:01]save OK [12:58:01]Clear old archive folders... [12:58:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:01]tlvbuf is 01061870 [12:58:01]SAM_PROTO_ClearQueue [12:58:01]wFMCommunicate request_size=4 [12:58:01]MH_SAM_APDU [12:58:01]CAPDU: 80 09 00 00 [12:58:01]Write to MH i2c: E2 08 00 D7 1C 80 09 00 00 00 00 00 00 65 [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:01]Read from MH i2c: E2 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 03 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 03 00 D7 1C 00 90 00 67 [12:58:01]RAPDU: 90 00 [12:58:01]wFMCommunicate OK [12:58:01]SAM_PROTO_ClearQueue done [12:58:01]KKMCreateOFDPacket [12:58:01]OFDProtocolAddRootSTLVToBuf [12:58:01]FM_MakeSignedData [12:58:01]FM_MakeSignedData [12:58:01]SAM_PROTO_SignData [12:58:01]wFMCommunicate request_size=4 [12:58:01]MH_SAM_APDU [12:58:01]CAPDU: 80 0D 01 02 [12:58:01]Write to MH i2c: E2 08 00 D8 1C 80 0D 01 02 00 00 00 00 6D [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:01]Read from MH i2c: E2 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 03 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 03 00 D8 1C 00 90 00 68 [12:58:01]RAPDU: 90 00 [12:58:01]wFMCommunicate OK [12:58:01]wFMCommunicate request_size=255 [12:58:01]MH_SAM_APDU [12:58:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5B 41 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3F C3 00 00 35 04 06 00 22 [12:58:01]Write to MH i2c: E2 02 01 D9 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5B 41 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3F C3 00 00 35 04 06 00 22 00 00 F9 [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:01]Read from MH i2c: E2 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 03 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 03 00 D9 1C 00 90 00 69 [12:58:01]RAPDU: 90 00 [12:58:01]wFMCommunicate OK [12:58:01]wFMCommunicate request_size=10 [12:58:01]MH_SAM_APDU [12:58:01]CAPDU: 80 0D 02 02 05 3C 49 B7 57 E3 [12:58:01]Write to MH i2c: E2 0D 00 DA 1C 80 0D 02 02 05 00 3C 49 B7 57 E3 00 00 F0 [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:02]Read from MH i2c: E2 [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: E2 03 00 [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: E2 03 00 DA 1C 00 90 00 6A [12:58:02]RAPDU: 90 00 [12:58:02]wFMCommunicate OK [12:58:02]wFMCommunicate request_size=4 [12:58:02]MH_SAM_APDU [12:58:02]CAPDU: 80 0D 03 02 [12:58:02]Write to MH i2c: E2 08 00 DB 1C 80 0D 03 02 00 00 00 00 72 [12:58:02]Write i2c OK [12:58:02]MH_I2C_Read... [12:58:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:02]Read from MH i2c: E2 [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: E2 0B 00 [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: E2 0B 00 DB 1C 00 29 74 DB 85 5E B3 E6 C1 90 00 28 [12:58:02]RAPDU: 29 74 DB 85 5E B3 E6 C1 90 00 [12:58:02]wFMCommunicate OK [12:58:02]SAM_PROTO_SignData done [12:58:02]FM_MakeSignedData done [12:58:02]CreateOFDProtocolMessage [12:58:02]wFMCommunicate request_size=4 [12:58:02]MH_SAM_APDU [12:58:02]CAPDU: 80 11 00 00 [12:58:02]Write to MH i2c: E2 08 00 DC 1C 80 11 00 00 00 00 00 00 72 [12:58:02]Write i2c OK [12:58:02]MH_I2C_Read... [12:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:02]Read from MH i2c: E2 [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: E2 17 00 [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: E2 17 00 DC 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BD [12:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:58:02]wFMCommunicate OK [12:58:02]CreateOFDProtocolMessage done [12:58:02]OFDSenderStorePacket 49983 [12:58:02]StoreOFDPacket docnum=49983 [12:58:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 47 DE 07 01 E2 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5B 41 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3F C3 00 00 35 04 06 00 22 3C 49 B7 57 E3 29 74 DB 85 5E B3 E6 C1 [12:58:02]CheckFolder [12:58:02]dirname=/storage/ofd_packets [12:58:02]CheckFolder done [12:58:02]ProducePacketName [12:58:02]name=ofd_packets/00049983 [12:58:02]NVStorageSaveData ofd_packets/00049983 [12:58:02]File name is /storage/ofd_packets/00049983 [12:58:02]Write 301 bytes [12:58:02]NVStorageSaveData done [12:58:02]OFDSenderStorePacket done [12:58:02]KKMCreateOFDPacket done [12:58:02]NVStorageSaveData kkm_last_timestamp [12:58:02]File name is /storage/kkm_last_timestamp [12:58:02]Write 4 bytes [12:58:02]NVStorageSaveData done [12:58:02]ExternCall_PrintAddStr [12:58:02]wPrintStart [12:58:02]Write to MH i2c: 01 00 00 DD 1C F9 [12:58:02]Write i2c OK [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: 01 [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: 01 07 00 [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: 01 07 00 DD 1C 00 00 00 00 00 FF 0F 0E [12:58:02]RasterBufferAndPrint [12:58:02]line Счет N : (1)11327794 [12:58:02]line ИНН: 02508201610067 [12:58:02]line Контрольно-Кассовый Чек [12:58:02]line ПРОДАЖА [12:58:02]line ТРК (МРК, ГНК) : 21 [12:58:02]line Товар: 2710124500 [12:58:02]line Аи-95-К-5 [12:58:02]line 20.000 * 0.00 [12:58:02]line = 0.00 [12:58:02]line НДС 12% НСП 1% [12:58:02]line > о реализуемом товаре [12:58:02]line ИТОГО: 0.00 [12:58:02]line НСП 1% : 0.00 [12:58:02]line НДС 12% : 0.00 [12:58:02]line Наличными: 0.00 [12:58:02]line Безнал.: 0.00 [12:58:02]line Место: АЗС № 95 "Партнер Нефть" [12:58:02]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:58:02]line СНО: Общий режим [12:58:02]line Чек 90 19.08.2024 12:58 [12:58:02]line Смена: 467 ФФД: 1.0 [12:58:02]line ЗНМ: 0300000078 [12:58:02]line РНМ: 0000000000092546 [12:58:02]line Версия ККМ: 001 [12:58:02]line Талоны: ТК ГПНА Online [12:58:02]line 30147419 [12:58:02]line ФМ: 0000000000871800 [12:58:02]line ФД: 49983 [12:58:02]line ФПД: 37642330134499 [12:58:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T125803&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49983&fm=37642330134499&tin=02508201610067®Number=0000000000092546&sum=0 [12:58:02]written 0, free lines is 4095 [12:58:02]OFD Sender: Processing packet 49983 [packets to send 21, broken 20] [12:58:02]ProducePacketName [12:58:02]name=ofd_packets/00049983 [12:58:02]OFD Sender: To server: pG, [12:58:02]CommunicateWithHost lk.salyk.kg:30040 [12:58:02]ConnectInit lk.salyk.kg [12:58:02]Connected sock=10 [12:58:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 47 DE 07 01 E2 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5B 41 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3F C3 00 00 35 04 06 00 22 3C 49 B7 57 E3 29 74 DB 85 5E B3 E6 C1 [12:58:02]Write to MH i2c: 01 00 00 07 1D 24 [12:58:02]Write i2c OK [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: 01 [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: 01 07 00 [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: 01 07 00 07 1D 00 00 00 00 00 DD 0C 14 [12:58:02]RasterBufferAndPrint [12:58:02]line [12:58:02]line [12:58:02]line [12:58:02]line [12:58:02]line [12:58:02]written 0, free lines is 3299 [12:58:02]MH_Cut [12:58:02]Write to MH i2c: D1 01 00 0E 1D 01 FD [12:58:02]Write i2c OK [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: D1 [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: D1 01 00 [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: D1 01 00 0E 1D 00 FC [12:58:02]Write to MH i2c: 01 00 00 0F 1D 2C [12:58:02]Write i2c OK [12:58:02]MH_I2C_Read... [12:58:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 6D 6E 47 00 DD B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3F C3 00 00 F4 03 04 00 C8 EB C2 66 B6 04 01 00 00 18 B8 03 B8 05 6A 20 46 [12:58:02]CommunicateWithHost err = 0 [12:58:02]CheckOFDResponse [12:58:02]1017 (14) - 77093643461234 [12:58:02]1041 (16) - 0000000000871800 [12:58:02]1040 (4) - 49983 [12:58:02]1012 (4) - 19.08.2024 06:52 [12:58:02]1206 (1) - 0 [12:58:02]OFD Sender: Remove packet 49983 [12:58:02]ProducePacketName [12:58:02]name=ofd_packets/00049983 [12:58:02]NVStorageDeleteData [12:58:03]*** Cut start [12:58:03]*** Purtial cut [12:58:03]*** CUTSNS_PIN = 0 [12:58:03]OFD Sender: No OFD packet to send [12:58:03]*** Stage 1: CUTSNS_PIN = 1 [12:58:05]Read from MH i2c: 01 [12:58:05]MH_I2C_Read... [12:58:05]*** Stop cut motor [12:58:05]*** Cut end [12:58:05]Read from MH i2c: 01 07 00 [12:58:05]MH_I2C_Read... [12:58:05]Read from MH i2c: 01 07 00 0F 1D 00 00 00 00 00 FF 0F 41 [12:58:05]process_action close_receipt done [12:58:05]requested_data is exist [12:58:05]produce_requested_data [12:58:05]requested_item fm.sn is exist - process it [12:58:05]wFMCommunicate request_size=4 [12:58:05]MH_SAM_APDU [12:58:05]CAPDU: 80 11 00 00 [12:58:05]Write to MH i2c: E2 08 00 10 1D 80 11 00 00 00 00 00 00 A7 [12:58:05]Write i2c OK [12:58:05]MH_I2C_Read... [12:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:05]Read from MH i2c: E2 [12:58:05]MH_I2C_Read... [12:58:05]Read from MH i2c: E2 17 00 [12:58:05]MH_I2C_Read... [12:58:05]Read from MH i2c: E2 17 00 10 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F2 [12:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:58:05]wFMCommunicate OK [12:58:05]requested_item fd.num is exist - process it [12:58:05]SAM_PROTO_GetFieldsCounters [12:58:05]wFMCommunicate request_size=4 [12:58:05]MH_SAM_APDU [12:58:05]CAPDU: 80 13 00 00 [12:58:05]Write to MH i2c: E2 08 00 11 1D 80 13 00 00 00 00 00 00 AA [12:58:05]Write i2c OK [12:58:05]MH_I2C_Read... [12:58:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:05]Read from MH i2c: E2 [12:58:05]MH_I2C_Read... [12:58:05]Read from MH i2c: E2 62 00 [12:58:05]MH_I2C_Read... [12:58:05]Read from MH i2c: E2 62 00 11 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3F C3 00 00 0E 04 04 00 D3 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 A8 [12:58:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3F C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:05]wFMCommunicate OK [12:58:05]SAM_PROTO_GetFieldsCounters done [12:58:05]requested_item shift.num is exist - process it [12:58:05]requested_item shift.opened is exist - process it [12:58:05]req_shift_opened [12:58:05]FM_GetShiftState [12:58:05]SAM_PROTO_GetShiftState [12:58:05]wFMCommunicate request_size=4 [12:58:05]MH_SAM_APDU [12:58:05]CAPDU: 80 13 01 00 [12:58:05]Write to MH i2c: E2 08 00 12 1D 80 13 01 00 00 00 00 00 AC [12:58:05]Write i2c OK [12:58:05]MH_I2C_Read... [12:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:05]Read from MH i2c: E2 [12:58:05]MH_I2C_Read... [12:58:05]Read from MH i2c: E2 0E 00 [12:58:05]MH_I2C_Read... [12:58:05]Read from MH i2c: E2 0E 00 12 1D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 66 [12:58:05]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [12:58:05]wFMCommunicate OK [12:58:05]SAM_PROTO_GetShiftState done [12:58:05]FM_GetShiftState done [12:58:05]req_shift_opened done [12:58:05]requested_item shift.open_date is exist - process it [12:58:05]req_shift_open_date [12:58:05]req_shift_open_date done [12:58:05]produce_requested_data done [12:58:05]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49983,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [12:58:05]process_action_free close_receipt [12:58:05]json_value_free [12:58:05]json_value_free done [12:58:05]process_json_proto returns [12:58:05]Send response to host [12:58:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49983,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [12:58:05]free response buf [12:58:05]execute_script done [12:58:05]execute_script returns [12:58:05]free content buf [12:58:05]Sock 7.Close socket [12:58:05]Sock 7.Thread stoped [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:39]OFD Sender: No OFD packet to send [13:19:44]OFD Sender: No OFD packet to send [13:19:49]OFD Sender: No OFD packet to send [13:19:54]OFD Sender: No OFD packet to send [13:19:59]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:19]OFD Sender: No OFD packet to send [13:22:24]OFD Sender: No OFD packet to send [13:22:29]OFD Sender: No OFD packet to send [13:22:34]OFD Sender: No OFD packet to send [13:22:39]OFD Sender: No OFD packet to send [13:22:44]OFD Sender: No OFD packet to send [13:22:49]OFD Sender: No OFD packet to send [13:22:54]OFD Sender: No OFD packet to send [13:22:59]OFD Sender: No OFD packet to send [13:23:00]accept exits with 9 [13:23:00]New connection [13:23:00]New thread 3067211108 created [13:23:00]Thread 3067354468 joined [13:23:00]Waiting for new connection... [13:23:00] Sock 9.Parse request [13:23:00]Sock 9.Check first char [13:23:00]Sock 9.First char is OK [13:23:00]request: POST /json_proto HTTP/1.0 [13:23:00]Method: POST [13:23:00]URL: /json_proto [13:23:00]Method is POST - this is cgi request [13:23:00]url: /json_proto [13:23:00]query_string will be loaded in cgi processing [13:23:00]execute_cgi json_proto POST (null) [13:23:00]execute_cgi path=json_proto method=POST [13:23:00]POST find Content-Length [13:23:00]Host: 172.17.46.196:8080 [13:23:00]Content-Length: 756 [13:23:00]Content-Type: application/json [13:23:00] [13:23:00]POST finish read [13:23:00]Found Content-Length = 756 [13:23:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106662", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:00]execute_script... [13:23:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106662", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:00]POST & json_proto [13:23:00]process_json_proto [13:23:00]json parsed OK: [13:23:00]protocol is kg_v1.0 [13:23:00]action value=close_receipt [13:23:00]process_action close_receipt [13:23:00]cmd_close_receipt [13:23:00]MH_GetDate [13:23:00]Write to MH i2c: F0 00 00 13 1D 1F [13:23:00]Write i2c OK [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: F0 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: F0 09 00 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: F0 09 00 13 1D 00 37 47 C3 66 C4 85 C2 66 40 [13:23:00]GetLastDocTimeStamp 1724072283 [13:23:00]current date 1724073783 [13:23:00]FM_GetShiftState [13:23:00]SAM_PROTO_GetShiftState [13:23:00]wFMCommunicate request_size=4 [13:23:00]MH_SAM_APDU [13:23:00]CAPDU: 80 13 01 00 [13:23:00]Write to MH i2c: E2 08 00 14 1D 80 13 01 00 00 00 00 00 AE [13:23:00]Write i2c OK [13:23:00]MH_I2C_Read... [13:23:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:00]Read from MH i2c: E2 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 0E 00 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 0E 00 14 1D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 68 [13:23:00]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:23:00]wFMCommunicate OK [13:23:00]SAM_PROTO_GetShiftState done [13:23:00]FM_GetShiftState done [13:23:00]opened in 1724026361 [13:23:00]opened+sec_in_day 1724112761 [13:23:00]quantity*price = 0 [13:23:00]sum+1 = 1 [13:23:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 91 19.08.2024 13:23 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106662 ФМ: 0000000000871800 ФД: 49984 ФПД: 137438454605177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T132303&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49984&fm=137438454605177&tin=02508201610067®Number=0000000000092546&sum=0 [13:23:01]StoreToDocumentArchive [13:23:01]shift 467 fd 49984 [13:23:01]save to /storage/0467/doc_00049984 [13:23:01]save last doc name /storage/0467/doc_00049984 to /storage/kkm_last_doc_name [13:23:01]save OK [13:23:01]Clear old archive folders... [13:23:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:01]tlvbuf is 00F66A40 [13:23:01]SAM_PROTO_ClearQueue [13:23:01]wFMCommunicate request_size=4 [13:23:01]MH_SAM_APDU [13:23:01]CAPDU: 80 09 00 00 [13:23:01]Write to MH i2c: E2 08 00 21 1D 80 09 00 00 00 00 00 00 B0 [13:23:01]Write i2c OK [13:23:01]MH_I2C_Read... [13:23:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:01]Read from MH i2c: E2 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 03 00 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 03 00 21 1D 00 90 00 B2 [13:23:01]RAPDU: 90 00 [13:23:01]wFMCommunicate OK [13:23:01]SAM_PROTO_ClearQueue done [13:23:01]KKMCreateOFDPacket [13:23:01]OFDProtocolAddRootSTLVToBuf [13:23:01]FM_MakeSignedData [13:23:01]FM_MakeSignedData [13:23:01]SAM_PROTO_SignData [13:23:01]wFMCommunicate request_size=4 [13:23:01]MH_SAM_APDU [13:23:01]CAPDU: 80 0D 01 02 [13:23:01]Write to MH i2c: E2 08 00 22 1D 80 0D 01 02 00 00 00 00 B8 [13:23:01]Write i2c OK [13:23:01]MH_I2C_Read... [13:23:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:01]Read from MH i2c: E2 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 03 00 [13:23:01]MH_I2C_Read... [13:23:01]Read from MH i2c: E2 03 00 22 1D 00 90 00 B3 [13:23:01]RAPDU: 90 00 [13:23:01]wFMCommunicate OK [13:23:01]wFMCommunicate request_size=255 [13:23:01]MH_SAM_APDU [13:23:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 37 47 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 40 C3 00 00 35 04 06 00 7C [13:23:01]Write to MH i2c: E2 02 01 23 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 37 47 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 40 C3 00 00 35 04 06 00 7C 00 00 E1 [13:23:01]Write i2c OK [13:23:01]MH_I2C_Read... [13:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:02]Read from MH i2c: E2 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: E2 03 00 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: E2 03 00 23 1D 00 90 00 B4 [13:23:02]RAPDU: 90 00 [13:23:02]wFMCommunicate OK [13:23:02]wFMCommunicate request_size=10 [13:23:02]MH_SAM_APDU [13:23:02]CAPDU: 80 0D 02 02 05 FF E2 43 E5 79 [13:23:02]Write to MH i2c: E2 0D 00 24 1D 80 0D 02 02 05 00 FF E2 43 E5 79 00 00 47 [13:23:02]Write i2c OK [13:23:02]MH_I2C_Read... [13:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:02]Read from MH i2c: E2 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: E2 03 00 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: E2 03 00 24 1D 00 90 00 B5 [13:23:02]RAPDU: 90 00 [13:23:02]wFMCommunicate OK [13:23:02]wFMCommunicate request_size=4 [13:23:02]MH_SAM_APDU [13:23:02]CAPDU: 80 0D 03 02 [13:23:02]Write to MH i2c: E2 08 00 25 1D 80 0D 03 02 00 00 00 00 BD [13:23:02]Write i2c OK [13:23:02]MH_I2C_Read... [13:23:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:02]Read from MH i2c: E2 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: E2 0B 00 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: E2 0B 00 25 1D 00 FA 2D E4 46 DB 55 5A 1D 90 00 B6 [13:23:02]RAPDU: FA 2D E4 46 DB 55 5A 1D 90 00 [13:23:02]wFMCommunicate OK [13:23:02]SAM_PROTO_SignData done [13:23:02]FM_MakeSignedData done [13:23:02]CreateOFDProtocolMessage [13:23:02]wFMCommunicate request_size=4 [13:23:02]MH_SAM_APDU [13:23:02]CAPDU: 80 11 00 00 [13:23:02]Write to MH i2c: E2 08 00 26 1D 80 11 00 00 00 00 00 00 BD [13:23:02]Write i2c OK [13:23:02]MH_I2C_Read... [13:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:02]Read from MH i2c: E2 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: E2 17 00 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: E2 17 00 26 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 08 [13:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:23:02]wFMCommunicate OK [13:23:02]CreateOFDProtocolMessage done [13:23:02]OFDSenderStorePacket 49984 [13:23:02]StoreOFDPacket docnum=49984 [13:23:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 56 4E 07 01 E5 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 37 47 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 40 C3 00 00 35 04 06 00 7C FF E2 43 E5 79 FA 2D E4 46 DB 55 5A 1D [13:23:02]CheckFolder [13:23:02]dirname=/storage/ofd_packets [13:23:02]CheckFolder done [13:23:02]ProducePacketName [13:23:02]name=ofd_packets/00049984 [13:23:02]NVStorageSaveData ofd_packets/00049984 [13:23:02]File name is /storage/ofd_packets/00049984 [13:23:02]Write 301 bytes [13:23:02]NVStorageSaveData done [13:23:02]OFDSenderStorePacket done [13:23:02]KKMCreateOFDPacket done [13:23:02]NVStorageSaveData kkm_last_timestamp [13:23:02]File name is /storage/kkm_last_timestamp [13:23:02]Write 4 bytes [13:23:02]NVStorageSaveData done [13:23:02]ExternCall_PrintAddStr [13:23:02]wPrintStart [13:23:02]Write to MH i2c: 01 00 00 27 1D 44 [13:23:02]Write i2c OK [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: 01 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: 01 07 00 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: 01 07 00 27 1D 00 00 00 00 00 FF 0F 59 [13:23:02]RasterBufferAndPrint [13:23:02]line Счет N : (1)11327812 [13:23:02]line ИНН: 02508201610067 [13:23:02]line Контрольно-Кассовый Чек [13:23:02]line ПРОДАЖА [13:23:02]line ТРК (МРК, ГНК) : 22 [13:23:02]line Товар: 2710124130 [13:23:02]line Аи-92-К-4 [13:23:02]line 15.000 * 0.00 [13:23:02]line = 0.00 [13:23:02]line НДС 12% НСП 1% [13:23:02]line > о реализуемом товаре [13:23:02]line ИТОГО: 0.00 [13:23:02]line НСП 1% : 0.00 [13:23:02]line НДС 12% : 0.00 [13:23:02]line Наличными: 0.00 [13:23:02]line Безнал.: 0.00 [13:23:02]line Место: АЗС № 95 "Партнер Нефть" [13:23:02]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:23:02]line СНО: Общий режим [13:23:02]line Чек 91 19.08.2024 13:23 [13:23:02]line Смена: 467 ФФД: 1.0 [13:23:02]line ЗНМ: 0300000078 [13:23:02]line РНМ: 0000000000092546 [13:23:02]line Версия ККМ: 001 [13:23:02]line Талоны: ТК ГПНА Online [13:23:02]line 30106662 [13:23:02]line ФМ: 0000000000871800 [13:23:02]line ФД: 49984 [13:23:02]line ФПД: 137438454605177 [13:23:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T132303&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49984&fm=137438454605177&tin=02508201610067®Number=0000000000092546&sum=0 [13:23:02]written 0, free lines is 4095 [13:23:02]OFD Sender: Processing packet 49984 [packets to send 21, broken 20] [13:23:02]ProducePacketName [13:23:02]name=ofd_packets/00049984 [13:23:02]OFD Sender: To server: pG, [13:23:02]CommunicateWithHost lk.salyk.kg:30040 [13:23:02]ConnectInit lk.salyk.kg [13:23:02]Write to MH i2c: 01 00 00 51 1D 6E [13:23:02]Write i2c OK [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: 01 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: 01 07 00 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: 01 07 00 51 1D 00 00 00 00 00 C7 0C 48 [13:23:02]RasterBufferAndPrint [13:23:02]line [13:23:02]line [13:23:02]line [13:23:02]line [13:23:02]line [13:23:02]written 0, free lines is 3279 [13:23:02]MH_Cut [13:23:02]Write to MH i2c: D1 01 00 58 1D 01 47 [13:23:02]Write i2c OK [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: D1 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: D1 01 00 [13:23:02]MH_I2C_Read... [13:23:02]Read from MH i2c: D1 01 00 58 1D 00 46 [13:23:02]Write to MH i2c: 01 00 00 59 1D 76 [13:23:02]Write i2c OK [13:23:02]MH_I2C_Read... [13:23:02]Connected sock=10 [13:23:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 56 4E 07 01 E5 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 37 47 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 40 C3 00 00 35 04 06 00 7C FF E2 43 E5 79 FA 2D E4 46 DB 55 5A 1D [13:23:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 64 CB 47 00 D4 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 40 C3 00 00 F4 03 04 00 A5 F1 C2 66 B6 04 01 00 00 A7 33 A3 42 A9 E3 90 3A [13:23:03]CommunicateWithHost err = 0 [13:23:03]CheckOFDResponse [13:23:03]1017 (14) - 77093643461234 [13:23:03]1041 (16) - 0000000000871800 [13:23:03]1040 (4) - 49984 [13:23:03]1012 (4) - 19.08.2024 07:17 [13:23:03]1206 (1) - 0 [13:23:03]OFD Sender: Remove packet 49984 [13:23:03]ProducePacketName [13:23:03]name=ofd_packets/00049984 [13:23:03]NVStorageDeleteData [13:23:03]*** Cut start [13:23:03]*** Purtial cut [13:23:03]*** Stage 1: CUTSNS_PIN = 1 [13:23:03]OFD Sender: No OFD packet to send [13:23:03]Read from MH i2c: 01 [13:23:03]MH_I2C_Read... [13:23:03]*** Stop cut motor [13:23:03]*** Cut end [13:23:03]Read from MH i2c: 01 07 00 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: 01 07 00 59 1D 00 00 00 00 00 FF 0F 8B [13:23:03]process_action close_receipt done [13:23:03]requested_data is exist [13:23:03]produce_requested_data [13:23:03]requested_item fm.sn is exist - process it [13:23:03]wFMCommunicate request_size=4 [13:23:03]MH_SAM_APDU [13:23:03]CAPDU: 80 11 00 00 [13:23:03]Write to MH i2c: E2 08 00 5A 1D 80 11 00 00 00 00 00 00 F1 [13:23:03]Write i2c OK [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 [13:23:03]MH_I2C_Read... [13:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:03]Read from MH i2c: E2 17 00 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 17 00 5A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3C [13:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:23:03]wFMCommunicate OK [13:23:03]requested_item fd.num is exist - process it [13:23:03]SAM_PROTO_GetFieldsCounters [13:23:03]wFMCommunicate request_size=4 [13:23:03]MH_SAM_APDU [13:23:03]CAPDU: 80 13 00 00 [13:23:03]Write to MH i2c: E2 08 00 5B 1D 80 13 00 00 00 00 00 00 F4 [13:23:03]Write i2c OK [13:23:03]MH_I2C_Read... [13:23:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:04]Read from MH i2c: E2 [13:23:04]MH_I2C_Read... [13:23:04]Read from MH i2c: E2 62 00 [13:23:04]MH_I2C_Read... [13:23:04]Read from MH i2c: E2 62 00 5B 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 40 C3 00 00 0E 04 04 00 D3 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 F6 [13:23:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 40 C3 00 00 0E 04 04 00 D3 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 [13:23:04]wFMCommunicate OK [13:23:04]SAM_PROTO_GetFieldsCounters done [13:23:04]requested_item shift.num is exist - process it [13:23:04]requested_item shift.opened is exist - process it [13:23:04]req_shift_opened [13:23:04]FM_GetShiftState [13:23:04]SAM_PROTO_GetShiftState [13:23:04]wFMCommunicate request_size=4 [13:23:04]MH_SAM_APDU [13:23:04]CAPDU: 80 13 01 00 [13:23:04]Write to MH i2c: E2 08 00 5C 1D 80 13 01 00 00 00 00 00 F6 [13:23:04]Write i2c OK [13:23:04]MH_I2C_Read... [13:23:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:04]Read from MH i2c: E2 [13:23:04]MH_I2C_Read... [13:23:04]Read from MH i2c: E2 0E 00 [13:23:04]MH_I2C_Read... [13:23:04]Read from MH i2c: E2 0E 00 5C 1D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B0 [13:23:04]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:23:04]wFMCommunicate OK [13:23:04]SAM_PROTO_GetShiftState done [13:23:04]FM_GetShiftState done [13:23:04]req_shift_opened done [13:23:04]requested_item shift.open_date is exist - process it [13:23:04]req_shift_open_date [13:23:04]req_shift_open_date done [13:23:04]produce_requested_data done [13:23:04]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49984,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [13:23:04]process_action_free close_receipt [13:23:04]json_value_free [13:23:04]json_value_free done [13:23:04]process_json_proto returns [13:23:04]Send response to host [13:23:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49984,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [13:23:04]free response buf [13:23:04]execute_script done [13:23:04]execute_script returns [13:23:04]free content buf [13:23:04]Sock 9.Close socket [13:23:04]Sock 9.Thread stoped [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:09]accept exits with 7 [13:25:09]New connection [13:25:09]New thread 3067354468 created [13:25:09]Thread 3067211108 joined [13:25:09]Waiting for new connection... [13:25:09] Sock 7.Parse request [13:25:09]Sock 7.Check first char [13:25:09]Sock 7.First char is OK [13:25:09]request: POST /json_proto HTTP/1.0 [13:25:09]Method: POST [13:25:09]URL: /json_proto [13:25:09]Method is POST - this is cgi request [13:25:09]url: /json_proto [13:25:09]query_string will be loaded in cgi processing [13:25:09]execute_cgi json_proto POST (null) [13:25:09]execute_cgi path=json_proto method=POST [13:25:09]POST find Content-Length [13:25:09]Host: 172.17.46.196:8080 [13:25:09]Content-Length: 756 [13:25:09]Content-Type: application/json [13:25:09] [13:25:09]POST finish read [13:25:09]Found Content-Length = 756 [13:25:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30144820", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:09]execute_script... [13:25:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30144820", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:09]POST & json_proto [13:25:09]process_json_proto [13:25:09]json parsed OK: [13:25:09]protocol is kg_v1.0 [13:25:09]action value=close_receipt [13:25:09]process_action close_receipt [13:25:09]cmd_close_receipt [13:25:09]MH_GetDate [13:25:09]Write to MH i2c: F0 00 00 5D 1D 69 [13:25:09]Write i2c OK [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: F0 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: F0 09 00 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: F0 09 00 5D 1D 00 B8 47 C3 66 C4 85 C2 66 0B [13:25:09]GetLastDocTimeStamp 1724073783 [13:25:09]current date 1724073912 [13:25:09]FM_GetShiftState [13:25:09]SAM_PROTO_GetShiftState [13:25:09]wFMCommunicate request_size=4 [13:25:09]MH_SAM_APDU [13:25:09]CAPDU: 80 13 01 00 [13:25:09]Write to MH i2c: E2 08 00 5E 1D 80 13 01 00 00 00 00 00 F8 [13:25:09]Write i2c OK [13:25:09]MH_I2C_Read... [13:25:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:09]Read from MH i2c: E2 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: E2 0E 00 [13:25:09]MH_I2C_Read... [13:25:09]Read from MH i2c: E2 0E 00 5E 1D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B2 [13:25:09]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:25:09]wFMCommunicate OK [13:25:09]SAM_PROTO_GetShiftState done [13:25:09]FM_GetShiftState done [13:25:09]opened in 1724026361 [13:25:09]opened+sec_in_day 1724112761 [13:25:09]quantity*price = 0 [13:25:09]sum+1 = 1 [13:25:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 92 19.08.2024 13:25 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30144820 ФМ: 0000000000871800 ФД: 49985 ФПД: 89549910449821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T132512&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49985&fm=89549910449821&tin=02508201610067®Number=0000000000092546&sum=0 [13:25:10]StoreToDocumentArchive [13:25:10]shift 467 fd 49985 [13:25:10]save to /storage/0467/doc_00049985 [13:25:10]save last doc name /storage/0467/doc_00049985 to /storage/kkm_last_doc_name [13:25:10]save OK [13:25:10]Clear old archive folders... [13:25:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:10]tlvbuf is B6FBAC80 [13:25:10]SAM_PROTO_ClearQueue [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 09 00 00 [13:25:10]Write to MH i2c: E2 08 00 6B 1D 80 09 00 00 00 00 00 00 FA [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 6B 1D 00 90 00 FC [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]SAM_PROTO_ClearQueue done [13:25:10]KKMCreateOFDPacket [13:25:10]OFDProtocolAddRootSTLVToBuf [13:25:10]FM_MakeSignedData [13:25:10]FM_MakeSignedData [13:25:10]SAM_PROTO_SignData [13:25:10]wFMCommunicate request_size=4 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 01 02 [13:25:10]Write to MH i2c: E2 08 00 6C 1D 80 0D 01 02 00 00 00 00 02 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 6C 1D 00 90 00 FD [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]wFMCommunicate request_size=255 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B8 47 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 41 C3 00 00 35 04 06 00 51 [13:25:10]Write to MH i2c: E2 02 01 6D 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B8 47 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 41 C3 00 00 35 04 06 00 51 00 00 56 [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:10]Read from MH i2c: E2 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 [13:25:10]MH_I2C_Read... [13:25:10]Read from MH i2c: E2 03 00 6D 1D 00 90 00 FE [13:25:10]RAPDU: 90 00 [13:25:10]wFMCommunicate OK [13:25:10]wFMCommunicate request_size=10 [13:25:10]MH_SAM_APDU [13:25:10]CAPDU: 80 0D 02 02 05 71 F6 9A 1E 9D [13:25:10]Write to MH i2c: E2 0D 00 6E 1D 80 0D 02 02 05 00 71 F6 9A 1E 9D 00 00 CB [13:25:10]Write i2c OK [13:25:10]MH_I2C_Read... [13:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:11]Read from MH i2c: E2 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: E2 03 00 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: E2 03 00 6E 1D 00 90 00 FF [13:25:11]RAPDU: 90 00 [13:25:11]wFMCommunicate OK [13:25:11]wFMCommunicate request_size=4 [13:25:11]MH_SAM_APDU [13:25:11]CAPDU: 80 0D 03 02 [13:25:11]Write to MH i2c: E2 08 00 6F 1D 80 0D 03 02 00 00 00 00 07 [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:11]Read from MH i2c: E2 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: E2 0B 00 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: E2 0B 00 6F 1D 00 B6 43 2C 9F 33 AF 89 58 90 00 8F [13:25:11]RAPDU: B6 43 2C 9F 33 AF 89 58 90 00 [13:25:11]wFMCommunicate OK [13:25:11]SAM_PROTO_SignData done [13:25:11]FM_MakeSignedData done [13:25:11]CreateOFDProtocolMessage [13:25:11]wFMCommunicate request_size=4 [13:25:11]MH_SAM_APDU [13:25:11]CAPDU: 80 11 00 00 [13:25:11]Write to MH i2c: E2 08 00 70 1D 80 11 00 00 00 00 00 00 07 [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:11]Read from MH i2c: E2 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: E2 17 00 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: E2 17 00 70 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 52 [13:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:25:11]wFMCommunicate OK [13:25:11]CreateOFDProtocolMessage done [13:25:11]OFDSenderStorePacket 49985 [13:25:11]StoreOFDPacket docnum=49985 [13:25:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 D9 73 07 01 4E 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B8 47 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 41 C3 00 00 35 04 06 00 51 71 F6 9A 1E 9D B6 43 2C 9F 33 AF 89 58 [13:25:11]CheckFolder [13:25:11]dirname=/storage/ofd_packets [13:25:11]CheckFolder done [13:25:11]ProducePacketName [13:25:11]name=ofd_packets/00049985 [13:25:11]NVStorageSaveData ofd_packets/00049985 [13:25:11]File name is /storage/ofd_packets/00049985 [13:25:11]Write 301 bytes [13:25:11]NVStorageSaveData done [13:25:11]OFDSenderStorePacket done [13:25:11]KKMCreateOFDPacket done [13:25:11]NVStorageSaveData kkm_last_timestamp [13:25:11]File name is /storage/kkm_last_timestamp [13:25:11]Write 4 bytes [13:25:11]NVStorageSaveData done [13:25:11]ExternCall_PrintAddStr [13:25:11]wPrintStart [13:25:11]Write to MH i2c: 01 00 00 71 1D 8E [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: 01 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: 01 07 00 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: 01 07 00 71 1D 00 00 00 00 00 FF 0F A3 [13:25:11]RasterBufferAndPrint [13:25:11]line Счет N : (1)11327813 [13:25:11]line ИНН: 02508201610067 [13:25:11]line Контрольно-Кассовый Чек [13:25:11]line ПРОДАЖА [13:25:11]line ТРК (МРК, ГНК) : 32 [13:25:11]line Товар: 2710124130 [13:25:11]line Аи-92-К-4 [13:25:11]line 30.000 * 0.00 [13:25:11]line = 0.00 [13:25:11]line НДС 12% НСП 1% [13:25:11]line > о реализуемом товаре [13:25:11]line ИТОГО: 0.00 [13:25:11]line НСП 1% : 0.00 [13:25:11]line НДС 12% : 0.00 [13:25:11]line Наличными: 0.00 [13:25:11]line Безнал.: 0.00 [13:25:11]line Место: АЗС № 95 "Партнер Нефть" [13:25:11]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:25:11]line СНО: Общий режим [13:25:11]line Чек 92 19.08.2024 13:25 [13:25:11]line Смена: 467 ФФД: 1.0 [13:25:11]line ЗНМ: 0300000078 [13:25:11]line РНМ: 0000000000092546 [13:25:11]line Версия ККМ: 001 [13:25:11]line Талоны: ТК ГПНА Online [13:25:11]line 30144820 [13:25:11]line ФМ: 0000000000871800 [13:25:11]line ФД: 49985 [13:25:11]line ФПД: 89549910449821 [13:25:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T132512&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49985&fm=89549910449821&tin=02508201610067®Number=0000000000092546&sum=0 [13:25:11]written 0, free lines is 4095 [13:25:11]OFD Sender: Processing packet 49985 [packets to send 21, broken 20] [13:25:11]ProducePacketName [13:25:11]name=ofd_packets/00049985 [13:25:11]OFD Sender: To server: pG, [13:25:11]CommunicateWithHost lk.salyk.kg:30040 [13:25:11]ConnectInit lk.salyk.kg [13:25:11]Write to MH i2c: 01 00 00 9B 1D B8 [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: 01 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: 01 07 00 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: 01 07 00 9B 1D 00 00 00 00 00 CC 0C 97 [13:25:11]RasterBufferAndPrint [13:25:11]line [13:25:11]line [13:25:11]line [13:25:11]line [13:25:11]line [13:25:11]written 0, free lines is 3280 [13:25:11]MH_Cut [13:25:11]Write to MH i2c: D1 01 00 A2 1D 01 91 [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: D1 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: D1 01 00 [13:25:11]MH_I2C_Read... [13:25:11]Read from MH i2c: D1 01 00 A2 1D 00 90 [13:25:11]Write to MH i2c: 01 00 00 A3 1D C0 [13:25:11]Write i2c OK [13:25:11]MH_I2C_Read... [13:25:11]Connected sock=11 [13:25:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 D9 73 07 01 4E 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B8 47 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 41 C3 00 00 35 04 06 00 51 71 F6 9A 1E 9D B6 43 2C 9F 33 AF 89 58 [13:25:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C4 F1 47 00 8D 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 41 C3 00 00 F4 03 04 00 25 F2 C2 66 B6 04 01 00 00 48 D0 87 D5 81 0B D6 C7 [13:25:12]CommunicateWithHost err = 0 [13:25:12]CheckOFDResponse [13:25:12]1017 (14) - 77093643461234 [13:25:12]1041 (16) - 0000000000871800 [13:25:12]1040 (4) - 49985 [13:25:12]1012 (4) - 19.08.2024 07:20 [13:25:12]1206 (1) - 0 [13:25:12]OFD Sender: Remove packet 49985 [13:25:12]ProducePacketName [13:25:12]name=ofd_packets/00049985 [13:25:12]NVStorageDeleteData [13:25:12]*** Cut start [13:25:12]*** Purtial cut [13:25:12]*** CUTSNS_PIN = 0 [13:25:12]*** Stage 1: CUTSNS_PIN = 1 [13:25:12]OFD Sender: No OFD packet to send [13:25:14]Read from MH i2c: 01 [13:25:14]MH_I2C_Read... [13:25:14]*** Stop cut motor [13:25:14]*** Cut end [13:25:14]Read from MH i2c: 01 07 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: 01 07 00 A3 1D 00 00 00 00 00 FF 0F D5 [13:25:14]process_action close_receipt done [13:25:14]requested_data is exist [13:25:14]produce_requested_data [13:25:14]requested_item fm.sn is exist - process it [13:25:14]wFMCommunicate request_size=4 [13:25:14]MH_SAM_APDU [13:25:14]CAPDU: 80 11 00 00 [13:25:14]Write to MH i2c: E2 08 00 A4 1D 80 11 00 00 00 00 00 00 3B [13:25:14]Write i2c OK [13:25:14]MH_I2C_Read... [13:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:14]Read from MH i2c: E2 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 17 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 17 00 A4 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 86 [13:25:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:25:14]wFMCommunicate OK [13:25:14]requested_item fd.num is exist - process it [13:25:14]SAM_PROTO_GetFieldsCounters [13:25:14]wFMCommunicate request_size=4 [13:25:14]MH_SAM_APDU [13:25:14]CAPDU: 80 13 00 00 [13:25:14]Write to MH i2c: E2 08 00 A5 1D 80 13 00 00 00 00 00 00 3E [13:25:14]Write i2c OK [13:25:14]MH_I2C_Read... [13:25:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:14]Read from MH i2c: E2 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 62 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 62 00 A5 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 41 C3 00 00 0E 04 04 00 D3 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 44 [13:25:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 41 C3 00 00 0E 04 04 00 D3 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 [13:25:14]wFMCommunicate OK [13:25:14]SAM_PROTO_GetFieldsCounters done [13:25:14]requested_item shift.num is exist - process it [13:25:14]requested_item shift.opened is exist - process it [13:25:14]req_shift_opened [13:25:14]FM_GetShiftState [13:25:14]SAM_PROTO_GetShiftState [13:25:14]wFMCommunicate request_size=4 [13:25:14]MH_SAM_APDU [13:25:14]CAPDU: 80 13 01 00 [13:25:14]Write to MH i2c: E2 08 00 A6 1D 80 13 01 00 00 00 00 00 40 [13:25:14]Write i2c OK [13:25:14]MH_I2C_Read... [13:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:14]Read from MH i2c: E2 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 0E 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 0E 00 A6 1D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 FA [13:25:14]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:25:14]wFMCommunicate OK [13:25:14]SAM_PROTO_GetShiftState done [13:25:14]FM_GetShiftState done [13:25:14]req_shift_opened done [13:25:14]requested_item shift.open_date is exist - process it [13:25:14]req_shift_open_date [13:25:14]req_shift_open_date done [13:25:14]produce_requested_data done [13:25:14]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49985,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [13:25:14]process_action_free close_receipt [13:25:14]json_value_free [13:25:14]json_value_free done [13:25:14]process_json_proto returns [13:25:14]Send response to host [13:25:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49985,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [13:25:14]free response buf [13:25:14]execute_script done [13:25:14]execute_script returns [13:25:14]free content buf [13:25:14]Sock 7.Close socket [13:25:14]Sock 7.Thread stoped [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26:07]OFD Sender: No OFD packet to send [13:26:12]OFD Sender: No OFD packet to send [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:16]accept exits with 9 [13:27:16]New connection [13:27:16]New thread 3067211108 created [13:27:16]Thread 3067354468 joined [13:27:16]Waiting for new connection... [13:27:16] Sock 9.Parse request [13:27:16]Sock 9.Check first char [13:27:16]Sock 9.First char is OK [13:27:16]request: POST /json_proto HTTP/1.0 [13:27:16]Method: POST [13:27:16]URL: /json_proto [13:27:16]Method is POST - this is cgi request [13:27:16]url: /json_proto [13:27:16]query_string will be loaded in cgi processing [13:27:16]execute_cgi json_proto POST (null) [13:27:16]execute_cgi path=json_proto method=POST [13:27:16]POST find Content-Length [13:27:16]Host: 172.17.46.196:8080 [13:27:16]Content-Length: 869 [13:27:16]Content-Type: application/json [13:27:16] [13:27:16]POST finish read [13:27:16]Found Content-Length = 869 [13:27:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190124", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:16]execute_script... [13:27:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190124", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:16]POST & json_proto [13:27:16]process_json_proto [13:27:16]json parsed OK: [13:27:16]protocol is kg_v1.0 [13:27:16]action value=close_receipt [13:27:16]process_action close_receipt [13:27:16]cmd_close_receipt [13:27:16]MH_GetDate [13:27:16]Write to MH i2c: F0 00 00 A7 1D B3 [13:27:16]Write i2c OK [13:27:16]MH_I2C_Read... [13:27:16]Read from MH i2c: F0 [13:27:16]MH_I2C_Read... [13:27:16]Read from MH i2c: F0 09 00 [13:27:16]MH_I2C_Read... [13:27:16]Read from MH i2c: F0 09 00 A7 1D 00 37 48 C3 66 C4 85 C2 66 D5 [13:27:16]GetLastDocTimeStamp 1724073912 [13:27:16]current date 1724074039 [13:27:16]FM_GetShiftState [13:27:16]SAM_PROTO_GetShiftState [13:27:16]wFMCommunicate request_size=4 [13:27:16]MH_SAM_APDU [13:27:16]CAPDU: 80 13 01 00 [13:27:16]Write to MH i2c: E2 08 00 A8 1D 80 13 01 00 00 00 00 00 42 [13:27:16]Write i2c OK [13:27:16]MH_I2C_Read... [13:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:16]Read from MH i2c: E2 [13:27:16]MH_I2C_Read... [13:27:16]Read from MH i2c: E2 0E 00 [13:27:16]MH_I2C_Read... [13:27:16]Read from MH i2c: E2 0E 00 A8 1D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 FC [13:27:16]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:27:16]wFMCommunicate OK [13:27:16]SAM_PROTO_GetShiftState done [13:27:16]FM_GetShiftState done [13:27:16]opened in 1724026361 [13:27:16]opened+sec_in_day 1724112761 [13:27:16]quantity*price = 9000 [13:27:16]sum+1 = 9001 [13:27:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 0.00 Безнал.: 90.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 93 19.08.2024 13:27 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49986 ФПД: 21448997216612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T132719&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49986&fm=21448997216612&tin=02508201610067®Number=0000000000092546&sum=9000 0 [13:27:17]StoreToDocumentArchive [13:27:17]shift 467 fd 49986 [13:27:17]save to /storage/0467/doc_00049986 [13:27:17]save last doc name /storage/0467/doc_00049986 to /storage/kkm_last_doc_name [13:27:17]save OK [13:27:17]Clear old archive folders... [13:27:17]ProcessDocumentItem done err = 0, tmpTLVsize=299 [13:27:17]tlvbuf is 0107BF50 [13:27:17]SAM_PROTO_ClearQueue [13:27:17]wFMCommunicate request_size=4 [13:27:17]MH_SAM_APDU [13:27:17]CAPDU: 80 09 00 00 [13:27:17]Write to MH i2c: E2 08 00 B5 1D 80 09 00 00 00 00 00 00 44 [13:27:17]Write i2c OK [13:27:17]MH_I2C_Read... [13:27:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:17]Read from MH i2c: E2 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 03 00 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 03 00 B5 1D 00 90 00 46 [13:27:17]RAPDU: 90 00 [13:27:17]wFMCommunicate OK [13:27:17]SAM_PROTO_ClearQueue done [13:27:17]KKMCreateOFDPacket [13:27:17]OFDProtocolAddRootSTLVToBuf [13:27:17]FM_MakeSignedData [13:27:17]FM_MakeSignedData [13:27:17]SAM_PROTO_SignData [13:27:17]wFMCommunicate request_size=4 [13:27:17]MH_SAM_APDU [13:27:17]CAPDU: 80 0D 01 02 [13:27:17]Write to MH i2c: E2 08 00 B6 1D 80 0D 01 02 00 00 00 00 4C [13:27:17]Write i2c OK [13:27:17]MH_I2C_Read... [13:27:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:17]Read from MH i2c: E2 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 03 00 [13:27:17]MH_I2C_Read... [13:27:17]Read from MH i2c: E2 03 00 B6 1D 00 90 00 47 [13:27:17]RAPDU: 90 00 [13:27:17]wFMCommunicate OK [13:27:17]wFMCommunicate request_size=255 [13:27:17]MH_SAM_APDU [13:27:17]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 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 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 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 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 37 48 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [13:27:17]Write to MH i2c: E2 02 01 B7 1D 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 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 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 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 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 37 48 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 29 [13:27:18]Write i2c OK [13:27:18]MH_I2C_Read... [13:27:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:18]Read from MH i2c: E2 [13:27:18]MH_I2C_Read... [13:27:18]Read from MH i2c: E2 03 00 [13:27:18]MH_I2C_Read... [13:27:18]Read from MH i2c: E2 03 00 B7 1D 00 90 00 48 [13:27:18]RAPDU: 90 00 [13:27:18]wFMCommunicate OK [13:27:18]wFMCommunicate request_size=58 [13:27:18]MH_SAM_APDU [13:27:18]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 42 C3 00 00 35 04 06 00 13 81 FB DC 21 64 [13:27:18]Write to MH i2c: E2 3D 00 B8 1D 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 42 C3 00 00 35 04 06 00 13 81 FB DC 21 64 00 00 2C [13:27:18]Write i2c OK [13:27:18]MH_I2C_Read... [13:27:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:18]Read from MH i2c: E2 [13:27:18]MH_I2C_Read... [13:27:18]Read from MH i2c: E2 03 00 [13:27:18]MH_I2C_Read... [13:27:18]Read from MH i2c: E2 03 00 B8 1D 00 90 00 49 [13:27:18]RAPDU: 90 00 [13:27:18]wFMCommunicate OK [13:27:18]wFMCommunicate request_size=4 [13:27:18]MH_SAM_APDU [13:27:18]CAPDU: 80 0D 03 02 [13:27:18]Write to MH i2c: E2 08 00 B9 1D 80 0D 03 02 00 00 00 00 51 [13:27:18]Write i2c OK [13:27:18]MH_I2C_Read... [13:27:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:18]Read from MH i2c: E2 [13:27:18]MH_I2C_Read... [13:27:18]Read from MH i2c: E2 0B 00 [13:27:18]MH_I2C_Read... [13:27:18]Read from MH i2c: E2 0B 00 B9 1D 00 69 FE A7 B8 9B FE 0D DB 90 00 99 [13:27:18]RAPDU: 69 FE A7 B8 9B FE 0D DB 90 00 [13:27:18]wFMCommunicate OK [13:27:18]SAM_PROTO_SignData done [13:27:18]FM_MakeSignedData done [13:27:18]CreateOFDProtocolMessage [13:27:18]wFMCommunicate request_size=4 [13:27:18]MH_SAM_APDU [13:27:18]CAPDU: 80 11 00 00 [13:27:18]Write to MH i2c: E2 08 00 BA 1D 80 11 00 00 00 00 00 00 51 [13:27:18]Write i2c OK [13:27:18]MH_I2C_Read... [13:27:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:18]Read from MH i2c: E2 [13:27:18]MH_I2C_Read... [13:27:18]Read from MH i2c: E2 17 00 [13:27:18]MH_I2C_Read... [13:27:18]Read from MH i2c: E2 17 00 BA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9C [13:27:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:27:18]wFMCommunicate OK [13:27:18]CreateOFDProtocolMessage done [13:27:18]OFDSenderStorePacket 49986 [13:27:18]StoreOFDPacket docnum=49986 [13:27:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3F 01 00 00 F6 74 37 01 11 A1 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 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 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 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 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 37 48 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 42 C3 00 00 35 04 06 00 13 81 FB DC 21 64 69 FE A7 B8 9B FE 0D DB [13:27:18]CheckFolder [13:27:18]dirname=/storage/ofd_packets [13:27:18]CheckFolder done [13:27:18]ProducePacketName [13:27:18]name=ofd_packets/00049986 [13:27:18]NVStorageSaveData ofd_packets/00049986 [13:27:18]File name is /storage/ofd_packets/00049986 [13:27:18]Write 349 bytes [13:27:18]NVStorageSaveData done [13:27:18]OFDSenderStorePacket done [13:27:18]KKMCreateOFDPacket done [13:27:18]NVStorageSaveData kkm_last_timestamp [13:27:18]File name is /storage/kkm_last_timestamp [13:27:18]Write 4 bytes [13:27:18]NVStorageSaveData done [13:27:18]ExternCall_PrintAddStr [13:27:18]wPrintStart [13:27:18]Write to MH i2c: 01 00 00 BB 1D D8 [13:27:18]Write i2c OK [13:27:18]MH_I2C_Read... [13:27:18]Read from MH i2c: 01 [13:27:18]MH_I2C_Read... [13:27:18]Read from MH i2c: 01 07 00 [13:27:18]MH_I2C_Read... [13:27:18]Read from MH i2c: 01 07 00 BB 1D 00 00 00 00 00 FF 0F ED [13:27:18]RasterBufferAndPrint [13:27:18]line Счет N : (3)190124 [13:27:18]line ИНН: 02508201610067 [13:27:18]line Контрольно-Кассовый Чек [13:27:18]line ПРОДАЖА [13:27:18]line Товар: 4660085515163 [13:27:18]line Шок Батончик Сникерс супер 95/80г [13:27:18]line 1.000 * 90.00 [13:27:18]line = 90.00 [13:27:18]line НДС 12% НСП 1% [13:27:18]line > о реализуемом товаре [13:27:18]line ИТОГО: 90.00 [13:27:18]line НСП 1% : 0.80 [13:27:18]line НДС 12% : 9.56 [13:27:18]line Наличными: 0.00 [13:27:18]line Безнал.: 90.00 [13:27:18]line Место: АЗС № 95 "Партнер Нефть" [13:27:18]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:27:18]line СНО: Общий режим [13:27:18]line Чек 93 19.08.2024 13:27 [13:27:18]line Смена: 467 ФФД: 1.0 [13:27:18]line ЗНМ: 0300000078 [13:27:18]line РНМ: 0000000000092546 [13:27:18]line Версия ККМ: 001 [13:27:18]line Платежная система: O! деньги [13:27:18]line ФМ: 0000000000871800 [13:27:18]line ФД: 49986 [13:27:18]line ФПД: 21448997216612 [13:27:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T132719&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49986&fm=21448997216612&tin=02508201610067®Number=0000000000092546&sum=9000 [13:27:18]line 0 [13:27:18]OFD Sender: Processing packet 49986 [packets to send 21, broken 20] [13:27:18]ProducePacketName [13:27:18]name=ofd_packets/00049986 [13:27:18]OFD Sender: To server: pG, [13:27:18]CommunicateWithHost lk.salyk.kg:30040 [13:27:18]ConnectInit lk.salyk.kg [13:27:18]written 0, free lines is 4095 [13:27:19]Connected sock=10 [13:27:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3F 01 00 00 F6 74 37 01 11 A1 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 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 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 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 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 37 48 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 42 C3 00 00 35 04 06 00 13 81 FB DC 21 64 69 FE A7 B8 9B FE 0D DB [13:27:19]Write to MH i2c: 01 00 00 E6 1D 03 [13:27:19]Write i2c OK [13:27:19]MH_I2C_Read... [13:27:19]Read from MH i2c: 01 [13:27:19]MH_I2C_Read... [13:27:19]Read from MH i2c: 01 07 00 [13:27:19]MH_I2C_Read... [13:27:19]Read from MH i2c: 01 07 00 E6 1D 00 00 00 00 00 B2 0C C8 [13:27:19]RasterBufferAndPrint [13:27:19]line [13:27:19]line [13:27:19]line [13:27:19]line [13:27:19]line [13:27:19]written 0, free lines is 3256 [13:27:19]MH_Cut [13:27:19]Write to MH i2c: D1 01 00 ED 1D 01 DC [13:27:19]Write i2c OK [13:27:19]MH_I2C_Read... [13:27:19]Read from MH i2c: D1 [13:27:19]MH_I2C_Read... [13:27:19]Read from MH i2c: D1 01 00 [13:27:19]MH_I2C_Read... [13:27:19]Read from MH i2c: D1 01 00 ED 1D 00 DB [13:27:19]Write to MH i2c: 01 00 00 EE 1D 0B [13:27:19]Write i2c OK [13:27:19]MH_I2C_Read... [13:27:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5E 85 47 00 7F 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 42 C3 00 00 F4 03 04 00 A5 F2 C2 66 B6 04 01 00 00 ED 99 EA 97 F0 9B 8C 06 [13:27:19]CommunicateWithHost err = 0 [13:27:19]CheckOFDResponse [13:27:19]1017 (14) - 77093643461234 [13:27:19]1041 (16) - 0000000000871800 [13:27:19]1040 (4) - 49986 [13:27:19]1012 (4) - 19.08.2024 07:22 [13:27:19]1206 (1) - 0 [13:27:19]OFD Sender: Remove packet 49986 [13:27:19]ProducePacketName [13:27:19]name=ofd_packets/00049986 [13:27:19]NVStorageDeleteData [13:27:19]OFD Sender: No OFD packet to send [13:27:20]*** Cut start [13:27:20]*** Purtial cut [13:27:20]*** Stage 1: CUTSNS_PIN = 1 [13:27:20]Read from MH i2c: 01 [13:27:20]MH_I2C_Read... [13:27:20]*** Stop cut motor [13:27:20]*** Cut end [13:27:20]Read from MH i2c: 01 07 00 [13:27:20]MH_I2C_Read... [13:27:20]Read from MH i2c: 01 07 00 EE 1D 00 00 00 00 00 FF 0F 20 [13:27:20]process_action close_receipt done [13:27:20]requested_data is exist [13:27:20]produce_requested_data [13:27:20]requested_item fm.sn is exist - process it [13:27:20]wFMCommunicate request_size=4 [13:27:20]MH_SAM_APDU [13:27:20]CAPDU: 80 11 00 00 [13:27:20]Write to MH i2c: E2 08 00 EF 1D 80 11 00 00 00 00 00 00 86 [13:27:20]Write i2c OK [13:27:20]MH_I2C_Read... [13:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:20]Read from MH i2c: E2 [13:27:20]MH_I2C_Read... [13:27:20]Read from MH i2c: E2 17 00 [13:27:20]MH_I2C_Read... [13:27:20]Read from MH i2c: E2 17 00 EF 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D1 [13:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:27:20]wFMCommunicate OK [13:27:20]requested_item fd.num is exist - process it [13:27:20]SAM_PROTO_GetFieldsCounters [13:27:20]wFMCommunicate request_size=4 [13:27:20]MH_SAM_APDU [13:27:20]CAPDU: 80 13 00 00 [13:27:20]Write to MH i2c: E2 08 00 F0 1D 80 13 00 00 00 00 00 00 89 [13:27:20]Write i2c OK [13:27:20]MH_I2C_Read... [13:27:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:20]Read from MH i2c: E2 [13:27:20]MH_I2C_Read... [13:27:20]Read from MH i2c: E2 62 00 [13:27:20]MH_I2C_Read... [13:27:20]Read from MH i2c: E2 62 00 F0 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 42 C3 00 00 0E 04 04 00 D3 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 93 [13:27:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 42 C3 00 00 0E 04 04 00 D3 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 [13:27:20]wFMCommunicate OK [13:27:20]SAM_PROTO_GetFieldsCounters done [13:27:20]requested_item shift.num is exist - process it [13:27:20]requested_item shift.opened is exist - process it [13:27:20]req_shift_opened [13:27:20]FM_GetShiftState [13:27:20]SAM_PROTO_GetShiftState [13:27:20]wFMCommunicate request_size=4 [13:27:20]MH_SAM_APDU [13:27:20]CAPDU: 80 13 01 00 [13:27:20]Write to MH i2c: E2 08 00 F1 1D 80 13 01 00 00 00 00 00 8B [13:27:20]Write i2c OK [13:27:20]MH_I2C_Read... [13:27:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:20]Read from MH i2c: E2 [13:27:20]MH_I2C_Read... [13:27:20]Read from MH i2c: E2 0E 00 [13:27:20]MH_I2C_Read... [13:27:20]Read from MH i2c: E2 0E 00 F1 1D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 45 [13:27:20]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:27:20]wFMCommunicate OK [13:27:20]SAM_PROTO_GetShiftState done [13:27:20]FM_GetShiftState done [13:27:20]req_shift_opened done [13:27:20]requested_item shift.open_date is exist - process it [13:27:20]req_shift_open_date [13:27:20]req_shift_open_date done [13:27:20]produce_requested_data done [13:27:20]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49986,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [13:27:20]process_action_free close_receipt [13:27:20]json_value_free [13:27:20]json_value_free done [13:27:20]process_json_proto returns [13:27:20]Send response to host [13:27:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49986,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [13:27:20]free response buf [13:27:20]execute_script done [13:27:20]execute_script returns [13:27:20]free content buf [13:27:20]Sock 9.Close socket [13:27:20]Sock 9.Thread stoped [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:09]accept exits with 7 [13:30:09]New connection [13:30:09]New thread 3067354468 created [13:30:09]Thread 3067211108 joined [13:30:09]Waiting for new connection... [13:30:09] Sock 7.Parse request [13:30:09]Sock 7.Check first char [13:30:09]Sock 7.First char is OK [13:30:09]request: POST /json_proto HTTP/1.0 [13:30:09]Method: POST [13:30:09]URL: /json_proto [13:30:09]Method is POST - this is cgi request [13:30:09]url: /json_proto [13:30:09]query_string will be loaded in cgi processing [13:30:09]execute_cgi json_proto POST (null) [13:30:09]execute_cgi path=json_proto method=POST [13:30:09]POST find Content-Length [13:30:09]Host: 172.17.46.196:8080 [13:30:09]Content-Length: 753 [13:30:09]Content-Type: application/json [13:30:09] [13:30:09]POST finish read [13:30:09]Found Content-Length = 753 [13:30:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116570", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:09]execute_script... [13:30:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116570", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:09]POST & json_proto [13:30:09]process_json_proto [13:30:09]json parsed OK: [13:30:09]protocol is kg_v1.0 [13:30:09]action value=close_receipt [13:30:09]process_action close_receipt [13:30:09]cmd_close_receipt [13:30:09]MH_GetDate [13:30:09]Write to MH i2c: F0 00 00 F2 1D FE [13:30:09]Write i2c OK [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: F0 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: F0 09 00 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: F0 09 00 F2 1D 00 E4 48 C3 66 C4 85 C2 66 CD [13:30:09]GetLastDocTimeStamp 1724074039 [13:30:09]current date 1724074212 [13:30:09]FM_GetShiftState [13:30:09]SAM_PROTO_GetShiftState [13:30:09]wFMCommunicate request_size=4 [13:30:09]MH_SAM_APDU [13:30:09]CAPDU: 80 13 01 00 [13:30:09]Write to MH i2c: E2 08 00 F3 1D 80 13 01 00 00 00 00 00 8D [13:30:09]Write i2c OK [13:30:09]MH_I2C_Read... [13:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:09]Read from MH i2c: E2 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: E2 0E 00 [13:30:09]MH_I2C_Read... [13:30:09]Read from MH i2c: E2 0E 00 F3 1D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 47 [13:30:09]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:30:09]wFMCommunicate OK [13:30:09]SAM_PROTO_GetShiftState done [13:30:09]FM_GetShiftState done [13:30:09]opened in 1724026361 [13:30:09]opened+sec_in_day 1724112761 [13:30:09]quantity*price = 0 [13:30:09]sum+1 = 1 [13:30:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 94 19.08.2024 13:30 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116570 ФМ: 0000000000871800 ФД: 49987 ФПД: 204382463871134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T133012&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49987&fm=204382463871134&tin=02508201610067®Number=0000000000092546&sum=0 [13:30:10]StoreToDocumentArchive [13:30:10]shift 467 fd 49987 [13:30:10]save to /storage/0467/doc_00049987 [13:30:10]save last doc name /storage/0467/doc_00049987 to /storage/kkm_last_doc_name [13:30:10]save OK [13:30:10]Clear old archive folders... [13:30:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:30:10]tlvbuf is 01068110 [13:30:10]SAM_PROTO_ClearQueue [13:30:10]wFMCommunicate request_size=4 [13:30:10]MH_SAM_APDU [13:30:10]CAPDU: 80 09 00 00 [13:30:10]Write to MH i2c: E2 08 00 00 1E 80 09 00 00 00 00 00 00 90 [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 00 1E 00 90 00 92 [13:30:10]RAPDU: 90 00 [13:30:10]wFMCommunicate OK [13:30:10]SAM_PROTO_ClearQueue done [13:30:10]KKMCreateOFDPacket [13:30:10]OFDProtocolAddRootSTLVToBuf [13:30:10]FM_MakeSignedData [13:30:10]FM_MakeSignedData [13:30:10]SAM_PROTO_SignData [13:30:10]wFMCommunicate request_size=4 [13:30:10]MH_SAM_APDU [13:30:10]CAPDU: 80 0D 01 02 [13:30:10]Write to MH i2c: E2 08 00 01 1E 80 0D 01 02 00 00 00 00 98 [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 01 1E 00 90 00 93 [13:30:10]RAPDU: 90 00 [13:30:10]wFMCommunicate OK [13:30:10]wFMCommunicate request_size=255 [13:30:10]MH_SAM_APDU [13:30:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 E4 48 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 43 C3 00 00 35 04 06 00 B9 E2 80 28 [13:30:10]Write to MH i2c: E2 02 01 02 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 E4 48 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 43 C3 00 00 35 04 06 00 B9 E2 80 28 00 00 2C [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 02 1E 00 90 00 94 [13:30:10]RAPDU: 90 00 [13:30:10]wFMCommunicate OK [13:30:10]wFMCommunicate request_size=7 [13:30:10]MH_SAM_APDU [13:30:10]CAPDU: 80 0D 02 02 02 48 9E [13:30:10]Write to MH i2c: E2 0A 00 03 1E 80 0D 02 02 02 00 48 9E 00 00 85 [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 03 1E 00 90 00 95 [13:30:10]RAPDU: 90 00 [13:30:10]wFMCommunicate OK [13:30:10]wFMCommunicate request_size=4 [13:30:10]MH_SAM_APDU [13:30:10]CAPDU: 80 0D 03 02 [13:30:10]Write to MH i2c: E2 08 00 04 1E 80 0D 03 02 00 00 00 00 9D [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 0B 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 0B 00 04 1E 00 76 53 4E 49 6E 77 F7 F6 90 00 D0 [13:30:10]RAPDU: 76 53 4E 49 6E 77 F7 F6 90 00 [13:30:10]wFMCommunicate OK [13:30:10]SAM_PROTO_SignData done [13:30:10]FM_MakeSignedData done [13:30:10]CreateOFDProtocolMessage [13:30:10]wFMCommunicate request_size=4 [13:30:10]MH_SAM_APDU [13:30:10]CAPDU: 80 11 00 00 [13:30:10]Write to MH i2c: E2 08 00 05 1E 80 11 00 00 00 00 00 00 9D [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 17 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 17 00 05 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E8 [13:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:30:10]wFMCommunicate OK [13:30:10]CreateOFDProtocolMessage done [13:30:10]OFDSenderStorePacket 49987 [13:30:10]StoreOFDPacket docnum=49987 [13:30:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 90 65 04 01 4B 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 E4 48 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 43 C3 00 00 35 04 06 00 B9 E2 80 28 48 9E 76 53 4E 49 6E 77 F7 F6 [13:30:10]CheckFolder [13:30:10]dirname=/storage/ofd_packets [13:30:10]CheckFolder done [13:30:10]ProducePacketName [13:30:10]name=ofd_packets/00049987 [13:30:10]NVStorageSaveData ofd_packets/00049987 [13:30:10]File name is /storage/ofd_packets/00049987 [13:30:10]Write 298 bytes [13:30:10]NVStorageSaveData done [13:30:10]OFDSenderStorePacket done [13:30:10]KKMCreateOFDPacket done [13:30:10]NVStorageSaveData kkm_last_timestamp [13:30:10]File name is /storage/kkm_last_timestamp [13:30:10]Write 4 bytes [13:30:10]NVStorageSaveData done [13:30:10]ExternCall_PrintAddStr [13:30:10]wPrintStart [13:30:10]Write to MH i2c: 01 00 00 06 1E 24 [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: 01 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: 01 07 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: 01 07 00 06 1E 00 00 00 00 00 FF 0F 39 [13:30:10]RasterBufferAndPrint [13:30:10]line Счет N : (1)11327817 [13:30:10]line ИНН: 02508201610067 [13:30:10]line Контрольно-Кассовый Чек [13:30:10]line ПРОДАЖА [13:30:10]line ТРК (МРК, ГНК) : 61 [13:30:10]line Товар: 2710194210 [13:30:10]line ДТ-К-5 [13:30:10]line 20.000 * 0.00 [13:30:10]line = 0.00 [13:30:10]line НДС 12% НСП 1% [13:30:10]line > о реализуемом товаре [13:30:10]line ИТОГО: 0.00 [13:30:10]line НСП 1% : 0.00 [13:30:10]line НДС 12% : 0.00 [13:30:10]line Наличными: 0.00 [13:30:10]line Безнал.: 0.00 [13:30:10]line Место: АЗС № 95 "Партнер Нефть" [13:30:10]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:30:10]line СНО: Общий режим [13:30:10]line Чек 94 19.08.2024 13:30 [13:30:10]line Смена: 467 ФФД: 1.0 [13:30:10]line ЗНМ: 0300000078 [13:30:10]line РНМ: 0000000000092546 [13:30:10]line Версия ККМ: 001 [13:30:10]line Талоны: ТК ГПНА Online [13:30:10]line 30116570 [13:30:10]line ФМ: 0000000000871800 [13:30:10]line ФД: 49987 [13:30:10]line ФПД: 204382463871134 [13:30:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T133012&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49987&fm=204382463871134&tin=02508201610067®Number=0000000000092546&sum=0 [13:30:11]OFD Sender: Processing packet 49987 [packets to send 21, broken 20] [13:30:11]ProducePacketName [13:30:11]name=ofd_packets/00049987 [13:30:11]OFD Sender: To server: pG, [13:30:11]CommunicateWithHost lk.salyk.kg:30040 [13:30:11]ConnectInit lk.salyk.kg [13:30:11]written 0, free lines is 4095 [13:30:11]Connected sock=10 [13:30:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 90 65 04 01 4B 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 E4 48 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 43 C3 00 00 35 04 06 00 B9 E2 80 28 48 9E 76 53 4E 49 6E 77 F7 F6 [13:30:11]Write to MH i2c: 01 00 00 30 1E 4E [13:30:11]Write i2c OK [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: 01 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: 01 07 00 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: 01 07 00 30 1E 00 00 00 00 00 D3 0C 34 [13:30:11]RasterBufferAndPrint [13:30:11]line [13:30:11]line [13:30:11]line [13:30:11]line [13:30:11]line [13:30:11]written 0, free lines is 3289 [13:30:11]MH_Cut [13:30:11]Write to MH i2c: D1 01 00 37 1E 01 27 [13:30:11]Write i2c OK [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: D1 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: D1 01 00 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: D1 01 00 37 1E 00 26 [13:30:11]Write to MH i2c: 01 00 00 38 1E 56 [13:30:11]Write i2c OK [13:30:11]MH_I2C_Read... [13:30:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 8A 2A 47 00 9E 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 43 C3 00 00 F4 03 04 00 51 F3 C2 66 B6 04 01 00 00 15 75 46 C6 43 FF 28 38 [13:30:11]CommunicateWithHost err = 0 [13:30:11]CheckOFDResponse [13:30:11]1017 (14) - 77093643461234 [13:30:11]1041 (16) - 0000000000871800 [13:30:11]1040 (4) - 49987 [13:30:11]1012 (4) - 19.08.2024 07:25 [13:30:11]1206 (1) - 0 [13:30:11]OFD Sender: Remove packet 49987 [13:30:11]ProducePacketName [13:30:11]name=ofd_packets/00049987 [13:30:11]NVStorageDeleteData [13:30:12]OFD Sender: No OFD packet to send [13:30:12]*** Cut start [13:30:12]*** Purtial cut [13:30:12]*** CUTSNS_PIN = 0 [13:30:12]*** Stage 1: CUTSNS_PIN = 1 [13:30:14]Read from MH i2c: 01 [13:30:14]MH_I2C_Read... [13:30:14]*** Stop cut motor [13:30:14]*** Cut end [13:30:14]Read from MH i2c: 01 07 00 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: 01 07 00 38 1E 00 00 00 00 00 FF 0F 6B [13:30:14]process_action close_receipt done [13:30:14]requested_data is exist [13:30:14]produce_requested_data [13:30:14]requested_item fm.sn is exist - process it [13:30:14]wFMCommunicate request_size=4 [13:30:14]MH_SAM_APDU [13:30:14]CAPDU: 80 11 00 00 [13:30:14]Write to MH i2c: E2 08 00 39 1E 80 11 00 00 00 00 00 00 D1 [13:30:14]Write i2c OK [13:30:14]MH_I2C_Read... [13:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:14]Read from MH i2c: E2 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: E2 17 00 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: E2 17 00 39 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1C [13:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:30:14]wFMCommunicate OK [13:30:14]requested_item fd.num is exist - process it [13:30:14]SAM_PROTO_GetFieldsCounters [13:30:14]wFMCommunicate request_size=4 [13:30:14]MH_SAM_APDU [13:30:14]CAPDU: 80 13 00 00 [13:30:14]Write to MH i2c: E2 08 00 3A 1E 80 13 00 00 00 00 00 00 D4 [13:30:14]Write i2c OK [13:30:14]MH_I2C_Read... [13:30:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:14]Read from MH i2c: E2 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: E2 62 00 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: E2 62 00 3A 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 43 C3 00 00 0E 04 04 00 D3 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 E2 [13:30:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 43 C3 00 00 0E 04 04 00 D3 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 [13:30:14]wFMCommunicate OK [13:30:14]SAM_PROTO_GetFieldsCounters done [13:30:14]requested_item shift.num is exist - process it [13:30:14]requested_item shift.opened is exist - process it [13:30:14]req_shift_opened [13:30:14]FM_GetShiftState [13:30:14]SAM_PROTO_GetShiftState [13:30:14]wFMCommunicate request_size=4 [13:30:14]MH_SAM_APDU [13:30:14]CAPDU: 80 13 01 00 [13:30:14]Write to MH i2c: E2 08 00 3B 1E 80 13 01 00 00 00 00 00 D6 [13:30:14]Write i2c OK [13:30:14]MH_I2C_Read... [13:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:14]Read from MH i2c: E2 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: E2 0E 00 [13:30:14]MH_I2C_Read... [13:30:14]Read from MH i2c: E2 0E 00 3B 1E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 90 [13:30:14]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:30:14]wFMCommunicate OK [13:30:14]SAM_PROTO_GetShiftState done [13:30:14]FM_GetShiftState done [13:30:14]req_shift_opened done [13:30:14]requested_item shift.open_date is exist - process it [13:30:14]req_shift_open_date [13:30:14]req_shift_open_date done [13:30:14]produce_requested_data done [13:30:14]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49987,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [13:30:14]process_action_free close_receipt [13:30:14]json_value_free [13:30:14]json_value_free done [13:30:14]process_json_proto returns [13:30:14]Send response to host [13:30:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49987,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [13:30:14]free response buf [13:30:14]execute_script done [13:30:14]execute_script returns [13:30:14]free content buf [13:30:14]Sock 7.Close socket [13:30:14]Sock 7.Thread stoped [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:18]accept exits with 9 [13:34:18]New connection [13:34:18]New thread 3067211108 created [13:34:18]Thread 3067354468 joined [13:34:18]Waiting for new connection... [13:34:18] Sock 9.Parse request [13:34:18]Sock 9.Check first char [13:34:18]Sock 9.First char is OK [13:34:18]request: POST /json_proto HTTP/1.0 [13:34:18]Method: POST [13:34:18]URL: /json_proto [13:34:18]Method is POST - this is cgi request [13:34:18]url: /json_proto [13:34:18]query_string will be loaded in cgi processing [13:34:18]execute_cgi json_proto POST (null) [13:34:18]execute_cgi path=json_proto method=POST [13:34:18]POST find Content-Length [13:34:18]Host: 172.17.46.196:8080 [13:34:18]Content-Length: 845 [13:34:18]Content-Type: application/json [13:34:18] [13:34:18]POST finish read [13:34:18]Found Content-Length = 845 [13:34:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190125", "tax_sys" : 0, "items" : [ { "code": "4607015235784", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:18]execute_script... [13:34: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)190125", "tax_sys" : 0, "items" : [ { "code": "4607015235784", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:18]POST & json_proto [13:34:18]process_json_proto [13:34:18]json parsed OK: [13:34:18]protocol is kg_v1.0 [13:34:18]action value=close_receipt [13:34:18]process_action close_receipt [13:34:18]cmd_close_receipt [13:34:18]MH_GetDate [13:34:18]Write to MH i2c: F0 00 00 3C 1E 49 [13:34:18]Write i2c OK [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: F0 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: F0 09 00 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: F0 09 00 3C 1E 00 DD 49 C3 66 C4 85 C2 66 12 [13:34:18]GetLastDocTimeStamp 1724074212 [13:34:18]current date 1724074461 [13:34:18]FM_GetShiftState [13:34:18]SAM_PROTO_GetShiftState [13:34:18]wFMCommunicate request_size=4 [13:34:18]MH_SAM_APDU [13:34:18]CAPDU: 80 13 01 00 [13:34:18]Write to MH i2c: E2 08 00 3D 1E 80 13 01 00 00 00 00 00 D8 [13:34:18]Write i2c OK [13:34:18]MH_I2C_Read... [13:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:18]Read from MH i2c: E2 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: E2 0E 00 [13:34:18]MH_I2C_Read... [13:34:18]Read from MH i2c: E2 0E 00 3D 1E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 92 [13:34:18]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:34:18]wFMCommunicate OK [13:34:18]SAM_PROTO_GetShiftState done [13:34:18]FM_GetShiftState done [13:34:18]opened in 1724026361 [13:34:18]opened+sec_in_day 1724112761 [13:34:18]quantity*price = 9000 [13:34:18]sum+1 = 9001 [13:34:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 0.00 Безнал.: 90.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 95 19.08.2024 13:34 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49988 ФПД: 94714285715524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T133421&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49988&fm=94714285715524&tin=02508201610067®Number=0000000000092546&sum=9000 0 [13:34:19]StoreToDocumentArchive [13:34:19]shift 467 fd 49988 [13:34:19]save to /storage/0467/doc_00049988 [13:34:19]save last doc name /storage/0467/doc_00049988 to /storage/kkm_last_doc_name [13:34:19]save OK [13:34:19]Clear old archive folders... [13:34:19]ProcessDocumentItem done err = 0, tmpTLVsize=291 [13:34:19]tlvbuf is B6FB74D0 [13:34:19]SAM_PROTO_ClearQueue [13:34:19]wFMCommunicate request_size=4 [13:34:19]MH_SAM_APDU [13:34:19]CAPDU: 80 09 00 00 [13:34:19]Write to MH i2c: E2 08 00 4A 1E 80 09 00 00 00 00 00 00 DA [13:34:19]Write i2c OK [13:34:19]MH_I2C_Read... [13:34:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:19]Read from MH i2c: E2 [13:34:19]MH_I2C_Read... [13:34:19]Read from MH i2c: E2 03 00 [13:34:19]MH_I2C_Read... [13:34:19]Read from MH i2c: E2 03 00 4A 1E 00 90 00 DC [13:34:19]RAPDU: 90 00 [13:34:19]wFMCommunicate OK [13:34:19]SAM_PROTO_ClearQueue done [13:34:19]KKMCreateOFDPacket [13:34:19]OFDProtocolAddRootSTLVToBuf [13:34:19]FM_MakeSignedData [13:34:19]FM_MakeSignedData [13:34:19]SAM_PROTO_SignData [13:34:19]wFMCommunicate request_size=4 [13:34:19]MH_SAM_APDU [13:34:19]CAPDU: 80 0D 01 02 [13:34:19]Write to MH i2c: E2 08 00 4B 1E 80 0D 01 02 00 00 00 00 E2 [13:34:19]Write i2c OK [13:34:19]MH_I2C_Read... [13:34:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:19]Read from MH i2c: E2 [13:34:19]MH_I2C_Read... [13:34:19]Read from MH i2c: E2 03 00 [13:34:19]MH_I2C_Read... [13:34:19]Read from MH i2c: E2 03 00 4B 1E 00 90 00 DD [13:34:19]RAPDU: 90 00 [13:34:19]wFMCommunicate OK [13:34:19]wFMCommunicate request_size=255 [13:34:19]MH_SAM_APDU [13:34:19]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 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 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 DD 49 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [13:34:19]Write to MH i2c: E2 02 01 4C 1E 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 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 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 DD 49 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 68 [13:34:19]Write i2c OK [13:34:19]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 4C 1E 00 90 00 DE [13:34:20]RAPDU: 90 00 [13:34:20]wFMCommunicate OK [13:34:20]wFMCommunicate request_size=50 [13:34:20]MH_SAM_APDU [13:34:20]CAPDU: 80 0D 02 02 2D 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 44 C3 00 00 35 04 06 00 56 24 63 5A F0 44 [13:34:20]Write to MH i2c: E2 35 00 4D 1E 80 0D 02 02 2D 00 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 44 C3 00 00 35 04 06 00 56 24 63 5A F0 44 00 00 AF [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 03 00 4D 1E 00 90 00 DF [13:34:20]RAPDU: 90 00 [13:34:20]wFMCommunicate OK [13:34:20]wFMCommunicate request_size=4 [13:34:20]MH_SAM_APDU [13:34:20]CAPDU: 80 0D 03 02 [13:34:20]Write to MH i2c: E2 08 00 4E 1E 80 0D 03 02 00 00 00 00 E7 [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 0B 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 0B 00 4E 1E 00 A4 A6 B7 A8 31 15 45 34 90 00 50 [13:34:20]RAPDU: A4 A6 B7 A8 31 15 45 34 90 00 [13:34:20]wFMCommunicate OK [13:34:20]SAM_PROTO_SignData done [13:34:20]FM_MakeSignedData done [13:34:20]CreateOFDProtocolMessage [13:34:20]wFMCommunicate request_size=4 [13:34:20]MH_SAM_APDU [13:34:20]CAPDU: 80 11 00 00 [13:34:20]Write to MH i2c: E2 08 00 4F 1E 80 11 00 00 00 00 00 00 E7 [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:20]Read from MH i2c: E2 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 17 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: E2 17 00 4F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 32 [13:34:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:34:20]wFMCommunicate OK [13:34:20]CreateOFDProtocolMessage done [13:34:20]OFDSenderStorePacket 49988 [13:34:20]StoreOFDPacket docnum=49988 [13:34:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 37 01 00 00 96 10 2F 01 BA 48 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 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 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 DD 49 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 44 C3 00 00 35 04 06 00 56 24 63 5A F0 44 A4 A6 B7 A8 31 15 45 34 [13:34:20]CheckFolder [13:34:20]dirname=/storage/ofd_packets [13:34:20]CheckFolder done [13:34:20]ProducePacketName [13:34:20]name=ofd_packets/00049988 [13:34:20]NVStorageSaveData ofd_packets/00049988 [13:34:20]File name is /storage/ofd_packets/00049988 [13:34:20]Write 341 bytes [13:34:20]NVStorageSaveData done [13:34:20]OFDSenderStorePacket done [13:34:20]KKMCreateOFDPacket done [13:34:20]NVStorageSaveData kkm_last_timestamp [13:34:20]File name is /storage/kkm_last_timestamp [13:34:20]Write 4 bytes [13:34:20]NVStorageSaveData done [13:34:20]ExternCall_PrintAddStr [13:34:20]wPrintStart [13:34:20]Write to MH i2c: 01 00 00 50 1E 6E [13:34:20]Write i2c OK [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: 01 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: 01 07 00 [13:34:20]MH_I2C_Read... [13:34:20]Read from MH i2c: 01 07 00 50 1E 00 00 00 00 00 FF 0F 83 [13:34:20]RasterBufferAndPrint [13:34:20]line Счет N : (3)190125 [13:34:20]line ИНН: 02508201610067 [13:34:20]line Контрольно-Кассовый Чек [13:34:20]line ПРОДАЖА [13:34:20]line Товар: 4607015235784 [13:34:20]line Печ. сд. Яшкино клубника 137г [13:34:20]line 1.000 * 90.00 [13:34:20]line = 90.00 [13:34:20]line НДС 12% НСП 1% [13:34:20]line > о реализуемом товаре [13:34:20]line ИТОГО: 90.00 [13:34:20]line НСП 1% : 0.80 [13:34:20]line НДС 12% : 9.56 [13:34:20]line Наличными: 0.00 [13:34:20]line Безнал.: 90.00 [13:34:20]line Место: АЗС № 95 "Партнер Нефть" [13:34:20]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:34:20]line СНО: Общий режим [13:34:20]line Чек 95 19.08.2024 13:34 [13:34:20]line Смена: 467 ФФД: 1.0 [13:34:20]line ЗНМ: 0300000078 [13:34:20]line РНМ: 0000000000092546 [13:34:20]line Версия ККМ: 001 [13:34:20]line Платежная система: O! деньги [13:34:20]line ФМ: 0000000000871800 [13:34:20]line ФД: 49988 [13:34:20]line ФПД: 94714285715524 [13:34:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T133421&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49988&fm=94714285715524&tin=02508201610067®Number=0000000000092546&sum=9000 [13:34:20]OFD Sender: Processing packet 49988 [packets to send 21, broken 20] [13:34:20]ProducePacketName [13:34:20]name=ofd_packets/00049988 [13:34:20]OFD Sender: To server: pG, [13:34:20]CommunicateWithHost lk.salyk.kg:30040 [13:34:20]ConnectInit lk.salyk.kg [13:34:20]line 0 [13:34:20]written 0, free lines is 4095 [13:34:20]Connected sock=10 [13:34:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 37 01 00 00 96 10 2F 01 BA 48 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 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 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 DD 49 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 44 C3 00 00 35 04 06 00 56 24 63 5A F0 44 A4 A6 B7 A8 31 15 45 34 [13:34:21]Write to MH i2c: 01 00 00 7B 1E 99 [13:34:21]Write i2c OK [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: 01 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: 01 07 00 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: 01 07 00 7B 1E 00 00 00 00 00 BB 0C 67 [13:34:21]RasterBufferAndPrint [13:34:21]line [13:34:21]line [13:34:21]line [13:34:21]line [13:34:21]line [13:34:21]written 0, free lines is 3265 [13:34:21]MH_Cut [13:34:21]Write to MH i2c: D1 01 00 82 1E 01 72 [13:34:21]Write i2c OK [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: D1 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: D1 01 00 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: D1 01 00 82 1E 00 71 [13:34:21]Write to MH i2c: 01 00 00 83 1E A1 [13:34:21]Write i2c OK [13:34:21]MH_I2C_Read... [13:34:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 17 C0 47 00 DC 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 44 C3 00 00 F4 03 04 00 4B F4 C2 66 B6 04 01 00 00 EA A9 2A CF B9 9F 5C CF [13:34:21]CommunicateWithHost err = 0 [13:34:21]CheckOFDResponse [13:34:21]1017 (14) - 77093643461234 [13:34:21]1041 (16) - 0000000000871800 [13:34:21]1040 (4) - 49988 [13:34:21]1012 (4) - 19.08.2024 07:29 [13:34:21]1206 (1) - 0 [13:34:21]OFD Sender: Remove packet 49988 [13:34:21]ProducePacketName [13:34:21]name=ofd_packets/00049988 [13:34:21]NVStorageDeleteData [13:34:21]OFD Sender: No OFD packet to send [13:34:22]*** Cut start [13:34:22]*** Purtial cut [13:34:22]*** Stage 1: CUTSNS_PIN = 1 [13:34:22]Read from MH i2c: 01 [13:34:22]MH_I2C_Read... [13:34:22]*** Stop cut motor [13:34:22]*** Cut end [13:34:22]Read from MH i2c: 01 07 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: 01 07 00 83 1E 00 00 00 00 00 FF 0F B6 [13:34:22]process_action close_receipt done [13:34:22]requested_data is exist [13:34:22]produce_requested_data [13:34:22]requested_item fm.sn is exist - process it [13:34:22]wFMCommunicate request_size=4 [13:34:22]MH_SAM_APDU [13:34:22]CAPDU: 80 11 00 00 [13:34:22]Write to MH i2c: E2 08 00 84 1E 80 11 00 00 00 00 00 00 1C [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:22]Read from MH i2c: E2 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 17 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 17 00 84 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 67 [13:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:34:22]wFMCommunicate OK [13:34:22]requested_item fd.num is exist - process it [13:34:22]SAM_PROTO_GetFieldsCounters [13:34:22]wFMCommunicate request_size=4 [13:34:22]MH_SAM_APDU [13:34:22]CAPDU: 80 13 00 00 [13:34:22]Write to MH i2c: E2 08 00 85 1E 80 13 00 00 00 00 00 00 1F [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:22]Read from MH i2c: E2 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 62 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 62 00 85 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 44 C3 00 00 0E 04 04 00 D3 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 31 [13:34:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 44 C3 00 00 0E 04 04 00 D3 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 [13:34:22]wFMCommunicate OK [13:34:22]SAM_PROTO_GetFieldsCounters done [13:34:22]requested_item shift.num is exist - process it [13:34:22]requested_item shift.opened is exist - process it [13:34:22]req_shift_opened [13:34:22]FM_GetShiftState [13:34:22]SAM_PROTO_GetShiftState [13:34:22]wFMCommunicate request_size=4 [13:34:22]MH_SAM_APDU [13:34:22]CAPDU: 80 13 01 00 [13:34:22]Write to MH i2c: E2 08 00 86 1E 80 13 01 00 00 00 00 00 21 [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:22]Read from MH i2c: E2 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 0E 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 0E 00 86 1E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 DB [13:34:22]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:34:22]wFMCommunicate OK [13:34:22]SAM_PROTO_GetShiftState done [13:34:22]FM_GetShiftState done [13:34:22]req_shift_opened done [13:34:22]requested_item shift.open_date is exist - process it [13:34:22]req_shift_open_date [13:34:22]req_shift_open_date done [13:34:22]produce_requested_data done [13:34:22]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49988,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [13:34:22]process_action_free close_receipt [13:34:22]json_value_free [13:34:22]json_value_free done [13:34:22]process_json_proto returns [13:34:22]Send response to host [13:34:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49988,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [13:34:22]free response buf [13:34:22]execute_script done [13:34:22]execute_script returns [13:34:22]free content buf [13:34:22]Sock 9.Close socket [13:34:22]Sock 9.Thread stoped [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:07]accept exits with 7 [13:41:07]New connection [13:41:07]New thread 3067354468 created [13:41:07]Thread 3067211108 joined [13:41:07]Waiting for new connection... [13:41:07] Sock 7.Parse request [13:41:07]Sock 7.Check first char [13:41:07]Sock 7.First char is OK [13:41:07]request: POST /json_proto HTTP/1.0 [13:41:07]Method: POST [13:41:07]URL: /json_proto [13:41:07]Method is POST - this is cgi request [13:41:07]url: /json_proto [13:41:07]query_string will be loaded in cgi processing [13:41:07]execute_cgi json_proto POST (null) [13:41:07]execute_cgi path=json_proto method=POST [13:41:07]POST find Content-Length [13:41:07]Host: 172.17.46.196:8080 [13:41:07]Content-Length: 810 [13:41:07]Content-Type: application/json [13:41:07] [13:41:07]POST finish read [13:41:07]Found Content-Length = 810 [13:41:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190126", "tax_sys" : 0, "items" : [ { "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:07]execute_script... [13:41: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)190126", "tax_sys" : 0, "items" : [ { "code": "4870227272957", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:07]POST & json_proto [13:41:07]process_json_proto [13:41:07]json parsed OK: [13:41:07]protocol is kg_v1.0 [13:41:07]action value=close_receipt [13:41:07]process_action close_receipt [13:41:07]cmd_close_receipt [13:41:07]MH_GetDate [13:41:07]Write to MH i2c: F0 00 00 87 1E 94 [13:41:07]Write i2c OK [13:41:07]MH_I2C_Read... [13:41:07]Read from MH i2c: F0 [13:41:07]MH_I2C_Read... [13:41:07]Read from MH i2c: F0 09 00 [13:41:07]MH_I2C_Read... [13:41:07]Read from MH i2c: F0 09 00 87 1E 00 76 4B C3 66 C4 85 C2 66 F8 [13:41:07]GetLastDocTimeStamp 1724074461 [13:41:07]current date 1724074870 [13:41:07]FM_GetShiftState [13:41:07]SAM_PROTO_GetShiftState [13:41:07]wFMCommunicate request_size=4 [13:41:07]MH_SAM_APDU [13:41:07]CAPDU: 80 13 01 00 [13:41:07]Write to MH i2c: E2 08 00 88 1E 80 13 01 00 00 00 00 00 23 [13:41:07]Write i2c OK [13:41:07]MH_I2C_Read... [13:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:07]Read from MH i2c: E2 [13:41:07]MH_I2C_Read... [13:41:07]Read from MH i2c: E2 0E 00 [13:41:07]MH_I2C_Read... [13:41:07]Read from MH i2c: E2 0E 00 88 1E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 DD [13:41:07]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:41:07]wFMCommunicate OK [13:41:07]SAM_PROTO_GetShiftState done [13:41:07]FM_GetShiftState done [13:41:07]opened in 1724026361 [13:41:07]opened+sec_in_day 1724112761 [13:41:07]quantity*price = 8500 [13:41:07]sum+1 = 8501 [13:41:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 96 19.08.2024 13:41 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49989 ФПД: 73339297206556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T134110&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49989&fm=73339297206556&tin=02508201610067®Number=0000000000092546&sum=8500 0 [13:41:08]StoreToDocumentArchive [13:41:08]shift 467 fd 49989 [13:41:08]save to /storage/0467/doc_00049989 [13:41:08]save last doc name /storage/0467/doc_00049989 to /storage/kkm_last_doc_name [13:41:08]save OK [13:41:08]Clear old archive folders... [13:41:08]ProcessDocumentItem done err = 0, tmpTLVsize=280 [13:41:08]tlvbuf is 01061320 [13:41:08]SAM_PROTO_ClearQueue [13:41:08]wFMCommunicate request_size=4 [13:41:08]MH_SAM_APDU [13:41:08]CAPDU: 80 09 00 00 [13:41:08]Write to MH i2c: E2 08 00 95 1E 80 09 00 00 00 00 00 00 25 [13:41:08]Write i2c OK [13:41:08]MH_I2C_Read... [13:41:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:08]Read from MH i2c: E2 [13:41:08]MH_I2C_Read... [13:41:08]Read from MH i2c: E2 03 00 [13:41:08]MH_I2C_Read... [13:41:08]Read from MH i2c: E2 03 00 95 1E 00 90 00 27 [13:41:08]RAPDU: 90 00 [13:41:08]wFMCommunicate OK [13:41:08]SAM_PROTO_ClearQueue done [13:41:08]KKMCreateOFDPacket [13:41:08]OFDProtocolAddRootSTLVToBuf [13:41:08]FM_MakeSignedData [13:41:08]FM_MakeSignedData [13:41:08]SAM_PROTO_SignData [13:41:08]wFMCommunicate request_size=4 [13:41:08]MH_SAM_APDU [13:41:08]CAPDU: 80 0D 01 02 [13:41:08]Write to MH i2c: E2 08 00 96 1E 80 0D 01 02 00 00 00 00 2D [13:41:08]Write i2c OK [13:41:08]MH_I2C_Read... [13:41:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:08]Read from MH i2c: E2 [13:41:08]MH_I2C_Read... [13:41:08]Read from MH i2c: E2 03 00 [13:41:08]MH_I2C_Read... [13:41:08]Read from MH i2c: E2 03 00 96 1E 00 90 00 28 [13:41:08]RAPDU: 90 00 [13:41:08]wFMCommunicate OK [13:41:08]wFMCommunicate request_size=255 [13:41:08]MH_SAM_APDU [13:41:08]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 76 4B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [13:41:08]Write to MH i2c: E2 02 01 97 1E 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 76 4B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 28 [13:41:08]Write i2c OK [13:41:08]MH_I2C_Read... [13:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:09]Read from MH i2c: E2 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 03 00 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 03 00 97 1E 00 90 00 29 [13:41:09]RAPDU: 90 00 [13:41:09]wFMCommunicate OK [13:41:09]wFMCommunicate request_size=39 [13:41:09]MH_SAM_APDU [13:41:09]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 45 C3 00 00 35 04 06 00 42 B3 A2 C2 11 1C [13:41:09]Write to MH i2c: E2 2A 00 98 1E 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 45 C3 00 00 35 04 06 00 42 B3 A2 C2 11 1C 00 00 71 [13:41:09]Write i2c OK [13:41:09]MH_I2C_Read... [13:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:09]Read from MH i2c: E2 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 03 00 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 03 00 98 1E 00 90 00 2A [13:41:09]RAPDU: 90 00 [13:41:09]wFMCommunicate OK [13:41:09]wFMCommunicate request_size=4 [13:41:09]MH_SAM_APDU [13:41:09]CAPDU: 80 0D 03 02 [13:41:09]Write to MH i2c: E2 08 00 99 1E 80 0D 03 02 00 00 00 00 32 [13:41:09]Write i2c OK [13:41:09]MH_I2C_Read... [13:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:09]Read from MH i2c: E2 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 0B 00 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 0B 00 99 1E 00 8A 89 E7 8A 97 49 7D AD 90 00 C1 [13:41:09]RAPDU: 8A 89 E7 8A 97 49 7D AD 90 00 [13:41:09]wFMCommunicate OK [13:41:09]SAM_PROTO_SignData done [13:41:09]FM_MakeSignedData done [13:41:09]CreateOFDProtocolMessage [13:41:09]wFMCommunicate request_size=4 [13:41:09]MH_SAM_APDU [13:41:09]CAPDU: 80 11 00 00 [13:41:09]Write to MH i2c: E2 08 00 9A 1E 80 11 00 00 00 00 00 00 32 [13:41:09]Write i2c OK [13:41:09]MH_I2C_Read... [13:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:09]Read from MH i2c: E2 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 17 00 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 17 00 9A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7D [13:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:41:09]wFMCommunicate OK [13:41:09]CreateOFDProtocolMessage done [13:41:09]OFDSenderStorePacket 49989 [13:41:09]StoreOFDPacket docnum=49989 [13:41:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 A7 59 24 01 12 4E 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 76 4B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 45 C3 00 00 35 04 06 00 42 B3 A2 C2 11 1C 8A 89 E7 8A 97 49 7D AD [13:41:09]CheckFolder [13:41:09]dirname=/storage/ofd_packets [13:41:09]CheckFolder done [13:41:09]ProducePacketName [13:41:09]name=ofd_packets/00049989 [13:41:09]NVStorageSaveData ofd_packets/00049989 [13:41:09]File name is /storage/ofd_packets/00049989 [13:41:09]Write 330 bytes [13:41:09]NVStorageSaveData done [13:41:09]OFDSenderStorePacket done [13:41:09]KKMCreateOFDPacket done [13:41:09]NVStorageSaveData kkm_last_timestamp [13:41:09]File name is /storage/kkm_last_timestamp [13:41:09]Write 4 bytes [13:41:09]NVStorageSaveData done [13:41:09]ExternCall_PrintAddStr [13:41:09]wPrintStart [13:41:09]Write to MH i2c: 01 00 00 9B 1E B9 [13:41:09]Write i2c OK [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: 01 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: 01 07 00 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: 01 07 00 9B 1E 00 00 00 00 00 FF 0F CE [13:41:09]RasterBufferAndPrint [13:41:09]line Счет N : (3)190126 [13:41:09]line ИНН: 02508201610067 [13:41:09]line Контрольно-Кассовый Чек [13:41:09]line ПРОДАЖА [13:41:09]line Товар: 4870227272957 [13:41:09]line Лимонад Sunbel Тархун 1л [13:41:09]line 1.000 * 85.00 [13:41:09]line = 85.00 [13:41:09]line НДС 12% НСП 1% [13:41:09]line > о реализуемом товаре [13:41:09]line ИТОГО: 85.00 [13:41:09]line НСП 1% : 0.75 [13:41:09]line НДС 12% : 9.03 [13:41:09]line Наличными: 0.00 [13:41:09]line Безнал.: 85.00 [13:41:09]line Место: АЗС № 95 "Партнер Нефть" [13:41:09]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:41:09]line СНО: Общий режим [13:41:09]line Чек 96 19.08.2024 13:41 [13:41:09]line Смена: 467 ФФД: 1.0 [13:41:09]line ЗНМ: 0300000078 [13:41:09]line РНМ: 0000000000092546 [13:41:09]line Версия ККМ: 001 [13:41:09]line Платежная система: O! деньги [13:41:09]line ФМ: 0000000000871800 [13:41:09]line ФД: 49989 [13:41:09]line ФПД: 73339297206556 [13:41:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T134110&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49989&fm=73339297206556&tin=02508201610067®Number=0000000000092546&sum=8500 [13:41:09]OFD Sender: Processing packet 49989 [packets to send 21, broken 20] [13:41:09]ProducePacketName [13:41:09]name=ofd_packets/00049989 [13:41:09]OFD Sender: To server: pG, [13:41:09]CommunicateWithHost lk.salyk.kg:30040 [13:41:09]ConnectInit lk.salyk.kg [13:41:09]line 0 [13:41:09]written 0, free lines is 4095 [13:41:10]Write to MH i2c: 01 00 00 C5 1E E3 [13:41:10]Write i2c OK [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: 01 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: 01 07 00 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: 01 07 00 C5 1E 00 00 00 00 00 C5 0C BB [13:41:10]RasterBufferAndPrint [13:41:10]line [13:41:10]line [13:41:10]line [13:41:10]line [13:41:10]line [13:41:10]written 0, free lines is 3275 [13:41:10]MH_Cut [13:41:10]Write to MH i2c: D1 01 00 CC 1E 01 BC [13:41:10]Write i2c OK [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: D1 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: D1 01 00 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: D1 01 00 CC 1E 00 BB [13:41:10]Write to MH i2c: 01 00 00 CD 1E EB [13:41:10]Write i2c OK [13:41:10]MH_I2C_Read... [13:41:10]Connected sock=10 [13:41:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 A7 59 24 01 12 4E 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 76 4B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 45 C3 00 00 35 04 06 00 42 B3 A2 C2 11 1C 8A 89 E7 8A 97 49 7D AD [13:41:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 BA 20 47 00 10 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 45 C3 00 00 F4 03 04 00 E4 F5 C2 66 B6 04 01 00 00 5D 7A 07 F6 90 CD 83 14 [13:41:10]CommunicateWithHost err = 0 [13:41:10]CheckOFDResponse [13:41:10]1017 (14) - 77093643461234 [13:41:10]1041 (16) - 0000000000871800 [13:41:10]1040 (4) - 49989 [13:41:10]1012 (4) - 19.08.2024 07:36 [13:41:10]1206 (1) - 0 [13:41:10]OFD Sender: Remove packet 49989 [13:41:10]ProducePacketName [13:41:10]name=ofd_packets/00049989 [13:41:10]NVStorageDeleteData [13:41:10]*** Cut start [13:41:10]*** Purtial cut [13:41:10]*** CUTSNS_PIN = 0 [13:41:11]OFD Sender: No OFD packet to send [13:41:11]*** Stage 1: CUTSNS_PIN = 1 [13:41:12]Read from MH i2c: 01 [13:41:12]MH_I2C_Read... [13:41:12]*** Stop cut motor [13:41:12]*** Cut end [13:41:12]Read from MH i2c: 01 07 00 [13:41:12]MH_I2C_Read... [13:41:12]Read from MH i2c: 01 07 00 CD 1E 00 00 00 00 00 FF 0F 00 [13:41:12]process_action close_receipt done [13:41:12]requested_data is exist [13:41:12]produce_requested_data [13:41:12]requested_item fm.sn is exist - process it [13:41:12]wFMCommunicate request_size=4 [13:41:12]MH_SAM_APDU [13:41:12]CAPDU: 80 11 00 00 [13:41:12]Write to MH i2c: E2 08 00 CE 1E 80 11 00 00 00 00 00 00 66 [13:41:12]Write i2c OK [13:41:12]MH_I2C_Read... [13:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:13]Read from MH i2c: E2 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 17 00 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 17 00 CE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B1 [13:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:41:13]wFMCommunicate OK [13:41:13]requested_item fd.num is exist - process it [13:41:13]SAM_PROTO_GetFieldsCounters [13:41:13]wFMCommunicate request_size=4 [13:41:13]MH_SAM_APDU [13:41:13]CAPDU: 80 13 00 00 [13:41:13]Write to MH i2c: E2 08 00 CF 1E 80 13 00 00 00 00 00 00 69 [13:41:13]Write i2c OK [13:41:13]MH_I2C_Read... [13:41:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:13]Read from MH i2c: E2 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 62 00 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 62 00 CF 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 45 C3 00 00 0E 04 04 00 D3 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 7F [13:41:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 45 C3 00 00 0E 04 04 00 D3 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 [13:41:13]wFMCommunicate OK [13:41:13]SAM_PROTO_GetFieldsCounters done [13:41:13]requested_item shift.num is exist - process it [13:41:13]requested_item shift.opened is exist - process it [13:41:13]req_shift_opened [13:41:13]FM_GetShiftState [13:41:13]SAM_PROTO_GetShiftState [13:41:13]wFMCommunicate request_size=4 [13:41:13]MH_SAM_APDU [13:41:13]CAPDU: 80 13 01 00 [13:41:13]Write to MH i2c: E2 08 00 D0 1E 80 13 01 00 00 00 00 00 6B [13:41:13]Write i2c OK [13:41:13]MH_I2C_Read... [13:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:13]Read from MH i2c: E2 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 0E 00 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 0E 00 D0 1E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 25 [13:41:13]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:41:13]wFMCommunicate OK [13:41:13]SAM_PROTO_GetShiftState done [13:41:13]FM_GetShiftState done [13:41:13]req_shift_opened done [13:41:13]requested_item shift.open_date is exist - process it [13:41:13]req_shift_open_date [13:41:13]req_shift_open_date done [13:41:13]produce_requested_data done [13:41:13]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49989,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [13:41:13]process_action_free close_receipt [13:41:13]json_value_free [13:41:13]json_value_free done [13:41:13]process_json_proto returns [13:41:13]Send response to host [13:41:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49989,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [13:41:13]free response buf [13:41:13]execute_script done [13:41:13]execute_script returns [13:41:13]free content buf [13:41:13]Sock 7.Close socket [13:41:13]Sock 7.Thread stoped [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:46]accept exits with 9 [13:42:46]New connection [13:42:46]New thread 3067211108 created [13:42:46]Thread 3067354468 joined [13:42:46]Waiting for new connection... [13:42:46] Sock 9.Parse request [13:42:46]Sock 9.Check first char [13:42:46]Sock 9.First char is OK [13:42:46]request: POST /json_proto HTTP/1.0 [13:42:46]Method: POST [13:42:46]URL: /json_proto [13:42:46]Method is POST - this is cgi request [13:42:46]url: /json_proto [13:42:46]query_string will be loaded in cgi processing [13:42:46]execute_cgi json_proto POST (null) [13:42:46]execute_cgi path=json_proto method=POST [13:42:46]POST find Content-Length [13:42:46]Host: 172.17.46.196:8080 [13:42:46]Content-Length: 842 [13:42:46]Content-Type: application/json [13:42:46] [13:42:46]POST finish read [13:42:46]Found Content-Length = 842 [13:42:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190127", "tax_sys" : 0, "items" : [ { "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:46]execute_script... [13: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)190127", "tax_sys" : 0, "items" : [ { "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:46]POST & json_proto [13:42:46]process_json_proto [13:42:46]json parsed OK: [13:42:46]protocol is kg_v1.0 [13:42:46]action value=close_receipt [13:42:46]process_action close_receipt [13:42:46]cmd_close_receipt [13:42:46]MH_GetDate [13:42:46]Write to MH i2c: F0 00 00 D1 1E DE [13:42:46]Write i2c OK [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: F0 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: F0 09 00 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: F0 09 00 D1 1E 00 D9 4B C3 66 C4 85 C2 66 A5 [13:42:46]GetLastDocTimeStamp 1724074870 [13:42:46]current date 1724074969 [13:42:46]FM_GetShiftState [13:42:46]SAM_PROTO_GetShiftState [13:42:46]wFMCommunicate request_size=4 [13:42:46]MH_SAM_APDU [13:42:46]CAPDU: 80 13 01 00 [13:42:46]Write to MH i2c: E2 08 00 D2 1E 80 13 01 00 00 00 00 00 6D [13:42:46]Write i2c OK [13:42:46]MH_I2C_Read... [13:42:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:46]Read from MH i2c: E2 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 0E 00 [13:42:46]MH_I2C_Read... [13:42:46]Read from MH i2c: E2 0E 00 D2 1E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 27 [13:42:46]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:42:46]wFMCommunicate OK [13:42:46]SAM_PROTO_GetShiftState done [13:42:46]FM_GetShiftState done [13:42:46]opened in 1724026361 [13:42:46]opened+sec_in_day 1724112761 [13:42:46]quantity*price = 7000 [13:42:46]sum+1 = 7001 [13:42:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 0.00 Безнал.: 70.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 97 19.08.2024 13:42 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49990 ФПД: 133158250585317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T134249&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49990&fm=133158250585317&tin=02508201610067®Number=0000000000092546&sum=7000 0 [13:42:47]StoreToDocumentArchive [13:42:47]shift 467 fd 49990 [13:42:47]save to /storage/0467/doc_00049990 [13:42:47]save last doc name /storage/0467/doc_00049990 to /storage/kkm_last_doc_name [13:42:47]save OK [13:42:47]Clear old archive folders... [13:42:47]ProcessDocumentItem done err = 0, tmpTLVsize=292 [13:42:47]tlvbuf is 00F661F0 [13:42:47]SAM_PROTO_ClearQueue [13:42:47]wFMCommunicate request_size=4 [13:42:47]MH_SAM_APDU [13:42:47]CAPDU: 80 09 00 00 [13:42:47]Write to MH i2c: E2 08 00 DF 1E 80 09 00 00 00 00 00 00 6F [13:42:47]Write i2c OK [13:42:47]MH_I2C_Read... [13:42:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:47]Read from MH i2c: E2 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: E2 03 00 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: E2 03 00 DF 1E 00 90 00 71 [13:42:47]RAPDU: 90 00 [13:42:47]wFMCommunicate OK [13:42:47]SAM_PROTO_ClearQueue done [13:42:47]KKMCreateOFDPacket [13:42:47]OFDProtocolAddRootSTLVToBuf [13:42:47]FM_MakeSignedData [13:42:47]FM_MakeSignedData [13:42:47]SAM_PROTO_SignData [13:42:47]wFMCommunicate request_size=4 [13:42:47]MH_SAM_APDU [13:42:47]CAPDU: 80 0D 01 02 [13:42:47]Write to MH i2c: E2 08 00 E0 1E 80 0D 01 02 00 00 00 00 77 [13:42:47]Write i2c OK [13:42:47]MH_I2C_Read... [13:42:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:47]Read from MH i2c: E2 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: E2 03 00 [13:42:47]MH_I2C_Read... [13:42:47]Read from MH i2c: E2 03 00 E0 1E 00 90 00 72 [13:42:47]RAPDU: 90 00 [13:42:47]wFMCommunicate OK [13:42:47]wFMCommunicate request_size=255 [13:42:47]MH_SAM_APDU [13:42:47]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D9 4B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [13:42:47]Write to MH i2c: E2 02 01 E1 1E 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D9 4B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 ED [13:42:47]Write i2c OK [13:42:47]MH_I2C_Read... [13:42:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:48]Read from MH i2c: E2 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: E2 03 00 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: E2 03 00 E1 1E 00 90 00 73 [13:42:48]RAPDU: 90 00 [13:42:48]wFMCommunicate OK [13:42:48]wFMCommunicate request_size=51 [13:42:48]MH_SAM_APDU [13:42:48]CAPDU: 80 0D 02 02 2E 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 46 C3 00 00 35 04 06 00 79 1B 52 39 9C E5 [13:42:48]Write to MH i2c: E2 36 00 E2 1E 80 0D 02 02 2E 00 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 46 C3 00 00 35 04 06 00 79 1B 52 39 9C E5 00 00 AD [13:42:48]Write i2c OK [13:42:48]MH_I2C_Read... [13:42:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:48]Read from MH i2c: E2 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: E2 03 00 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: E2 03 00 E2 1E 00 90 00 74 [13:42:48]RAPDU: 90 00 [13:42:48]wFMCommunicate OK [13:42:48]wFMCommunicate request_size=4 [13:42:48]MH_SAM_APDU [13:42:48]CAPDU: 80 0D 03 02 [13:42:48]Write to MH i2c: E2 08 00 E3 1E 80 0D 03 02 00 00 00 00 7C [13:42:48]Write i2c OK [13:42:48]MH_I2C_Read... [13:42:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:48]Read from MH i2c: E2 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: E2 0B 00 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: E2 0B 00 E3 1E 00 B2 6D 27 13 BC BF 09 B8 90 00 12 [13:42:48]RAPDU: B2 6D 27 13 BC BF 09 B8 90 00 [13:42:48]wFMCommunicate OK [13:42:48]SAM_PROTO_SignData done [13:42:48]FM_MakeSignedData done [13:42:48]CreateOFDProtocolMessage [13:42:48]wFMCommunicate request_size=4 [13:42:48]MH_SAM_APDU [13:42:48]CAPDU: 80 11 00 00 [13:42:48]Write to MH i2c: E2 08 00 E4 1E 80 11 00 00 00 00 00 00 7C [13:42:48]Write i2c OK [13:42:48]MH_I2C_Read... [13:42:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:48]Read from MH i2c: E2 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: E2 17 00 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: E2 17 00 E4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C7 [13:42:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:42:48]wFMCommunicate OK [13:42:48]CreateOFDProtocolMessage done [13:42:48]OFDSenderStorePacket 49990 [13:42:48]StoreOFDPacket docnum=49990 [13:42:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 38 01 00 00 C1 17 30 01 3B 05 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D9 4B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 46 C3 00 00 35 04 06 00 79 1B 52 39 9C E5 B2 6D 27 13 BC BF 09 B8 [13:42:48]CheckFolder [13:42:48]dirname=/storage/ofd_packets [13:42:48]CheckFolder done [13:42:48]ProducePacketName [13:42:48]name=ofd_packets/00049990 [13:42:48]NVStorageSaveData ofd_packets/00049990 [13:42:48]File name is /storage/ofd_packets/00049990 [13:42:48]Write 342 bytes [13:42:48]NVStorageSaveData done [13:42:48]OFDSenderStorePacket done [13:42:48]KKMCreateOFDPacket done [13:42:48]NVStorageSaveData kkm_last_timestamp [13:42:48]File name is /storage/kkm_last_timestamp [13:42:48]Write 4 bytes [13:42:48]NVStorageSaveData done [13:42:48]ExternCall_PrintAddStr [13:42:48]wPrintStart [13:42:48]Write to MH i2c: 01 00 00 E5 1E 03 [13:42:48]Write i2c OK [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: 01 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: 01 07 00 [13:42:48]MH_I2C_Read... [13:42:48]Read from MH i2c: 01 07 00 E5 1E 00 00 00 00 00 FF 0F 18 [13:42:48]RasterBufferAndPrint [13:42:48]line Счет N : (3)190127 [13:42:48]line ИНН: 02508201610067 [13:42:48]line Контрольно-Кассовый Чек [13:42:48]line ПРОДАЖА [13:42:48]line Товар: 4870202522008 [13:42:48]line Напиток Maxi Чай Грушевый 0,45л [13:42:48]line 1.000 * 70.00 [13:42:48]line = 70.00 [13:42:48]line НДС 12% НСП 1% [13:42:48]line > о реализуемом товаре [13:42:48]line ИТОГО: 70.00 [13:42:48]line НСП 1% : 0.62 [13:42:48]line НДС 12% : 7.43 [13:42:48]line Наличными: 0.00 [13:42:48]line Безнал.: 70.00 [13:42:48]line Место: АЗС № 95 "Партнер Нефть" [13:42:48]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:42:48]line СНО: Общий режим [13:42:48]line Чек 97 19.08.2024 13:42 [13:42:48]line Смена: 467 ФФД: 1.0 [13:42:48]line ЗНМ: 0300000078 [13:42:48]line РНМ: 0000000000092546 [13:42:48]line Версия ККМ: 001 [13:42:48]line Платежная система: O! деньги [13:42:48]line ФМ: 0000000000871800 [13:42:48]line ФД: 49990 [13:42:48]line ФПД: 133158250585317 [13:42:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T134249&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49990&fm=133158250585317&tin=02508201610067®Number=0000000000092546&sum=7000 [13:42:48]OFD Sender: Processing packet 49990 [packets to send 21, broken 20] [13:42:48]ProducePacketName [13:42:48]name=ofd_packets/00049990 [13:42:48]OFD Sender: To server: pG, [13:42:48]CommunicateWithHost lk.salyk.kg:30040 [13:42:48]ConnectInit lk.salyk.kg [13:42:48]line 0 [13:42:48]written 0, free lines is 4095 [13:42:48]Connected sock=10 [13:42:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 38 01 00 00 C1 17 30 01 3B 05 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 D9 4B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 46 C3 00 00 35 04 06 00 79 1B 52 39 9C E5 B2 6D 27 13 BC BF 09 B8 [13:42:49]Write to MH i2c: 01 00 00 10 1F 2F [13:42:49]Write i2c OK [13:42:49]MH_I2C_Read... [13:42:49]Read from MH i2c: 01 [13:42:49]MH_I2C_Read... [13:42:49]Read from MH i2c: 01 07 00 [13:42:49]MH_I2C_Read... [13:42:49]Read from MH i2c: 01 07 00 10 1F 00 00 00 00 00 B0 0C F2 [13:42:49]RasterBufferAndPrint [13:42:49]line [13:42:49]line [13:42:49]line [13:42:49]line [13:42:49]line [13:42:49]written 0, free lines is 3254 [13:42:49]MH_Cut [13:42:49]Write to MH i2c: D1 01 00 17 1F 01 08 [13:42:49]Write i2c OK [13:42:49]MH_I2C_Read... [13:42:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 69 9F 47 00 DD 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 46 C3 00 00 F4 03 04 00 46 F6 C2 66 B6 04 01 00 00 31 22 9B C9 23 B0 B1 CD [13:42:49]CommunicateWithHost err = 0 [13:42:49]CheckOFDResponse [13:42:49]1017 (14) - 77093643461234 [13:42:49]1041 (16) - 0000000000871800 [13:42:49]1040 (4) - 49990 [13:42:49]1012 (4) - 19.08.2024 07:37 [13:42:49]1206 (1) - 0 [13:42:49]OFD Sender: Remove packet 49990 [13:42:49]ProducePacketName [13:42:49]name=ofd_packets/00049990 [13:42:49]NVStorageDeleteData [13:42:49]Read from MH i2c: D1 [13:42:49]MH_I2C_Read... [13:42:49]Read from MH i2c: D1 01 00 [13:42:49]MH_I2C_Read... [13:42:49]Read from MH i2c: D1 01 00 17 1F 00 07 [13:42:49]Write to MH i2c: 01 00 00 18 1F 37 [13:42:49]Write i2c OK [13:42:49]MH_I2C_Read... [13:42:49]OFD Sender: No OFD packet to send [13:42:49]*** Cut start [13:42:49]*** Purtial cut [13:42:49]*** Stage 1: CUTSNS_PIN = 1 [13:42:50]Read from MH i2c: 01 [13:42:50]MH_I2C_Read... [13:42:50]*** Stop cut motor [13:42:50]*** Cut end [13:42:50]Read from MH i2c: 01 07 00 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: 01 07 00 18 1F 00 00 00 00 00 FF 0F 4C [13:42:50]process_action close_receipt done [13:42:50]requested_data is exist [13:42:50]produce_requested_data [13:42:50]requested_item fm.sn is exist - process it [13:42:50]wFMCommunicate request_size=4 [13:42:50]MH_SAM_APDU [13:42:50]CAPDU: 80 11 00 00 [13:42:50]Write to MH i2c: E2 08 00 19 1F 80 11 00 00 00 00 00 00 B2 [13:42:50]Write i2c OK [13:42:50]MH_I2C_Read... [13:42:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:50]Read from MH i2c: E2 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 17 00 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 17 00 19 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FD [13:42:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:42:50]wFMCommunicate OK [13:42:50]requested_item fd.num is exist - process it [13:42:50]SAM_PROTO_GetFieldsCounters [13:42:50]wFMCommunicate request_size=4 [13:42:50]MH_SAM_APDU [13:42:50]CAPDU: 80 13 00 00 [13:42:50]Write to MH i2c: E2 08 00 1A 1F 80 13 00 00 00 00 00 00 B5 [13:42:50]Write i2c OK [13:42:50]MH_I2C_Read... [13:42:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:50]Read from MH i2c: E2 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 62 00 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 62 00 1A 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 46 C3 00 00 0E 04 04 00 D3 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 CF [13:42:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 46 C3 00 00 0E 04 04 00 D3 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 [13:42:50]wFMCommunicate OK [13:42:50]SAM_PROTO_GetFieldsCounters done [13:42:50]requested_item shift.num is exist - process it [13:42:50]requested_item shift.opened is exist - process it [13:42:50]req_shift_opened [13:42:50]FM_GetShiftState [13:42:50]SAM_PROTO_GetShiftState [13:42:50]wFMCommunicate request_size=4 [13:42:50]MH_SAM_APDU [13:42:50]CAPDU: 80 13 01 00 [13:42:50]Write to MH i2c: E2 08 00 1B 1F 80 13 01 00 00 00 00 00 B7 [13:42:50]Write i2c OK [13:42:50]MH_I2C_Read... [13:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:50]Read from MH i2c: E2 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 0E 00 [13:42:50]MH_I2C_Read... [13:42:50]Read from MH i2c: E2 0E 00 1B 1F 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 71 [13:42:50]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:42:50]wFMCommunicate OK [13:42:50]SAM_PROTO_GetShiftState done [13:42:50]FM_GetShiftState done [13:42:50]req_shift_opened done [13:42:50]requested_item shift.open_date is exist - process it [13:42:50]req_shift_open_date [13:42:50]req_shift_open_date done [13:42:50]produce_requested_data done [13:42:50]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49990,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [13:42:50]process_action_free close_receipt [13:42:50]json_value_free [13:42:50]json_value_free done [13:42:50]process_json_proto returns [13:42:50]Send response to host [13:42:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49990,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [13:42:50]free response buf [13:42:50]execute_script done [13:42:50]execute_script returns [13:42:50]free content buf [13:42:50]Sock 9.Close socket [13:42:50]Sock 9.Thread stoped [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:23]accept exits with 7 [13:44:23]New connection [13:44:23]New thread 3067354468 created [13:44:23]Thread 3067211108 joined [13:44:23]Waiting for new connection... [13:44:23] Sock 7.Parse request [13:44:23]Sock 7.Check first char [13:44:23]Sock 7.First char is OK [13:44:23]request: POST /json_proto HTTP/1.0 [13:44:23]Method: POST [13:44:23]URL: /json_proto [13:44:23]Method is POST - this is cgi request [13:44:23]url: /json_proto [13:44:23]query_string will be loaded in cgi processing [13:44:23]execute_cgi json_proto POST (null) [13:44:23]execute_cgi path=json_proto method=POST [13:44:23]POST find Content-Length [13:44:23]Host: 172.17.46.196:8080 [13:44:23]Content-Length: 753 [13:44:23]Content-Type: application/json [13:44:23] [13:44:23]POST finish read [13:44:23]Found Content-Length = 753 [13:44:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30137964", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:23]execute_script... [13:44:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30137964", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:23]POST & json_proto [13:44:23]process_json_proto [13:44:23]json parsed OK: [13:44:23]protocol is kg_v1.0 [13:44:23]action value=close_receipt [13:44:23]process_action close_receipt [13:44:23]cmd_close_receipt [13:44:23]MH_GetDate [13:44:23]Write to MH i2c: F0 00 00 1C 1F 2A [13:44:23]Write i2c OK [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: F0 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: F0 09 00 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: F0 09 00 1C 1F 00 3A 4C C3 66 C4 85 C2 66 53 [13:44:23]GetLastDocTimeStamp 1724074969 [13:44:23]current date 1724075066 [13:44:23]FM_GetShiftState [13:44:23]SAM_PROTO_GetShiftState [13:44:23]wFMCommunicate request_size=4 [13:44:23]MH_SAM_APDU [13:44:23]CAPDU: 80 13 01 00 [13:44:23]Write to MH i2c: E2 08 00 1D 1F 80 13 01 00 00 00 00 00 B9 [13:44:23]Write i2c OK [13:44:23]MH_I2C_Read... [13:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:23]Read from MH i2c: E2 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: E2 0E 00 [13:44:23]MH_I2C_Read... [13:44:23]Read from MH i2c: E2 0E 00 1D 1F 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 73 [13:44:23]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:44:23]wFMCommunicate OK [13:44:23]SAM_PROTO_GetShiftState done [13:44:23]FM_GetShiftState done [13:44:23]opened in 1724026361 [13:44:23]opened+sec_in_day 1724112761 [13:44:23]quantity*price = 0 [13:44:23]sum+1 = 1 [13:44:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 98 19.08.2024 13:44 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30137964 ФМ: 0000000000871800 ФД: 49991 ФПД: 57346529110016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T134426&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49991&fm=57346529110016&tin=02508201610067®Number=0000000000092546&sum=0 [13:44:24]StoreToDocumentArchive [13:44:24]shift 467 fd 49991 [13:44:24]save to /storage/0467/doc_00049991 [13:44:24]save last doc name /storage/0467/doc_00049991 to /storage/kkm_last_doc_name [13:44:24]save OK [13:44:24]Clear old archive folders... [13:44:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:44:24]tlvbuf is B6FBA230 [13:44:24]SAM_PROTO_ClearQueue [13:44:24]wFMCommunicate request_size=4 [13:44:24]MH_SAM_APDU [13:44:24]CAPDU: 80 09 00 00 [13:44:24]Write to MH i2c: E2 08 00 2A 1F 80 09 00 00 00 00 00 00 BB [13:44:24]Write i2c OK [13:44:24]MH_I2C_Read... [13:44:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:24]Read from MH i2c: E2 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: E2 03 00 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: E2 03 00 2A 1F 00 90 00 BD [13:44:24]RAPDU: 90 00 [13:44:24]wFMCommunicate OK [13:44:24]SAM_PROTO_ClearQueue done [13:44:24]KKMCreateOFDPacket [13:44:24]OFDProtocolAddRootSTLVToBuf [13:44:24]FM_MakeSignedData [13:44:24]FM_MakeSignedData [13:44:24]SAM_PROTO_SignData [13:44:24]wFMCommunicate request_size=4 [13:44:24]MH_SAM_APDU [13:44:24]CAPDU: 80 0D 01 02 [13:44:24]Write to MH i2c: E2 08 00 2B 1F 80 0D 01 02 00 00 00 00 C3 [13:44:24]Write i2c OK [13:44:24]MH_I2C_Read... [13:44:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:24]Read from MH i2c: E2 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: E2 03 00 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: E2 03 00 2B 1F 00 90 00 BE [13:44:24]RAPDU: 90 00 [13:44:24]wFMCommunicate OK [13:44:24]wFMCommunicate request_size=255 [13:44:24]MH_SAM_APDU [13:44:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3A 4C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 47 C3 00 00 35 04 06 00 34 28 07 7F [13:44:24]Write to MH i2c: E2 02 01 2C 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3A 4C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 47 C3 00 00 35 04 06 00 34 28 07 7F 00 00 6C [13:44:24]Write i2c OK [13:44:24]MH_I2C_Read... [13:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:24]Read from MH i2c: E2 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: E2 03 00 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: E2 03 00 2C 1F 00 90 00 BF [13:44:24]RAPDU: 90 00 [13:44:24]wFMCommunicate OK [13:44:24]wFMCommunicate request_size=7 [13:44:24]MH_SAM_APDU [13:44:24]CAPDU: 80 0D 02 02 02 28 00 [13:44:24]Write to MH i2c: E2 0A 00 2D 1F 80 0D 02 02 02 00 28 00 00 00 F2 [13:44:24]Write i2c OK [13:44:24]MH_I2C_Read... [13:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:24]Read from MH i2c: E2 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: E2 03 00 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: E2 03 00 2D 1F 00 90 00 C0 [13:44:24]RAPDU: 90 00 [13:44:24]wFMCommunicate OK [13:44:24]wFMCommunicate request_size=4 [13:44:24]MH_SAM_APDU [13:44:24]CAPDU: 80 0D 03 02 [13:44:24]Write to MH i2c: E2 08 00 2E 1F 80 0D 03 02 00 00 00 00 C8 [13:44:24]Write i2c OK [13:44:24]MH_I2C_Read... [13:44:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:24]Read from MH i2c: E2 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: E2 0B 00 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: E2 0B 00 2E 1F 00 75 11 11 30 D4 95 D2 4D 90 00 18 [13:44:24]RAPDU: 75 11 11 30 D4 95 D2 4D 90 00 [13:44:24]wFMCommunicate OK [13:44:24]SAM_PROTO_SignData done [13:44:24]FM_MakeSignedData done [13:44:24]CreateOFDProtocolMessage [13:44:24]wFMCommunicate request_size=4 [13:44:24]MH_SAM_APDU [13:44:24]CAPDU: 80 11 00 00 [13:44:24]Write to MH i2c: E2 08 00 2F 1F 80 11 00 00 00 00 00 00 C8 [13:44:24]Write i2c OK [13:44:24]MH_I2C_Read... [13:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:24]Read from MH i2c: E2 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: E2 17 00 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: E2 17 00 2F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 13 [13:44:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:44:24]wFMCommunicate OK [13:44:24]CreateOFDProtocolMessage done [13:44:24]OFDSenderStorePacket 49991 [13:44:24]StoreOFDPacket docnum=49991 [13:44:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 26 C2 04 01 A8 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3A 4C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 47 C3 00 00 35 04 06 00 34 28 07 7F 28 00 75 11 11 30 D4 95 D2 4D [13:44:24]CheckFolder [13:44:24]dirname=/storage/ofd_packets [13:44:24]CheckFolder done [13:44:24]ProducePacketName [13:44:24]name=ofd_packets/00049991 [13:44:24]NVStorageSaveData ofd_packets/00049991 [13:44:24]File name is /storage/ofd_packets/00049991 [13:44:24]Write 298 bytes [13:44:24]NVStorageSaveData done [13:44:24]OFDSenderStorePacket done [13:44:24]KKMCreateOFDPacket done [13:44:24]NVStorageSaveData kkm_last_timestamp [13:44:24]File name is /storage/kkm_last_timestamp [13:44:24]Write 4 bytes [13:44:24]NVStorageSaveData done [13:44:24]ExternCall_PrintAddStr [13:44:24]wPrintStart [13:44:24]Write to MH i2c: 01 00 00 30 1F 4F [13:44:24]Write i2c OK [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: 01 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: 01 07 00 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: 01 07 00 30 1F 00 00 00 00 00 FF 0F 64 [13:44:24]RasterBufferAndPrint [13:44:24]line Счет N : (1)11327828 [13:44:24]line ИНН: 02508201610067 [13:44:24]line Контрольно-Кассовый Чек [13:44:24]line ПРОДАЖА [13:44:24]line ТРК (МРК, ГНК) : 51 [13:44:24]line Товар: 2710194210 [13:44:24]line ДТ-К-5 [13:44:24]line 70.000 * 0.00 [13:44:24]line = 0.00 [13:44:24]line НДС 12% НСП 1% [13:44:24]line > о реализуемом товаре [13:44:24]line ИТОГО: 0.00 [13:44:24]line НСП 1% : 0.00 [13:44:24]line НДС 12% : 0.00 [13:44:24]line Наличными: 0.00 [13:44:24]line Безнал.: 0.00 [13:44:24]line Место: АЗС № 95 "Партнер Нефть" [13:44:24]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:44:24]line СНО: Общий режим [13:44:24]line Чек 98 19.08.2024 13:44 [13:44:24]line Смена: 467 ФФД: 1.0 [13:44:24]line ЗНМ: 0300000078 [13:44:24]line РНМ: 0000000000092546 [13:44:24]line Версия ККМ: 001 [13:44:24]line Талоны: ТК ГПНА Online [13:44:24]line 30137964 [13:44:24]line ФМ: 0000000000871800 [13:44:24]line ФД: 49991 [13:44:24]line ФПД: 57346529110016 [13:44:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T134426&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49991&fm=57346529110016&tin=02508201610067®Number=0000000000092546&sum=0 [13:44:25]OFD Sender: Processing packet 49991 [packets to send 21, broken 20] [13:44:25]ProducePacketName [13:44:25]name=ofd_packets/00049991 [13:44:25]OFD Sender: To server: pG, [13:44:25]CommunicateWithHost lk.salyk.kg:30040 [13:44:25]ConnectInit lk.salyk.kg [13:44:25]written 0, free lines is 4095 [13:44:25]Connected sock=10 [13:44:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 26 C2 04 01 A8 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3A 4C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 47 C3 00 00 35 04 06 00 34 28 07 7F 28 00 75 11 11 30 D4 95 D2 4D [13:44:25]Write to MH i2c: 01 00 00 5A 1F 79 [13:44:25]Write i2c OK [13:44:25]MH_I2C_Read... [13:44:25]Read from MH i2c: 01 [13:44:25]MH_I2C_Read... [13:44:25]Read from MH i2c: 01 07 00 [13:44:25]MH_I2C_Read... [13:44:25]Read from MH i2c: 01 07 00 5A 1F 00 00 00 00 00 C9 0C 55 [13:44:25]RasterBufferAndPrint [13:44:25]line [13:44:25]line [13:44:25]line [13:44:25]line [13:44:25]line [13:44:25]written 0, free lines is 3280 [13:44:25]MH_Cut [13:44:25]Write to MH i2c: D1 01 00 61 1F 01 52 [13:44:25]Write i2c OK [13:44:25]MH_I2C_Read... [13:44:25]Read from MH i2c: D1 [13:44:25]MH_I2C_Read... [13:44:25]Read from MH i2c: D1 01 00 [13:44:25]MH_I2C_Read... [13:44:25]Read from MH i2c: D1 01 00 61 1F 00 51 [13:44:25]Write to MH i2c: 01 00 00 62 1F 81 [13:44:25]Write i2c OK [13:44:25]MH_I2C_Read... [13:44:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 07 3B 47 00 32 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 47 C3 00 00 F4 03 04 00 A7 F6 C2 66 B6 04 01 00 00 7B 20 6D 47 80 AC F4 0D [13:44:25]CommunicateWithHost err = 0 [13:44:25]CheckOFDResponse [13:44:25]1017 (14) - 77093643461234 [13:44:25]1041 (16) - 0000000000871800 [13:44:25]1040 (4) - 49991 [13:44:25]1012 (4) - 19.08.2024 07:39 [13:44:25]1206 (1) - 0 [13:44:25]OFD Sender: Remove packet 49991 [13:44:25]ProducePacketName [13:44:25]name=ofd_packets/00049991 [13:44:25]NVStorageDeleteData [13:44:25]OFD Sender: No OFD packet to send [13:44:26]*** Cut start [13:44:26]*** Purtial cut [13:44:26]*** CUTSNS_PIN = 0 [13:44:26]*** Stage 1: CUTSNS_PIN = 1 [13:44:28]Read from MH i2c: 01 [13:44:28]MH_I2C_Read... [13:44:28]*** Stop cut motor [13:44:28]*** Cut end [13:44:28]Read from MH i2c: 01 07 00 [13:44:28]MH_I2C_Read... [13:44:28]Read from MH i2c: 01 07 00 62 1F 00 00 00 00 00 FF 0F 96 [13:44:28]process_action close_receipt done [13:44:28]requested_data is exist [13:44:28]produce_requested_data [13:44:28]requested_item fm.sn is exist - process it [13:44:28]wFMCommunicate request_size=4 [13:44:28]MH_SAM_APDU [13:44:28]CAPDU: 80 11 00 00 [13:44:28]Write to MH i2c: E2 08 00 63 1F 80 11 00 00 00 00 00 00 FC [13:44:28]Write i2c OK [13:44:28]MH_I2C_Read... [13:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:28]Read from MH i2c: E2 [13:44:28]MH_I2C_Read... [13:44:28]Read from MH i2c: E2 17 00 [13:44:28]MH_I2C_Read... [13:44:28]Read from MH i2c: E2 17 00 63 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 47 [13:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:44:28]wFMCommunicate OK [13:44:28]requested_item fd.num is exist - process it [13:44:28]SAM_PROTO_GetFieldsCounters [13:44:28]wFMCommunicate request_size=4 [13:44:28]MH_SAM_APDU [13:44:28]CAPDU: 80 13 00 00 [13:44:28]Write to MH i2c: E2 08 00 64 1F 80 13 00 00 00 00 00 00 FF [13:44:28]Write i2c OK [13:44:28]MH_I2C_Read... [13:44:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:28]Read from MH i2c: E2 [13:44:28]MH_I2C_Read... [13:44:28]Read from MH i2c: E2 62 00 [13:44:28]MH_I2C_Read... [13:44:28]Read from MH i2c: E2 62 00 64 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 47 C3 00 00 0E 04 04 00 D3 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 1D [13:44:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 47 C3 00 00 0E 04 04 00 D3 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 [13:44:28]wFMCommunicate OK [13:44:28]SAM_PROTO_GetFieldsCounters done [13:44:28]requested_item shift.num is exist - process it [13:44:28]requested_item shift.opened is exist - process it [13:44:28]req_shift_opened [13:44:28]FM_GetShiftState [13:44:28]SAM_PROTO_GetShiftState [13:44:28]wFMCommunicate request_size=4 [13:44:28]MH_SAM_APDU [13:44:28]CAPDU: 80 13 01 00 [13:44:28]Write to MH i2c: E2 08 00 65 1F 80 13 01 00 00 00 00 00 01 [13:44:28]Write i2c OK [13:44:28]MH_I2C_Read... [13:44:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:28]Read from MH i2c: E2 [13:44:28]MH_I2C_Read... [13:44:28]Read from MH i2c: E2 0E 00 [13:44:28]MH_I2C_Read... [13:44:28]Read from MH i2c: E2 0E 00 65 1F 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 BB [13:44:28]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:44:28]wFMCommunicate OK [13:44:28]SAM_PROTO_GetShiftState done [13:44:28]FM_GetShiftState done [13:44:28]req_shift_opened done [13:44:28]requested_item shift.open_date is exist - process it [13:44:28]req_shift_open_date [13:44:28]req_shift_open_date done [13:44:28]produce_requested_data done [13:44:28]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49991,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [13:44:28]process_action_free close_receipt [13:44:28]json_value_free [13:44:28]json_value_free done [13:44:28]process_json_proto returns [13:44:28]Send response to host [13:44:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49991,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [13:44:28]free response buf [13:44:28]execute_script done [13:44:28]execute_script returns [13:44:28]free content buf [13:44:28]Sock 7.Close socket [13:44:28]Sock 7.Thread stoped [13:44:30]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:42]accept exits with 9 [13:44:42]New connection [13:44:42]New thread 3067211108 created [13:44:42]Thread 3067354468 joined [13:44:42]Waiting for new connection... [13:44:42] Sock 9.Parse request [13:44:42]Sock 9.Check first char [13:44:42]Sock 9.First char is OK [13:44:42]request: POST /json_proto HTTP/1.0 [13:44:42]Method: POST [13:44:42]URL: /json_proto [13:44:42]Method is POST - this is cgi request [13:44:42]url: /json_proto [13:44:42]query_string will be loaded in cgi processing [13:44:42]execute_cgi json_proto POST (null) [13:44:42]execute_cgi path=json_proto method=POST [13:44:42]POST find Content-Length [13:44:42]Host: 172.17.46.196:8080 [13:44:42]Content-Length: 1099 [13:44:42]Content-Type: application/json [13:44:42] [13:44:42]POST finish read [13:44:42]Found Content-Length = 1099 [13:44:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190128", "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" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:42]execute_script... [13:44:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190128", "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" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:42]POST & json_proto [13:44:42]process_json_proto [13:44:42]json parsed OK: [13:44:42]protocol is kg_v1.0 [13:44:42]action value=close_receipt [13:44:42]process_action close_receipt [13:44:42]cmd_close_receipt [13:44:42]MH_GetDate [13:44:42]Write to MH i2c: F0 00 00 66 1F 74 [13:44:42]Write i2c OK [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: F0 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: F0 09 00 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: F0 09 00 66 1F 00 4D 4C C3 66 C4 85 C2 66 B0 [13:44:42]GetLastDocTimeStamp 1724075066 [13:44:42]current date 1724075085 [13:44:42]FM_GetShiftState [13:44:42]SAM_PROTO_GetShiftState [13:44:42]wFMCommunicate request_size=4 [13:44:42]MH_SAM_APDU [13:44:42]CAPDU: 80 13 01 00 [13:44:42]Write to MH i2c: E2 08 00 67 1F 80 13 01 00 00 00 00 00 03 [13:44:42]Write i2c OK [13:44:42]MH_I2C_Read... [13:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:42]Read from MH i2c: E2 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: E2 0E 00 [13:44:42]MH_I2C_Read... [13:44:42]Read from MH i2c: E2 0E 00 67 1F 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 BD [13:44:42]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:44:42]wFMCommunicate OK [13:44:42]SAM_PROTO_GetShiftState done [13:44:42]FM_GetShiftState done [13:44:42]opened in 1724026361 [13:44:42]opened+sec_in_day 1724112761 [13:44:42]quantity*price = 8000 [13:44:42]sum+1 = 8001 [13:44:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002325441 Вода ASU пит н.газ лимон ПЭТ 0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.40 Наличными: 0.00 Безнал.: 145.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 99 19.08.2024 13:44 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49992 ФПД: 131751937233040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T134445&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49992&fm=131751937233040&tin=02508201610067®Number=0000000000092546&sum=14500 0 [13:44:43]StoreToDocumentArchive [13:44:43]shift 467 fd 49992 [13:44:43]save to /storage/0467/doc_00049992 [13:44:43]save last doc name /storage/0467/doc_00049992 to /storage/kkm_last_doc_name [13:44:43]save OK [13:44:43]Clear old archive folders... [13:44:43]ProcessDocumentItem done err = 0, tmpTLVsize=396 [13:44:43]tlvbuf is 00F62790 [13:44:43]SAM_PROTO_ClearQueue [13:44:43]wFMCommunicate request_size=4 [13:44:43]MH_SAM_APDU [13:44:43]CAPDU: 80 09 00 00 [13:44:43]Write to MH i2c: E2 08 00 74 1F 80 09 00 00 00 00 00 00 05 [13:44:43]Write i2c OK [13:44:43]MH_I2C_Read... [13:44:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:43]Read from MH i2c: E2 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 03 00 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 03 00 74 1F 00 90 00 07 [13:44:43]RAPDU: 90 00 [13:44:43]wFMCommunicate OK [13:44:43]SAM_PROTO_ClearQueue done [13:44:43]KKMCreateOFDPacket [13:44:43]OFDProtocolAddRootSTLVToBuf [13:44:43]FM_MakeSignedData [13:44:43]FM_MakeSignedData [13:44:43]SAM_PROTO_SignData [13:44:43]wFMCommunicate request_size=4 [13:44:43]MH_SAM_APDU [13:44:43]CAPDU: 80 0D 01 02 [13:44:43]Write to MH i2c: E2 08 00 75 1F 80 0D 01 02 00 00 00 00 0D [13:44:43]Write i2c OK [13:44:43]MH_I2C_Read... [13:44:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 75 1F 00 90 00 08 [13:44:44]RAPDU: 90 00 [13:44:44]wFMCommunicate OK [13:44:44]wFMCommunicate request_size=255 [13:44:44]MH_SAM_APDU [13:44:44]CAPDU: 80 0D 02 02 FA 03 00 8C 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 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 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 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 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 A4 38 00 00 00 00 EB 03 26 00 EF [13:44:44]Write to MH i2c: E2 02 01 76 1F 80 0D 02 02 FA 00 03 00 8C 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 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 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 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 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 A4 38 00 00 00 00 EB 03 26 00 EF 00 00 DF [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 76 1F 00 90 00 09 [13:44:44]RAPDU: 90 00 [13:44:44]wFMCommunicate OK [13:44:44]wFMCommunicate request_size=155 [13:44:44]MH_SAM_APDU [13:44:44]CAPDU: 80 0D 02 02 96 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 63 00 00 00 F4 03 04 00 4D 4C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 48 C3 00 00 35 04 06 00 77 D3 E3 6A D0 90 [13:44:44]Write to MH i2c: E2 9E 00 77 1F 80 0D 02 02 96 00 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 63 00 00 00 F4 03 04 00 4D 4C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 48 C3 00 00 35 04 06 00 77 D3 E3 6A D0 90 00 00 D0 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 03 00 77 1F 00 90 00 0A [13:44:44]RAPDU: 90 00 [13:44:44]wFMCommunicate OK [13:44:44]wFMCommunicate request_size=4 [13:44:44]MH_SAM_APDU [13:44:44]CAPDU: 80 0D 03 02 [13:44:44]Write to MH i2c: E2 08 00 78 1F 80 0D 03 02 00 00 00 00 12 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 0B 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 0B 00 78 1F 00 F9 BA B1 E8 14 61 54 22 90 00 4A [13:44:44]RAPDU: F9 BA B1 E8 14 61 54 22 90 00 [13:44:44]wFMCommunicate OK [13:44:44]SAM_PROTO_SignData done [13:44:44]FM_MakeSignedData done [13:44:44]CreateOFDProtocolMessage [13:44:44]wFMCommunicate request_size=4 [13:44:44]MH_SAM_APDU [13:44:44]CAPDU: 80 11 00 00 [13:44:44]Write to MH i2c: E2 08 00 79 1F 80 11 00 00 00 00 00 00 12 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 17 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 17 00 79 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5D [13:44:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:44:44]wFMCommunicate OK [13:44:44]CreateOFDProtocolMessage done [13:44:44]OFDSenderStorePacket 49992 [13:44:44]StoreOFDPacket docnum=49992 [13:44:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A0 01 00 00 A2 AB 98 01 EC 0E 5A 03 01 00 03 00 8C 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 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 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 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 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 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 63 00 00 00 F4 03 04 00 4D 4C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 48 C3 00 00 35 04 06 00 77 D3 E3 6A D0 90 F9 BA B1 E8 14 61 54 22 [13:44:44]CheckFolder [13:44:44]dirname=/storage/ofd_packets [13:44:44]CheckFolder done [13:44:44]ProducePacketName [13:44:44]name=ofd_packets/00049992 [13:44:44]NVStorageSaveData ofd_packets/00049992 [13:44:44]File name is /storage/ofd_packets/00049992 [13:44:44]Write 446 bytes [13:44:44]NVStorageSaveData done [13:44:44]OFDSenderStorePacket done [13:44:44]KKMCreateOFDPacket done [13:44:44]NVStorageSaveData kkm_last_timestamp [13:44:44]File name is /storage/kkm_last_timestamp [13:44:44]Write 4 bytes [13:44:44]NVStorageSaveData done [13:44:44]ExternCall_PrintAddStr [13:44:44]wPrintStart [13:44:44]Write to MH i2c: 01 00 00 7A 1F 99 [13:44:44]OFD Sender: Processing packet 49992 [packets to send 21, broken 20] [13:44:44]ProducePacketName [13:44:44]name=ofd_packets/00049992 [13:44:44]OFD Sender: To server: pG, [13:44:44]CommunicateWithHost lk.salyk.kg:30040 [13:44:44]ConnectInit lk.salyk.kg [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: 01 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: 01 07 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: 01 07 00 7A 1F 00 00 00 00 00 FF 0F AE [13:44:44]RasterBufferAndPrint [13:44:44]line Счет N : (3)190128 [13:44:44]line ИНН: 02508201610067 [13:44:44]line Контрольно-Кассовый Чек [13:44:44]line ПРОДАЖА [13:44:44]line Товар: 4700000160211 [13:44:44]line Вода Легенда 0,5л [13:44:44]line 2.000 * 40.00 [13:44:44]line = 80.00 [13:44:44]line НДС 12% НСП 1% [13:44:44]line > о реализуемом товаре [13:44:44]line Товар: 4870002325441 [13:44:44]line Вода ASU пит н.газ лимон ПЭТ 0,5л [13:44:44]line 1.000 * 65.00 [13:44:44]line = 65.00 [13:44:44]line НДС 12% НСП 1% [13:44:44]line > о реализуемом товаре [13:44:44]line ИТОГО: 145.00 [13:44:44]line НСП 1% : 1.28 [13:44:44]line НДС 12% : 15.40 [13:44:44]line Наличными: 0.00 [13:44:44]line Безнал.: 145.00 [13:44:44]line Место: АЗС № 95 "Партнер Нефть" [13:44:44]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:44:44]line СНО: Общий режим [13:44:44]line Чек 99 19.08.2024 13:44 [13:44:44]line Смена: 467 ФФД: 1.0 [13:44:44]line ЗНМ: 0300000078 [13:44:44]line РНМ: 0000000000092546 [13:44:44]line Версия ККМ: 001 [13:44:44]line Платежная система: O! деньги [13:44:44]line ФМ: 0000000000871800 [13:44:44]line ФД: 49992 [13:44:44]line ФПД: 131751937233040 [13:44:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T134445&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49992&fm=131751937233040&tin=02508201610067®Number=0000000000092546&sum=14500 [13:44:44]line 0 [13:44:44]written 0, free lines is 4095 [13:44:45]Connected sock=10 [13:44:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A0 01 00 00 A2 AB 98 01 EC 0E 5A 03 01 00 03 00 8C 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 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 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 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 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 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 63 00 00 00 F4 03 04 00 4D 4C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 48 C3 00 00 35 04 06 00 77 D3 E3 6A D0 90 F9 BA B1 E8 14 61 54 22 [13:44:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 DF 34 47 00 2A DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 48 C3 00 00 F4 03 04 00 BB F6 C2 66 B6 04 01 00 00 6A 09 69 1B DF 51 5C E9 [13:44:45]CommunicateWithHost err = 0 [13:44:45]CheckOFDResponse [13:44:45]1017 (14) - 77093643461234 [13:44:45]1041 (16) - 0000000000871800 [13:44:45]1040 (4) - 49992 [13:44:45]1012 (4) - 19.08.2024 07:39 [13:44:45]1206 (1) - 0 [13:44:45]OFD Sender: Remove packet 49992 [13:44:45]ProducePacketName [13:44:45]name=ofd_packets/00049992 [13:44:45]NVStorageDeleteData [13:44:45]Write to MH i2c: 01 00 00 AB 1F CA [13:44:45]Write i2c OK [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: 01 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: 01 07 00 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: 01 07 00 AB 1F 00 00 00 00 00 5F 0C 3C [13:44:45]RasterBufferAndPrint [13:44:45]line [13:44:45]line [13:44:45]line [13:44:45]line [13:44:45]line [13:44:45]written 0, free lines is 3173 [13:44:45]MH_Cut [13:44:45]Write to MH i2c: D1 01 00 B2 1F 01 A3 [13:44:45]Write i2c OK [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: D1 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: D1 01 00 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: D1 01 00 B2 1F 00 A2 [13:44:45]Write to MH i2c: 01 00 00 B3 1F D2 [13:44:45]Write i2c OK [13:44:45]MH_I2C_Read... [13:44:45]OFD Sender: No OFD packet to send [13:44:46]*** Cut start [13:44:46]*** Purtial cut [13:44:46]*** Stage 1: CUTSNS_PIN = 1 [13:44:46]Read from MH i2c: 01 [13:44:46]MH_I2C_Read... [13:44:46]*** Stop cut motor [13:44:46]*** Cut end [13:44:46]Read from MH i2c: 01 07 00 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: 01 07 00 B3 1F 00 00 00 00 00 FF 0F E7 [13:44:46]process_action close_receipt done [13:44:46]requested_data is exist [13:44:46]produce_requested_data [13:44:46]requested_item fm.sn is exist - process it [13:44:46]wFMCommunicate request_size=4 [13:44:46]MH_SAM_APDU [13:44:46]CAPDU: 80 11 00 00 [13:44:46]Write to MH i2c: E2 08 00 B4 1F 80 11 00 00 00 00 00 00 4D [13:44:46]Write i2c OK [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 [13:44:46]MH_I2C_Read... [13:44:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:46]Read from MH i2c: E2 17 00 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 17 00 B4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 98 [13:44:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:44:46]wFMCommunicate OK [13:44:46]requested_item fd.num is exist - process it [13:44:46]SAM_PROTO_GetFieldsCounters [13:44:46]wFMCommunicate request_size=4 [13:44:46]MH_SAM_APDU [13:44:46]CAPDU: 80 13 00 00 [13:44:46]Write to MH i2c: E2 08 00 B5 1F 80 13 00 00 00 00 00 00 50 [13:44:46]Write i2c OK [13:44:46]MH_I2C_Read... [13:44:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:46]Read from MH i2c: E2 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 62 00 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 62 00 B5 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 48 C3 00 00 0E 04 04 00 D3 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 72 [13:44:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 48 C3 00 00 0E 04 04 00 D3 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 [13:44:46]wFMCommunicate OK [13:44:46]SAM_PROTO_GetFieldsCounters done [13:44:46]requested_item shift.num is exist - process it [13:44:46]requested_item shift.opened is exist - process it [13:44:46]req_shift_opened [13:44:46]FM_GetShiftState [13:44:46]SAM_PROTO_GetShiftState [13:44:46]wFMCommunicate request_size=4 [13:44:46]MH_SAM_APDU [13:44:46]CAPDU: 80 13 01 00 [13:44:46]Write to MH i2c: E2 08 00 B6 1F 80 13 01 00 00 00 00 00 52 [13:44:46]Write i2c OK [13:44:46]MH_I2C_Read... [13:44:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:46]Read from MH i2c: E2 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 0E 00 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 0E 00 B6 1F 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 0C [13:44:46]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:44:46]wFMCommunicate OK [13:44:46]SAM_PROTO_GetShiftState done [13:44:46]FM_GetShiftState done [13:44:46]req_shift_opened done [13:44:46]requested_item shift.open_date is exist - process it [13:44:46]req_shift_open_date [13:44:46]req_shift_open_date done [13:44:46]produce_requested_data done [13:44:46]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49992,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [13:44:46]process_action_free close_receipt [13:44:46]json_value_free [13:44:46]json_value_free done [13:44:46]process_json_proto returns [13:44:46]Send response to host [13:44:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49992,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [13:44:46]free response buf [13:44:46]execute_script done [13:44:46]execute_script returns [13:44:46]free content buf [13:44:46]Sock 9.Close socket [13:44:46]Sock 9.Thread stoped [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:23]accept exits with 7 [13:45:23]New connection [13:45:23]New thread 3067354468 created [13:45:23]Thread 3067211108 joined [13:45:23]Waiting for new connection... [13:45:23] Sock 7.Parse request [13:45:23]Sock 7.Check first char [13:45:23]Sock 7.First char is OK [13:45:23]request: POST /json_proto HTTP/1.0 [13:45:23]Method: POST [13:45:23]URL: /json_proto [13:45:23]Method is POST - this is cgi request [13:45:23]url: /json_proto [13:45:23]query_string will be loaded in cgi processing [13:45:23]execute_cgi json_proto POST (null) [13:45:23]execute_cgi path=json_proto method=POST [13:45:23]POST find Content-Length [13:45:23]Host: 172.17.46.196:8080 [13:45:23]Content-Length: 683 [13:45:23]Content-Type: application/json [13:45:23] [13:45:23]POST finish read [13:45:23]Found Content-Length = 683 [13:45:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190129", "tax_sys" : 0, "items" : [ { "code": "5449000002952", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,33 \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" ] } } [13:45:23]execute_script... [13:45:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190129", "tax_sys" : 0, "items" : [ { "code": "5449000002952", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,33 \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" ] } } [13:45:23]POST & json_proto [13:45:23]process_json_proto [13:45:23]json parsed OK: [13:45:23]protocol is kg_v1.0 [13:45:23]action value=close_receipt [13:45:23]process_action close_receipt [13:45:23]cmd_close_receipt [13:45:23]MH_GetDate [13:45:23]Write to MH i2c: F0 00 00 B7 1F C5 [13:45:23]Write i2c OK [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: F0 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: F0 09 00 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: F0 09 00 B7 1F 00 76 4C C3 66 C4 85 C2 66 2A [13:45:23]GetLastDocTimeStamp 1724075085 [13:45:23]current date 1724075126 [13:45:23]FM_GetShiftState [13:45:23]SAM_PROTO_GetShiftState [13:45:23]wFMCommunicate request_size=4 [13:45:23]MH_SAM_APDU [13:45:23]CAPDU: 80 13 01 00 [13:45:23]Write to MH i2c: E2 08 00 B8 1F 80 13 01 00 00 00 00 00 54 [13:45:23]Write i2c OK [13:45:23]MH_I2C_Read... [13:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:23]Read from MH i2c: E2 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: E2 0E 00 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: E2 0E 00 B8 1F 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 0E [13:45:23]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:45:23]wFMCommunicate OK [13:45:23]SAM_PROTO_GetShiftState done [13:45:23]FM_GetShiftState done [13:45:23]opened in 1724026361 [13:45:23]opened+sec_in_day 1724112761 [13:45:23]quantity*price = 9000 [13:45:23]sum+1 = 9001 [13:45:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 100 19.08.2024 13:45 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49993 ФПД: 26851970163143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T134526&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49993&fm=26851970163143&tin=02508201610067®Number=0000000000092546&sum=9000 0 [13:45:24]StoreToDocumentArchive [13:45:24]shift 467 fd 49993 [13:45:24]save to /storage/0467/doc_00049993 [13:45:24]save last doc name /storage/0467/doc_00049993 to /storage/kkm_last_doc_name [13:45:24]save OK [13:45:24]Clear old archive folders... [13:45:24]ProcessDocumentItem done err = 0, tmpTLVsize=294 [13:45:24]tlvbuf is 01047FC0 [13:45:24]SAM_PROTO_ClearQueue [13:45:24]wFMCommunicate request_size=4 [13:45:24]MH_SAM_APDU [13:45:24]CAPDU: 80 09 00 00 [13:45:24]Write to MH i2c: E2 08 00 C5 1F 80 09 00 00 00 00 00 00 56 [13:45:24]Write i2c OK [13:45:24]MH_I2C_Read... [13:45:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:24]Read from MH i2c: E2 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 03 00 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 03 00 C5 1F 00 90 00 58 [13:45:24]RAPDU: 90 00 [13:45:24]wFMCommunicate OK [13:45:24]SAM_PROTO_ClearQueue done [13:45:24]KKMCreateOFDPacket [13:45:24]OFDProtocolAddRootSTLVToBuf [13:45:24]FM_MakeSignedData [13:45:24]FM_MakeSignedData [13:45:24]SAM_PROTO_SignData [13:45:24]wFMCommunicate request_size=4 [13:45:24]MH_SAM_APDU [13:45:24]CAPDU: 80 0D 01 02 [13:45:24]Write to MH i2c: E2 08 00 C6 1F 80 0D 01 02 00 00 00 00 5E [13:45:24]Write i2c OK [13:45:24]MH_I2C_Read... [13:45:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:24]Read from MH i2c: E2 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 03 00 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 03 00 C6 1F 00 90 00 59 [13:45:24]RAPDU: 90 00 [13:45:24]wFMCommunicate OK [13:45:24]wFMCommunicate request_size=255 [13:45:24]MH_SAM_APDU [13:45:24]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 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 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 64 00 00 00 F4 03 04 00 76 4C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [13:45:24]Write to MH i2c: E2 02 01 C7 1F 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 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 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 64 00 00 00 F4 03 04 00 76 4C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 2F [13:45:24]Write i2c OK [13:45:24]MH_I2C_Read... [13:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:25]Read from MH i2c: E2 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 03 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 03 00 C7 1F 00 90 00 5A [13:45:25]RAPDU: 90 00 [13:45:25]wFMCommunicate OK [13:45:25]wFMCommunicate request_size=53 [13:45:25]MH_SAM_APDU [13:45:25]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 49 C3 00 00 35 04 06 00 18 6B F6 24 A1 C7 [13:45:25]Write to MH i2c: E2 38 00 C8 1F 80 0D 02 02 30 00 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 49 C3 00 00 35 04 06 00 18 6B F6 24 A1 C7 00 00 60 [13:45:25]Write i2c OK [13:45:25]MH_I2C_Read... [13:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:25]Read from MH i2c: E2 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 03 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 03 00 C8 1F 00 90 00 5B [13:45:25]RAPDU: 90 00 [13:45:25]wFMCommunicate OK [13:45:25]wFMCommunicate request_size=4 [13:45:25]MH_SAM_APDU [13:45:25]CAPDU: 80 0D 03 02 [13:45:25]Write to MH i2c: E2 08 00 C9 1F 80 0D 03 02 00 00 00 00 63 [13:45:25]Write i2c OK [13:45:25]MH_I2C_Read... [13:45:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:25]Read from MH i2c: E2 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 0B 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 0B 00 C9 1F 00 3E DB 6F 43 3D 9F 1C 73 90 00 9A [13:45:25]RAPDU: 3E DB 6F 43 3D 9F 1C 73 90 00 [13:45:25]wFMCommunicate OK [13:45:25]SAM_PROTO_SignData done [13:45:25]FM_MakeSignedData done [13:45:25]CreateOFDProtocolMessage [13:45:25]wFMCommunicate request_size=4 [13:45:25]MH_SAM_APDU [13:45:25]CAPDU: 80 11 00 00 [13:45:25]Write to MH i2c: E2 08 00 CA 1F 80 11 00 00 00 00 00 00 63 [13:45:25]Write i2c OK [13:45:25]MH_I2C_Read... [13:45:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:25]Read from MH i2c: E2 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 17 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 17 00 CA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AE [13:45:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:45:25]wFMCommunicate OK [13:45:25]CreateOFDProtocolMessage done [13:45:25]OFDSenderStorePacket 49993 [13:45:25]StoreOFDPacket docnum=49993 [13:45:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 B0 CE 32 01 37 16 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 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 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 64 00 00 00 F4 03 04 00 76 4C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 49 C3 00 00 35 04 06 00 18 6B F6 24 A1 C7 3E DB 6F 43 3D 9F 1C 73 [13:45:25]CheckFolder [13:45:25]dirname=/storage/ofd_packets [13:45:25]CheckFolder done [13:45:25]ProducePacketName [13:45:25]name=ofd_packets/00049993 [13:45:25]NVStorageSaveData ofd_packets/00049993 [13:45:25]File name is /storage/ofd_packets/00049993 [13:45:25]Write 344 bytes [13:45:25]NVStorageSaveData done [13:45:25]OFDSenderStorePacket done [13:45:25]KKMCreateOFDPacket done [13:45:25]NVStorageSaveData kkm_last_timestamp [13:45:25]File name is /storage/kkm_last_timestamp [13:45:25]Write 4 bytes [13:45:25]NVStorageSaveData done [13:45:25]ExternCall_PrintAddStr [13:45:25]wPrintStart [13:45:25]Write to MH i2c: 01 00 00 CB 1F EA [13:45:25]Write i2c OK [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: 01 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: 01 07 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: 01 07 00 CB 1F 00 00 00 00 00 FF 0F FF [13:45:25]RasterBufferAndPrint [13:45:25]line Счет N : (3)190129 [13:45:25]line ИНН: 02508201610067 [13:45:25]line Контрольно-Кассовый Чек [13:45:25]line ПРОДАЖА [13:45:25]line Товар: 5449000002952 [13:45:25]line Холодный чай Fuse персик 0,33 ж/б [13:45:25]line 1.000 * 90.00 [13:45:25]line = 90.00 [13:45:25]line НДС 12% НСП 1% [13:45:25]line > о реализуемом товаре [13:45:25]line ИТОГО: 90.00 [13:45:25]line НСП 1% : 0.80 [13:45:25]line НДС 12% : 9.56 [13:45:25]line Наличными: 90.00 [13:45:25]line Безнал.: 0.00 [13:45:25]line Место: АЗС № 95 "Партнер Нефть" [13:45:25]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:45:25]line СНО: Общий режим [13:45:25]line Чек 100 19.08.2024 13:45 [13:45:25]line Смена: 467 ФФД: 1.0 [13:45:25]line ЗНМ: 0300000078 [13:45:25]line РНМ: 0000000000092546 [13:45:25]line Версия ККМ: 001 [13:45:25]line ФМ: 0000000000871800 [13:45:25]line ФД: 49993 [13:45:25]line ФПД: 26851970163143 [13:45:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T134526&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49993&fm=26851970163143&tin=02508201610067®Number=0000000000092546&sum=9000 [13:45:25]line 0 [13:45:25]OFD Sender: Processing packet 49993 [packets to send 21, broken 20] [13:45:25]ProducePacketName [13:45:25]name=ofd_packets/00049993 [13:45:25]OFD Sender: To server: pG, [13:45:25]CommunicateWithHost lk.salyk.kg:30040 [13:45:25]ConnectInit lk.salyk.kg [13:45:25]written 0, free lines is 4095 [13:45:26]Connected sock=10 [13:45:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 B0 CE 32 01 37 16 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 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 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 64 00 00 00 F4 03 04 00 76 4C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 49 C3 00 00 35 04 06 00 18 6B F6 24 A1 C7 3E DB 6F 43 3D 9F 1C 73 [13:45:26]Write to MH i2c: 01 00 00 F4 1F 13 [13:45:26]Write i2c OK [13:45:26]MH_I2C_Read... [13:45:26]Read from MH i2c: 01 [13:45:26]MH_I2C_Read... [13:45:26]Read from MH i2c: 01 07 00 [13:45:26]MH_I2C_Read... [13:45:26]Read from MH i2c: 01 07 00 F4 1F 00 00 00 00 00 D2 0C F8 [13:45:26]RasterBufferAndPrint [13:45:26]line [13:45:26]line [13:45:26]line [13:45:26]line [13:45:26]line [13:45:26]written 0, free lines is 3289 [13:45:26]MH_Cut [13:45:26]Write to MH i2c: D1 01 00 FB 1F 01 EC [13:45:26]Write i2c OK [13:45:26]MH_I2C_Read... [13:45:26]Read from MH i2c: D1 [13:45:26]MH_I2C_Read... [13:45:26]Read from MH i2c: D1 01 00 [13:45:26]MH_I2C_Read... [13:45:26]Read from MH i2c: D1 01 00 FB 1F 00 EB [13:45:26]Write to MH i2c: 01 00 00 FC 1F 1B [13:45:26]Write i2c OK [13:45:26]MH_I2C_Read... [13:45:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 21 9F 47 00 B2 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 49 C3 00 00 F4 03 04 00 E4 F6 C2 66 B6 04 01 00 00 C4 73 1F 18 94 A6 79 F5 [13:45:26]CommunicateWithHost err = 0 [13:45:26]CheckOFDResponse [13:45:26]1017 (14) - 77093643461234 [13:45:26]1041 (16) - 0000000000871800 [13:45:26]1040 (4) - 49993 [13:45:26]1012 (4) - 19.08.2024 07:40 [13:45:26]1206 (1) - 0 [13:45:26]OFD Sender: Remove packet 49993 [13:45:26]ProducePacketName [13:45:26]name=ofd_packets/00049993 [13:45:26]NVStorageDeleteData [13:45:26]OFD Sender: No OFD packet to send [13:45:26]*** Cut start [13:45:26]*** Purtial cut [13:45:26]*** CUTSNS_PIN = 0 [13:45:27]*** Stage 1: CUTSNS_PIN = 1 [13:45:29]Read from MH i2c: 01 [13:45:29]MH_I2C_Read... [13:45:29]*** Stop cut motor [13:45:29]*** Cut end [13:45:29]Read from MH i2c: 01 07 00 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: 01 07 00 FC 1F 00 00 00 00 00 FF 0F 30 [13:45:29]process_action close_receipt done [13:45:29]requested_data is exist [13:45:29]produce_requested_data [13:45:29]requested_item fm.sn is exist - process it [13:45:29]wFMCommunicate request_size=4 [13:45:29]MH_SAM_APDU [13:45:29]CAPDU: 80 11 00 00 [13:45:29]Write to MH i2c: E2 08 00 FD 1F 80 11 00 00 00 00 00 00 96 [13:45:29]Write i2c OK [13:45:29]MH_I2C_Read... [13:45:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:29]Read from MH i2c: E2 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: E2 17 00 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: E2 17 00 FD 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E1 [13:45:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:45:29]wFMCommunicate OK [13:45:29]requested_item fd.num is exist - process it [13:45:29]SAM_PROTO_GetFieldsCounters [13:45:29]wFMCommunicate request_size=4 [13:45:29]MH_SAM_APDU [13:45:29]CAPDU: 80 13 00 00 [13:45:29]Write to MH i2c: E2 08 00 FE 1F 80 13 00 00 00 00 00 00 99 [13:45:29]Write i2c OK [13:45:29]MH_I2C_Read... [13:45:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:29]Read from MH i2c: E2 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: E2 62 00 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: E2 62 00 FE 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 49 C3 00 00 0E 04 04 00 D3 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 BF [13:45:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 49 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:29]wFMCommunicate OK [13:45:29]SAM_PROTO_GetFieldsCounters done [13:45:29]requested_item shift.num is exist - process it [13:45:29]requested_item shift.opened is exist - process it [13:45:29]req_shift_opened [13:45:29]FM_GetShiftState [13:45:29]SAM_PROTO_GetShiftState [13:45:29]wFMCommunicate request_size=4 [13:45:29]MH_SAM_APDU [13:45:29]CAPDU: 80 13 01 00 [13:45:29]Write to MH i2c: E2 08 00 FF 1F 80 13 01 00 00 00 00 00 9B [13:45:29]Write i2c OK [13:45:29]MH_I2C_Read... [13:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:29]Read from MH i2c: E2 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: E2 0E 00 [13:45:29]MH_I2C_Read... [13:45:29]Read from MH i2c: E2 0E 00 FF 1F 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 55 [13:45:29]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:45:29]wFMCommunicate OK [13:45:29]SAM_PROTO_GetShiftState done [13:45:29]FM_GetShiftState done [13:45:29]req_shift_opened done [13:45:29]requested_item shift.open_date is exist - process it [13:45:29]req_shift_open_date [13:45:29]req_shift_open_date done [13:45:29]produce_requested_data done [13:45:29]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49993,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [13:45:29]process_action_free close_receipt [13:45:29]json_value_free [13:45:29]json_value_free done [13:45:29]process_json_proto returns [13:45:29]Send response to host [13:45:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49993,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [13:45:29]free response buf [13:45:29]execute_script done [13:45:29]execute_script returns [13:45:29]free content buf [13:45:29]Sock 7.Close socket [13:45:29]Sock 7.Thread stoped [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:57]OFD Sender: No OFD packet to send [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:27]OFD Sender: No OFD packet to send [13:49:32]OFD Sender: No OFD packet to send [13:49:36]accept exits with 9 [13:49:36]New connection [13:49:36]New thread 3067211108 created [13:49:36]Thread 3067354468 joined [13:49:36]Waiting for new connection... [13:49:36] Sock 9.Parse request [13:49:36]Sock 9.Check first char [13:49:36]Sock 9.First char is OK [13:49:36]request: POST /json_proto HTTP/1.0 [13:49:36]Method: POST [13:49:36]URL: /json_proto [13:49:36]Method is POST - this is cgi request [13:49:36]url: /json_proto [13:49:36]query_string will be loaded in cgi processing [13:49:36]execute_cgi json_proto POST (null) [13:49:36]execute_cgi path=json_proto method=POST [13:49:36]POST find Content-Length [13:49:36]Host: 172.17.46.196:8080 [13:49:36]Content-Length: 756 [13:49:36]Content-Type: application/json [13:49:36] [13:49:36]POST finish read [13:49:36]Found Content-Length = 756 [13:49:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30144796", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:36]execute_script... [13:49:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30144796", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:36]POST & json_proto [13:49:36]process_json_proto [13:49:36]json parsed OK: [13:49:36]protocol is kg_v1.0 [13:49:36]action value=close_receipt [13:49:36]process_action close_receipt [13:49:36]cmd_close_receipt [13:49:36]MH_GetDate [13:49:36]Write to MH i2c: F0 00 00 00 20 0F [13:49:36]Write i2c OK [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: F0 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: F0 09 00 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: F0 09 00 00 20 00 73 4D C3 66 C4 85 C2 66 72 [13:49:36]GetLastDocTimeStamp 1724075126 [13:49:36]current date 1724075379 [13:49:36]FM_GetShiftState [13:49:36]SAM_PROTO_GetShiftState [13:49:36]wFMCommunicate request_size=4 [13:49:36]MH_SAM_APDU [13:49:36]CAPDU: 80 13 01 00 [13:49:36]Write to MH i2c: E2 08 00 01 20 80 13 01 00 00 00 00 00 9E [13:49:36]Write i2c OK [13:49:36]MH_I2C_Read... [13:49:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:36]Read from MH i2c: E2 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: E2 0E 00 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: E2 0E 00 01 20 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 58 [13:49:36]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:49:36]wFMCommunicate OK [13:49:36]SAM_PROTO_GetShiftState done [13:49:36]FM_GetShiftState done [13:49:36]opened in 1724026361 [13:49:36]opened+sec_in_day 1724112761 [13:49:36]quantity*price = 0 [13:49:36]sum+1 = 1 [13:49:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 101 19.08.2024 13:49 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30144796 ФМ: 0000000000871800 ФД: 49994 ФПД: 65998523481730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T134939&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49994&fm=65998523481730&tin=02508201610067®Number=0000000000092546&sum=0 [13:49:37]StoreToDocumentArchive [13:49:37]shift 467 fd 49994 [13:49:37]save to /storage/0467/doc_00049994 [13:49:37]save last doc name /storage/0467/doc_00049994 to /storage/kkm_last_doc_name [13:49:37]save OK [13:49:37]Clear old archive folders... [13:49:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:37]tlvbuf is 01067E00 [13:49:37]SAM_PROTO_ClearQueue [13:49:37]wFMCommunicate request_size=4 [13:49:37]MH_SAM_APDU [13:49:37]CAPDU: 80 09 00 00 [13:49:37]Write to MH i2c: E2 08 00 0E 20 80 09 00 00 00 00 00 00 A0 [13:49:37]Write i2c OK [13:49:37]MH_I2C_Read... [13:49:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:37]Read from MH i2c: E2 [13:49:37]MH_I2C_Read... [13:49:37]Read from MH i2c: E2 03 00 [13:49:37]MH_I2C_Read... [13:49:37]Read from MH i2c: E2 03 00 0E 20 00 90 00 A2 [13:49:37]RAPDU: 90 00 [13:49:37]wFMCommunicate OK [13:49:37]SAM_PROTO_ClearQueue done [13:49:37]KKMCreateOFDPacket [13:49:37]OFDProtocolAddRootSTLVToBuf [13:49:37]FM_MakeSignedData [13:49:37]FM_MakeSignedData [13:49:37]SAM_PROTO_SignData [13:49:37]wFMCommunicate request_size=4 [13:49:37]MH_SAM_APDU [13:49:37]CAPDU: 80 0D 01 02 [13:49:37]Write to MH i2c: E2 08 00 0F 20 80 0D 01 02 00 00 00 00 A8 [13:49:37]Write i2c OK [13:49:37]MH_I2C_Read... [13:49:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:37]Read from MH i2c: E2 [13:49:37]MH_I2C_Read... [13:49:37]Read from MH i2c: E2 03 00 [13:49:37]MH_I2C_Read... [13:49:37]Read from MH i2c: E2 03 00 0F 20 00 90 00 A3 [13:49:37]RAPDU: 90 00 [13:49:37]wFMCommunicate OK [13:49:37]wFMCommunicate request_size=255 [13:49:37]MH_SAM_APDU [13:49:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 73 4D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4A C3 00 00 35 04 06 00 3C [13:49:37]Write to MH i2c: E2 02 01 10 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 73 4D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4A C3 00 00 35 04 06 00 3C 00 00 4C [13:49:37]Write i2c OK [13:49:37]MH_I2C_Read... [13:49:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:37]Read from MH i2c: E2 [13:49:37]MH_I2C_Read... [13:49:37]Read from MH i2c: E2 03 00 [13:49:37]MH_I2C_Read... [13:49:37]Read from MH i2c: E2 03 00 10 20 00 90 00 A4 [13:49:37]RAPDU: 90 00 [13:49:37]wFMCommunicate OK [13:49:37]wFMCommunicate request_size=10 [13:49:37]MH_SAM_APDU [13:49:37]CAPDU: 80 0D 02 02 05 06 7A 8C 3E 82 [13:49:37]Write to MH i2c: E2 0D 00 11 20 80 0D 02 02 05 00 06 7A 8C 3E 82 00 00 81 [13:49:37]Write i2c OK [13:49:37]MH_I2C_Read... [13:49:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:38]Read from MH i2c: E2 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 03 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 03 00 11 20 00 90 00 A5 [13:49:38]RAPDU: 90 00 [13:49:38]wFMCommunicate OK [13:49:38]wFMCommunicate request_size=4 [13:49:38]MH_SAM_APDU [13:49:38]CAPDU: 80 0D 03 02 [13:49:38]Write to MH i2c: E2 08 00 12 20 80 0D 03 02 00 00 00 00 AD [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:38]Read from MH i2c: E2 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 0B 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 0B 00 12 20 00 71 A8 06 74 25 49 A4 33 90 00 86 [13:49:38]RAPDU: 71 A8 06 74 25 49 A4 33 90 00 [13:49:38]wFMCommunicate OK [13:49:38]SAM_PROTO_SignData done [13:49:38]FM_MakeSignedData done [13:49:38]CreateOFDProtocolMessage [13:49:38]wFMCommunicate request_size=4 [13:49:38]MH_SAM_APDU [13:49:38]CAPDU: 80 11 00 00 [13:49:38]Write to MH i2c: E2 08 00 13 20 80 11 00 00 00 00 00 00 AD [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:38]Read from MH i2c: E2 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 17 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 17 00 13 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F8 [13:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:49:38]wFMCommunicate OK [13:49:38]CreateOFDProtocolMessage done [13:49:38]OFDSenderStorePacket 49994 [13:49:38]StoreOFDPacket docnum=49994 [13:49:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 62 5E 07 01 C4 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 73 4D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4A C3 00 00 35 04 06 00 3C 06 7A 8C 3E 82 71 A8 06 74 25 49 A4 33 [13:49:38]CheckFolder [13:49:38]dirname=/storage/ofd_packets [13:49:38]CheckFolder done [13:49:38]ProducePacketName [13:49:38]name=ofd_packets/00049994 [13:49:38]NVStorageSaveData ofd_packets/00049994 [13:49:38]File name is /storage/ofd_packets/00049994 [13:49:38]Write 301 bytes [13:49:38]NVStorageSaveData done [13:49:38]OFDSenderStorePacket done [13:49:38]KKMCreateOFDPacket done [13:49:38]NVStorageSaveData kkm_last_timestamp [13:49:38]File name is /storage/kkm_last_timestamp [13:49:38]Write 4 bytes [13:49:38]NVStorageSaveData done [13:49:38]ExternCall_PrintAddStr [13:49:38]wPrintStart [13:49:38]Write to MH i2c: 01 00 00 14 20 34 [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: 01 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: 01 07 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: 01 07 00 14 20 00 00 00 00 00 FF 0F 49 [13:49:38]RasterBufferAndPrint [13:49:38]line Счет N : (1)11327838 [13:49:38]line ИНН: 02508201610067 [13:49:38]line Контрольно-Кассовый Чек [13:49:38]line ПРОДАЖА [13:49:38]line ТРК (МРК, ГНК) : 42 [13:49:38]line Товар: 2710124130 [13:49:38]line Аи-92-К-4 [13:49:38]line 10.000 * 0.00 [13:49:38]line = 0.00 [13:49:38]line НДС 12% НСП 1% [13:49:38]line > о реализуемом товаре [13:49:38]line ИТОГО: 0.00 [13:49:38]line НСП 1% : 0.00 [13:49:38]line НДС 12% : 0.00 [13:49:38]line Наличными: 0.00 [13:49:38]line Безнал.: 0.00 [13:49:38]line Место: АЗС № 95 "Партнер Нефть" [13:49:38]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:49:38]line СНО: Общий режим [13:49:38]line Чек 101 19.08.2024 13:49 [13:49:38]line Смена: 467 ФФД: 1.0 [13:49:38]line ЗНМ: 0300000078 [13:49:38]line РНМ: 0000000000092546 [13:49:38]line Версия ККМ: 001 [13:49:38]line Талоны: ТК ГПНА Online [13:49:38]line 30144796 [13:49:38]line ФМ: 0000000000871800 [13:49:38]line ФД: 49994 [13:49:38]line ФПД: 65998523481730 [13:49:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T134939&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49994&fm=65998523481730&tin=02508201610067®Number=0000000000092546&sum=0 [13:49:38]written 0, free lines is 4095 [13:49:38]OFD Sender: Processing packet 49994 [packets to send 21, broken 20] [13:49:38]ProducePacketName [13:49:38]name=ofd_packets/00049994 [13:49:38]OFD Sender: To server: pG, [13:49:38]CommunicateWithHost lk.salyk.kg:30040 [13:49:38]ConnectInit lk.salyk.kg [13:49:38]Write to MH i2c: 01 00 00 3E 20 5E [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: 01 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: 01 07 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: 01 07 00 3E 20 00 00 00 00 00 C9 0C 3A [13:49:38]RasterBufferAndPrint [13:49:38]line [13:49:38]line [13:49:38]line [13:49:38]line [13:49:38]line [13:49:38]written 0, free lines is 3279 [13:49:38]MH_Cut [13:49:38]Write to MH i2c: D1 01 00 45 20 01 37 [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: D1 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: D1 01 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: D1 01 00 45 20 00 36 [13:49:38]Write to MH i2c: 01 00 00 46 20 66 [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]Connected sock=10 [13:49:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 62 5E 07 01 C4 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 73 4D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4A C3 00 00 35 04 06 00 3C 06 7A 8C 3E 82 71 A8 06 74 25 49 A4 33 [13:49:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 6E BF 47 00 DB A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4A C3 00 00 F4 03 04 00 E0 F7 C2 66 B6 04 01 00 00 E8 80 38 5F 4B 49 2C BF [13:49:38]CommunicateWithHost err = 0 [13:49:38]CheckOFDResponse [13:49:38]1017 (14) - 77093643461234 [13:49:38]1041 (16) - 0000000000871800 [13:49:38]1040 (4) - 49994 [13:49:38]1012 (4) - 19.08.2024 07:44 [13:49:38]1206 (1) - 0 [13:49:38]OFD Sender: Remove packet 49994 [13:49:38]ProducePacketName [13:49:38]name=ofd_packets/00049994 [13:49:38]NVStorageDeleteData [13:49:39]*** Cut start [13:49:39]*** Purtial cut [13:49:39]*** Stage 1: CUTSNS_PIN = 1 [13:49:39]OFD Sender: No OFD packet to send [13:49:39]Read from MH i2c: 01 [13:49:39]MH_I2C_Read... [13:49:39]*** Stop cut motor [13:49:39]*** Cut end [13:49:39]Read from MH i2c: 01 07 00 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: 01 07 00 46 20 00 00 00 00 00 FF 0F 7B [13:49:39]process_action close_receipt done [13:49:39]requested_data is exist [13:49:39]produce_requested_data [13:49:39]requested_item fm.sn is exist - process it [13:49:39]wFMCommunicate request_size=4 [13:49:39]MH_SAM_APDU [13:49:39]CAPDU: 80 11 00 00 [13:49:39]Write to MH i2c: E2 08 00 47 20 80 11 00 00 00 00 00 00 E1 [13:49:39]Write i2c OK [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 [13:49:39]MH_I2C_Read... [13:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:39]Read from MH i2c: E2 17 00 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 17 00 47 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2C [13:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:49:39]wFMCommunicate OK [13:49:39]requested_item fd.num is exist - process it [13:49:39]SAM_PROTO_GetFieldsCounters [13:49:39]wFMCommunicate request_size=4 [13:49:39]MH_SAM_APDU [13:49:39]CAPDU: 80 13 00 00 [13:49:39]Write to MH i2c: E2 08 00 48 20 80 13 00 00 00 00 00 00 E4 [13:49:39]Write i2c OK [13:49:39]MH_I2C_Read... [13:49:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:39]Read from MH i2c: E2 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 62 00 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 62 00 48 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4A C3 00 00 0E 04 04 00 D3 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 0E [13:49:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4A C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:39]wFMCommunicate OK [13:49:39]SAM_PROTO_GetFieldsCounters done [13:49:39]requested_item shift.num is exist - process it [13:49:39]requested_item shift.opened is exist - process it [13:49:39]req_shift_opened [13:49:39]FM_GetShiftState [13:49:39]SAM_PROTO_GetShiftState [13:49:39]wFMCommunicate request_size=4 [13:49:39]MH_SAM_APDU [13:49:39]CAPDU: 80 13 01 00 [13:49:39]Write to MH i2c: E2 08 00 49 20 80 13 01 00 00 00 00 00 E6 [13:49:39]Write i2c OK [13:49:39]MH_I2C_Read... [13:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:39]Read from MH i2c: E2 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 0E 00 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 0E 00 49 20 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A0 [13:49:39]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:49:39]wFMCommunicate OK [13:49:39]SAM_PROTO_GetShiftState done [13:49:39]FM_GetShiftState done [13:49:39]req_shift_opened done [13:49:39]requested_item shift.open_date is exist - process it [13:49:39]req_shift_open_date [13:49:39]req_shift_open_date done [13:49:39]produce_requested_data done [13:49:39]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49994,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [13:49:39]process_action_free close_receipt [13:49:39]json_value_free [13:49:39]json_value_free done [13:49:39]process_json_proto returns [13:49:39]Send response to host [13:49:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49994,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [13:49:39]free response buf [13:49:39]execute_script done [13:49:39]execute_script returns [13:49:39]free content buf [13:49:39]Sock 9.Close socket [13:49:39]Sock 9.Thread stoped [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:57]accept exits with 7 [13:53:57]New connection [13:53:57]New thread 3067354468 created [13:53:57]Thread 3067211108 joined [13:53:57]Waiting for new connection... [13:53:57] Sock 7.Parse request [13:53:57]Sock 7.Check first char [13:53:57]Sock 7.First char is OK [13:53:57]request: POST /json_proto HTTP/1.0 [13:53:57]Method: POST [13:53:57]URL: /json_proto [13:53:57]Method is POST - this is cgi request [13:53:57]url: /json_proto [13:53:57]query_string will be loaded in cgi processing [13:53:57]execute_cgi json_proto POST (null) [13:53:57]execute_cgi path=json_proto method=POST [13:53:57]POST find Content-Length [13:53:57]Host: 172.17.46.196:8080 [13:53:57]Content-Length: 1610 [13:53:57]Content-Type: application/json [13:53:57] [13:53:57]POST finish read [13:53:57]Found Content-Length = 1610 [13:53:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190130", "tax_sys" : 0, "items" : [ { "code": "4860114390161", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A\u043E\u0433\u043E\u043B\u044C\u043D\u044B\u0439 \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0413\u0440\u0443\u0448", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46234964", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C \u0427\u0427 XXL 4D \u0411\u0410\u041D\u041A\u0410 PLAYLIST 8*60*2", "price" : 39.00, "quantity" : 2.000, "sum" : 78.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 408.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:57]execute_script... [13:53:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190130", "tax_sys" : 0, "items" : [ { "code": "4860114390161", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A\u043E\u0433\u043E\u043B\u044C\u043D\u044B\u0439 \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0413\u0440\u0443\u0448", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46234964", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C \u0427\u0427 XXL 4D \u0411\u0410\u041D\u041A\u0410 PLAYLIST 8*60*2", "price" : 39.00, "quantity" : 2.000, "sum" : 78.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 408.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:57]POST & json_proto [13:53:57]process_json_proto [13:53:57]json parsed OK: [13:53:57]protocol is kg_v1.0 [13:53:57]action value=close_receipt [13:53:57]process_action close_receipt [13:53:57]cmd_close_receipt [13:53:57]MH_GetDate [13:53:57]Write to MH i2c: F0 00 00 4A 20 59 [13:53:57]Write i2c OK [13:53:57]MH_I2C_Read... [13:53:57]Read from MH i2c: F0 [13:53:57]MH_I2C_Read... [13:53:57]Read from MH i2c: F0 09 00 [13:53:57]MH_I2C_Read... [13:53:57]Read from MH i2c: F0 09 00 4A 20 00 78 4E C3 66 C4 85 C2 66 C2 [13:53:57]GetLastDocTimeStamp 1724075379 [13:53:57]current date 1724075640 [13:53:57]FM_GetShiftState [13:53:57]SAM_PROTO_GetShiftState [13:53:57]wFMCommunicate request_size=4 [13:53:57]MH_SAM_APDU [13:53:57]CAPDU: 80 13 01 00 [13:53:57]Write to MH i2c: E2 08 00 4B 20 80 13 01 00 00 00 00 00 E8 [13:53:57]Write i2c OK [13:53:57]MH_I2C_Read... [13:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:57]Read from MH i2c: E2 [13:53:57]MH_I2C_Read... [13:53:57]Read from MH i2c: E2 0E 00 [13:53:57]MH_I2C_Read... [13:53:57]Read from MH i2c: E2 0E 00 4B 20 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A2 [13:53:57]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:53:57]wFMCommunicate OK [13:53:57]SAM_PROTO_GetShiftState done [13:53:57]FM_GetShiftState done [13:53:57]opened in 1724026361 [13:53:57]opened+sec_in_day 1724112761 [13:53:57]quantity*price = 15500 [13:53:57]sum+1 = 15501 [13:53:57]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000000996 Напиток Кока-Кола 0,33л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46234964 Карамель ЧЧ XXL 4D БАНКА PLAYLIST 8*60*2 2.000 * 39.00 = 78.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 54492509 Напиток Кока-Кола 0,25л 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 408.00 НСП 1% : 3.61 НДС 12% : 43.33 Наличными: 408.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 102 19.08.2024 13:54 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49995 ФПД: 187804723515090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T135400&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49995&fm=187804723515090&tin=02508201610067®Number=0000000000092546&sum=40800 0 [13:53:58]StoreToDocumentArchive [13:53:58]shift 467 fd 49995 [13:53:58]save to /storage/0467/doc_00049995 [13:53:58]save last doc name /storage/0467/doc_00049995 to /storage/kkm_last_doc_name [13:53:58]save OK [13:53:58]Clear old archive folders... [13:53:58]ProcessDocumentItem done err = 0, tmpTLVsize=658 [13:53:58]tlvbuf is B6FB7010 [13:53:58]SAM_PROTO_ClearQueue [13:53:58]wFMCommunicate request_size=4 [13:53:58]MH_SAM_APDU [13:53:58]CAPDU: 80 09 00 00 [13:53:58]Write to MH i2c: E2 08 00 58 20 80 09 00 00 00 00 00 00 EA [13:53:58]Write i2c OK [13:53:58]MH_I2C_Read... [13:53:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:58]Read from MH i2c: E2 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: E2 03 00 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: E2 03 00 58 20 00 90 00 EC [13:53:58]RAPDU: 90 00 [13:53:58]wFMCommunicate OK [13:53:58]SAM_PROTO_ClearQueue done [13:53:58]KKMCreateOFDPacket [13:53:58]OFDProtocolAddRootSTLVToBuf [13:53:58]FM_MakeSignedData [13:53:58]FM_MakeSignedData [13:53:58]SAM_PROTO_SignData [13:53:58]wFMCommunicate request_size=4 [13:53:58]MH_SAM_APDU [13:53:58]CAPDU: 80 0D 01 02 [13:53:58]Write to MH i2c: E2 08 00 59 20 80 0D 01 02 00 00 00 00 F2 [13:53:58]Write i2c OK [13:53:58]MH_I2C_Read... [13:53:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:58]Read from MH i2c: E2 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: E2 03 00 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: E2 03 00 59 20 00 90 00 ED [13:53:58]RAPDU: 90 00 [13:53:58]wFMCommunicate OK [13:53:58]wFMCommunicate request_size=255 [13:53:58]MH_SAM_APDU [13:53:58]CAPDU: 80 0D 02 02 FA 03 00 92 02 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 36 31 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 93 D1 80 D1 83 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 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 [13:53:58]Write to MH i2c: E2 02 01 5A 20 80 0D 02 02 FA 00 03 00 92 02 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 36 31 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 93 D1 80 D1 83 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 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 EB [13:53:58]Write i2c OK [13:53:58]MH_I2C_Read... [13:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:59]Read from MH i2c: E2 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 5A 20 00 90 00 EE [13:53:59]RAPDU: 90 00 [13:53:59]wFMCommunicate OK [13:53:59]wFMCommunicate request_size=255 [13:53:59]MH_SAM_APDU [13:53:59]CAPDU: 80 0D 02 02 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 08 00 34 36 32 33 34 39 36 34 06 04 37 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 58 58 4C 20 34 44 20 D0 91 D0 90 D0 9D D0 9A D0 90 20 50 4C 41 59 4C 49 53 54 20 38 2A 36 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 78 1E 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 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [13:53:59]Write to MH i2c: E2 02 01 5B 20 80 0D 02 02 FA 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 08 00 34 36 32 33 34 39 36 34 06 04 37 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 58 58 4C 20 34 44 20 D0 91 D0 90 D0 9D D0 9A D0 90 20 50 4C 41 59 4C 49 53 54 20 38 2A 36 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 78 1E 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 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 C1 [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:59]Read from MH i2c: E2 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 5B 20 00 90 00 EF [13:53:59]RAPDU: 90 00 [13:53:59]wFMCommunicate OK [13:53:59]wFMCommunicate request_size=167 [13:53:59]MH_SAM_APDU [13:53:59]CAPDU: 80 0D 02 02 A2 00 60 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 10 00 00 00 00 07 04 06 00 60 9F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 78 4E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4B C3 00 00 35 04 06 00 AA CE B1 D5 0E D2 [13:53:59]Write to MH i2c: E2 AA 00 5C 20 80 0D 02 02 A2 00 00 60 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 10 00 00 00 00 07 04 06 00 60 9F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 78 4E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4B C3 00 00 35 04 06 00 AA CE B1 D5 0E D2 00 00 EA [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:59]Read from MH i2c: E2 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 5C 20 00 90 00 F0 [13:53:59]RAPDU: 90 00 [13:53:59]wFMCommunicate OK [13:53:59]wFMCommunicate request_size=4 [13:53:59]MH_SAM_APDU [13:53:59]CAPDU: 80 0D 03 02 [13:53:59]Write to MH i2c: E2 08 00 5D 20 80 0D 03 02 00 00 00 00 F8 [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:59]Read from MH i2c: E2 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 0B 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 0B 00 5D 20 00 57 6B BE F0 A0 1D 90 7C 90 00 32 [13:53:59]RAPDU: 57 6B BE F0 A0 1D 90 7C 90 00 [13:53:59]wFMCommunicate OK [13:53:59]SAM_PROTO_SignData done [13:53:59]FM_MakeSignedData done [13:53:59]CreateOFDProtocolMessage [13:53:59]wFMCommunicate request_size=4 [13:53:59]MH_SAM_APDU [13:53:59]CAPDU: 80 11 00 00 [13:53:59]Write to MH i2c: E2 08 00 5E 20 80 11 00 00 00 00 00 00 F8 [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:59]Read from MH i2c: E2 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 17 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 17 00 5E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 43 [13:53:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:53:59]wFMCommunicate OK [13:53:59]CreateOFDProtocolMessage done [13:53:59]OFDSenderStorePacket 49995 [13:53:59]StoreOFDPacket docnum=49995 [13:53:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A6 02 00 00 03 D4 9E 02 A6 95 5A 03 01 00 03 00 92 02 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 36 31 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 93 D1 80 D1 83 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 08 00 34 36 32 33 34 39 36 34 06 04 37 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 58 58 4C 20 34 44 20 D0 91 D0 90 D0 9D D0 9A D0 90 20 50 4C 41 59 4C 49 53 54 20 38 2A 36 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 78 1E 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 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 10 00 00 00 00 07 04 06 00 60 9F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 78 4E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4B C3 00 00 35 04 06 00 AA CE B1 D5 0E D2 57 6B BE F0 A0 1D 90 7C [13:53:59]CheckFolder [13:53:59]dirname=/storage/ofd_packets [13:53:59]CheckFolder done [13:53:59]ProducePacketName [13:53:59]name=ofd_packets/00049995 [13:53:59]NVStorageSaveData ofd_packets/00049995 [13:53:59]File name is /storage/ofd_packets/00049995 [13:53:59]Write 708 bytes [13:53:59]NVStorageSaveData done [13:53:59]OFDSenderStorePacket done [13:53:59]KKMCreateOFDPacket done [13:53:59]NVStorageSaveData kkm_last_timestamp [13:53:59]File name is /storage/kkm_last_timestamp [13:53:59]Write 4 bytes [13:53:59]NVStorageSaveData done [13:53:59]ExternCall_PrintAddStr [13:53:59]wPrintStart [13:53:59]Write to MH i2c: 01 00 00 5F 20 7F [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: 01 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: 01 07 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: 01 07 00 5F 20 00 00 00 00 00 FF 0F 94 [13:53:59]RasterBufferAndPrint [13:53:59]line Счет N : (3)190130 [13:53:59]line ИНН: 02508201610067 [13:53:59]line Контрольно-Кассовый Чек [13:53:59]line ПРОДАЖА [13:53:59]line Товар: 4860114390161 [13:53:59]line Напиток безалкогольный газированный Груш [13:53:59]line 1.000 * 155.00 [13:54:00]line = 155.00 [13:54:00]line НДС 12% НСП 1% [13:54:00]line > о реализуемом товаре [13:54:00]line Товар: 5449000000996 [13:54:00]line Напиток Кока-Кола 0,33л [13:54:00]line 1.000 * 85.00 [13:54:00]line = 85.00 [13:54:00]line НДС 12% НСП 1% [13:54:00]line > о реализуемом товаре [13:54:00]line Товар: 46234964 [13:54:00]line Карамель ЧЧ XXL 4D БАНКА PLAYLIST 8*60*2 [13:54:00]line 2.000 * 39.00 [13:54:00]line = 78.00 [13:54:00]line НДС 12% НСП 1% [13:54:00]line > о реализуемом товаре [13:54:00]line Товар: 54492509 [13:54:00]line Напиток Кока-Кола 0,25л [13:54:00]line 1.000 * 90.00 [13:54:00]line = 90.00 [13:54:00]line НДС 12% НСП 1% [13:54:00]line > о реализуемом товаре [13:54:00]line ИТОГО: 408.00 [13:54:00]line НСП 1% : 3.61 [13:54:00]line НДС 12% : 43.33 [13:54:00]line Наличными: 408.00 [13:54:00]line Безнал.: 0.00 [13:54:00]line Место: АЗС № 95 "Партнер Нефть" [13:54:00]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:54:00]line СНО: Общий режим [13:54:00]line Чек 102 19.08.2024 13:54 [13:54:00]line Смена: 467 ФФД: 1.0 [13:54:00]line ЗНМ: 0300000078 [13:54:00]line РНМ: 0000000000092546 [13:54:00]line Версия ККМ: 001 [13:54:00]line ФМ: 0000000000871800 [13:54:00]line ФД: 49995 [13:54:00]line ФПД: 187804723515090 [13:54:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T135400&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49995&fm=187804723515090&tin=02508201610067®Number=0000000000092546&sum=40800 [13:54:00]line 0 [13:54:00]OFD Sender: Processing packet 49995 [packets to send 21, broken 20] [13:54:00]ProducePacketName [13:54:00]name=ofd_packets/00049995 [13:54:00]OFD Sender: To server: pG, [13:54:00]CommunicateWithHost lk.salyk.kg:30040 [13:54:00]ConnectInit lk.salyk.kg [13:54:00]written 0, free lines is 4095 [13:54:00]Connected sock=10 [13:54:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A6 02 00 00 03 D4 9E 02 A6 95 5A 03 01 00 03 00 92 02 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 36 31 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 93 D1 80 D1 83 D1 88 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 08 00 34 36 32 33 34 39 36 34 06 04 37 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 58 58 4C 20 34 44 20 D0 91 D0 90 D0 9D D0 9A D0 90 20 50 4C 41 59 4C 49 53 54 20 38 2A 36 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 78 1E 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 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 9F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 10 00 00 00 00 07 04 06 00 60 9F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 78 4E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4B C3 00 00 35 04 06 00 AA CE B1 D5 0E D2 57 6B BE F0 A0 1D 90 7C [13:54:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5A E2 47 00 B0 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 31 38 30 30 10 04 04 00 4B C3 00 00 F4 03 04 00 E6 F8 C2 66 B6 04 01 00 00 A8 6B E5 85 25 FB 04 02 [13:54:00]CommunicateWithHost err = 0 [13:54:00]CheckOFDResponse [13:54:00]1017 (14) - 77093643461234 [13:54:00]1041 (16) - 0000000000871800 [13:54:00]1040 (4) - 49995 [13:54:00]1012 (4) - 19.08.2024 07:48 [13:54:00]1206 (1) - 0 [13:54:00]OFD Sender: Remove packet 49995 [13:54:00]ProducePacketName [13:54:00]name=ofd_packets/00049995 [13:54:00]NVStorageDeleteData [13:54:00]Write to MH i2c: 01 00 00 9B 20 BB [13:54:00]Write i2c OK [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: 01 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: 01 07 00 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: 01 07 00 9B 20 00 00 00 00 00 B1 0B 7E [13:54:00]RasterBufferAndPrint [13:54:00]line [13:54:00]line [13:54:00]line [13:54:00]line [13:54:00]line [13:54:00]written 0, free lines is 3002 [13:54:00]MH_Cut [13:54:00]Write to MH i2c: D1 01 00 A2 20 01 94 [13:54:00]Write i2c OK [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: D1 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: D1 01 00 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: D1 01 00 A2 20 00 93 [13:54:00]Write to MH i2c: 01 00 00 A3 20 C3 [13:54:00]Write i2c OK [13:54:00]MH_I2C_Read... [13:54:01]OFD Sender: No OFD packet to send [13:54:01]*** Cut start [13:54:01]*** Purtial cut [13:54:01]*** CUTSNS_PIN = 0 [13:54:01]*** Stage 1: CUTSNS_PIN = 1 [13:54:03]Read from MH i2c: 01 [13:54:03]MH_I2C_Read... [13:54:03]*** Stop cut motor [13:54:03]*** Cut end [13:54:03]Read from MH i2c: 01 07 00 [13:54:03]MH_I2C_Read... [13:54:03]Read from MH i2c: 01 07 00 A3 20 00 00 00 00 00 FF 0F D8 [13:54:03]process_action close_receipt done [13:54:03]requested_data is exist [13:54:03]produce_requested_data [13:54:03]requested_item fm.sn is exist - process it [13:54:03]wFMCommunicate request_size=4 [13:54:03]MH_SAM_APDU [13:54:03]CAPDU: 80 11 00 00 [13:54:03]Write to MH i2c: E2 08 00 A4 20 80 11 00 00 00 00 00 00 3E [13:54:03]Write i2c OK [13:54:03]MH_I2C_Read... [13:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:03]Read from MH i2c: E2 [13:54:03]MH_I2C_Read... [13:54:03]Read from MH i2c: E2 17 00 [13:54:03]MH_I2C_Read... [13:54:03]Read from MH i2c: E2 17 00 A4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 89 [13:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:54:03]wFMCommunicate OK [13:54:03]requested_item fd.num is exist - process it [13:54:03]SAM_PROTO_GetFieldsCounters [13:54:03]wFMCommunicate request_size=4 [13:54:03]MH_SAM_APDU [13:54:03]CAPDU: 80 13 00 00 [13:54:03]Write to MH i2c: E2 08 00 A5 20 80 13 00 00 00 00 00 00 41 [13:54:03]Write i2c OK [13:54:03]MH_I2C_Read... [13:54:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:03]Read from MH i2c: E2 [13:54:03]MH_I2C_Read... [13:54:03]Read from MH i2c: E2 62 00 [13:54:03]MH_I2C_Read... [13:54:03]Read from MH i2c: E2 62 00 A5 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4B C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [13:54:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4B C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:54:03]wFMCommunicate OK [13:54:03]SAM_PROTO_GetFieldsCounters done [13:54:03]requested_item shift.num is exist - process it [13:54:03]requested_item shift.opened is exist - process it [13:54:03]req_shift_opened [13:54:03]FM_GetShiftState [13:54:03]SAM_PROTO_GetShiftState [13:54:03]wFMCommunicate request_size=4 [13:54:03]MH_SAM_APDU [13:54:03]CAPDU: 80 13 01 00 [13:54:03]Write to MH i2c: E2 08 00 A6 20 80 13 01 00 00 00 00 00 43 [13:54:03]Write i2c OK [13:54:03]MH_I2C_Read... [13:54:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:04]Read from MH i2c: E2 [13:54:04]MH_I2C_Read... [13:54:04]Read from MH i2c: E2 0E 00 [13:54:04]MH_I2C_Read... [13:54:04]Read from MH i2c: E2 0E 00 A6 20 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 FD [13:54:04]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:54:04]wFMCommunicate OK [13:54:04]SAM_PROTO_GetShiftState done [13:54:04]FM_GetShiftState done [13:54:04]req_shift_opened done [13:54:04]requested_item shift.open_date is exist - process it [13:54:04]req_shift_open_date [13:54:04]req_shift_open_date done [13:54:04]produce_requested_data done [13:54:04]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49995,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [13:54:04]process_action_free close_receipt [13:54:04]json_value_free [13:54:04]json_value_free done [13:54:04]process_json_proto returns [13:54:04]Send response to host [13:54:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49995,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [13:54:04]free response buf [13:54:04]execute_script done [13:54:04]execute_script returns [13:54:04]free content buf [13:54:04]Sock 7.Close socket [13:54:04]Sock 7.Thread stoped [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:54]accept exits with 9 [13:55:54]New connection [13:55:54]New thread 3067211108 created [13:55:54]Thread 3067354468 joined [13:55:54]Waiting for new connection... [13:55:54] Sock 9.Parse request [13:55:54]Sock 9.Check first char [13:55:54]Sock 9.First char is OK [13:55:54]request: POST /json_proto HTTP/1.0 [13:55:54]Method: POST [13:55:54]URL: /json_proto [13:55:54]Method is POST - this is cgi request [13:55:54]url: /json_proto [13:55:54]query_string will be loaded in cgi processing [13:55:54]execute_cgi json_proto POST (null) [13:55:54]execute_cgi path=json_proto method=POST [13:55:54]POST find Content-Length [13:55:54]Host: 172.17.46.196:8080 [13:55:54]Content-Length: 756 [13:55:54]Content-Type: application/json [13:55:54] [13:55:54]POST finish read [13:55:54]Found Content-Length = 756 [13:55:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106969", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:54]execute_script... [13:55:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106969", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:54]POST & json_proto [13:55:54]process_json_proto [13:55:54]json parsed OK: [13:55:54]protocol is kg_v1.0 [13:55:54]action value=close_receipt [13:55:54]process_action close_receipt [13:55:54]cmd_close_receipt [13:55:54]MH_GetDate [13:55:54]Write to MH i2c: F0 00 00 A7 20 B6 [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: F0 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: F0 09 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: F0 09 00 A7 20 00 ED 4E C3 66 C4 85 C2 66 94 [13:55:54]GetLastDocTimeStamp 1724075640 [13:55:54]current date 1724075757 [13:55:54]FM_GetShiftState [13:55:54]SAM_PROTO_GetShiftState [13:55:54]wFMCommunicate request_size=4 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 13 01 00 [13:55:54]Write to MH i2c: E2 08 00 A8 20 80 13 01 00 00 00 00 00 45 [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:54]Read from MH i2c: E2 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 0E 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 0E 00 A8 20 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 FF [13:55:54]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [13:55:54]wFMCommunicate OK [13:55:54]SAM_PROTO_GetShiftState done [13:55:54]FM_GetShiftState done [13:55:54]opened in 1724026361 [13:55:54]opened+sec_in_day 1724112761 [13:55:54]quantity*price = 0 [13:55:54]sum+1 = 1 [13:55:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 103 19.08.2024 13:55 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106969 ФМ: 0000000000871800 ФД: 49996 ФПД: 276466335915673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T135557&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49996&fm=276466335915673&tin=02508201610067®Number=0000000000092546&sum=0 [13:55:55]StoreToDocumentArchive [13:55:55]shift 467 fd 49996 [13:55:55]save to /storage/0467/doc_00049996 [13:55:55]save last doc name /storage/0467/doc_00049996 to /storage/kkm_last_doc_name [13:55:55]save OK [13:55:55]Clear old archive folders... [13:55:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:55]tlvbuf is 010688B0 [13:55:55]SAM_PROTO_ClearQueue [13:55:55]wFMCommunicate request_size=4 [13:55:55]MH_SAM_APDU [13:55:55]CAPDU: 80 09 00 00 [13:55:55]Write to MH i2c: E2 08 00 B5 20 80 09 00 00 00 00 00 00 47 [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:55]Read from MH i2c: E2 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 03 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 03 00 B5 20 00 90 00 49 [13:55:55]RAPDU: 90 00 [13:55:55]wFMCommunicate OK [13:55:55]SAM_PROTO_ClearQueue done [13:55:55]KKMCreateOFDPacket [13:55:55]OFDProtocolAddRootSTLVToBuf [13:55:55]FM_MakeSignedData [13:55:55]FM_MakeSignedData [13:55:55]SAM_PROTO_SignData [13:55:55]wFMCommunicate request_size=4 [13:55:55]MH_SAM_APDU [13:55:55]CAPDU: 80 0D 01 02 [13:55:55]Write to MH i2c: E2 08 00 B6 20 80 0D 01 02 00 00 00 00 4F [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:55]Read from MH i2c: E2 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 03 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 03 00 B6 20 00 90 00 4A [13:55:55]RAPDU: 90 00 [13:55:55]wFMCommunicate OK [13:55:55]wFMCommunicate request_size=255 [13:55:55]MH_SAM_APDU [13:55:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 ED 4E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4C C3 00 00 35 04 06 00 FB [13:55:55]Write to MH i2c: E2 02 01 B7 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 ED 4E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4C C3 00 00 35 04 06 00 FB 00 00 68 [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:56]Read from MH i2c: E2 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 03 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 03 00 B7 20 00 90 00 4B [13:55:56]RAPDU: 90 00 [13:55:56]wFMCommunicate OK [13:55:56]wFMCommunicate request_size=10 [13:55:56]MH_SAM_APDU [13:55:56]CAPDU: 80 0D 02 02 05 71 D5 BE 9E 99 [13:55:56]Write to MH i2c: E2 0D 00 B8 20 80 0D 02 02 05 00 71 D5 BE 9E 99 00 00 97 [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:56]Read from MH i2c: E2 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 03 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 03 00 B8 20 00 90 00 4C [13:55:56]RAPDU: 90 00 [13:55:56]wFMCommunicate OK [13:55:56]wFMCommunicate request_size=4 [13:55:56]MH_SAM_APDU [13:55:56]CAPDU: 80 0D 03 02 [13:55:56]Write to MH i2c: E2 08 00 B9 20 80 0D 03 02 00 00 00 00 54 [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:56]Read from MH i2c: E2 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 0B 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 0B 00 B9 20 00 D4 C9 0F 0D EE 96 0D 8F 90 00 2E [13:55:56]RAPDU: D4 C9 0F 0D EE 96 0D 8F 90 00 [13:55:56]wFMCommunicate OK [13:55:56]SAM_PROTO_SignData done [13:55:56]FM_MakeSignedData done [13:55:56]CreateOFDProtocolMessage [13:55:56]wFMCommunicate request_size=4 [13:55:56]MH_SAM_APDU [13:55:56]CAPDU: 80 11 00 00 [13:55:56]Write to MH i2c: E2 08 00 BA 20 80 11 00 00 00 00 00 00 54 [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:56]Read from MH i2c: E2 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 17 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: E2 17 00 BA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9F [13:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:55:56]wFMCommunicate OK [13:55:56]CreateOFDProtocolMessage done [13:55:56]OFDSenderStorePacket 49996 [13:55:56]StoreOFDPacket docnum=49996 [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 D4 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 10 [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:11]*** [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903 init start (LINUX_LIGHT) [00:00:11]*** Serial: 3139303353513838 54000000005725D4 (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 52299+1724024260=1724076559 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0xff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 D4 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 11 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30515 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 10 52 C3 66 C4 85 C2 66 FB [14:09:20]Current date/time: 19.08.2024 14:09 [14:09:20]FM_Init [14:09:20]wFMConnect [14:09:20]MH_SAM_On [14:09:20]Write to MH i2c: E0 00 00 08 00 E7 [14:09:20]Write i2c OK [14:09:20]MH_I2C_Read... [14:09:20]*** iso7816_init finished! [14:09:20]*** atr: [14:09:20]*** 0F 3B D5 18 FF 81 91 FE [14:09:20]*** 1F C3 80 73 C8 21 10 0A [14:09:20]*** 00 00 00 00 00 00 00 00 [14:09:20]*** 00 00 00 00 00 00 00 00 [14:09:20]*** 00 00 00 00 00 00 00 00 [14:09:20]*** 00 00 00 00 00 00 00 00 [14:09:20]*** 00 00 00 00 00 00 00 00 [14:09:20]*** 00 00 00 00 00 00 00 00 [14:09:20]Read from MH i2c: E0 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E0 10 00 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [14:09:20]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:09:20]wFMCommunicate request_size=10 [14:09:20]MH_SAM_APDU [14:09:20]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:09:20]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:09:20]Write i2c OK [14:09:20]MH_I2C_Read... [14:09:20]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:09:20]Read from MH i2c: E2 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 03 00 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:09:20]RAPDU: 90 00 [14:09:20]wFMCommunicate OK [14:09:20]wFMCommunicate request_size=4 [14:09:20]MH_SAM_APDU [14:09:20]CAPDU: 80 11 00 00 [14:09:20]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:09:20]Write i2c OK [14:09:20]MH_I2C_Read... [14:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:20]Read from MH i2c: E2 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 17 00 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CF [14:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:09:20]wFMCommunicate OK [14:09:20]Detected FM SN is 0000000000871800 [14:09:20]Stored FM SN is 0000000000871800 [14:09:20]wFMCommunicate request_size=9 [14:09:20]MH_SAM_APDU [14:09:20]CAPDU: 80 16 00 00 04 FC 74 01 00 [14:09:20]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FC 74 01 00 00 00 03 [14:09:20]Write i2c OK [14:09:20]MH_I2C_Read... [14:09:20]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:09:20]Read from MH i2c: E2 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 03 00 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:09:20]RAPDU: 90 00 [14:09:20]wFMCommunicate OK [14:09:20]FM PIN OK [14:09:20]wFMCommunicate request_size=8 [14:09:20]MH_SAM_APDU [14:09:20]CAPDU: 80 14 04 00 03 02 00 01 [14:09:20]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:09:20]Write i2c OK [14:09:20]MH_I2C_Read... [14:09:20]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:09:20]Read from MH i2c: E2 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 03 00 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:09:20]RAPDU: 90 00 [14:09:20]wFMCommunicate OK [14:09:20]wFMCommunicate request_size=13 [14:09:20]MH_SAM_APDU [14:09:20]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:09:20]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [14:09:20]Write i2c OK [14:09:20]MH_I2C_Read... [14:09:20]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:09:20]Read from MH i2c: E2 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 03 00 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:09:20]RAPDU: 90 00 [14:09:20]wFMCommunicate OK [14:09:20]wFMCommunicate request_size=4 [14:09:20]MH_SAM_APDU [14:09:20]CAPDU: 80 11 00 00 [14:09:20]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:09:20]Write i2c OK [14:09:20]MH_I2C_Read... [14:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:20]Read from MH i2c: E2 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 17 00 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D3 [14:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:09:20]wFMCommunicate OK [14:09:20]DocumentArchiveInit [14:09:20]Start Httpd... [14:09:20]Httpd thread 3066899812 created [14:09:20]Write to MH i2c: 01 00 00 0F 00 0F [14:09:20]Write i2c OK [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: 01 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: 01 07 00 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:09:20]MH Int Process started [14:09:20]Allocated Socket 8 [14:09:20]Bind OK [14:09:20]Listen OK [14:09:20]httpd running on port 8080 [14:09:20]Waiting for new connection... [14:09:20]OFD Sender: Processing packet 49996 [packets to send 21, broken 20] [14:09:20]ProducePacketName [14:09:20]name=ofd_packets/00049996 [14:09:20]OFD Sender: To server: pG, [14:09:20]CommunicateWithHost lk.salyk.kg:30040 [14:09:20]ConnectInit lk.salyk.kg [14:09:20]Connected sock=5 [14:09:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 C3 D2 07 01 80 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 ED 4E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4C C3 00 00 35 04 06 00 FB 71 D5 BE 9E 99 D4 C9 0F 0D EE 96 0D 8F [14:09:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 3E 97 47 00 41 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4C C3 00 00 F4 03 04 00 7B FC C2 66 B6 04 01 00 00 DA 9F CA 1F DA 6F 8A 09 [14:09:20]CommunicateWithHost err = 0 [14:09:20]CheckOFDResponse [14:09:20]1017 (14) - 77093643461234 [14:09:20]1041 (16) - 0000000000871800 [14:09:20]1040 (4) - 49996 [14:09:20]1012 (4) - 19.08.2024 08:04 [14:09:20]1206 (1) - 0 [14:09:20]OFD Sender: Remove packet 49996 [14:09:20]ProducePacketName [14:09:20]name=ofd_packets/00049996 [14:09:20]NVStorageDeleteData [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:54]accept exits with 9 [14:15:54]New connection [14:15:54]New thread 3066613092 created [14:15:54]Waiting for new connection... [14:15:54] Sock 9.Parse request [14:15:54]Sock 9.Check first char [14:15:54]Sock 9.First char is OK [14:15:54]request: POST /json_proto HTTP/1.0 [14:15:54]Method: POST [14:15:54]URL: /json_proto [14:15:54]Method is POST - this is cgi request [14:15:54]url: /json_proto [14:15:54]query_string will be loaded in cgi processing [14:15:54]execute_cgi json_proto POST (null) [14:15:54]execute_cgi path=json_proto method=POST [14:15:54]POST find Content-Length [14:15:54]Host: 172.17.46.196:8080 [14:15:54]Content-Length: 215 [14:15:54]Content-Type: application/json [14:15:54] [14:15:54]POST finish read [14:15:54]Found Content-Length = 215 [14:15:54]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" ] } } [14:15:54]execute_script... [14:15:54]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" ] } } [14:15:54]POST & json_proto [14:15:54]process_json_proto [14:15:54]json parsed OK: [14:15:54]protocol is kg_v1.0 [14:15:54]action value=get_value [14:15:54]process_action get_value [14:15:54]cmd_get_value [14:15:54]process_action get_value done [14:15:54]requested_data is exist [14:15:54]produce_requested_data [14:15:54]requested_item kkm.sn is exist - process it [14:15:54]requested_item kkm.ver is exist - process it [14:15:54]requested_item fm.sn is exist - process it [14:15:54]wFMCommunicate request_size=4 [14:15:54]MH_SAM_APDU [14:15:54]CAPDU: 80 11 00 00 [14:15:54]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:15:54]Write i2c OK [14:15:54]MH_I2C_Read... [14:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:54]Read from MH i2c: E2 [14:15:54]MH_I2C_Read... [14:15:54]Read from MH i2c: E2 17 00 [14:15:54]MH_I2C_Read... [14:15:54]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D5 [14:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:15:54]wFMCommunicate OK [14:15:54]requested_item fd.num is exist - process it [14:15:54]SAM_PROTO_GetFieldsCounters [14:15:54]wFMCommunicate request_size=4 [14:15:54]MH_SAM_APDU [14:15:54]CAPDU: 80 13 00 00 [14:15:54]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [14:15:54]Write i2c OK [14:15:54]MH_I2C_Read... [14:15:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:54]Read from MH i2c: E2 [14:15:54]MH_I2C_Read... [14:15:54]Read from MH i2c: E2 62 00 [14:15:54]MH_I2C_Read... [14:15:54]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4C C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [14:15:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4C C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:15:54]wFMCommunicate OK [14:15:54]SAM_PROTO_GetFieldsCounters done [14:15:54]requested_item shift.num is exist - process it [14:15:54]requested_item shift.opened is exist - process it [14:15:54]req_shift_opened [14:15:54]FM_GetShiftState [14:15:54]SAM_PROTO_GetShiftState [14:15:54]wFMCommunicate request_size=4 [14:15:54]MH_SAM_APDU [14:15:54]CAPDU: 80 13 01 00 [14:15:54]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [14:15:54]Write i2c OK [14:15:54]MH_I2C_Read... [14:15:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:54]Read from MH i2c: E2 [14:15:54]MH_I2C_Read... [14:15:54]Read from MH i2c: E2 0E 00 [14:15:54]MH_I2C_Read... [14:15:54]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 49 [14:15:54]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [14:15:54]wFMCommunicate OK [14:15:54]SAM_PROTO_GetShiftState done [14:15:54]FM_GetShiftState done [14:15:54]req_shift_opened done [14:15:54]requested_item shift.open_date is exist - process it [14:15:54]req_shift_open_date [14:15:54]req_shift_open_date done [14:15:54]produce_requested_data done [14:15:54]produce_requested_data return {"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":49996,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [14:15:54]process_action_free get_value [14:15:54]json_value_free [14:15:54]json_value_free done [14:15:54]process_json_proto returns [14:15:54]Send response to host [14:15:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":49996,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [14:15:54]free response buf [14:15:54]execute_script done [14:15:54]execute_script returns [14:15:54]free content buf [14:15:54]Sock 9.Close socket [14:15:54]Sock 9.Thread stoped [14:15:54]accept exits with 10 [14:15:54]New connection [14:15:54]New thread 3066469732 created [14:15:54]Thread 3066613092 joined [14:15:54]Waiting for new connection... [14:15:54] Sock 10.Parse request [14:15:54]Sock 10.Check first char [14:15:54]Sock 10.First char is OK [14:15:54]request: POST /json_proto HTTP/1.0 [14:15:54]Method: POST [14:15:54]URL: /json_proto [14:15:54]Method is POST - this is cgi request [14:15:54]url: /json_proto [14:15:54]query_string will be loaded in cgi processing [14:15:54]execute_cgi json_proto POST (null) [14:15:54]execute_cgi path=json_proto method=POST [14:15:54]POST find Content-Length [14:15:54]Host: 172.17.46.196:8080 [14:15:54]Content-Length: 331 [14:15:54]Content-Type: application/json [14:15:54] [14:15:54]POST finish read [14:15:54]Found Content-Length = 331 [14:15:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:15:54]execute_script... [14:15:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:15:54]POST & json_proto [14:15:54]process_json_proto [14:15:54]json parsed OK: [14:15:54]protocol is kg_v1.0 [14:15:54]action value=get_value [14:15:54]process_action get_value [14:15:54]cmd_get_value [14:15:54]process_action get_value done [14:15:54]requested_data is exist [14:15:54]produce_requested_data [14:15:54]requested_item fm.sale.total is exist - process it [14:15:54]SAM_PROTO_GetFMData [14:15:54]wFMCommunicate request_size=4 [14:15:54]MH_SAM_APDU [14:15:54]CAPDU: 80 13 03 00 [14:15:54]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:15:54]Write i2c OK [14:15:54]MH_I2C_Read... [14:15:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:15:55]Read from MH i2c: E2 [14:15:55]MH_I2C_Read... [14:15:55]Read from MH i2c: E2 FD 00 [14:15:55]MH_I2C_Read... [14:15:55]Read from MH i2c: E2 FD 00 13 00 00 C0 04 85 04 BC 04 6E 04 04 00 A6 BF 00 00 69 04 A0 00 6F 04 04 00 93 BF 00 00 B1 04 04 00 02 35 61 3D 70 04 04 00 96 59 C7 34 72 04 04 00 6C DB 99 08 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 64 9F 84 06 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 B9 F8 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 7D [14:15:55]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 A6 BF 00 00 69 04 A0 00 6F 04 04 00 93 BF 00 00 B1 04 04 00 02 35 61 3D 70 04 04 00 96 59 C7 34 72 04 04 00 6C DB 99 08 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 64 9F 84 06 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 B9 F8 8A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 [14:15:55]wFMCommunicate OK [14:15:55]wFMCommunicate request_size=4 [14:15:55]MH_SAM_APDU [14:15:55]CAPDU: 80 17 00 00 [14:15:55]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:15:55]Write i2c OK [14:15:55]MH_I2C_Read... [14:15:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:15:55]Read from MH i2c: E2 [14:15:55]MH_I2C_Read... [14:15:55]Read from MH i2c: E2 FD 00 [14:15:55]MH_I2C_Read... [14:15:55]Read from MH i2c: E2 FD 00 14 00 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C7 [14:15:55]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:15:55]wFMCommunicate OK [14:15:55]wFMCommunicate request_size=4 [14:15:55]MH_SAM_APDU [14:15:55]CAPDU: 80 17 00 00 [14:15:55]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [14:15:55]Write i2c OK [14:15:55]MH_I2C_Read... [14:15:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:15:55]Read from MH i2c: E2 [14:15:55]MH_I2C_Read... [14:15:55]Read from MH i2c: E2 FD 00 [14:15:55]MH_I2C_Read... [14:15:55]Read from MH i2c: E2 FD 00 15 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 90 00 38 [14:15:55]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:15:55]wFMCommunicate OK [14:15:55]wFMCommunicate request_size=4 [14:15:55]MH_SAM_APDU [14:15:55]CAPDU: 80 17 00 00 [14:15:55]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:15:55]Write i2c OK [14:15:55]MH_I2C_Read... [14:15:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:15:55]Read from MH i2c: E2 [14:15:55]MH_I2C_Read... [14:15:55]Read from MH i2c: E2 FD 00 [14:15:55]MH_I2C_Read... [14:15:55]Read from MH i2c: E2 FD 00 16 00 00 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [14:15:55]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:15:55]wFMCommunicate OK [14:15:55]wFMCommunicate request_size=4 [14:15:55]MH_SAM_APDU [14:15:55]CAPDU: 80 17 00 00 [14:15:55]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:15:55]Write i2c OK [14:15:55]MH_I2C_Read... [14:15:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [14:15:56]Read from MH i2c: E2 [14:15:56]MH_I2C_Read... [14:15:56]Read from MH i2c: E2 DD 00 [14:15:56]MH_I2C_Read... [14:15:56]Read from MH i2c: E2 DD 00 17 00 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7F [14:15:56]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:15:56]wFMCommunicate OK [14:15:56]SAM_PROTO_GetFMData done [14:15:56]requested_item fm.sale_refund.total is exist - process it [14:15:56]requested_item fm.buy.total is exist - process it [14:15:56]requested_item shift.sale.total is exist - process it [14:15:56]SAM_PROTO_GetShiftData [14:15:56]wFMCommunicate request_size=4 [14:15:56]MH_SAM_APDU [14:15:56]CAPDU: 80 13 02 00 [14:15:56]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:15:56]Write i2c OK [14:15:56]MH_I2C_Read... [14:15:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:15:56]Read from MH i2c: E2 [14:15:56]MH_I2C_Read... [14:15:56]Read from MH i2c: E2 FD 00 [14:15:56]MH_I2C_Read... [14:15:56]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 67 00 00 00 69 04 9B 00 6F 04 04 00 67 00 00 00 B1 04 03 00 28 C9 0E 70 04 03 00 48 DE 0B 72 04 03 00 E0 EA 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 F3 91 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 7B 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 42 [14:15:56]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 67 00 00 00 69 04 9B 00 6F 04 04 00 67 00 00 00 B1 04 03 00 28 C9 0E 70 04 03 00 48 DE 0B 72 04 03 00 E0 EA 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 F3 91 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 7B 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [14:15:56]wFMCommunicate OK [14:15:56]wFMCommunicate request_size=4 [14:15:56]MH_SAM_APDU [14:15:56]CAPDU: 80 17 00 00 [14:15:56]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:15:56]Write i2c OK [14:15:56]MH_I2C_Read... [14:15:56]OFD Sender: No OFD packet to send [14:15:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:15:56]Read from MH i2c: E2 [14:15:56]MH_I2C_Read... [14:15:56]Read from MH i2c: E2 FD 00 [14:15:56]MH_I2C_Read... [14:15:56]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [14:15:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [14:15:56]wFMCommunicate OK [14:15:56]wFMCommunicate request_size=4 [14:15:56]MH_SAM_APDU [14:15:56]CAPDU: 80 17 00 00 [14:15:56]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:15:56]Write i2c OK [14:15:56]MH_I2C_Read... [14:15:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:15:57]Read from MH i2c: E2 [14:15:57]MH_I2C_Read... [14:15:57]Read from MH i2c: E2 FD 00 [14:15:57]MH_I2C_Read... [14:15:57]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [14:15:57]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [14:15:57]wFMCommunicate OK [14:15:57]wFMCommunicate request_size=4 [14:15:57]MH_SAM_APDU [14:15:57]CAPDU: 80 17 00 00 [14:15:57]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [14:15:57]Write i2c OK [14:15:57]MH_I2C_Read... [14:15:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:15:57]Read from MH i2c: E2 [14:15:57]MH_I2C_Read... [14:15:57]Read from MH i2c: E2 FD 00 [14:15:57]MH_I2C_Read... [14:15:57]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [14:15:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [14:15:57]wFMCommunicate OK [14:15:57]wFMCommunicate request_size=4 [14:15:57]MH_SAM_APDU [14:15:57]CAPDU: 80 17 00 00 [14:15:57]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:15:57]Write i2c OK [14:15:57]MH_I2C_Read... [14:15:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [14:15:57]Read from MH i2c: E2 [14:15:57]MH_I2C_Read... [14:15:57]Read from MH i2c: E2 CB 00 [14:15:57]MH_I2C_Read... [14:15:57]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [14:15:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:15:57]wFMCommunicate OK [14:15:57]SAM_PROTO_GetShiftData done [14:15:57]requested_item shift.sale.total_cash is exist - process it [14:15:57]requested_item shift.sale_refund.total is exist - process it [14:15:57]requested_item shift.sale_refund.total_cash is exist - process it [14:15:57]requested_item shift.buy.total is exist - process it [14:15:57]requested_item shift.buy.total_cash is exist - process it [14:15:57]produce_requested_data done [14:15:57]produce_requested_data return {"fm.sale.total":10297807.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":9690.00,"shift.sale.total_cash":7778.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} [14:15:57]process_action_free get_value [14:15:57]json_value_free [14:15:57]json_value_free done [14:15:57]process_json_proto returns [14:15:57]Send response to host [14:15:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10297807.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":9690.00,"shift.sale.total_cash":7778.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}}} [14:15:57]free response buf [14:15:57]execute_script done [14:15:57]execute_script returns [14:15:57]free content buf [14:15:57]Sock 10.Close socket [14:15:57]Sock 10.Thread stoped [14:15:58]accept exits with 7 [14:15:58]New connection [14:15:58]New thread 3066613092 created [14:15:58]Thread 3066469732 joined [14:15:58]Waiting for new connection... [14:15:58] Sock 7.Parse request [14:15:58]Sock 7.Check first char [14:15:58]Sock 7.First char is OK [14:15:58]request: POST /json_proto HTTP/1.0 [14:15:58]Method: POST [14:15:58]URL: /json_proto [14:15:58]Method is POST - this is cgi request [14:15:58]url: /json_proto [14:15:58]query_string will be loaded in cgi processing [14:15:58]execute_cgi json_proto POST (null) [14:15:58]execute_cgi path=json_proto method=POST [14:15:58]POST find Content-Length [14:15:58]Host: 172.17.46.196:8080 [14:15:58]Content-Length: 684 [14:15:58]Content-Type: application/json [14:15:58] [14:15:58]POST finish read [14:15:58]Found Content-Length = 684 [14:15:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190131", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 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" ] } } [14:15:58]execute_script... [14:15: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)190131", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 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" ] } } [14:15:58]POST & json_proto [14:15:58]process_json_proto [14:15:58]json parsed OK: [14:15:58]protocol is kg_v1.0 [14:15:58]action value=close_receipt [14:15:58]process_action close_receipt [14:15:58]cmd_close_receipt [14:15:58]MH_GetDate [14:15:58]Write to MH i2c: F0 00 00 1D 00 0C [14:15:58]Write i2c OK [14:15:58]MH_I2C_Read... [14:15:58]Read from MH i2c: F0 [14:15:58]MH_I2C_Read... [14:15:58]Read from MH i2c: F0 09 00 [14:15:58]MH_I2C_Read... [14:15:58]Read from MH i2c: F0 09 00 1D 00 00 9E 53 C3 66 C4 85 C2 66 A0 [14:15:58]GetLastDocTimeStamp 1724075757 [14:15:58]current date 1724076958 [14:15:58]FM_GetShiftState [14:15:58]SAM_PROTO_GetShiftState [14:15:58]wFMCommunicate request_size=4 [14:15:58]MH_SAM_APDU [14:15:58]CAPDU: 80 13 01 00 [14:15:58]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [14:15:58]Write i2c OK [14:15:58]MH_I2C_Read... [14:15:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:58]Read from MH i2c: E2 [14:15:58]MH_I2C_Read... [14:15:58]Read from MH i2c: E2 0E 00 [14:15:58]MH_I2C_Read... [14:15:58]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 55 [14:15:58]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [14:15:58]wFMCommunicate OK [14:15:58]SAM_PROTO_GetShiftState done [14:15:58]FM_GetShiftState done [14:15:58]opened in 1724026361 [14:15:58]opened+sec_in_day 1724112761 [14:15:58]quantity*price = 6500 [14:15:58]sum+1 = 6501 [14:15:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 104 19.08.2024 14:15 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49997 ФПД: 143185086217000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T141558&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49997&fm=143185086217000&tin=02508201610067®Number=0000000000092546&sum=6500 0 [14:15:59]StoreToDocumentArchive [14:15:59]shift 467 fd 49997 [14:15:59]save to /storage/0467/doc_00049997 [14:15:59]save last doc name /storage/0467/doc_00049997 to /storage/kkm_last_doc_name [14:15:59]save OK [14:15:59]Clear old archive folders... [14:15:59]ProcessDocumentItem done err = 0, tmpTLVsize=295 [14:15:59]tlvbuf is 0123FB50 [14:15:59]SAM_PROTO_ClearQueue [14:15:59]wFMCommunicate request_size=4 [14:15:59]MH_SAM_APDU [14:15:59]CAPDU: 80 09 00 00 [14:15:59]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [14:15:59]Write i2c OK [14:15:59]MH_I2C_Read... [14:15:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:59]Read from MH i2c: E2 [14:15:59]MH_I2C_Read... [14:15:59]Read from MH i2c: E2 03 00 [14:15:59]MH_I2C_Read... [14:15:59]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [14:15:59]RAPDU: 90 00 [14:15:59]wFMCommunicate OK [14:15:59]SAM_PROTO_ClearQueue done [14:15:59]KKMCreateOFDPacket [14:15:59]OFDProtocolAddRootSTLVToBuf [14:15:59]FM_MakeSignedData [14:15:59]FM_MakeSignedData [14:15:59]SAM_PROTO_SignData [14:15:59]wFMCommunicate request_size=4 [14:15:59]MH_SAM_APDU [14:15:59]CAPDU: 80 0D 01 02 [14:15:59]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [14:15:59]Write i2c OK [14:15:59]MH_I2C_Read... [14:15:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:59]Read from MH i2c: E2 [14:15:59]MH_I2C_Read... [14:15:59]Read from MH i2c: E2 03 00 [14:15:59]MH_I2C_Read... [14:15:59]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [14:15:59]RAPDU: 90 00 [14:15:59]wFMCommunicate OK [14:15:59]wFMCommunicate request_size=255 [14:15:59]MH_SAM_APDU [14:15:59]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 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 68 00 00 00 F4 03 04 00 9E 53 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [14:16:00]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 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 68 00 00 00 F4 03 04 00 9E 53 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 1C [14:16:00]Write i2c OK [14:16:00]MH_I2C_Read... [14:16:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:00]Read from MH i2c: E2 [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: E2 03 00 [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [14:16:00]RAPDU: 90 00 [14:16:00]wFMCommunicate OK [14:16:00]wFMCommunicate request_size=54 [14:16:00]MH_SAM_APDU [14:16:00]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4D C3 00 00 35 04 06 00 82 39 E0 33 7B 28 [14:16:00]Write to MH i2c: E2 39 00 2E 00 80 0D 02 02 31 00 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4D C3 00 00 35 04 06 00 82 39 E0 33 7B 28 00 00 49 [14:16:00]Write i2c OK [14:16:00]MH_I2C_Read... [14:16:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:00]Read from MH i2c: E2 [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: E2 03 00 [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [14:16:00]RAPDU: 90 00 [14:16:00]wFMCommunicate OK [14:16:00]wFMCommunicate request_size=4 [14:16:00]MH_SAM_APDU [14:16:00]CAPDU: 80 0D 03 02 [14:16:00]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [14:16:00]Write i2c OK [14:16:00]MH_I2C_Read... [14:16:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:00]Read from MH i2c: E2 [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: E2 0B 00 [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: E2 0B 00 2F 00 00 28 DB E2 08 A0 DF DC EE 90 00 E1 [14:16:00]RAPDU: 28 DB E2 08 A0 DF DC EE 90 00 [14:16:00]wFMCommunicate OK [14:16:00]SAM_PROTO_SignData done [14:16:00]FM_MakeSignedData done [14:16:00]CreateOFDProtocolMessage [14:16:00]wFMCommunicate request_size=4 [14:16:00]MH_SAM_APDU [14:16:00]CAPDU: 80 11 00 00 [14:16:00]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [14:16:00]Write i2c OK [14:16:00]MH_I2C_Read... [14:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:00]Read from MH i2c: E2 [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: E2 17 00 [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F5 [14:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:16:00]wFMCommunicate OK [14:16:00]CreateOFDProtocolMessage done [14:16:00]OFDSenderStorePacket 49997 [14:16:00]StoreOFDPacket docnum=49997 [14:16:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3B 01 00 00 03 8F 33 01 6B 49 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 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 68 00 00 00 F4 03 04 00 9E 53 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4D C3 00 00 35 04 06 00 82 39 E0 33 7B 28 28 DB E2 08 A0 DF DC EE [14:16:00]CheckFolder [14:16:00]dirname=/storage/ofd_packets [14:16:00]CheckFolder done [14:16:00]ProducePacketName [14:16:00]name=ofd_packets/00049997 [14:16:00]NVStorageSaveData ofd_packets/00049997 [14:16:00]File name is /storage/ofd_packets/00049997 [14:16:00]Write 345 bytes [14:16:00]NVStorageSaveData done [14:16:00]OFDSenderStorePacket done [14:16:00]KKMCreateOFDPacket done [14:16:00]NVStorageSaveData kkm_last_timestamp [14:16:00]File name is /storage/kkm_last_timestamp [14:16:00]Write 4 bytes [14:16:00]NVStorageSaveData done [14:16:00]ExternCall_PrintAddStr [14:16:00]wPrintStart [14:16:00]Write to MH i2c: 01 00 00 31 00 31 [14:16:00]Write i2c OK [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: 01 [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: 01 07 00 [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [14:16:00]RasterBufferAndPrint [14:16:00]line Счет N : (3)190131 [14:16:00]line ИНН: 02508201610067 [14:16:00]line Контрольно-Кассовый Чек [14:16:00]line ПРОДАЖА [14:16:00]line Товар: 5449000027450 [14:16:00]line Напиток FuzeTea чай манго,ром 0,5л [14:16:00]line 1.000 * 65.00 [14:16:00]line = 65.00 [14:16:00]line НДС 12% НСП 1% [14:16:00]line > о реализуемом товаре [14:16:00]line ИТОГО: 65.00 [14:16:00]line НСП 1% : 0.57 [14:16:00]line НДС 12% : 6.90 [14:16:00]line Наличными: 65.00 [14:16:00]line Безнал.: 0.00 [14:16:00]line Место: АЗС № 95 "Партнер Нефть" [14:16:00]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:16:00]line СНО: Общий режим [14:16:00]line Чек 104 19.08.2024 14:15 [14:16:00]line Смена: 467 ФФД: 1.0 [14:16:00]line ЗНМ: 0300000078 [14:16:00]line РНМ: 0000000000092546 [14:16:00]line Версия ККМ: 001 [14:16:00]line ФМ: 0000000000871800 [14:16:00]line ФД: 49997 [14:16:00]line ФПД: 143185086217000 [14:16:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T141558&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49997&fm=143185086217000&tin=02508201610067®Number=0000000000092546&sum=6500 [14:16:00]line 0 [14:16:00]written 0, free lines is 4095 [14:16:00]OFD Sender: Processing packet 49997 [packets to send 21, broken 20] [14:16:00]ProducePacketName [14:16:00]name=ofd_packets/00049997 [14:16:00]OFD Sender: To server: pG, [14:16:00]CommunicateWithHost lk.salyk.kg:30040 [14:16:00]ConnectInit lk.salyk.kg [14:16:00]Connected sock=10 [14:16:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3B 01 00 00 03 8F 33 01 6B 49 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 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 68 00 00 00 F4 03 04 00 9E 53 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4D C3 00 00 35 04 06 00 82 39 E0 33 7B 28 28 DB E2 08 A0 DF DC EE [14:16:01]Write to MH i2c: 01 00 00 5A 00 5A [14:16:01]Write i2c OK [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: 01 [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: 01 07 00 [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 D5 0C 42 [14:16:01]RasterBufferAndPrint [14:16:01]line [14:16:01]line [14:16:01]line [14:16:01]line [14:16:01]line [14:16:01]written 0, free lines is 3303 [14:16:01]MH_Cut [14:16:01]Write to MH i2c: D1 01 00 61 00 01 33 [14:16:01]Write i2c OK [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: D1 [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: D1 01 00 [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: D1 01 00 61 00 00 32 [14:16:01]Write to MH i2c: 01 00 00 62 00 62 [14:16:01]Write i2c OK [14:16:01]MH_I2C_Read... [14:16:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D7 AF 47 00 B3 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4D C3 00 00 F4 03 04 00 0B FE C2 66 B6 04 01 00 00 8E 87 DC 15 C6 E5 E0 B1 [14:16:01]CommunicateWithHost err = 0 [14:16:01]CheckOFDResponse [14:16:01]1017 (14) - 77093643461234 [14:16:01]1041 (16) - 0000000000871800 [14:16:01]1040 (4) - 49997 [14:16:01]1012 (4) - 19.08.2024 08:10 [14:16:01]1206 (1) - 0 [14:16:01]OFD Sender: Remove packet 49997 [14:16:01]ProducePacketName [14:16:01]name=ofd_packets/00049997 [14:16:01]NVStorageDeleteData [14:16:01]OFD Sender: No OFD packet to send [14:16:01]*** Cut start [14:16:01]*** Purtial cut [14:16:01]*** CUTSNS_PIN = 0 [14:16:02]*** Stage 1: CUTSNS_PIN = 1 [14:16:03]Read from MH i2c: 01 [14:16:03]MH_I2C_Read... [14:16:03]*** Stop cut motor [14:16:03]*** Cut end [14:16:03]Read from MH i2c: 01 07 00 [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [14:16:03]process_action close_receipt done [14:16:03]requested_data is exist [14:16:03]produce_requested_data [14:16:03]requested_item fm.sn is exist - process it [14:16:03]wFMCommunicate request_size=4 [14:16:03]MH_SAM_APDU [14:16:03]CAPDU: 80 11 00 00 [14:16:03]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [14:16:03]Write i2c OK [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: E2 [14:16:03]MH_I2C_Read... [14:16:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:03]Read from MH i2c: E2 17 00 [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 28 [14:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:16:03]wFMCommunicate OK [14:16:03]requested_item fd.num is exist - process it [14:16:03]SAM_PROTO_GetFieldsCounters [14:16:03]wFMCommunicate request_size=4 [14:16:03]MH_SAM_APDU [14:16:03]CAPDU: 80 13 00 00 [14:16:03]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [14:16:03]Write i2c OK [14:16:03]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 62 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4D C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [14:16:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4D C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:04]wFMCommunicate OK [14:16:04]SAM_PROTO_GetFieldsCounters done [14:16:04]requested_item shift.num is exist - process it [14:16:04]requested_item shift.opened is exist - process it [14:16:04]req_shift_opened [14:16:04]FM_GetShiftState [14:16:04]SAM_PROTO_GetShiftState [14:16:04]wFMCommunicate request_size=4 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 13 01 00 [14:16:04]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 0E 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 9C [14:16:04]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [14:16:04]wFMCommunicate OK [14:16:04]SAM_PROTO_GetShiftState done [14:16:04]FM_GetShiftState done [14:16:04]req_shift_opened done [14:16:04]requested_item shift.open_date is exist - process it [14:16:04]req_shift_open_date [14:16:04]req_shift_open_date done [14:16:04]produce_requested_data done [14:16:04]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49997,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [14:16:04]process_action_free close_receipt [14:16:04]json_value_free [14:16:04]json_value_free done [14:16:04]process_json_proto returns [14:16:04]Send response to host [14:16:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49997,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [14:16:04]free response buf [14:16:04]execute_script done [14:16:04]execute_script returns [14:16:04]free content buf [14:16:04]Sock 7.Close socket [14:16:04]Sock 7.Thread stoped [14:16:05]accept exits with 9 [14:16:05]New connection [14:16:05]New thread 3066469732 created [14:16:05]Thread 3066613092 joined [14:16:05]Waiting for new connection... [14:16:05] Sock 9.Parse request [14:16:05]Sock 9.Check first char [14:16:05]Sock 9.First char is OK [14:16:05]request: POST /json_proto HTTP/1.0 [14:16:05]Method: POST [14:16:05]URL: /json_proto [14:16:05]Method is POST - this is cgi request [14:16:05]url: /json_proto [14:16:05]query_string will be loaded in cgi processing [14:16:05]execute_cgi json_proto POST (null) [14:16:05]execute_cgi path=json_proto method=POST [14:16:05]POST find Content-Length [14:16:05]Host: 172.17.46.196:8080 [14:16:05]Content-Length: 622 [14:16:05]Content-Type: application/json [14:16:05] [14:16:05]POST finish read [14:16:05]Found Content-Length = 622 [14:16:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190132", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:05]execute_script... [14:16:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190132", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:05]POST & json_proto [14:16:05]process_json_proto [14:16:05]json parsed OK: [14:16:05]protocol is kg_v1.0 [14:16:05]action value=close_receipt [14:16:05]process_action close_receipt [14:16:05]cmd_close_receipt [14:16:05]MH_GetDate [14:16:05]Write to MH i2c: F0 00 00 66 00 55 [14:16:05]Write i2c OK [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: F0 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: F0 09 00 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: F0 09 00 66 00 00 A5 53 C3 66 C4 85 C2 66 F0 [14:16:05]GetLastDocTimeStamp 1724076958 [14:16:05]current date 1724076965 [14:16:05]FM_GetShiftState [14:16:05]SAM_PROTO_GetShiftState [14:16:05]wFMCommunicate request_size=4 [14:16:05]MH_SAM_APDU [14:16:05]CAPDU: 80 13 01 00 [14:16:05]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [14:16:05]Write i2c OK [14:16:05]MH_I2C_Read... [14:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:05]Read from MH i2c: E2 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: E2 0E 00 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 9E [14:16:05]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [14:16:05]wFMCommunicate OK [14:16:05]SAM_PROTO_GetShiftState done [14:16:05]FM_GetShiftState done [14:16:05]opened in 1724026361 [14:16:05]opened+sec_in_day 1724112761 [14:16:05]quantity*price = 15000 [14:16:05]sum+1 = 15001 [14:16:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 105 19.08.2024 14:16 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49998 ФПД: 218258729972442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T141605&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49998&fm=218258729972442&tin=02508201610067®Number=0000000000092546&sum=15000 0 [14:16:07]StoreToDocumentArchive [14:16:07]shift 467 fd 49998 [14:16:07]save to /storage/0467/doc_00049998 [14:16:07]save last doc name /storage/0467/doc_00049998 to /storage/kkm_last_doc_name [14:16:07]save OK [14:16:07]Clear old archive folders... [14:16:07]ProcessDocumentItem done err = 0, tmpTLVsize=274 [14:16:07]tlvbuf is 0123FA30 [14:16:07]SAM_PROTO_ClearQueue [14:16:07]wFMCommunicate request_size=4 [14:16:07]MH_SAM_APDU [14:16:07]CAPDU: 80 09 00 00 [14:16:07]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [14:16:07]Write i2c OK [14:16:07]MH_I2C_Read... [14:16:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:07]Read from MH i2c: E2 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 03 00 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [14:16:07]RAPDU: 90 00 [14:16:07]wFMCommunicate OK [14:16:07]SAM_PROTO_ClearQueue done [14:16:07]KKMCreateOFDPacket [14:16:07]OFDProtocolAddRootSTLVToBuf [14:16:07]FM_MakeSignedData [14:16:07]FM_MakeSignedData [14:16:07]SAM_PROTO_SignData [14:16:07]wFMCommunicate request_size=4 [14:16:07]MH_SAM_APDU [14:16:07]CAPDU: 80 0D 01 02 [14:16:07]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [14:16:07]Write i2c OK [14:16:07]MH_I2C_Read... [14:16:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:07]Read from MH i2c: E2 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 03 00 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [14:16:07]RAPDU: 90 00 [14:16:07]wFMCommunicate OK [14:16:07]wFMCommunicate request_size=255 [14:16:07]MH_SAM_APDU [14:16:07]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 A5 53 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 [14:16:07]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 A5 53 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 00 00 65 [14:16:07]Write i2c OK [14:16:07]MH_I2C_Read... [14:16:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:07]Read from MH i2c: E2 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 03 00 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [14:16:07]RAPDU: 90 00 [14:16:07]wFMCommunicate OK [14:16:07]wFMCommunicate request_size=33 [14:16:07]MH_SAM_APDU [14:16:07]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4E C3 00 00 35 04 06 00 C6 81 52 11 B2 DA [14:16:07]Write to MH i2c: E2 24 00 77 00 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4E C3 00 00 35 04 06 00 C6 81 52 11 B2 DA 00 00 BF [14:16:07]Write i2c OK [14:16:07]MH_I2C_Read... [14:16:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:07]Read from MH i2c: E2 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 03 00 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [14:16:07]RAPDU: 90 00 [14:16:07]wFMCommunicate OK [14:16:07]wFMCommunicate request_size=4 [14:16:07]MH_SAM_APDU [14:16:07]CAPDU: 80 0D 03 02 [14:16:07]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [14:16:07]Write i2c OK [14:16:07]MH_I2C_Read... [14:16:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:08]Read from MH i2c: E2 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: E2 0B 00 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: E2 0B 00 78 00 00 40 B9 5F 85 03 CD 2C 90 90 00 5D [14:16:08]RAPDU: 40 B9 5F 85 03 CD 2C 90 90 00 [14:16:08]wFMCommunicate OK [14:16:08]SAM_PROTO_SignData done [14:16:08]FM_MakeSignedData done [14:16:08]CreateOFDProtocolMessage [14:16:08]wFMCommunicate request_size=4 [14:16:08]MH_SAM_APDU [14:16:08]CAPDU: 80 11 00 00 [14:16:08]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [14:16:08]Write i2c OK [14:16:08]MH_I2C_Read... [14:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:08]Read from MH i2c: E2 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: E2 17 00 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3E [14:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:16:08]wFMCommunicate OK [14:16:08]CreateOFDProtocolMessage done [14:16:08]OFDSenderStorePacket 49998 [14:16:08]StoreOFDPacket docnum=49998 [14:16:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 7C 18 1E 01 44 8D 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 A5 53 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4E C3 00 00 35 04 06 00 C6 81 52 11 B2 DA 40 B9 5F 85 03 CD 2C 90 [14:16:08]CheckFolder [14:16:08]dirname=/storage/ofd_packets [14:16:08]CheckFolder done [14:16:08]ProducePacketName [14:16:08]name=ofd_packets/00049998 [14:16:08]NVStorageSaveData ofd_packets/00049998 [14:16:08]File name is /storage/ofd_packets/00049998 [14:16:08]Write 324 bytes [14:16:08]NVStorageSaveData done [14:16:08]OFDSenderStorePacket done [14:16:08]KKMCreateOFDPacket done [14:16:08]NVStorageSaveData kkm_last_timestamp [14:16:08]File name is /storage/kkm_last_timestamp [14:16:08]Write 4 bytes [14:16:08]NVStorageSaveData done [14:16:08]ExternCall_PrintAddStr [14:16:08]wPrintStart [14:16:08]Write to MH i2c: 01 00 00 7A 00 7A [14:16:08]Write i2c OK [14:16:08]MH_I2C_Read... [14:16:08]OFD Sender: Processing packet 49998 [packets to send 21, broken 20] [14:16:08]ProducePacketName [14:16:08]name=ofd_packets/00049998 [14:16:08]OFD Sender: To server: pG, [14:16:08]CommunicateWithHost lk.salyk.kg:30040 [14:16:08]ConnectInit lk.salyk.kg [14:16:08]Read from MH i2c: 01 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 07 00 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [14:16:08]RasterBufferAndPrint [14:16:08]line Счет N : (3)190132 [14:16:08]line ИНН: 02508201610067 [14:16:08]line Контрольно-Кассовый Чек [14:16:08]line ПРОДАЖА [14:16:08]line Товар: 46230614 [14:16:08]line Сигареты Richmond Red Edition [14:16:08]line 1.000 * 150.00 [14:16:08]line = 150.00 [14:16:08]line НДС 12% НСП 1% [14:16:08]line > о реализуемом товаре [14:16:08]line ИТОГО: 150.00 [14:16:08]line НСП 1% : 1.33 [14:16:08]line НДС 12% : 15.93 [14:16:08]line Наличными: 150.00 [14:16:08]line Безнал.: 0.00 [14:16:08]line Место: АЗС № 95 "Партнер Нефть" [14:16:08]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:16:08]line СНО: Общий режим [14:16:08]line Чек 105 19.08.2024 14:16 [14:16:08]line Смена: 467 ФФД: 1.0 [14:16:08]line ЗНМ: 0300000078 [14:16:08]line РНМ: 0000000000092546 [14:16:08]line Версия ККМ: 001 [14:16:08]line ФМ: 0000000000871800 [14:16:08]line ФД: 49998 [14:16:08]line ФПД: 218258729972442 [14:16:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T141605&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49998&fm=218258729972442&tin=02508201610067®Number=0000000000092546&sum=15000 [14:16:08]line 0 [14:16:08]written 0, free lines is 4095 [14:16:08]Connected sock=10 [14:16:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 7C 18 1E 01 44 8D 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 A5 53 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4E C3 00 00 35 04 06 00 C6 81 52 11 B2 DA 40 B9 5F 85 03 CD 2C 90 [14:16:08]Write to MH i2c: 01 00 00 A3 00 A3 [14:16:08]Write i2c OK [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 07 00 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 07 00 A3 00 00 00 00 00 00 D3 0C 89 [14:16:08]RasterBufferAndPrint [14:16:08]line [14:16:08]line [14:16:08]line [14:16:08]line [14:16:08]line [14:16:08]written 0, free lines is 3306 [14:16:08]MH_Cut [14:16:08]Write to MH i2c: D1 01 00 AA 00 01 7C [14:16:08]Write i2c OK [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: D1 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: D1 01 00 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: D1 01 00 AA 00 00 7B [14:16:08]Write to MH i2c: 01 00 00 AB 00 AB [14:16:08]Write i2c OK [14:16:08]MH_I2C_Read... [14:16:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 43 C7 47 00 28 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4E C3 00 00 F4 03 04 00 13 FE C2 66 B6 04 01 00 00 E9 E1 10 95 1C 27 B3 8B [14:16:08]CommunicateWithHost err = 0 [14:16:08]CheckOFDResponse [14:16:08]1017 (14) - 77093643461234 [14:16:08]1041 (16) - 0000000000871800 [14:16:08]1040 (4) - 49998 [14:16:08]1012 (4) - 19.08.2024 08:10 [14:16:08]1206 (1) - 0 [14:16:08]OFD Sender: Remove packet 49998 [14:16:08]ProducePacketName [14:16:08]name=ofd_packets/00049998 [14:16:08]NVStorageDeleteData [14:16:09]OFD Sender: No OFD packet to send [14:16:09]*** Cut start [14:16:09]*** Purtial cut [14:16:09]*** Stage 1: CUTSNS_PIN = 1 [14:16:09]Read from MH i2c: 01 [14:16:09]MH_I2C_Read... [14:16:09]*** Stop cut motor [14:16:09]*** Cut end [14:16:09]Read from MH i2c: 01 07 00 [14:16:09]MH_I2C_Read... [14:16:09]Read from MH i2c: 01 07 00 AB 00 00 00 00 00 00 FF 0F C0 [14:16:09]process_action close_receipt done [14:16:09]requested_data is exist [14:16:09]produce_requested_data [14:16:09]requested_item fm.sn is exist - process it [14:16:09]wFMCommunicate request_size=4 [14:16:09]MH_SAM_APDU [14:16:09]CAPDU: 80 11 00 00 [14:16:09]Write to MH i2c: E2 08 00 AC 00 80 11 00 00 00 00 00 00 26 [14:16:09]Write i2c OK [14:16:09]MH_I2C_Read... [14:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:09]Read from MH i2c: E2 [14:16:09]MH_I2C_Read... [14:16:09]Read from MH i2c: E2 17 00 [14:16:09]MH_I2C_Read... [14:16:09]Read from MH i2c: E2 17 00 AC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 71 [14:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:16:09]wFMCommunicate OK [14:16:09]requested_item fd.num is exist - process it [14:16:09]SAM_PROTO_GetFieldsCounters [14:16:09]wFMCommunicate request_size=4 [14:16:09]MH_SAM_APDU [14:16:09]CAPDU: 80 13 00 00 [14:16:09]Write to MH i2c: E2 08 00 AD 00 80 13 00 00 00 00 00 00 29 [14:16:09]Write i2c OK [14:16:09]MH_I2C_Read... [14:16:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:09]Read from MH i2c: E2 [14:16:09]MH_I2C_Read... [14:16:09]Read from MH i2c: E2 62 00 [14:16:09]MH_I2C_Read... [14:16:09]Read from MH i2c: E2 62 00 AD 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4E C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [14:16:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4E C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:10]wFMCommunicate OK [14:16:10]SAM_PROTO_GetFieldsCounters done [14:16:10]requested_item shift.num is exist - process it [14:16:10]requested_item shift.opened is exist - process it [14:16:10]req_shift_opened [14:16:10]FM_GetShiftState [14:16:10]SAM_PROTO_GetShiftState [14:16:10]wFMCommunicate request_size=4 [14:16:10]MH_SAM_APDU [14:16:10]CAPDU: 80 13 01 00 [14:16:10]Write to MH i2c: E2 08 00 AE 00 80 13 01 00 00 00 00 00 2B [14:16:10]Write i2c OK [14:16:10]MH_I2C_Read... [14:16:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:10]Read from MH i2c: E2 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: E2 0E 00 [14:16:10]MH_I2C_Read... [14:16:10]Read from MH i2c: E2 0E 00 AE 00 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 E5 [14:16:10]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [14:16:10]wFMCommunicate OK [14:16:10]SAM_PROTO_GetShiftState done [14:16:10]FM_GetShiftState done [14:16:10]req_shift_opened done [14:16:10]requested_item shift.open_date is exist - process it [14:16:10]req_shift_open_date [14:16:10]req_shift_open_date done [14:16:10]produce_requested_data done [14:16:10]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49998,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [14:16:10]process_action_free close_receipt [14:16:10]json_value_free [14:16:10]json_value_free done [14:16:10]process_json_proto returns [14:16:10]Send response to host [14:16:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49998,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [14:16:10]free response buf [14:16:10]execute_script done [14:16:10]execute_script returns [14:16:10]free content buf [14:16:10]Sock 9.Close socket [14:16:10]Sock 9.Thread stoped [14:16:11]accept exits with 7 [14:16:11]New connection [14:16:11]New thread 3066613092 created [14:16:11]Thread 3066469732 joined [14:16:11]Waiting for new connection... [14:16:11] Sock 7.Parse request [14:16:11]Sock 7.Check first char [14:16:11]Sock 7.First char is OK [14:16:11]request: POST /json_proto HTTP/1.0 [14:16:11]Method: POST [14:16:11]URL: /json_proto [14:16:11]Method is POST - this is cgi request [14:16:11]url: /json_proto [14:16:11]query_string will be loaded in cgi processing [14:16:11]execute_cgi json_proto POST (null) [14:16:11]execute_cgi path=json_proto method=POST [14:16:11]POST find Content-Length [14:16:11]Host: 172.17.46.196:8080 [14:16:11]Content-Length: 649 [14:16:11]Content-Type: application/json [14:16:11] [14:16:11]POST finish read [14:16:11]Found Content-Length = 649 [14:16:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190133", "tax_sys" : 0, "items" : [ { "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:11]execute_script... [14:16:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190133", "tax_sys" : 0, "items" : [ { "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 110.00, "quantity" : 2.000, "sum" : 220.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:11]POST & json_proto [14:16:11]process_json_proto [14:16:11]json parsed OK: [14:16:11]protocol is kg_v1.0 [14:16:11]action value=close_receipt [14:16:11]process_action close_receipt [14:16:11]cmd_close_receipt [14:16:11]MH_GetDate [14:16:11]Write to MH i2c: F0 00 00 AF 00 9E [14:16:11]Write i2c OK [14:16:11]MH_I2C_Read... [14:16:11]Read from MH i2c: F0 [14:16:11]MH_I2C_Read... [14:16:11]Read from MH i2c: F0 09 00 [14:16:11]MH_I2C_Read... [14:16:11]Read from MH i2c: F0 09 00 AF 00 00 AB 53 C3 66 C4 85 C2 66 3F [14:16:11]GetLastDocTimeStamp 1724076965 [14:16:11]current date 1724076971 [14:16:11]FM_GetShiftState [14:16:11]SAM_PROTO_GetShiftState [14:16:11]wFMCommunicate request_size=4 [14:16:11]MH_SAM_APDU [14:16:11]CAPDU: 80 13 01 00 [14:16:11]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [14:16:11]Write i2c OK [14:16:11]MH_I2C_Read... [14:16:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:11]Read from MH i2c: E2 [14:16:11]MH_I2C_Read... [14:16:11]Read from MH i2c: E2 0E 00 [14:16:11]MH_I2C_Read... [14:16:11]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 E7 [14:16:11]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [14:16:11]wFMCommunicate OK [14:16:11]SAM_PROTO_GetShiftState done [14:16:11]FM_GetShiftState done [14:16:11]opened in 1724026361 [14:16:11]opened+sec_in_day 1724112761 [14:16:11]quantity*price = 22000 [14:16:11]sum+1 = 22001 [14:16:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 106 19.08.2024 14:16 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49999 ФПД: 221223263342795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T141611&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49999&fm=221223263342795&tin=02508201610067®Number=0000000000092546&sum=22000 0 [14:16:12]StoreToDocumentArchive [14:16:12]shift 467 fd 49999 [14:16:12]save to /storage/0467/doc_00049999 [14:16:12]save last doc name /storage/0467/doc_00049999 to /storage/kkm_last_doc_name [14:16:12]save OK [14:16:12]Clear old archive folders... [14:16:12]ProcessDocumentItem done err = 0, tmpTLVsize=277 [14:16:12]tlvbuf is 01285430 [14:16:12]SAM_PROTO_ClearQueue [14:16:12]wFMCommunicate request_size=4 [14:16:12]MH_SAM_APDU [14:16:12]CAPDU: 80 09 00 00 [14:16:12]Write to MH i2c: E2 08 00 BD 00 80 09 00 00 00 00 00 00 2F [14:16:12]Write i2c OK [14:16:12]MH_I2C_Read... [14:16:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:12]Read from MH i2c: E2 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: E2 03 00 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [14:16:12]RAPDU: 90 00 [14:16:12]wFMCommunicate OK [14:16:12]SAM_PROTO_ClearQueue done [14:16:12]KKMCreateOFDPacket [14:16:12]OFDProtocolAddRootSTLVToBuf [14:16:12]FM_MakeSignedData [14:16:12]FM_MakeSignedData [14:16:12]SAM_PROTO_SignData [14:16:12]wFMCommunicate request_size=4 [14:16:12]MH_SAM_APDU [14:16:12]CAPDU: 80 0D 01 02 [14:16:12]Write to MH i2c: E2 08 00 BE 00 80 0D 01 02 00 00 00 00 37 [14:16:12]Write i2c OK [14:16:12]MH_I2C_Read... [14:16:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:12]Read from MH i2c: E2 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: E2 03 00 [14:16:12]MH_I2C_Read... [14:16:12]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [14:16:12]RAPDU: 90 00 [14:16:12]wFMCommunicate OK [14:16:12]wFMCommunicate request_size=255 [14:16:12]MH_SAM_APDU [14:16:12]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 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 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AB 53 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 [14:16:12]Write to MH i2c: E2 02 01 BF 00 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 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 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AB 53 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 00 00 9F [14:16:13]Write i2c OK [14:16:13]MH_I2C_Read... [14:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:13]Read from MH i2c: E2 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 03 00 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [14:16:13]RAPDU: 90 00 [14:16:13]wFMCommunicate OK [14:16:13]wFMCommunicate request_size=36 [14:16:13]MH_SAM_APDU [14:16:13]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4F C3 00 00 35 04 06 00 C9 33 8E 07 10 CB [14:16:13]Write to MH i2c: E2 27 00 C0 00 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4F C3 00 00 35 04 06 00 C9 33 8E 07 10 CB 00 00 D5 [14:16:13]Write i2c OK [14:16:13]MH_I2C_Read... [14:16:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:13]Read from MH i2c: E2 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 03 00 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [14:16:13]RAPDU: 90 00 [14:16:13]wFMCommunicate OK [14:16:13]wFMCommunicate request_size=4 [14:16:13]MH_SAM_APDU [14:16:13]CAPDU: 80 0D 03 02 [14:16:13]Write to MH i2c: E2 08 00 C1 00 80 0D 03 02 00 00 00 00 3C [14:16:13]Write i2c OK [14:16:13]MH_I2C_Read... [14:16:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:13]Read from MH i2c: E2 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 0B 00 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 0B 00 C1 00 00 F5 6D B9 8F B0 CD 40 37 90 00 DB [14:16:13]RAPDU: F5 6D B9 8F B0 CD 40 37 90 00 [14:16:13]wFMCommunicate OK [14:16:13]SAM_PROTO_SignData done [14:16:13]FM_MakeSignedData done [14:16:13]CreateOFDProtocolMessage [14:16:13]wFMCommunicate request_size=4 [14:16:13]MH_SAM_APDU [14:16:13]CAPDU: 80 11 00 00 [14:16:13]Write to MH i2c: E2 08 00 C2 00 80 11 00 00 00 00 00 00 3C [14:16:13]Write i2c OK [14:16:13]MH_I2C_Read... [14:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:13]Read from MH i2c: E2 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 17 00 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: E2 17 00 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 87 [14:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:16:13]wFMCommunicate OK [14:16:13]CreateOFDProtocolMessage done [14:16:13]OFDSenderStorePacket 49999 [14:16:13]StoreOFDPacket docnum=49999 [14:16:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 29 01 00 00 ED 32 21 01 7A 37 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 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 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AB 53 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4F C3 00 00 35 04 06 00 C9 33 8E 07 10 CB F5 6D B9 8F B0 CD 40 37 [14:16:13]CheckFolder [14:16:13]dirname=/storage/ofd_packets [14:16:13]CheckFolder done [14:16:13]ProducePacketName [14:16:13]name=ofd_packets/00049999 [14:16:13]NVStorageSaveData ofd_packets/00049999 [14:16:13]File name is /storage/ofd_packets/00049999 [14:16:13]Write 327 bytes [14:16:13]NVStorageSaveData done [14:16:13]OFDSenderStorePacket done [14:16:13]KKMCreateOFDPacket done [14:16:13]NVStorageSaveData kkm_last_timestamp [14:16:13]File name is /storage/kkm_last_timestamp [14:16:13]Write 4 bytes [14:16:13]NVStorageSaveData done [14:16:13]ExternCall_PrintAddStr [14:16:13]wPrintStart [14:16:13]Write to MH i2c: 01 00 00 C3 00 C3 [14:16:13]Write i2c OK [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: 01 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: 01 07 00 [14:16:13]MH_I2C_Read... [14:16:13]Read from MH i2c: 01 07 00 C3 00 00 00 00 00 00 FF 0F D8 [14:16:13]RasterBufferAndPrint [14:16:13]line Счет N : (3)190133 [14:16:13]line ИНН: 02508201610067 [14:16:13]line Контрольно-Кассовый Чек [14:16:13]line ПРОДАЖА [14:16:13]line Товар: 4860019001339 [14:16:13]line Вода Боржоми 0,33л ст [14:16:13]line 2.000 * 110.00 [14:16:13]line = 220.00 [14:16:13]line НДС 12% НСП 1% [14:16:13]line > о реализуемом товаре [14:16:13]line ИТОГО: 220.00 [14:16:13]line НСП 1% : 1.95 [14:16:13]line НДС 12% : 23.36 [14:16:13]line Наличными: 220.00 [14:16:13]line Безнал.: 0.00 [14:16:13]line Место: АЗС № 95 "Партнер Нефть" [14:16:13]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:16:13]line СНО: Общий режим [14:16:13]line Чек 106 19.08.2024 14:16 [14:16:13]line Смена: 467 ФФД: 1.0 [14:16:13]line ЗНМ: 0300000078 [14:16:13]line РНМ: 0000000000092546 [14:16:13]line Версия ККМ: 001 [14:16:13]line ФМ: 0000000000871800 [14:16:13]line ФД: 49999 [14:16:13]line ФПД: 221223263342795 [14:16:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T141611&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49999&fm=221223263342795&tin=02508201610067®Number=0000000000092546&sum=22000 [14:16:13]line 0 [14:16:13]written 0, free lines is 4095 [14:16:13]OFD Sender: Processing packet 49999 [packets to send 21, broken 20] [14:16:13]ProducePacketName [14:16:13]name=ofd_packets/00049999 [14:16:13]OFD Sender: To server: pG, [14:16:13]CommunicateWithHost lk.salyk.kg:30040 [14:16:13]ConnectInit lk.salyk.kg [14:16:13]Connected sock=10 [14:16:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 29 01 00 00 ED 32 21 01 7A 37 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 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 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F0 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 AB 53 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4F C3 00 00 35 04 06 00 C9 33 8E 07 10 CB F5 6D B9 8F B0 CD 40 37 [14:16:14]Write to MH i2c: 01 00 00 EB 00 EB [14:16:14]Write i2c OK [14:16:14]MH_I2C_Read... [14:16:14]Read from MH i2c: 01 [14:16:14]MH_I2C_Read... [14:16:14]Read from MH i2c: 01 07 00 [14:16:14]MH_I2C_Read... [14:16:14]Read from MH i2c: 01 07 00 EB 00 00 00 00 00 00 63 0D 62 [14:16:14]RasterBufferAndPrint [14:16:14]line [14:16:14]line [14:16:14]line [14:16:14]line [14:16:14]line [14:16:14]written 0, free lines is 3450 [14:16:14]MH_Cut [14:16:14]Write to MH i2c: D1 01 00 F2 00 01 C4 [14:16:14]Write i2c OK [14:16:14]MH_I2C_Read... [14:16:14]Read from MH i2c: D1 [14:16:14]MH_I2C_Read... [14:16:14]Read from MH i2c: D1 01 00 [14:16:14]MH_I2C_Read... [14:16:14]Read from MH i2c: D1 01 00 F2 00 00 C3 [14:16:14]Write to MH i2c: 01 00 00 F3 00 F3 [14:16:14]Write i2c OK [14:16:14]MH_I2C_Read... [14:16:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 76 29 47 00 98 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4F C3 00 00 F4 03 04 00 19 FE C2 66 B6 04 01 00 00 7B 87 DB 61 DC E4 47 38 [14:16:14]CommunicateWithHost err = 0 [14:16:14]CheckOFDResponse [14:16:14]1017 (14) - 77093643461234 [14:16:14]1041 (16) - 0000000000871800 [14:16:14]1040 (4) - 49999 [14:16:14]1012 (4) - 19.08.2024 08:11 [14:16:14]1206 (1) - 0 [14:16:14]OFD Sender: Remove packet 49999 [14:16:14]ProducePacketName [14:16:14]name=ofd_packets/00049999 [14:16:14]NVStorageDeleteData [14:16:14]*** Cut start [14:16:14]*** Purtial cut [14:16:14]*** CUTSNS_PIN = 0 [14:16:14]OFD Sender: No OFD packet to send [14:16:15]*** Stage 1: CUTSNS_PIN = 1 [14:16:16]Read from MH i2c: 01 [14:16:16]MH_I2C_Read... [14:16:16]*** Stop cut motor [14:16:16]*** Cut end [14:16:16]Read from MH i2c: 01 07 00 [14:16:16]MH_I2C_Read... [14:16:16]Read from MH i2c: 01 07 00 F3 00 00 00 00 00 00 FF 0F 08 [14:16:16]process_action close_receipt done [14:16:16]requested_data is exist [14:16:16]produce_requested_data [14:16:16]requested_item fm.sn is exist - process it [14:16:16]wFMCommunicate request_size=4 [14:16:16]MH_SAM_APDU [14:16:16]CAPDU: 80 11 00 00 [14:16:16]Write to MH i2c: E2 08 00 F4 00 80 11 00 00 00 00 00 00 6E [14:16:16]Write i2c OK [14:16:16]MH_I2C_Read... [14:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:16]Read from MH i2c: E2 [14:16:16]MH_I2C_Read... [14:16:16]Read from MH i2c: E2 17 00 [14:16:16]MH_I2C_Read... [14:16:16]Read from MH i2c: E2 17 00 F4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B9 [14:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:16:16]wFMCommunicate OK [14:16:16]requested_item fd.num is exist - process it [14:16:16]SAM_PROTO_GetFieldsCounters [14:16:16]wFMCommunicate request_size=4 [14:16:16]MH_SAM_APDU [14:16:16]CAPDU: 80 13 00 00 [14:16:16]Write to MH i2c: E2 08 00 F5 00 80 13 00 00 00 00 00 00 71 [14:16:16]Write i2c OK [14:16:16]MH_I2C_Read... [14:16:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:17]Read from MH i2c: E2 [14:16:17]MH_I2C_Read... [14:16:17]Read from MH i2c: E2 62 00 [14:16:17]MH_I2C_Read... [14:16:17]Read from MH i2c: E2 62 00 F5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4F C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [14:16:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4F C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:17]wFMCommunicate OK [14:16:17]SAM_PROTO_GetFieldsCounters done [14:16:17]requested_item shift.num is exist - process it [14:16:17]requested_item shift.opened is exist - process it [14:16:17]req_shift_opened [14:16:17]FM_GetShiftState [14:16:17]SAM_PROTO_GetShiftState [14:16:17]wFMCommunicate request_size=4 [14:16:17]MH_SAM_APDU [14:16:17]CAPDU: 80 13 01 00 [14:16:17]Write to MH i2c: E2 08 00 F6 00 80 13 01 00 00 00 00 00 73 [14:16:17]Write i2c OK [14:16:17]MH_I2C_Read... [14:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:17]Read from MH i2c: E2 [14:16:17]MH_I2C_Read... [14:16:17]Read from MH i2c: E2 0E 00 [14:16:17]MH_I2C_Read... [14:16:17]Read from MH i2c: E2 0E 00 F6 00 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 2D [14:16:17]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [14:16:17]wFMCommunicate OK [14:16:17]SAM_PROTO_GetShiftState done [14:16:17]FM_GetShiftState done [14:16:17]req_shift_opened done [14:16:17]requested_item shift.open_date is exist - process it [14:16:17]req_shift_open_date [14:16:17]req_shift_open_date done [14:16:17]produce_requested_data done [14:16:17]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49999,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [14:16:17]process_action_free close_receipt [14:16:17]json_value_free [14:16:17]json_value_free done [14:16:17]process_json_proto returns [14:16:17]Send response to host [14:16:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49999,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [14:16:17]free response buf [14:16:17]execute_script done [14:16:17]execute_script returns [14:16:17]free content buf [14:16:17]Sock 7.Close socket [14:16:17]Sock 7.Thread stoped [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:45]OFD Sender: No OFD packet to send [14:16:50]OFD Sender: No OFD packet to send [14:16:55]OFD Sender: No OFD packet to send [14:17:00]OFD Sender: No OFD packet to send [14:17:05]OFD Sender: No OFD packet to send [14:17:10]OFD Sender: No OFD packet to send [14:17:15]OFD Sender: No OFD packet to send [14:17:20]OFD Sender: No OFD packet to send [14:17:25]OFD Sender: No OFD packet to send [14:17:30]OFD Sender: No OFD packet to send [14:17:35]OFD Sender: No OFD packet to send [14:17:40]OFD Sender: No OFD packet to send [14:17:45]OFD Sender: No OFD packet to send [14:17:50]OFD Sender: No OFD packet to send [14:17:55]OFD Sender: No OFD packet to send [14:18:00]OFD Sender: No OFD packet to send [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:25]OFD Sender: No OFD packet to send [14:18:30]OFD Sender: No OFD packet to send [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]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:15]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [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:54]accept exits with 9 [14:29:54]New connection [14:29:54]New thread 3066469732 created [14:29:54]Thread 3066613092 joined [14:29:54]Waiting for new connection... [14:29:54] Sock 9.Parse request [14:29:54]Sock 9.Check first char [14:29:54]Sock 9.First char is OK [14:29:54]request: POST /json_proto HTTP/1.0 [14:29:54]Method: POST [14:29:54]URL: /json_proto [14:29:54]Method is POST - this is cgi request [14:29:54]url: /json_proto [14:29:54]query_string will be loaded in cgi processing [14:29:54]execute_cgi json_proto POST (null) [14:29:54]execute_cgi path=json_proto method=POST [14:29:54]POST find Content-Length [14:29:54]Host: 172.17.46.196:8080 [14:29:54]Content-Length: 619 [14:29:54]Content-Type: application/json [14:29:54] [14:29:54]POST finish read [14:29:54]Found Content-Length = 619 [14:29:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190134", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:54]execute_script... [14:29: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)190134", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:54]POST & json_proto [14:29:54]process_json_proto [14:29:54]json parsed OK: [14:29:54]protocol is kg_v1.0 [14:29:54]action value=close_receipt [14:29:54]process_action close_receipt [14:29:54]cmd_close_receipt [14:29:54]MH_GetDate [14:29:54]Write to MH i2c: F0 00 00 F7 00 E6 [14:29:54]Write i2c OK [14:29:54]MH_I2C_Read... [14:29:54]Read from MH i2c: F0 [14:29:54]MH_I2C_Read... [14:29:54]Read from MH i2c: F0 09 00 [14:29:54]MH_I2C_Read... [14:29:54]Read from MH i2c: F0 09 00 F7 00 00 E2 56 C3 66 C4 85 C2 66 C1 [14:29:54]GetLastDocTimeStamp 1724076971 [14:29:54]current date 1724077794 [14:29:54]FM_GetShiftState [14:29:54]SAM_PROTO_GetShiftState [14:29:54]wFMCommunicate request_size=4 [14:29:54]MH_SAM_APDU [14:29:54]CAPDU: 80 13 01 00 [14:29:54]Write to MH i2c: E2 08 00 F8 00 80 13 01 00 00 00 00 00 75 [14:29:54]Write i2c OK [14:29:54]MH_I2C_Read... [14:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:54]Read from MH i2c: E2 [14:29:54]MH_I2C_Read... [14:29:54]Read from MH i2c: E2 0E 00 [14:29:54]MH_I2C_Read... [14:29:54]Read from MH i2c: E2 0E 00 F8 00 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 2F [14:29:54]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [14:29:54]wFMCommunicate OK [14:29:54]SAM_PROTO_GetShiftState done [14:29:54]FM_GetShiftState done [14:29:54]opened in 1724026361 [14:29:54]opened+sec_in_day 1724112761 [14:29:54]quantity*price = 14000 [14:29:54]sum+1 = 14001 [14:29:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 107 19.08.2024 14:29 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50000 ФПД: 34789621347633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T142954&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50000&fm=34789621347633&tin=02508201610067®Number=0000000000092546&sum=14000 0 [14:29:55]StoreToDocumentArchive [14:29:55]shift 467 fd 50000 [14:29:55]save to /storage/0467/doc_00050000 [14:29:55]save last doc name /storage/0467/doc_00050000 to /storage/kkm_last_doc_name [14:29:55]save OK [14:29:55]Clear old archive folders... [14:29:55]ProcessDocumentItem done err = 0, tmpTLVsize=271 [14:29:55]tlvbuf is 01258B50 [14:29:55]SAM_PROTO_ClearQueue [14:29:55]wFMCommunicate request_size=4 [14:29:55]MH_SAM_APDU [14:29:55]CAPDU: 80 09 00 00 [14:29:55]Write to MH i2c: E2 08 00 05 01 80 09 00 00 00 00 00 00 78 [14:29:55]Write i2c OK [14:29:55]MH_I2C_Read... [14:29:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:55]Read from MH i2c: E2 [14:29:55]MH_I2C_Read... [14:29:55]Read from MH i2c: E2 03 00 [14:29:55]MH_I2C_Read... [14:29:55]Read from MH i2c: E2 03 00 05 01 00 90 00 7A [14:29:55]RAPDU: 90 00 [14:29:55]wFMCommunicate OK [14:29:55]SAM_PROTO_ClearQueue done [14:29:55]KKMCreateOFDPacket [14:29:55]OFDProtocolAddRootSTLVToBuf [14:29:55]FM_MakeSignedData [14:29:55]FM_MakeSignedData [14:29:55]SAM_PROTO_SignData [14:29:55]wFMCommunicate request_size=4 [14:29:55]MH_SAM_APDU [14:29:55]CAPDU: 80 0D 01 02 [14:29:55]Write to MH i2c: E2 08 00 06 01 80 0D 01 02 00 00 00 00 80 [14:29:55]Write i2c OK [14:29:55]MH_I2C_Read... [14:29:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:55]Read from MH i2c: E2 [14:29:55]MH_I2C_Read... [14:29:55]Read from MH i2c: E2 03 00 [14:29:55]MH_I2C_Read... [14:29:55]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [14:29:55]RAPDU: 90 00 [14:29:55]wFMCommunicate OK [14:29:55]wFMCommunicate request_size=255 [14:29:55]MH_SAM_APDU [14:29:55]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 E2 56 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [14:29:55]Write to MH i2c: E2 02 01 07 01 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 E2 56 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 A5 [14:29:55]Write i2c OK [14:29:55]MH_I2C_Read... [14:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:56]Read from MH i2c: E2 [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: E2 03 00 [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [14:29:56]RAPDU: 90 00 [14:29:56]wFMCommunicate OK [14:29:56]wFMCommunicate request_size=30 [14:29:56]MH_SAM_APDU [14:29:56]CAPDU: 80 0D 02 02 19 30 38 37 31 38 30 30 10 04 04 00 50 C3 00 00 35 04 06 00 1F A4 17 05 B5 31 [14:29:56]Write to MH i2c: E2 21 00 08 01 80 0D 02 02 19 00 30 38 37 31 38 30 30 10 04 04 00 50 C3 00 00 35 04 06 00 1F A4 17 05 B5 31 00 00 4C [14:29:56]Write i2c OK [14:29:56]MH_I2C_Read... [14:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:56]Read from MH i2c: E2 [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: E2 03 00 [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [14:29:56]RAPDU: 90 00 [14:29:56]wFMCommunicate OK [14:29:56]wFMCommunicate request_size=4 [14:29:56]MH_SAM_APDU [14:29:56]CAPDU: 80 0D 03 02 [14:29:56]Write to MH i2c: E2 08 00 09 01 80 0D 03 02 00 00 00 00 85 [14:29:56]Write i2c OK [14:29:56]MH_I2C_Read... [14:29:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:56]Read from MH i2c: E2 [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: E2 0B 00 [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: E2 0B 00 09 01 00 70 2A 4C 28 63 7F 3F 46 90 00 FB [14:29:56]RAPDU: 70 2A 4C 28 63 7F 3F 46 90 00 [14:29:56]wFMCommunicate OK [14:29:56]SAM_PROTO_SignData done [14:29:56]FM_MakeSignedData done [14:29:56]CreateOFDProtocolMessage [14:29:56]wFMCommunicate request_size=4 [14:29:56]MH_SAM_APDU [14:29:56]CAPDU: 80 11 00 00 [14:29:56]Write to MH i2c: E2 08 00 0A 01 80 11 00 00 00 00 00 00 85 [14:29:56]Write i2c OK [14:29:56]MH_I2C_Read... [14:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:56]Read from MH i2c: E2 [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: E2 17 00 [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: E2 17 00 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D0 [14:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:29:56]wFMCommunicate OK [14:29:56]CreateOFDProtocolMessage done [14:29:56]OFDSenderStorePacket 50000 [14:29:56]StoreOFDPacket docnum=50000 [14:29:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 46 4B 1B 01 C2 26 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 E2 56 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 50 C3 00 00 35 04 06 00 1F A4 17 05 B5 31 70 2A 4C 28 63 7F 3F 46 [14:29:56]CheckFolder [14:29:56]dirname=/storage/ofd_packets [14:29:56]CheckFolder done [14:29:56]ProducePacketName [14:29:56]name=ofd_packets/00050000 [14:29:56]NVStorageSaveData ofd_packets/00050000 [14:29:56]File name is /storage/ofd_packets/00050000 [14:29:56]Write 321 bytes [14:29:56]NVStorageSaveData done [14:29:56]OFDSenderStorePacket done [14:29:56]KKMCreateOFDPacket done [14:29:56]NVStorageSaveData kkm_last_timestamp [14:29:56]File name is /storage/kkm_last_timestamp [14:29:56]Write 4 bytes [14:29:56]NVStorageSaveData done [14:29:56]OFD Sender: Processing packet 50000 [packets to send 21, broken 20] [14:29:56]ProducePacketName [14:29:56]name=ofd_packets/00050000 [14:29:56]OFD Sender: To server: pG, [14:29:56]CommunicateWithHost lk.salyk.kg:30040 [14:29:56]ConnectInit lk.salyk.kg [14:29:56]ExternCall_PrintAddStr [14:29:56]wPrintStart [14:29:56]Write to MH i2c: 01 00 00 0B 01 0C [14:29:56]Write i2c OK [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: 01 [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: 01 07 00 [14:29:56]MH_I2C_Read... [14:29:56]Read from MH i2c: 01 07 00 0B 01 00 00 00 00 00 FF 0F 21 [14:29:56]RasterBufferAndPrint [14:29:56]line Счет N : (3)190134 [14:29:56]line ИНН: 02508201610067 [14:29:56]line Контрольно-Кассовый Чек [14:29:56]line ПРОДАЖА [14:29:56]line Товар: 47802995 [14:29:56]line Сигареты Winston XS Silver [14:29:56]line 1.000 * 140.00 [14:29:56]line = 140.00 [14:29:56]line НДС 12% НСП 1% [14:29:56]line > о реализуемом товаре [14:29:56]line ИТОГО: 140.00 [14:29:56]line НСП 1% : 1.24 [14:29:56]line НДС 12% : 14.87 [14:29:56]line Наличными: 140.00 [14:29:56]line Безнал.: 0.00 [14:29:56]line Место: АЗС № 95 "Партнер Нефть" [14:29:56]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:29:56]line СНО: Общий режим [14:29:56]line Чек 107 19.08.2024 14:29 [14:29:56]line Смена: 467 ФФД: 1.0 [14:29:56]line ЗНМ: 0300000078 [14:29:56]line РНМ: 0000000000092546 [14:29:56]line Версия ККМ: 001 [14:29:56]line ФМ: 0000000000871800 [14:29:56]line ФД: 50000 [14:29:56]line ФПД: 34789621347633 [14:29:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T142954&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50000&fm=34789621347633&tin=02508201610067®Number=0000000000092546&sum=14000 [14:29:56]line 0 [14:29:56]Connected sock=11 [14:29:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 46 4B 1B 01 C2 26 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 E2 56 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 50 C3 00 00 35 04 06 00 1F A4 17 05 B5 31 70 2A 4C 28 63 7F 3F 46 [14:29:56]written 0, free lines is 4095 [14:29:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 66 99 47 00 65 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 50 C3 00 00 F4 03 04 00 4F 01 C3 66 B6 04 01 00 00 89 C0 92 9E 0A 64 70 7E [14:29:56]CommunicateWithHost err = 0 [14:29:56]CheckOFDResponse [14:29:56]1017 (14) - 77093643461234 [14:29:56]1041 (16) - 0000000000871800 [14:29:56]1040 (4) - 50000 [14:29:56]1012 (4) - 19.08.2024 08:24 [14:29:56]1206 (1) - 0 [14:29:56]OFD Sender: Remove packet 50000 [14:29:56]ProducePacketName [14:29:56]name=ofd_packets/00050000 [14:29:56]NVStorageDeleteData [14:29:57]Write to MH i2c: 01 00 00 33 01 34 [14:29:57]Write i2c OK [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: 01 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: 01 07 00 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: 01 07 00 33 01 00 00 00 00 00 EB 0C 32 [14:29:57]RasterBufferAndPrint [14:29:57]line [14:29:57]line [14:29:57]line [14:29:57]line [14:29:57]line [14:29:57]written 0, free lines is 3313 [14:29:57]MH_Cut [14:29:57]Write to MH i2c: D1 01 00 3A 01 01 0D [14:29:57]Write i2c OK [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: D1 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: D1 01 00 [14:29:57]MH_I2C_Read... [14:29:57]Read from MH i2c: D1 01 00 3A 01 00 0C [14:29:57]Write to MH i2c: 01 00 00 3B 01 3C [14:29:57]Write i2c OK [14:29:57]MH_I2C_Read... [14:29:57]OFD Sender: No OFD packet to send [14:29:57]*** Cut start [14:29:57]*** Purtial cut [14:29:57]*** Stage 1: CUTSNS_PIN = 1 [14:29:58]Read from MH i2c: 01 [14:29:58]MH_I2C_Read... [14:29:58]Read from MH i2c: *** Stop cut motor [14:29:58]01 07 *** Cut end [14:29:58]00 [14:29:58]MH_I2C_Read... [14:29:58]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 FF 0F 51 [14:29:58]process_action close_receipt done [14:29:58]requested_data is exist [14:29:58]produce_requested_data [14:29:58]requested_item fm.sn is exist - process it [14:29:58]wFMCommunicate request_size=4 [14:29:58]MH_SAM_APDU [14:29:58]CAPDU: 80 11 00 00 [14:29:58]Write to MH i2c: E2 08 00 3C 01 80 11 00 00 00 00 00 00 B7 [14:29:58]Write i2c OK [14:29:58]MH_I2C_Read... [14:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:58]Read from MH i2c: E2 [14:29:58]MH_I2C_Read... [14:29:58]Read from MH i2c: E2 17 00 [14:29:58]MH_I2C_Read... [14:29:58]Read from MH i2c: E2 17 00 3C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 02 [14:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:29:58]wFMCommunicate OK [14:29:58]requested_item fd.num is exist - process it [14:29:58]SAM_PROTO_GetFieldsCounters [14:29:58]wFMCommunicate request_size=4 [14:29:58]MH_SAM_APDU [14:29:58]CAPDU: 80 13 00 00 [14:29:58]Write to MH i2c: E2 08 00 3D 01 80 13 00 00 00 00 00 00 BA [14:29:58]Write i2c OK [14:29:58]MH_I2C_Read... [14:29:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:58]Read from MH i2c: E2 [14:29:58]MH_I2C_Read... [14:29:58]Read from MH i2c: E2 62 00 [14:29:58]MH_I2C_Read... [14:29:58]Read from MH i2c: E2 62 00 3D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 50 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [14:29:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 50 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:58]wFMCommunicate OK [14:29:58]SAM_PROTO_GetFieldsCounters done [14:29:58]requested_item shift.num is exist - process it [14:29:58]requested_item shift.opened is exist - process it [14:29:58]req_shift_opened [14:29:58]FM_GetShiftState [14:29:58]SAM_PROTO_GetShiftState [14:29:58]wFMCommunicate request_size=4 [14:29:58]MH_SAM_APDU [14:29:58]CAPDU: 80 13 01 00 [14:29:58]Write to MH i2c: E2 08 00 3E 01 80 13 01 00 00 00 00 00 BC [14:29:58]Write i2c OK [14:29:58]MH_I2C_Read... [14:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:58]Read from MH i2c: E2 [14:29:58]MH_I2C_Read... [14:29:58]Read from MH i2c: E2 0E 00 [14:29:58]MH_I2C_Read... [14:29:58]Read from MH i2c: E2 0E 00 3E 01 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 76 [14:29:58]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [14:29:58]wFMCommunicate OK [14:29:58]SAM_PROTO_GetShiftState done [14:29:58]FM_GetShiftState done [14:29:58]req_shift_opened done [14:29:58]requested_item shift.open_date is exist - process it [14:29:58]req_shift_open_date [14:29:58]req_shift_open_date done [14:29:58]produce_requested_data done [14:29:58]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50000,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [14:29:58]process_action_free close_receipt [14:29:58]json_value_free [14:29:58]json_value_free done [14:29:58]process_json_proto returns [14:29:58]Send response to host [14:29:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50000,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [14:29:58]free response buf [14:29:58]execute_script done [14:29:58]execute_script returns [14:29:58]free content buf [14:29:58]Sock 9.Close socket [14:29:58]Sock 9.Thread stoped [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42: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:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:23]OFD Sender: No OFD packet to send [14:46:28]OFD Sender: No OFD packet to send [14:46:33]OFD Sender: No OFD packet to send [14:46:38]OFD Sender: No OFD packet to send [14:46:43]OFD Sender: No OFD packet to send [14:46:48]OFD Sender: No OFD packet to send [14:46:53]OFD Sender: No OFD packet to send [14:46:58]OFD Sender: No OFD packet to send [14:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:14]accept exits with 7 [14:47:14]New connection [14:47:14]New thread 3066613092 created [14:47:14]Thread 3066469732 joined [14:47:14]Waiting for new connection... [14:47:14] Sock 7.Parse request [14:47:14]Sock 7.Check first char [14:47:14]Sock 7.First char is OK [14:47:14]request: POST /json_proto HTTP/1.0 [14:47:14]Method: POST [14:47:14]URL: /json_proto [14:47:14]Method is POST - this is cgi request [14:47:14]url: /json_proto [14:47:14]query_string will be loaded in cgi processing [14:47:14]execute_cgi json_proto POST (null) [14:47:14]execute_cgi path=json_proto method=POST [14:47:14]POST find Content-Length [14:47:14]Host: 172.17.46.196:8080 [14:47:14]Content-Length: 644 [14:47:14]Content-Type: application/json [14:47:14] [14:47:14]POST finish read [14:47:14]Found Content-Length = 644 [14:47:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190135", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:14]execute_script... [14: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)190135", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:14]POST & json_proto [14:47:14]process_json_proto [14:47:14]json parsed OK: [14:47:14]protocol is kg_v1.0 [14:47:14]action value=close_receipt [14:47:14]process_action close_receipt [14:47:14]cmd_close_receipt [14:47:14]MH_GetDate [14:47:14]Write to MH i2c: F0 00 00 3F 01 2F [14:47:14]Write i2c OK [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: F0 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: F0 09 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: F0 09 00 3F 01 00 F2 5A C3 66 C4 85 C2 66 1E [14:47:14]GetLastDocTimeStamp 1724077794 [14:47:14]current date 1724078834 [14:47:14]FM_GetShiftState [14:47:14]SAM_PROTO_GetShiftState [14:47:14]wFMCommunicate request_size=4 [14:47:14]MH_SAM_APDU [14:47:14]CAPDU: 80 13 01 00 [14:47:14]Write to MH i2c: E2 08 00 40 01 80 13 01 00 00 00 00 00 BE [14:47:14]Write i2c OK [14:47:14]MH_I2C_Read... [14:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:14]Read from MH i2c: E2 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: E2 0E 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: E2 0E 00 40 01 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 78 [14:47:14]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [14:47:14]wFMCommunicate OK [14:47:14]SAM_PROTO_GetShiftState done [14:47:14]FM_GetShiftState done [14:47:14]opened in 1724026361 [14:47:14]opened+sec_in_day 1724112761 [14:47:14]quantity*price = 4200 [14:47:14]sum+1 = 4201 [14:47:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 42.00 НСП 1% : 0.37 НДС 12% : 4.46 Наличными: 42.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 108 19.08.2024 14:47 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50001 ФПД: 84278504359713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144714&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50001&fm=84278504359713&tin=02508201610067®Number=0000000000092546&sum=4200 0 [14:47:15]StoreToDocumentArchive [14:47:15]shift 467 fd 50001 [14:47:15]save to /storage/0467/doc_00050001 [14:47:15]save last doc name /storage/0467/doc_00050001 to /storage/kkm_last_doc_name [14:47:15]save OK [14:47:15]Clear old archive folders... [14:47:15]ProcessDocumentItem done err = 0, tmpTLVsize=275 [14:47:15]tlvbuf is B6E6E910 [14:47:15]SAM_PROTO_ClearQueue [14:47:15]wFMCommunicate request_size=4 [14:47:15]MH_SAM_APDU [14:47:15]CAPDU: 80 09 00 00 [14:47:15]Write to MH i2c: E2 08 00 4D 01 80 09 00 00 00 00 00 00 C0 [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:15]Read from MH i2c: E2 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: E2 03 00 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [14:47:15]RAPDU: 90 00 [14:47:15]wFMCommunicate OK [14:47:15]SAM_PROTO_ClearQueue done [14:47:15]KKMCreateOFDPacket [14:47:15]OFDProtocolAddRootSTLVToBuf [14:47:15]FM_MakeSignedData [14:47:15]FM_MakeSignedData [14:47:15]SAM_PROTO_SignData [14:47:15]wFMCommunicate request_size=4 [14:47:15]MH_SAM_APDU [14:47:15]CAPDU: 80 0D 01 02 [14:47:15]Write to MH i2c: E2 08 00 4E 01 80 0D 01 02 00 00 00 00 C8 [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:15]Read from MH i2c: E2 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: E2 03 00 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: E2 03 00 4E 01 00 90 00 C3 [14:47:15]RAPDU: 90 00 [14:47:15]wFMCommunicate OK [14:47:15]wFMCommunicate request_size=255 [14:47:15]MH_SAM_APDU [14:47:15]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 F2 5A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [14:47:15]Write to MH i2c: E2 02 01 4F 01 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 F2 5A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 F6 [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:16]Read from MH i2c: E2 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: E2 03 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [14:47:16]RAPDU: 90 00 [14:47:16]wFMCommunicate OK [14:47:16]wFMCommunicate request_size=34 [14:47:16]MH_SAM_APDU [14:47:16]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 51 C3 00 00 35 04 06 00 4C A6 9E 50 87 21 [14:47:16]Write to MH i2c: E2 25 00 50 01 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 51 C3 00 00 35 04 06 00 4C A6 9E 50 87 21 00 00 20 [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:16]Read from MH i2c: E2 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: E2 03 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [14:47:16]RAPDU: 90 00 [14:47:16]wFMCommunicate OK [14:47:16]wFMCommunicate request_size=4 [14:47:16]MH_SAM_APDU [14:47:16]CAPDU: 80 0D 03 02 [14:47:16]Write to MH i2c: E2 08 00 51 01 80 0D 03 02 00 00 00 00 CD [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:16]Read from MH i2c: E2 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: E2 0B 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: E2 0B 00 51 01 00 91 B7 9D 87 50 C6 88 F6 90 00 CE [14:47:16]RAPDU: 91 B7 9D 87 50 C6 88 F6 90 00 [14:47:16]wFMCommunicate OK [14:47:16]SAM_PROTO_SignData done [14:47:16]FM_MakeSignedData done [14:47:16]CreateOFDProtocolMessage [14:47:16]wFMCommunicate request_size=4 [14:47:16]MH_SAM_APDU [14:47:16]CAPDU: 80 11 00 00 [14:47:16]Write to MH i2c: E2 08 00 52 01 80 11 00 00 00 00 00 00 CD [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:16]Read from MH i2c: E2 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: E2 17 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: E2 17 00 52 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 18 [14:47:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:47:16]wFMCommunicate OK [14:47:16]CreateOFDProtocolMessage done [14:47:16]OFDSenderStorePacket 50001 [14:47:16]StoreOFDPacket docnum=50001 [14:47:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 DC 07 1F 01 D7 C2 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 F2 5A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 51 C3 00 00 35 04 06 00 4C A6 9E 50 87 21 91 B7 9D 87 50 C6 88 F6 [14:47:16]CheckFolder [14:47:16]dirname=/storage/ofd_packets [14:47:16]CheckFolder done [14:47:16]ProducePacketName [14:47:16]name=ofd_packets/00050001 [14:47:16]NVStorageSaveData ofd_packets/00050001 [14:47:16]File name is /storage/ofd_packets/00050001 [14:47:16]Write 325 bytes [14:47:16]NVStorageSaveData done [14:47:16]OFDSenderStorePacket done [14:47:16]KKMCreateOFDPacket done [14:47:16]NVStorageSaveData kkm_last_timestamp [14:47:16]File name is /storage/kkm_last_timestamp [14:47:16]Write 4 bytes [14:47:16]NVStorageSaveData done [14:47:16]ExternCall_PrintAddStr [14:47:16]wPrintStart [14:47:16]Write to MH i2c: 01 00 00 53 01 54 [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 07 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 07 00 53 01 00 00 00 00 00 FF 0F 69 [14:47:16]RasterBufferAndPrint [14:47:16]line Счет N : (3)190135 [14:47:16]line ИНН: 02508201610067 [14:47:16]line Контрольно-Кассовый Чек [14:47:16]line ПРОДАЖА [14:47:16]line Товар: 5449000005489 [14:47:16]line Вода Бонаква 1л б/г [14:47:16]line 1.000 * 42.00 [14:47:16]line = 42.00 [14:47:16]line НДС 12% НСП 1% [14:47:16]line > о реализуемом товаре [14:47:16]line ИТОГО: 42.00 [14:47:16]line НСП 1% : 0.37 [14:47:16]line НДС 12% : 4.46 [14:47:16]line Наличными: 42.00 [14:47:16]line Безнал.: 0.00 [14:47:16]line Место: АЗС № 95 "Партнер Нефть" [14:47:16]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:47:16]line СНО: Общий режим [14:47:16]line Чек 108 19.08.2024 14:47 [14:47:16]line Смена: 467 ФФД: 1.0 [14:47:16]line ЗНМ: 0300000078 [14:47:16]line РНМ: 0000000000092546 [14:47:16]line Версия ККМ: 001 [14:47:16]line ФМ: 0000000000871800 [14:47:16]line ФД: 50001 [14:47:16]line ФПД: 84278504359713 [14:47:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144714&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50001&fm=84278504359713&tin=02508201610067®Number=0000000000092546&sum=4200 [14:47:16]line 0 [14:47:16]OFD Sender: Processing packet 50001 [packets to send 21, broken 20] [14:47:16]ProducePacketName [14:47:16]name=ofd_packets/00050001 [14:47:16]OFD Sender: To server: pG, [14:47:16]CommunicateWithHost lk.salyk.kg:30040 [14:47:16]ConnectInit lk.salyk.kg [14:47:16]written 0, free lines is 4095 [14:47:16]Connected sock=10 [14: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 31 38 30 30 27 01 00 00 DC 07 1F 01 D7 C2 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 F2 5A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 51 C3 00 00 35 04 06 00 4C A6 9E 50 87 21 91 B7 9D 87 50 C6 88 F6 [14:47:17]Write to MH i2c: 01 00 00 7B 01 7C [14:47:17]Write i2c OK [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: 01 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: 01 07 00 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: 01 07 00 7B 01 00 00 00 00 00 E1 0C 70 [14:47:17]RasterBufferAndPrint [14:47:17]line [14:47:17]line [14:47:17]line [14:47:17]line [14:47:17]line [14:47:17]written 0, free lines is 3303 [14:47:17]MH_Cut [14:47:17]Write to MH i2c: D1 01 00 82 01 01 55 [14:47:17]Write i2c OK [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: D1 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: D1 01 00 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: D1 01 00 82 01 00 54 [14:47:17]Write to MH i2c: 01 00 00 83 01 84 [14:47:17]Write i2c OK [14:47:17]MH_I2C_Read... [14:47:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C2 E3 47 00 65 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 51 C3 00 00 F4 03 04 00 5F 05 C3 66 B6 04 01 00 00 8B 0B 9C B5 DC C6 B7 0F [14:47:17]CommunicateWithHost err = 0 [14:47:17]CheckOFDResponse [14:47:17]1017 (14) - 77093643461234 [14:47:17]1041 (16) - 0000000000871800 [14:47:17]1040 (4) - 50001 [14:47:17]1012 (4) - 19.08.2024 08:42 [14:47:17]1206 (1) - 0 [14:47:17]OFD Sender: Remove packet 50001 [14:47:17]ProducePacketName [14:47:17]name=ofd_packets/00050001 [14:47:17]NVStorageDeleteData [14:47:17]OFD Sender: No OFD packet to send [14:47:17]*** Cut start [14:47:17]*** Purtial cut [14:47:17]*** CUTSNS_PIN = 0 [14:47:18]*** Stage 1: CUTSNS_PIN = 1 [14:47:19]Read from MH i2c: 01 [14:47:19]MH_I2C_Read... [14:47:19]*** Stop cut motor [14:47:19]*** Cut end [14:47:19]Read from MH i2c: 01 07 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 FF 0F 99 [14:47:19]process_action close_receipt done [14:47:19]requested_data is exist [14:47:19]produce_requested_data [14:47:19]requested_item fm.sn is exist - process it [14:47:19]wFMCommunicate request_size=4 [14:47:19]MH_SAM_APDU [14:47:19]CAPDU: 80 11 00 00 [14:47:19]Write to MH i2c: E2 08 00 84 01 80 11 00 00 00 00 00 00 FF [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:19]Read from MH i2c: E2 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 17 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 17 00 84 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4A [14:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:47:19]wFMCommunicate OK [14:47:19]requested_item fd.num is exist - process it [14:47:19]SAM_PROTO_GetFieldsCounters [14:47:19]wFMCommunicate request_size=4 [14:47:19]MH_SAM_APDU [14:47:19]CAPDU: 80 13 00 00 [14:47:19]Write to MH i2c: E2 08 00 85 01 80 13 00 00 00 00 00 00 02 [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:20]Read from MH i2c: E2 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: E2 62 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: E2 62 00 85 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 51 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [14:47:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 51 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:20]wFMCommunicate OK [14:47:20]SAM_PROTO_GetFieldsCounters done [14:47:20]requested_item shift.num is exist - process it [14:47:20]requested_item shift.opened is exist - process it [14:47:20]req_shift_opened [14:47:20]FM_GetShiftState [14:47:20]SAM_PROTO_GetShiftState [14:47:20]wFMCommunicate request_size=4 [14:47:20]MH_SAM_APDU [14:47:20]CAPDU: 80 13 01 00 [14:47:20]Write to MH i2c: E2 08 00 86 01 80 13 01 00 00 00 00 00 04 [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:20]Read from MH i2c: E2 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: E2 0E 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: E2 0E 00 86 01 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 BE [14:47:20]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [14:47:20]wFMCommunicate OK [14:47:20]SAM_PROTO_GetShiftState done [14:47:20]FM_GetShiftState done [14:47:20]req_shift_opened done [14:47:20]requested_item shift.open_date is exist - process it [14:47:20]req_shift_open_date [14:47:20]req_shift_open_date done [14:47:20]produce_requested_data done [14:47:20]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50001,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [14:47:20]process_action_free close_receipt [14:47:20]json_value_free [14:47:20]json_value_free done [14:47:20]process_json_proto returns [14:47:20]Send response to host [14:47:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50001,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [14:47:20]free response buf [14:47:20]execute_script done [14:47:20]execute_script returns [14:47:20]free content buf [14:47:20]Sock 7.Close socket [14:47:20]Sock 7.Thread stoped [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]accept exits with 9 [14:48:07]New connection [14:48:07]New thread 3066469732 created [14:48:07]Thread 3066613092 joined [14:48:07]Waiting for new connection... [14:48:07] Sock 9.Parse request [14:48:07]Sock 9.Check first char [14:48:07]Sock 9.First char is OK [14:48:07]request: POST /json_proto HTTP/1.0 [14:48:07]Method: POST [14:48:07]URL: /json_proto [14:48:07]Method is POST - this is cgi request [14:48:07]url: /json_proto [14:48:07]query_string will be loaded in cgi processing [14:48:07]execute_cgi json_proto POST (null) [14:48:07]execute_cgi path=json_proto method=POST [14:48:07]POST find Content-Length [14:48:07]Host: 172.17.46.196:8080 [14:48:07]Content-Length: 756 [14:48:07]Content-Type: application/json [14:48:07] [14:48:07]POST finish read [14:48:07]Found Content-Length = 756 [14:48:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 45.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30040432", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:07]execute_script... [14:48:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 45.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30040432", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:07]POST & json_proto [14:48:07]process_json_proto [14:48:07]json parsed OK: [14:48:07]protocol is kg_v1.0 [14:48:07]action value=close_receipt [14:48:07]process_action close_receipt [14:48:07]cmd_close_receipt [14:48:07]MH_GetDate [14:48:07]Write to MH i2c: F0 00 00 87 01 77 [14:48:07]Write i2c OK [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: F0 [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: F0 09 00 [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: F0 09 00 87 01 00 27 5B C3 66 C4 85 C2 66 9C [14:48:07]GetLastDocTimeStamp 1724078834 [14:48:07]current date 1724078887 [14:48:07]FM_GetShiftState [14:48:07]SAM_PROTO_GetShiftState [14:48:07]wFMCommunicate request_size=4 [14:48:07]MH_SAM_APDU [14:48:07]CAPDU: 80 13 01 00 [14:48:07]Write to MH i2c: E2 08 00 88 01 80 13 01 00 00 00 00 00 06 [14:48:07]Write i2c OK [14:48:07]MH_I2C_Read... [14:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:07]Read from MH i2c: E2 [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: E2 0E 00 [14:48:07]MH_I2C_Read... [14:48:07]Read from MH i2c: E2 0E 00 88 01 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 C0 [14:48:07]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [14:48:07]wFMCommunicate OK [14:48:07]SAM_PROTO_GetShiftState done [14:48:07]FM_GetShiftState done [14:48:07]opened in 1724026361 [14:48:07]opened+sec_in_day 1724112761 [14:48:07]quantity*price = 0 [14:48:07]sum+1 = 1 [14:48:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 109 19.08.2024 14:48 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30040432 ФМ: 0000000000871800 ФД: 50002 ФПД: 16341316613352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144807&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50002&fm=16341316613352&tin=02508201610067®Number=0000000000092546&sum=0 [14:48:08]StoreToDocumentArchive [14:48:08]shift 467 fd 50002 [14:48:08]save to /storage/0467/doc_00050002 [14:48:08]save last doc name /storage/0467/doc_00050002 to /storage/kkm_last_doc_name [14:48:08]save OK [14:48:08]Clear old archive folders... [14:48:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:08]tlvbuf is 0126E730 [14:48:08]SAM_PROTO_ClearQueue [14:48:08]wFMCommunicate request_size=4 [14:48:08]MH_SAM_APDU [14:48:08]CAPDU: 80 09 00 00 [14:48:08]Write to MH i2c: E2 08 00 95 01 80 09 00 00 00 00 00 00 08 [14:48:08]Write i2c OK [14:48:08]MH_I2C_Read... [14:48:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:08]Read from MH i2c: E2 [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: E2 03 00 [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [14:48:08]RAPDU: 90 00 [14:48:08]wFMCommunicate OK [14:48:08]SAM_PROTO_ClearQueue done [14:48:08]KKMCreateOFDPacket [14:48:08]OFDProtocolAddRootSTLVToBuf [14:48:08]FM_MakeSignedData [14:48:08]FM_MakeSignedData [14:48:08]SAM_PROTO_SignData [14:48:08]wFMCommunicate request_size=4 [14:48:08]MH_SAM_APDU [14:48:08]CAPDU: 80 0D 01 02 [14:48:08]Write to MH i2c: E2 08 00 96 01 80 0D 01 02 00 00 00 00 10 [14:48:08]Write i2c OK [14:48:08]MH_I2C_Read... [14:48:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:08]Read from MH i2c: E2 [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: E2 03 00 [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [14:48:08]RAPDU: 90 00 [14:48:08]wFMCommunicate OK [14:48:08]wFMCommunicate request_size=255 [14:48:08]MH_SAM_APDU [14:48:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 27 5B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 52 C3 00 00 35 04 06 00 0E [14:48:08]Write to MH i2c: E2 02 01 97 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 27 5B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 52 C3 00 00 35 04 06 00 0E 00 00 98 [14:48:08]Write i2c OK [14:48:08]MH_I2C_Read... [14:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:08]Read from MH i2c: E2 [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: E2 03 00 [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [14:48:08]RAPDU: 90 00 [14:48:08]wFMCommunicate OK [14:48:08]wFMCommunicate request_size=10 [14:48:08]MH_SAM_APDU [14:48:08]CAPDU: 80 0D 02 02 05 DC C2 5F 34 E8 [14:48:08]Write to MH i2c: E2 0D 00 98 01 80 0D 02 02 05 00 DC C2 5F 34 E8 00 00 36 [14:48:08]Write i2c OK [14:48:08]MH_I2C_Read... [14:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:08]Read from MH i2c: E2 [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: E2 03 00 [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: E2 03 00 98 01 00 90 00 0D [14:48:08]RAPDU: 90 00 [14:48:08]wFMCommunicate OK [14:48:08]wFMCommunicate request_size=4 [14:48:08]MH_SAM_APDU [14:48:08]CAPDU: 80 0D 03 02 [14:48:08]Write to MH i2c: E2 08 00 99 01 80 0D 03 02 00 00 00 00 15 [14:48:08]Write i2c OK [14:48:08]MH_I2C_Read... [14:48:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:08]Read from MH i2c: E2 [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: E2 0B 00 [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: E2 0B 00 99 01 00 58 81 0C 12 46 55 45 86 90 00 73 [14:48:08]RAPDU: 58 81 0C 12 46 55 45 86 90 00 [14:48:08]wFMCommunicate OK [14:48:08]SAM_PROTO_SignData done [14:48:08]FM_MakeSignedData done [14:48:08]CreateOFDProtocolMessage [14:48:08]wFMCommunicate request_size=4 [14:48:08]MH_SAM_APDU [14:48:08]CAPDU: 80 11 00 00 [14:48:08]Write to MH i2c: E2 08 00 9A 01 80 11 00 00 00 00 00 00 15 [14:48:08]Write i2c OK [14:48:08]MH_I2C_Read... [14:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:08]Read from MH i2c: E2 [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: E2 17 00 [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: E2 17 00 9A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 60 [14:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:48:08]wFMCommunicate OK [14:48:08]CreateOFDProtocolMessage done [14:48:08]OFDSenderStorePacket 50002 [14:48:08]StoreOFDPacket docnum=50002 [14:48:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 51 CE 07 01 76 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 27 5B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 52 C3 00 00 35 04 06 00 0E DC C2 5F 34 E8 58 81 0C 12 46 55 45 86 [14:48:08]CheckFolder [14:48:08]dirname=/storage/ofd_packets [14:48:08]CheckFolder done [14:48:08]ProducePacketName [14:48:08]name=ofd_packets/00050002 [14:48:08]NVStorageSaveData ofd_packets/00050002 [14:48:08]File name is /storage/ofd_packets/00050002 [14:48:08]Write 301 bytes [14:48:08]NVStorageSaveData done [14:48:08]OFDSenderStorePacket done [14:48:08]KKMCreateOFDPacket done [14:48:08]NVStorageSaveData kkm_last_timestamp [14:48:08]File name is /storage/kkm_last_timestamp [14:48:08]Write 4 bytes [14:48:08]NVStorageSaveData done [14:48:08]ExternCall_PrintAddStr [14:48:08]wPrintStart [14:48:08]Write to MH i2c: 01 00 00 9B 01 9C [14:48:08]Write i2c OK [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: 01 [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: 01 07 00 [14:48:08]MH_I2C_Read... [14:48:08]Read from MH i2c: 01 07 00 9B 01 00 00 00 00 00 FF 0F B1 [14:48:08]RasterBufferAndPrint [14:48:08]line Счет N : (1)11327884 [14:48:08]line ИНН: 02508201610067 [14:48:08]line Контрольно-Кассовый Чек [14:48:08]line ПРОДАЖА [14:48:08]line ТРК (МРК, ГНК) : 32 [14:48:08]line Товар: 2710124130 [14:48:08]line Аи-92-К-4 [14:48:08]line 45.000 * 0.00 [14:48:08]line = 0.00 [14:48:08]line НДС 12% НСП 1% [14:48:08]line > о реализуемом товаре [14:48:08]line ИТОГО: 0.00 [14:48:08]line НСП 1% : 0.00 [14:48:08]line НДС 12% : 0.00 [14:48:08]line Наличными: 0.00 [14:48:08]line Безнал.: 0.00 [14:48:08]line Место: АЗС № 95 "Партнер Нефть" [14:48:08]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:48:08]line СНО: Общий режим [14:48:08]line Чек 109 19.08.2024 14:48 [14:48:08]line Смена: 467 ФФД: 1.0 [14:48:08]line ЗНМ: 0300000078 [14:48:08]line РНМ: 0000000000092546 [14:48:08]line Версия ККМ: 001 [14:48:08]line Талоны: ТК ГПНА Online [14:48:08]line 30040432 [14:48:08]line ФМ: 0000000000871800 [14:48:08]line ФД: 50002 [14:48:08]line ФПД: 16341316613352 [14:48:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T144807&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50002&fm=16341316613352&tin=02508201610067®Number=0000000000092546&sum=0 [14:48:09]written 0, free lines is 4095 [14:48:09]OFD Sender: Processing packet 50002 [packets to send 21, broken 20] [14:48:09]ProducePacketName [14:48:09]name=ofd_packets/00050002 [14:48:09]OFD Sender: To server: pG, [14:48:09]CommunicateWithHost lk.salyk.kg:30040 [14:48:09]ConnectInit lk.salyk.kg [14:48:09]Connected sock=10 [14:48:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 51 CE 07 01 76 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 27 5B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 52 C3 00 00 35 04 06 00 0E DC C2 5F 34 E8 58 81 0C 12 46 55 45 86 [14:48:09]Write to MH i2c: 01 00 00 C5 01 C6 [14:48:09]Write i2c OK [14:48:09]MH_I2C_Read... [14:48:09]Read from MH i2c: 01 [14:48:09]MH_I2C_Read... [14:48:09]Read from MH i2c: 01 07 00 [14:48:09]MH_I2C_Read... [14:48:09]Read from MH i2c: 01 07 00 C5 01 00 00 00 00 00 C9 0C A2 [14:48:09]RasterBufferAndPrint [14:48:09]line [14:48:09]line [14:48:09]line [14:48:09]line [14:48:09]line [14:48:09]written 0, free lines is 3279 [14:48:09]MH_Cut [14:48:09]Write to MH i2c: D1 01 00 CC 01 01 9F [14:48:09]Write i2c OK [14:48:09]MH_I2C_Read... [14:48:09]Read from MH i2c: D1 [14:48:09]MH_I2C_Read... [14:48:09]Read from MH i2c: D1 01 00 [14:48:09]MH_I2C_Read... [14:48:09]Read from MH i2c: D1 01 00 CC 01 00 9E [14:48:09]Write to MH i2c: 01 00 00 CD 01 CE [14:48:09]Write i2c OK [14:48:09]MH_I2C_Read... [14:48:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 58 51 47 00 CF EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 52 C3 00 00 F4 03 04 00 94 05 C3 66 B6 04 01 00 00 F8 B0 3E 65 AD B4 5C A0 [14:48:09]CommunicateWithHost err = 0 [14:48:09]CheckOFDResponse [14:48:09]1017 (14) - 77093643461234 [14:48:09]1041 (16) - 0000000000871800 [14:48:09]1040 (4) - 50002 [14:48:09]1012 (4) - 19.08.2024 08:43 [14:48:09]1206 (1) - 0 [14:48:09]OFD Sender: Remove packet 50002 [14:48:09]ProducePacketName [14:48:09]name=ofd_packets/00050002 [14:48:09]NVStorageDeleteData [14:48:10]OFD Sender: No OFD packet to send [14:48:10]*** Cut start [14:48:10]*** Purtial cut [14:48:10]*** Stage 1: CUTSNS_PIN = 1 [14:48:10]Read from MH i2c: 01 [14:48:10]MH_I2C_Read... [14:48:10]*** Stop cut motor [14:48:10]*** Cut end [14:48:10]Read from MH i2c: 01 07 00 [14:48:10]MH_I2C_Read... [14:48:10]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 FF 0F E3 [14:48:10]process_action close_receipt done [14:48:10]requested_data is exist [14:48:10]produce_requested_data [14:48:10]requested_item fm.sn is exist - process it [14:48:10]wFMCommunicate request_size=4 [14:48:10]MH_SAM_APDU [14:48:10]CAPDU: 80 11 00 00 [14:48:10]Write to MH i2c: E2 08 00 CE 01 80 11 00 00 00 00 00 00 49 [14:48:10]Write i2c OK [14:48:10]MH_I2C_Read... [14:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:10]Read from MH i2c: E2 [14:48:10]MH_I2C_Read... [14:48:10]Read from MH i2c: E2 17 00 [14:48:10]MH_I2C_Read... [14:48:10]Read from MH i2c: E2 17 00 CE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 94 [14:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:48:10]wFMCommunicate OK [14:48:10]requested_item fd.num is exist - process it [14:48:10]SAM_PROTO_GetFieldsCounters [14:48:10]wFMCommunicate request_size=4 [14:48:10]MH_SAM_APDU [14:48:10]CAPDU: 80 13 00 00 [14:48:10]Write to MH i2c: E2 08 00 CF 01 80 13 00 00 00 00 00 00 4C [14:48:10]Write i2c OK [14:48:10]MH_I2C_Read... [14:48:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:10]Read from MH i2c: E2 [14:48:10]MH_I2C_Read... [14:48:10]Read from MH i2c: E2 62 00 [14:48:10]MH_I2C_Read... [14:48:10]Read from MH i2c: E2 62 00 CF 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 52 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [14:48:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 52 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:10]wFMCommunicate OK [14:48:10]SAM_PROTO_GetFieldsCounters done [14:48:10]requested_item shift.num is exist - process it [14:48:10]requested_item shift.opened is exist - process it [14:48:10]req_shift_opened [14:48:10]FM_GetShiftState [14:48:10]SAM_PROTO_GetShiftState [14:48:10]wFMCommunicate request_size=4 [14:48:10]MH_SAM_APDU [14:48:10]CAPDU: 80 13 01 00 [14:48:10]Write to MH i2c: E2 08 00 D0 01 80 13 01 00 00 00 00 00 4E [14:48:10]Write i2c OK [14:48:10]MH_I2C_Read... [14:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:10]Read from MH i2c: E2 [14:48:10]MH_I2C_Read... [14:48:10]Read from MH i2c: E2 0E 00 [14:48:10]MH_I2C_Read... [14:48:10]Read from MH i2c: E2 0E 00 D0 01 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 08 [14:48:10]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [14:48:10]wFMCommunicate OK [14:48:10]SAM_PROTO_GetShiftState done [14:48:10]FM_GetShiftState done [14:48:10]req_shift_opened done [14:48:10]requested_item shift.open_date is exist - process it [14:48:10]req_shift_open_date [14:48:10]req_shift_open_date done [14:48:10]produce_requested_data done [14:48:10]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50002,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [14:48:10]process_action_free close_receipt [14:48:10]json_value_free [14:48:10]json_value_free done [14:48:10]process_json_proto returns [14:48:10]Send response to host [14:48:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50002,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [14:48:10]free response buf [14:48:10]execute_script done [14:48:10]execute_script returns [14:48:10]free content buf [14:48:10]Sock 9.Close socket [14:48:10]Sock 9.Thread stoped [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:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:34]accept exits with 7 [14:55:34]New connection [14:55:34]New thread 3066613092 created [14:55:34]Thread 3066469732 joined [14:55:34]Waiting for new connection... [14:55:34] Sock 7.Parse request [14:55:34]Sock 7.Check first char [14:55:34]Sock 7.First char is OK [14:55:34]request: POST /json_proto HTTP/1.0 [14:55:34]Method: POST [14:55:34]URL: /json_proto [14:55:34]Method is POST - this is cgi request [14:55:34]url: /json_proto [14:55:34]query_string will be loaded in cgi processing [14:55:34]execute_cgi json_proto POST (null) [14:55:34]execute_cgi path=json_proto method=POST [14:55:34]POST find Content-Length [14:55:34]Host: 172.17.46.196:8080 [14:55:34]Content-Length: 614 [14:55:34]Content-Type: application/json [14:55:34] [14:55:34]POST finish read [14:55:34]Found Content-Length = 614 [14:55:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190136", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:34]execute_script... [14:55: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)190136", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:34]POST & json_proto [14:55:34]process_json_proto [14:55:34]json parsed OK: [14:55:34]protocol is kg_v1.0 [14:55:34]action value=close_receipt [14:55:34]process_action close_receipt [14:55:34]cmd_close_receipt [14:55:34]MH_GetDate [14:55:34]Write to MH i2c: F0 00 00 D1 01 C1 [14:55:34]Write i2c OK [14:55:34]MH_I2C_Read... [14:55:34]Read from MH i2c: F0 [14:55:34]MH_I2C_Read... [14:55:34]Read from MH i2c: F0 09 00 [14:55:34]MH_I2C_Read... [14:55:34]Read from MH i2c: F0 09 00 D1 01 00 E6 5C C3 66 C4 85 C2 66 A6 [14:55:34]GetLastDocTimeStamp 1724078887 [14:55:34]current date 1724079334 [14:55:34]FM_GetShiftState [14:55:34]SAM_PROTO_GetShiftState [14:55:34]wFMCommunicate request_size=4 [14:55:34]MH_SAM_APDU [14:55:34]CAPDU: 80 13 01 00 [14:55:34]Write to MH i2c: E2 08 00 D2 01 80 13 01 00 00 00 00 00 50 [14:55:34]Write i2c OK [14:55:34]MH_I2C_Read... [14:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:34]Read from MH i2c: E2 [14:55:34]MH_I2C_Read... [14:55:34]Read from MH i2c: E2 0E 00 [14:55:34]MH_I2C_Read... [14:55:34]Read from MH i2c: E2 0E 00 D2 01 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 0A [14:55:34]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [14:55:34]wFMCommunicate OK [14:55:34]SAM_PROTO_GetShiftState done [14:55:34]FM_GetShiftState done [14:55:34]opened in 1724026361 [14:55:34]opened+sec_in_day 1724112761 [14:55:34]quantity*price = 21000 [14:55:34]sum+1 = 21001 [14:55:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 110 19.08.2024 14:55 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50003 ФПД: 99576138751583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T145534&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50003&fm=99576138751583&tin=02508201610067®Number=0000000000092546&sum=21000 0 [14:55:35]StoreToDocumentArchive [14:55:35]shift 467 fd 50003 [14:55:35]save to /storage/0467/doc_00050003 [14:55:35]save last doc name /storage/0467/doc_00050003 to /storage/kkm_last_doc_name [14:55:35]save OK [14:55:35]Clear old archive folders... [14:55:35]ProcessDocumentItem done err = 0, tmpTLVsize=266 [14:55:35]tlvbuf is 0126E370 [14:55:35]SAM_PROTO_ClearQueue [14:55:35]wFMCommunicate request_size=4 [14:55:35]MH_SAM_APDU [14:55:35]CAPDU: 80 09 00 00 [14:55:35]Write to MH i2c: E2 08 00 DF 01 80 09 00 00 00 00 00 00 52 [14:55:35]Write i2c OK [14:55:35]MH_I2C_Read... [14:55:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:35]Read from MH i2c: E2 [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: E2 03 00 [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: E2 03 00 DF 01 00 90 00 54 [14:55:35]RAPDU: 90 00 [14:55:35]wFMCommunicate OK [14:55:35]SAM_PROTO_ClearQueue done [14:55:35]KKMCreateOFDPacket [14:55:35]OFDProtocolAddRootSTLVToBuf [14:55:35]FM_MakeSignedData [14:55:35]FM_MakeSignedData [14:55:35]SAM_PROTO_SignData [14:55:35]wFMCommunicate request_size=4 [14:55:35]MH_SAM_APDU [14:55:35]CAPDU: 80 0D 01 02 [14:55:35]Write to MH i2c: E2 08 00 E0 01 80 0D 01 02 00 00 00 00 5A [14:55:35]Write i2c OK [14:55:35]MH_I2C_Read... [14:55:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:35]Read from MH i2c: E2 [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: E2 03 00 [14:55:35]MH_I2C_Read... [14:55:35]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [14:55:35]RAPDU: 90 00 [14:55:35]wFMCommunicate OK [14:55:35]wFMCommunicate request_size=255 [14:55:35]MH_SAM_APDU [14:55:35]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E6 5C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [14:55:35]Write to MH i2c: E2 02 01 E1 01 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E6 5C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 E9 [14:55:35]Write i2c OK [14:55:35]MH_I2C_Read... [14:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:36]Read from MH i2c: E2 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 03 00 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [14:55:36]RAPDU: 90 00 [14:55:36]wFMCommunicate OK [14:55:36]wFMCommunicate request_size=25 [14:55:36]MH_SAM_APDU [14:55:36]CAPDU: 80 0D 02 02 14 30 30 10 04 04 00 53 C3 00 00 35 04 06 00 5A 90 60 60 DE 5F [14:55:36]Write to MH i2c: E2 1C 00 E2 01 80 0D 02 02 14 00 30 30 10 04 04 00 53 C3 00 00 35 04 06 00 5A 90 60 60 DE 5F 00 00 39 [14:55:36]Write i2c OK [14:55:36]MH_I2C_Read... [14:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:36]Read from MH i2c: E2 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 03 00 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 03 00 E2 01 00 90 00 57 [14:55:36]RAPDU: 90 00 [14:55:36]wFMCommunicate OK [14:55:36]wFMCommunicate request_size=4 [14:55:36]MH_SAM_APDU [14:55:36]CAPDU: 80 0D 03 02 [14:55:36]Write to MH i2c: E2 08 00 E3 01 80 0D 03 02 00 00 00 00 5F [14:55:36]Write i2c OK [14:55:36]MH_I2C_Read... [14:55:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:36]Read from MH i2c: E2 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 0B 00 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 0B 00 E3 01 00 35 B3 E4 A8 32 43 FF 16 90 00 5E [14:55:36]RAPDU: 35 B3 E4 A8 32 43 FF 16 90 00 [14:55:36]wFMCommunicate OK [14:55:36]SAM_PROTO_SignData done [14:55:36]FM_MakeSignedData done [14:55:36]CreateOFDProtocolMessage [14:55:36]wFMCommunicate request_size=4 [14:55:36]MH_SAM_APDU [14:55:36]CAPDU: 80 11 00 00 [14:55:36]Write to MH i2c: E2 08 00 E4 01 80 11 00 00 00 00 00 00 5F [14:55:36]Write i2c OK [14:55:36]MH_I2C_Read... [14:55:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:36]Read from MH i2c: E2 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 17 00 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: E2 17 00 E4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AA [14:55:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:55:36]wFMCommunicate OK [14:55:36]CreateOFDProtocolMessage done [14:55:36]OFDSenderStorePacket 50003 [14:55:36]StoreOFDPacket docnum=50003 [14:55:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 8E 21 16 01 A1 42 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E6 5C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 53 C3 00 00 35 04 06 00 5A 90 60 60 DE 5F 35 B3 E4 A8 32 43 FF 16 [14:55:36]CheckFolder [14:55:36]dirname=/storage/ofd_packets [14:55:36]CheckFolder done [14:55:36]ProducePacketName [14:55:36]name=ofd_packets/00050003 [14:55:36]NVStorageSaveData ofd_packets/00050003 [14:55:36]File name is /storage/ofd_packets/00050003 [14:55:36]Write 316 bytes [14:55:36]NVStorageSaveData done [14:55:36]OFDSenderStorePacket done [14:55:36]KKMCreateOFDPacket done [14:55:36]NVStorageSaveData kkm_last_timestamp [14:55:36]File name is /storage/kkm_last_timestamp [14:55:36]Write 4 bytes [14:55:36]NVStorageSaveData done [14:55:36]ExternCall_PrintAddStr [14:55:36]wPrintStart [14:55:36]Write to MH i2c: 01 00 00 E5 01 E6 [14:55:36]Write i2c OK [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: 01 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: 01 07 00 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: 01 07 00 E5 01 00 00 00 00 00 FF 0F FB [14:55:36]RasterBufferAndPrint [14:55:36]line Счет N : (3)190136 [14:55:36]line ИНН: 02508201610067 [14:55:36]line Контрольно-Кассовый Чек [14:55:36]line ПРОДАЖА [14:55:36]line Товар: 4870001570095 [14:55:36]line Напиток Pepsi 2л [14:55:36]line 1.000 * 210.00 [14:55:36]line = 210.00 [14:55:36]line НДС 12% НСП 1% [14:55:36]line > о реализуемом товаре [14:55:36]line ИТОГО: 210.00 [14:55:36]line НСП 1% : 1.86 [14:55:36]line НДС 12% : 22.30 [14:55:36]line Наличными: 210.00 [14:55:36]line Безнал.: 0.00 [14:55:36]line Место: АЗС № 95 "Партнер Нефть" [14:55:36]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:55:36]line СНО: Общий режим [14:55:36]line Чек 110 19.08.2024 14:55 [14:55:36]line Смена: 467 ФФД: 1.0 [14:55:36]line ЗНМ: 0300000078 [14:55:36]line РНМ: 0000000000092546 [14:55:36]line Версия ККМ: 001 [14:55:36]line ФМ: 0000000000871800 [14:55:36]line ФД: 50003 [14:55:36]line ФПД: 99576138751583 [14:55:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T145534&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50003&fm=99576138751583&tin=02508201610067®Number=0000000000092546&sum=21000 [14:55:36]OFD Sender: Processing packet 50003 [packets to send 21, broken 20] [14:55:36]ProducePacketName [14:55:36]name=ofd_packets/00050003 [14:55:36]OFD Sender: To server: pG, [14:55:36]CommunicateWithHost lk.salyk.kg:30040 [14:55:36]ConnectInit lk.salyk.kg [14:55:36]line 0 [14:55:36]written 0, free lines is 4095 [14:55:36]Connected sock=10 [14:55:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 8E 21 16 01 A1 42 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 E6 5C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 53 C3 00 00 35 04 06 00 5A 90 60 60 DE 5F 35 B3 E4 A8 32 43 FF 16 [14:55:37]Write to MH i2c: 01 00 00 0D 02 0F [14:55:37]Write i2c OK [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: 01 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: 01 07 00 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: 01 07 00 0D 02 00 00 00 00 00 EC 0C 0E [14:55:37]RasterBufferAndPrint [14:55:37]line [14:55:37]line [14:55:37]line [14:55:37]line [14:55:37]line [14:55:37]written 0, free lines is 3314 [14:55:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 47 B8 47 00 97 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 53 C3 00 00 F4 03 04 00 53 07 C3 66 B6 04 01 00 00 EB D3 17 15 D2 3F F0 B0 [14:55:37]CommunicateWithHost err = 0 [14:55:37]CheckOFDResponse [14:55:37]1017 (14) - 77093643461234 [14:55:37]1041 (16) - 0000000000871800 [14:55:37]1040 (4) - 50003 [14:55:37]1012 (4) - 19.08.2024 08:50 [14:55:37]1206 (1) - 0 [14:55:37]OFD Sender: Remove packet 50003 [14:55:37]ProducePacketName [14:55:37]name=ofd_packets/00050003 [14:55:37]NVStorageDeleteData [14:55:37]MH_Cut [14:55:37]Write to MH i2c: D1 01 00 14 02 01 E8 [14:55:37]Write i2c OK [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: D1 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: D1 01 00 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: D1 01 00 14 02 00 E7 [14:55:37]Write to MH i2c: 01 00 00 15 02 17 [14:55:37]Write i2c OK [14:55:37]MH_I2C_Read... [14:55:37]OFD Sender: No OFD packet to send [14:55:37]*** Cut start [14:55:37]*** Purtial cut [14:55:37]*** CUTSNS_PIN = 0 [14:55:38]*** Stage 1: CUTSNS_PIN = 1 [14:55:39]Read from MH i2c: 01 [14:55:39]*** Stop cut motor [14:55:39]*** Cut end [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: 01 07 00 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: 01 07 00 15 02 00 00 00 00 00 FF 0F 2C [14:55:39]process_action close_receipt done [14:55:39]requested_data is exist [14:55:39]produce_requested_data [14:55:39]requested_item fm.sn is exist - process it [14:55:39]wFMCommunicate request_size=4 [14:55:39]MH_SAM_APDU [14:55:39]CAPDU: 80 11 00 00 [14:55:39]Write to MH i2c: E2 08 00 16 02 80 11 00 00 00 00 00 00 92 [14:55:39]Write i2c OK [14:55:39]MH_I2C_Read... [14:55:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:39]Read from MH i2c: E2 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: E2 17 00 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: E2 17 00 16 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DD [14:55:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:55:39]wFMCommunicate OK [14:55:39]requested_item fd.num is exist - process it [14:55:39]SAM_PROTO_GetFieldsCounters [14:55:39]wFMCommunicate request_size=4 [14:55:39]MH_SAM_APDU [14:55:39]CAPDU: 80 13 00 00 [14:55:39]Write to MH i2c: E2 08 00 17 02 80 13 00 00 00 00 00 00 95 [14:55:39]Write i2c OK [14:55:39]MH_I2C_Read... [14:55:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:40]Read from MH i2c: E2 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 62 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 62 00 17 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 53 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [14:55:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 53 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:40]wFMCommunicate OK [14:55:40]SAM_PROTO_GetFieldsCounters done [14:55:40]requested_item shift.num is exist - process it [14:55:40]requested_item shift.opened is exist - process it [14:55:40]req_shift_opened [14:55:40]FM_GetShiftState [14:55:40]SAM_PROTO_GetShiftState [14:55:40]wFMCommunicate request_size=4 [14:55:40]MH_SAM_APDU [14:55:40]CAPDU: 80 13 01 00 [14:55:40]Write to MH i2c: E2 08 00 18 02 80 13 01 00 00 00 00 00 97 [14:55:40]Write i2c OK [14:55:40]MH_I2C_Read... [14:55:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:40]Read from MH i2c: E2 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 0E 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 0E 00 18 02 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 51 [14:55:40]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [14:55:40]wFMCommunicate OK [14:55:40]SAM_PROTO_GetShiftState done [14:55:40]FM_GetShiftState done [14:55:40]req_shift_opened done [14:55:40]requested_item shift.open_date is exist - process it [14:55:40]req_shift_open_date [14:55:40]req_shift_open_date done [14:55:40]produce_requested_data done [14:55:40]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50003,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [14:55:40]process_action_free close_receipt [14:55:40]json_value_free [14:55:40]json_value_free done [14:55:40]process_json_proto returns [14:55:40]Send response to host [14:55:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50003,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [14:55:40]free response buf [14:55:40]execute_script done [14:55:40]execute_script returns [14:55:40]free content buf [14:55:40]Sock 7.Close socket [14:55:40]Sock 7.Thread stoped [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:38]accept exits with 9 [14:58:38]New connection [14:58:38]New thread 3066469732 created [14:58:38]Thread 3066613092 joined [14:58:38]Waiting for new connection... [14:58:38] Sock 9.Parse request [14:58:38]Sock 9.Check first char [14:58:38]Sock 9.First char is OK [14:58:38]request: POST /json_proto HTTP/1.0 [14:58:38]Method: POST [14:58:38]URL: /json_proto [14:58:38]Method is POST - this is cgi request [14:58:38]url: /json_proto [14:58:38]query_string will be loaded in cgi processing [14:58:38]execute_cgi json_proto POST (null) [14:58:38]execute_cgi path=json_proto method=POST [14:58:38]POST find Content-Length [14:58:38]Host: 172.17.46.196:8080 [14:58:38]Content-Length: 621 [14:58:38]Content-Type: application/json [14:58:38] [14:58:38]POST finish read [14:58:38]Found Content-Length = 621 [14:58:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190137", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:38]execute_script... [14:58:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190137", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:38]POST & json_proto [14:58:38]process_json_proto [14:58:38]json parsed OK: [14:58:38]protocol is kg_v1.0 [14:58:38]action value=close_receipt [14:58:38]process_action close_receipt [14:58:38]cmd_close_receipt [14:58:38]MH_GetDate [14:58:38]Write to MH i2c: F0 00 00 19 02 0A [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: F0 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: F0 09 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: F0 09 00 19 02 00 9E 5D C3 66 C4 85 C2 66 A8 [14:58:38]GetLastDocTimeStamp 1724079334 [14:58:38]current date 1724079518 [14:58:38]FM_GetShiftState [14:58:38]SAM_PROTO_GetShiftState [14:58:38]wFMCommunicate request_size=4 [14:58:38]MH_SAM_APDU [14:58:38]CAPDU: 80 13 01 00 [14:58:38]Write to MH i2c: E2 08 00 1A 02 80 13 01 00 00 00 00 00 99 [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:38]Read from MH i2c: E2 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 0E 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: E2 0E 00 1A 02 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 53 [14:58:38]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [14:58:38]wFMCommunicate OK [14:58:38]SAM_PROTO_GetShiftState done [14:58:38]FM_GetShiftState done [14:58:38]opened in 1724026361 [14:58:38]opened+sec_in_day 1724112761 [14:58:38]quantity*price = 14000 [14:58:38]sum+1 = 14001 [14:58:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 111 19.08.2024 14:58 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50004 ФПД: 44627295220243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T145838&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50004&fm=44627295220243&tin=02508201610067®Number=0000000000092546&sum=14000 0 [14:58:39]StoreToDocumentArchive [14:58:39]shift 467 fd 50004 [14:58:39]save to /storage/0467/doc_00050004 [14:58:39]save last doc name /storage/0467/doc_00050004 to /storage/kkm_last_doc_name [14:58:39]save OK [14:58:39]Clear old archive folders... [14:58:39]ProcessDocumentItem done err = 0, tmpTLVsize=273 [14:58:39]tlvbuf is 011E4C90 [14:58:39]SAM_PROTO_ClearQueue [14:58:39]wFMCommunicate request_size=4 [14:58:39]MH_SAM_APDU [14:58:39]CAPDU: 80 09 00 00 [14:58:39]Write to MH i2c: E2 08 00 27 02 80 09 00 00 00 00 00 00 9B [14:58:39]Write i2c OK [14:58:39]MH_I2C_Read... [14:58:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:39]Read from MH i2c: E2 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 03 00 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 03 00 27 02 00 90 00 9D [14:58:39]RAPDU: 90 00 [14:58:39]wFMCommunicate OK [14:58:39]SAM_PROTO_ClearQueue done [14:58:39]KKMCreateOFDPacket [14:58:39]OFDProtocolAddRootSTLVToBuf [14:58:39]FM_MakeSignedData [14:58:39]FM_MakeSignedData [14:58:39]SAM_PROTO_SignData [14:58:39]wFMCommunicate request_size=4 [14:58:39]MH_SAM_APDU [14:58:39]CAPDU: 80 0D 01 02 [14:58:39]Write to MH i2c: E2 08 00 28 02 80 0D 01 02 00 00 00 00 A3 [14:58:39]Write i2c OK [14:58:39]MH_I2C_Read... [14:58:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:39]Read from MH i2c: E2 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 03 00 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 03 00 28 02 00 90 00 9E [14:58:39]RAPDU: 90 00 [14:58:39]wFMCommunicate OK [14:58:39]wFMCommunicate request_size=255 [14:58:39]MH_SAM_APDU [14:58:39]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 9E 5D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [14:58:39]Write to MH i2c: E2 02 01 29 02 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 9E 5D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 00 [14:58:39]Write i2c OK [14:58:39]MH_I2C_Read... [14:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:40]Read from MH i2c: E2 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 03 00 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 03 00 29 02 00 90 00 9F [14:58:40]RAPDU: 90 00 [14:58:40]wFMCommunicate OK [14:58:40]wFMCommunicate request_size=32 [14:58:40]MH_SAM_APDU [14:58:40]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 54 C3 00 00 35 04 06 00 28 96 9A 14 32 13 [14:58:40]Write to MH i2c: E2 23 00 2A 02 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 54 C3 00 00 35 04 06 00 28 96 9A 14 32 13 00 00 C3 [14:58:40]Write i2c OK [14:58:40]MH_I2C_Read... [14:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:40]Read from MH i2c: E2 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 03 00 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 03 00 2A 02 00 90 00 A0 [14:58:40]RAPDU: 90 00 [14:58:40]wFMCommunicate OK [14:58:40]wFMCommunicate request_size=4 [14:58:40]MH_SAM_APDU [14:58:40]CAPDU: 80 0D 03 02 [14:58:40]Write to MH i2c: E2 08 00 2B 02 80 0D 03 02 00 00 00 00 A8 [14:58:40]Write i2c OK [14:58:40]MH_I2C_Read... [14:58:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:40]Read from MH i2c: E2 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 0B 00 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 0B 00 2B 02 00 B1 C1 9A 5D 43 BC 91 12 90 00 B4 [14:58:40]RAPDU: B1 C1 9A 5D 43 BC 91 12 90 00 [14:58:40]wFMCommunicate OK [14:58:40]SAM_PROTO_SignData done [14:58:40]FM_MakeSignedData done [14:58:40]CreateOFDProtocolMessage [14:58:40]wFMCommunicate request_size=4 [14:58:40]MH_SAM_APDU [14:58:40]CAPDU: 80 11 00 00 [14:58:40]Write to MH i2c: E2 08 00 2C 02 80 11 00 00 00 00 00 00 A8 [14:58:40]Write i2c OK [14:58:40]MH_I2C_Read... [14:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:40]Read from MH i2c: E2 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 17 00 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 17 00 2C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F3 [14:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:58:40]wFMCommunicate OK [14:58:40]CreateOFDProtocolMessage done [14:58:40]OFDSenderStorePacket 50004 [14:58:40]StoreOFDPacket docnum=50004 [14:58:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 A2 35 1D 01 FC AB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 9E 5D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 54 C3 00 00 35 04 06 00 28 96 9A 14 32 13 B1 C1 9A 5D 43 BC 91 12 [14:58:40]CheckFolder [14:58:40]dirname=/storage/ofd_packets [14:58:40]CheckFolder done [14:58:40]ProducePacketName [14:58:40]name=ofd_packets/00050004 [14:58:40]NVStorageSaveData ofd_packets/00050004 [14:58:40]File name is /storage/ofd_packets/00050004 [14:58:40]Write 323 bytes [14:58:40]NVStorageSaveData done [14:58:40]OFDSenderStorePacket done [14:58:40]KKMCreateOFDPacket done [14:58:40]NVStorageSaveData kkm_last_timestamp [14:58:40]File name is /storage/kkm_last_timestamp [14:58:40]Write 4 bytes [14:58:40]NVStorageSaveData done [14:58:40]ExternCall_PrintAddStr [14:58:40]wPrintStart [14:58:40]Write to MH i2c: 01 00 00 2D 02 2F [14:58:40]Write i2c OK [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: 01 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: 01 07 00 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: 01 07 00 2D 02 00 00 00 00 00 FF 0F 44 [14:58:40]RasterBufferAndPrint [14:58:40]line Счет N : (3)190137 [14:58:40]line ИНН: 02508201610067 [14:58:40]line Контрольно-Кассовый Чек [14:58:40]line ПРОДАЖА [14:58:40]line Товар: 48743570 [14:58:40]line Сигареты Winston XStyle Blue [14:58:40]line 1.000 * 140.00 [14:58:40]line = 140.00 [14:58:40]line НДС 12% НСП 1% [14:58:40]line > о реализуемом товаре [14:58:40]line ИТОГО: 140.00 [14:58:40]line НСП 1% : 1.24 [14:58:40]line НДС 12% : 14.87 [14:58:40]line Наличными: 140.00 [14:58:40]line Безнал.: 0.00 [14:58:40]line Место: АЗС № 95 "Партнер Нефть" [14:58:40]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:58:40]line СНО: Общий режим [14:58:40]line Чек 111 19.08.2024 14:58 [14:58:40]line Смена: 467 ФФД: 1.0 [14:58:40]line ЗНМ: 0300000078 [14:58:40]line РНМ: 0000000000092546 [14:58:40]line Версия ККМ: 001 [14:58:40]line ФМ: 0000000000871800 [14:58:40]line ФД: 50004 [14:58:40]line ФПД: 44627295220243 [14:58:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T145838&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50004&fm=44627295220243&tin=02508201610067®Number=0000000000092546&sum=14000 [14:58:40]OFD Sender: Processing packet 50004 [packets to send 21, broken 20] [14:58:40]ProducePacketName [14:58:40]name=ofd_packets/00050004 [14:58:40]OFD Sender: To server: pG, [14:58:40]CommunicateWithHost lk.salyk.kg:30040 [14:58:40]ConnectInit lk.salyk.kg [14:58:40]line 0 [14:58:40]written 0, free lines is 4095 [14:58:40]Connected sock=10 [14:58:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 A2 35 1D 01 FC AB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 9E 5D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 54 C3 00 00 35 04 06 00 28 96 9A 14 32 13 B1 C1 9A 5D 43 BC 91 12 [14:58:41]Write to MH i2c: 01 00 00 55 02 57 [14:58:41]Write i2c OK [14:58:41]MH_I2C_Read... [14:58:41]Read from MH i2c: 01 [14:58:41]MH_I2C_Read... [14:58:41]Read from MH i2c: 01 07 00 [14:58:41]MH_I2C_Read... [14:58:41]Read from MH i2c: 01 07 00 55 02 00 00 00 00 00 E5 0C 4F [14:58:41]RasterBufferAndPrint [14:58:41]line [14:58:41]line [14:58:41]line [14:58:41]line [14:58:41]line [14:58:41]written 0, free lines is 3306 [14:58:41]MH_Cut [14:58:41]Write to MH i2c: D1 01 00 5C 02 01 30 [14:58:41]Write i2c OK [14:58:41]MH_I2C_Read... [14:58:41]Read from MH i2c: D1 [14:58:41]MH_I2C_Read... [14:58:41]Read from MH i2c: D1 01 00 [14:58:41]MH_I2C_Read... [14:58:41]Read from MH i2c: D1 01 00 5C 02 00 2F [14:58:41]Write to MH i2c: 01 00 00 5D 02 5F [14:58:41]Write i2c OK [14:58:41]MH_I2C_Read... [14:58:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C2 E0 47 00 F4 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 54 C3 00 00 F4 03 04 00 0C 08 C3 66 B6 04 01 00 00 46 8A FC C2 95 CE F7 4E [14:58:41]CommunicateWithHost err = 0 [14:58:41]CheckOFDResponse [14:58:41]1017 (14) - 77093643461234 [14:58:41]1041 (16) - 0000000000871800 [14:58:41]1040 (4) - 50004 [14:58:41]1012 (4) - 19.08.2024 08:53 [14:58:41]1206 (1) - 0 [14:58:41]OFD Sender: Remove packet 50004 [14:58:41]ProducePacketName [14:58:41]name=ofd_packets/00050004 [14:58:41]NVStorageDeleteData [14:58:41]OFD Sender: No OFD packet to send [14:58:41]*** Cut start [14:58:41]*** Purtial cut [14:58:41]*** Stage 1: CUTSNS_PIN = 1 [14:58:41]Read from MH i2c: 01 [14:58:41]MH_I2C_Read... [14:58:41]*** Stop cut motor [14:58:41]*** Cut end [14:58:41]Read from MH i2c: 01 07 00 [14:58:41]MH_I2C_Read... [14:58:41]Read from MH i2c: 01 07 00 5D 02 00 00 00 00 00 FF 0F 74 [14:58:41]process_action close_receipt done [14:58:41]requested_data is exist [14:58:41]produce_requested_data [14:58:41]requested_item fm.sn is exist - process it [14:58:41]wFMCommunicate request_size=4 [14:58:41]MH_SAM_APDU [14:58:41]CAPDU: 80 11 00 00 [14:58:41]Write to MH i2c: E2 08 00 5E 02 80 11 00 00 00 00 00 00 DA [14:58:41]Write i2c OK [14:58:41]MH_I2C_Read... [14:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:42]Read from MH i2c: E2 [14:58:42]MH_I2C_Read... [14:58:42]Read from MH i2c: E2 17 00 [14:58:42]MH_I2C_Read... [14:58:42]Read from MH i2c: E2 17 00 5E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 25 [14:58:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:58:42]wFMCommunicate OK [14:58:42]requested_item fd.num is exist - process it [14:58:42]SAM_PROTO_GetFieldsCounters [14:58:42]wFMCommunicate request_size=4 [14:58:42]MH_SAM_APDU [14:58:42]CAPDU: 80 13 00 00 [14:58:42]Write to MH i2c: E2 08 00 5F 02 80 13 00 00 00 00 00 00 DD [14:58:42]Write i2c OK [14:58:42]MH_I2C_Read... [14:58:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:42]Read from MH i2c: E2 [14:58:42]MH_I2C_Read... [14:58:42]Read from MH i2c: E2 62 00 [14:58:42]MH_I2C_Read... [14:58:42]Read from MH i2c: E2 62 00 5F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 54 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [14:58:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 54 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:42]wFMCommunicate OK [14:58:42]SAM_PROTO_GetFieldsCounters done [14:58:42]requested_item shift.num is exist - process it [14:58:42]requested_item shift.opened is exist - process it [14:58:42]req_shift_opened [14:58:42]FM_GetShiftState [14:58:42]SAM_PROTO_GetShiftState [14:58:42]wFMCommunicate request_size=4 [14:58:42]MH_SAM_APDU [14:58:42]CAPDU: 80 13 01 00 [14:58:42]Write to MH i2c: E2 08 00 60 02 80 13 01 00 00 00 00 00 DF [14:58:42]Write i2c OK [14:58:42]MH_I2C_Read... [14:58:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:42]Read from MH i2c: E2 [14:58:42]MH_I2C_Read... [14:58:42]Read from MH i2c: E2 0E 00 [14:58:42]MH_I2C_Read... [14:58:42]Read from MH i2c: E2 0E 00 60 02 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 99 [14:58:42]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [14:58:42]wFMCommunicate OK [14:58:42]SAM_PROTO_GetShiftState done [14:58:42]FM_GetShiftState done [14:58:42]req_shift_opened done [14:58:42]requested_item shift.open_date is exist - process it [14:58:42]req_shift_open_date [14:58:42]req_shift_open_date done [14:58:42]produce_requested_data done [14:58:42]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50004,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [14:58:42]process_action_free close_receipt [14:58:42]json_value_free [14:58:42]json_value_free done [14:58:42]process_json_proto returns [14:58:42]Send response to host [14:58:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50004,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [14:58:42]free response buf [14:58:42]execute_script done [14:58:42]execute_script returns [14:58:42]free content buf [14:58:42]Sock 9.Close socket [14:58:42]Sock 9.Thread stoped [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:38]accept exits with 7 [15:02:38]New connection [15:02:38]New thread 3066613092 created [15:02:38]Thread 3066469732 joined [15:02:38]Waiting for new connection... [15:02:38] Sock 7.Parse request [15:02:38]Sock 7.Check first char [15:02:38]Sock 7.First char is OK [15:02:38]request: POST /json_proto HTTP/1.0 [15:02:38]Method: POST [15:02:38]URL: /json_proto [15:02:38]Method is POST - this is cgi request [15:02:38]url: /json_proto [15:02:38]query_string will be loaded in cgi processing [15:02:38]execute_cgi json_proto POST (null) [15:02:38]execute_cgi path=json_proto method=POST [15:02:38]POST find Content-Length [15:02:38]Host: 172.17.46.196:8080 [15:02:38]Content-Length: 895 [15:02:38]Content-Type: application/json [15:02:38] [15:02:38]POST finish read [15:02:38]Found Content-Length = 895 [15:02:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190138", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 345.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:38]execute_script... [15:02:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190138", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 345.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:38]POST & json_proto [15:02:38]process_json_proto [15:02:38]json parsed OK: [15:02:38]protocol is kg_v1.0 [15:02:38]action value=close_receipt [15:02:38]process_action close_receipt [15:02:38]cmd_close_receipt [15:02:38]MH_GetDate [15:02:38]Write to MH i2c: F0 00 00 61 02 52 [15:02:38]Write i2c OK [15:02:38]MH_I2C_Read... [15:02:38]Read from MH i2c: F0 [15:02:38]MH_I2C_Read... [15:02:38]Read from MH i2c: F0 09 00 [15:02:38]MH_I2C_Read... [15:02:38]Read from MH i2c: F0 09 00 61 02 00 8E 5E C3 66 C4 85 C2 66 E1 [15:02:38]GetLastDocTimeStamp 1724079518 [15:02:38]current date 1724079758 [15:02:38]FM_GetShiftState [15:02:38]SAM_PROTO_GetShiftState [15:02:38]wFMCommunicate request_size=4 [15:02:38]MH_SAM_APDU [15:02:38]CAPDU: 80 13 01 00 [15:02:38]Write to MH i2c: E2 08 00 62 02 80 13 01 00 00 00 00 00 E1 [15:02:38]Write i2c OK [15:02:38]MH_I2C_Read... [15:02:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:38]Read from MH i2c: E2 [15:02:38]MH_I2C_Read... [15:02:38]Read from MH i2c: E2 0E 00 [15:02:38]MH_I2C_Read... [15:02:38]Read from MH i2c: E2 0E 00 62 02 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 9B [15:02:38]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:02:38]wFMCommunicate OK [15:02:38]SAM_PROTO_GetShiftState done [15:02:38]FM_GetShiftState done [15:02:38]opened in 1724026361 [15:02:38]opened+sec_in_day 1724112761 [15:02:38]quantity*price = 20500 [15:02:38]sum+1 = 20501 [15:02:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 345.00 НСП 1% : 3.05 НДС 12% : 36.64 Наличными: 345.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 112 19.08.2024 15:02 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50005 ФПД: 180151908423531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T150238&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50005&fm=180151908423531&tin=02508201610067®Number=0000000000092546&sum=34500 0 [15:02:39]StoreToDocumentArchive [15:02:39]shift 467 fd 50005 [15:02:39]save to /storage/0467/doc_00050005 [15:02:39]save last doc name /storage/0467/doc_00050005 to /storage/kkm_last_doc_name [15:02:39]save OK [15:02:39]Clear old archive folders... [15:02:39]ProcessDocumentItem done err = 0, tmpTLVsize=381 [15:02:39]tlvbuf is 011E5F30 [15:02:39]SAM_PROTO_ClearQueue [15:02:39]wFMCommunicate request_size=4 [15:02:39]MH_SAM_APDU [15:02:39]CAPDU: 80 09 00 00 [15:02:39]Write to MH i2c: E2 08 00 6F 02 80 09 00 00 00 00 00 00 E3 [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:39]Read from MH i2c: E2 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 03 00 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [15:02:39]RAPDU: 90 00 [15:02:39]wFMCommunicate OK [15:02:39]SAM_PROTO_ClearQueue done [15:02:39]KKMCreateOFDPacket [15:02:39]OFDProtocolAddRootSTLVToBuf [15:02:39]FM_MakeSignedData [15:02:39]FM_MakeSignedData [15:02:39]SAM_PROTO_SignData [15:02:39]wFMCommunicate request_size=4 [15:02:39]MH_SAM_APDU [15:02:39]CAPDU: 80 0D 01 02 [15:02:39]Write to MH i2c: E2 08 00 70 02 80 0D 01 02 00 00 00 00 EB [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:39]Read from MH i2c: E2 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 03 00 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 03 00 70 02 00 90 00 E6 [15:02:39]RAPDU: 90 00 [15:02:39]wFMCommunicate OK [15:02:39]wFMCommunicate request_size=255 [15:02:39]MH_SAM_APDU [15:02:39]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 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 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 [15:02:39]Write to MH i2c: E2 02 01 71 02 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 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 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 04 [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:40]Read from MH i2c: E2 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 03 00 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 03 00 71 02 00 90 00 E7 [15:02:40]RAPDU: 90 00 [15:02:40]wFMCommunicate OK [15:02:40]wFMCommunicate request_size=140 [15:02:40]MH_SAM_APDU [15:02:40]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 8E 5E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 55 C3 00 00 35 04 06 00 A3 D8 E2 81 D7 6B [15:02:40]Write to MH i2c: E2 8F 00 72 02 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 8E 5E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 55 C3 00 00 35 04 06 00 A3 D8 E2 81 D7 6B 00 00 5B [15:02:40]Write i2c OK [15:02:40]MH_I2C_Read... [15:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:40]Read from MH i2c: E2 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 03 00 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 03 00 72 02 00 90 00 E8 [15:02:40]RAPDU: 90 00 [15:02:40]wFMCommunicate OK [15:02:40]wFMCommunicate request_size=4 [15:02:40]MH_SAM_APDU [15:02:40]CAPDU: 80 0D 03 02 [15:02:40]Write to MH i2c: E2 08 00 73 02 80 0D 03 02 00 00 00 00 F0 [15:02:40]Write i2c OK [15:02:40]MH_I2C_Read... [15:02:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:40]Read from MH i2c: E2 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 0B 00 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 0B 00 73 02 00 0C E6 08 16 74 7D 04 1E 90 00 14 [15:02:40]RAPDU: 0C E6 08 16 74 7D 04 1E 90 00 [15:02:40]wFMCommunicate OK [15:02:40]SAM_PROTO_SignData done [15:02:40]FM_MakeSignedData done [15:02:40]CreateOFDProtocolMessage [15:02:40]wFMCommunicate request_size=4 [15:02:40]MH_SAM_APDU [15:02:40]CAPDU: 80 11 00 00 [15:02:40]Write to MH i2c: E2 08 00 74 02 80 11 00 00 00 00 00 00 F0 [15:02:40]Write i2c OK [15:02:40]MH_I2C_Read... [15:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:40]Read from MH i2c: E2 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 17 00 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: E2 17 00 74 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3B [15:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:02:40]wFMCommunicate OK [15:02:40]CreateOFDProtocolMessage done [15:02:40]OFDSenderStorePacket 50005 [15:02:40]StoreOFDPacket docnum=50005 [15:02:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 91 01 00 00 AC 4F 89 01 98 AF 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 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 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 8E 5E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 55 C3 00 00 35 04 06 00 A3 D8 E2 81 D7 6B 0C E6 08 16 74 7D 04 1E [15:02:40]CheckFolder [15:02:40]dirname=/storage/ofd_packets [15:02:40]CheckFolder done [15:02:40]ProducePacketName [15:02:40]name=ofd_packets/00050005 [15:02:40]NVStorageSaveData ofd_packets/00050005 [15:02:40]File name is /storage/ofd_packets/00050005 [15:02:40]Write 431 bytes [15:02:40]NVStorageSaveData done [15:02:40]OFDSenderStorePacket done [15:02:40]KKMCreateOFDPacket done [15:02:40]NVStorageSaveData kkm_last_timestamp [15:02:40]File name is /storage/kkm_last_timestamp [15:02:40]Write 4 bytes [15:02:40]NVStorageSaveData done [15:02:40]ExternCall_PrintAddStr [15:02:40]wPrintStart [15:02:40]Write to MH i2c: 01 00 00 75 02 77 [15:02:40]Write i2c OK [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: 01 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: 01 07 00 [15:02:40]MH_I2C_Read... [15:02:40]Read from MH i2c: 01 07 00 75 02 00 00 00 00 00 FF 0F 8C [15:02:40]RasterBufferAndPrint [15:02:40]line Счет N : (3)190138 [15:02:40]line ИНН: 02508201610067 [15:02:40]line Контрольно-Кассовый Чек [15:02:40]line ПРОДАЖА [15:02:40]line Товар: 5449000000286 [15:02:40]line Напиток Кока-Кола 2л [15:02:40]line 1.000 * 205.00 [15:02:40]line = 205.00 [15:02:40]line НДС 12% НСП 1% [15:02:40]line > о реализуемом товаре [15:02:40]line Товар: 48743570 [15:02:40]line Сигареты Winston XStyle Blue [15:02:40]line 1.000 * 140.00 [15:02:40]line = 140.00 [15:02:40]line НДС 12% НСП 1% [15:02:40]line > о реализуемом товаре [15:02:40]line ИТОГО: 345.00 [15:02:40]line НСП 1% : 3.05 [15:02:40]line НДС 12% : 36.64 [15:02:40]line Наличными: 345.00 [15:02:40]line Безнал.: 0.00 [15:02:40]line Место: АЗС № 95 "Партнер Нефть" [15:02:40]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:02:40]line СНО: Общий режим [15:02:40]line Чек 112 19.08.2024 15:02 [15:02:40]line Смена: 467 ФФД: 1.0 [15:02:40]line ЗНМ: 0300000078 [15:02:40]line РНМ: 0000000000092546 [15:02:40]line Версия ККМ: 001 [15:02:40]line ФМ: 0000000000871800 [15:02:40]line ФД: 50005 [15:02:40]line ФПД: 180151908423531 [15:02:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T150238&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50005&fm=180151908423531&tin=02508201610067®Number=0000000000092546&sum=34500 [15:02:40]line 0 [15:02:40]OFD Sender: Processing packet 50005 [packets to send 21, broken 20] [15:02:40]ProducePacketName [15:02:40]name=ofd_packets/00050005 [15:02:40]OFD Sender: To server: pG, [15:02:40]CommunicateWithHost lk.salyk.kg:30040 [15:02:40]ConnectInit lk.salyk.kg [15:02:40]written 0, free lines is 4095 [15:02:40]Connected sock=11 [15:02:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 91 01 00 00 AC 4F 89 01 98 AF 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 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 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 8E 5E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 55 C3 00 00 35 04 06 00 A3 D8 E2 81 D7 6B 0C E6 08 16 74 7D 04 1E [15:02:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D4 B7 47 00 02 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 31 38 30 30 10 04 04 00 55 C3 00 00 F4 03 04 00 FC 08 C3 66 B6 04 01 00 00 71 C0 3B A0 A7 1A D2 E7 [15:02:41]CommunicateWithHost err = 0 [15:02:41]CheckOFDResponse [15:02:41]1017 (14) - 77093643461234 [15:02:41]1041 (16) - 0000000000871800 [15:02:41]1040 (4) - 50005 [15:02:41]1012 (4) - 19.08.2024 08:57 [15:02:41]1206 (1) - 0 [15:02:41]OFD Sender: Remove packet 50005 [15:02:41]ProducePacketName [15:02:41]name=ofd_packets/00050005 [15:02:41]NVStorageDeleteData [15:02:41]Write to MH i2c: 01 00 00 A3 02 A5 [15:02:41]Write i2c OK [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: 01 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: 01 07 00 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: 01 07 00 A3 02 00 00 00 00 00 86 0C 3E [15:02:41]RasterBufferAndPrint [15:02:41]line [15:02:41]line [15:02:41]line [15:02:41]line [15:02:41]line [15:02:41]written 0, free lines is 3211 [15:02:41]MH_Cut [15:02:41]Write to MH i2c: D1 01 00 AA 02 01 7E [15:02:41]Write i2c OK [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: D1 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: D1 01 00 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: D1 01 00 AA 02 00 7D [15:02:41]Write to MH i2c: 01 00 00 AB 02 AD [15:02:41]Write i2c OK [15:02:41]MH_I2C_Read... [15:02:41]OFD Sender: No OFD packet to send [15:02:42]*** Cut start [15:02:42]*** Purtial cut [15:02:42]*** CUTSNS_PIN = 0 [15:02:42]*** Stage 1: CUTSNS_PIN = 1 [15:02:44]Read from MH i2c: 01 [15:02:44]MH_I2C_Read... [15:02:44]*** Stop cut motor [15:02:44]*** Cut end [15:02:44]Read from MH i2c: 01 07 00 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: 01 07 00 AB 02 00 00 00 00 00 FF 0F C2 [15:02:44]process_action close_receipt done [15:02:44]requested_data is exist [15:02:44]produce_requested_data [15:02:44]requested_item fm.sn is exist - process it [15:02:44]wFMCommunicate request_size=4 [15:02:44]MH_SAM_APDU [15:02:44]CAPDU: 80 11 00 00 [15:02:44]Write to MH i2c: E2 08 00 AC 02 80 11 00 00 00 00 00 00 28 [15:02:44]Write i2c OK [15:02:44]MH_I2C_Read... [15:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:44]Read from MH i2c: E2 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: E2 17 00 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: E2 17 00 AC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 73 [15:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:02:44]wFMCommunicate OK [15:02:44]requested_item fd.num is exist - process it [15:02:44]SAM_PROTO_GetFieldsCounters [15:02:44]wFMCommunicate request_size=4 [15:02:44]MH_SAM_APDU [15:02:44]CAPDU: 80 13 00 00 [15:02:44]Write to MH i2c: E2 08 00 AD 02 80 13 00 00 00 00 00 00 2B [15:02:44]Write i2c OK [15:02:44]MH_I2C_Read... [15:02:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:44]Read from MH i2c: E2 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: E2 62 00 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: E2 62 00 AD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 55 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [15:02:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 55 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:44]wFMCommunicate OK [15:02:44]SAM_PROTO_GetFieldsCounters done [15:02:44]requested_item shift.num is exist - process it [15:02:44]requested_item shift.opened is exist - process it [15:02:44]req_shift_opened [15:02:44]FM_GetShiftState [15:02:44]SAM_PROTO_GetShiftState [15:02:44]wFMCommunicate request_size=4 [15:02:44]MH_SAM_APDU [15:02:44]CAPDU: 80 13 01 00 [15:02:44]Write to MH i2c: E2 08 00 AE 02 80 13 01 00 00 00 00 00 2D [15:02:44]Write i2c OK [15:02:44]MH_I2C_Read... [15:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:44]Read from MH i2c: E2 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: E2 0E 00 [15:02:44]MH_I2C_Read... [15:02:44]Read from MH i2c: E2 0E 00 AE 02 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 E7 [15:02:44]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:02:44]wFMCommunicate OK [15:02:44]SAM_PROTO_GetShiftState done [15:02:44]FM_GetShiftState done [15:02:44]req_shift_opened done [15:02:44]requested_item shift.open_date is exist - process it [15:02:44]req_shift_open_date [15:02:44]req_shift_open_date done [15:02:44]produce_requested_data done [15:02:44]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50005,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [15:02:44]process_action_free close_receipt [15:02:44]json_value_free [15:02:44]json_value_free done [15:02:44]process_json_proto returns [15:02:44]Send response to host [15:02:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50005,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [15:02:44]free response buf [15:02:44]execute_script done [15:02:44]execute_script returns [15:02:44]free content buf [15:02:44]Sock 7.Close socket [15:02:44]Sock 7.Thread stoped [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:21]OFD Sender: No OFD packet to send [15:05:26]OFD Sender: No OFD packet to send [15:05:31]OFD Sender: No OFD packet to send [15:05:36]OFD Sender: No OFD packet to send [15:05:41]OFD Sender: No OFD packet to send [15:05:46]OFD Sender: No OFD packet to send [15:05:51]OFD Sender: No OFD packet to send [15:05:56]OFD Sender: No OFD packet to send [15:06:01]OFD Sender: No OFD packet to send [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:26]OFD Sender: No OFD packet to send [15:06:31]OFD Sender: No OFD packet to send [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:42]accept exits with 9 [15:08:42]New connection [15:08:42]New thread 3066469732 created [15:08:42]Thread 3066613092 joined [15:08:42]Waiting for new connection... [15:08:42] Sock 9.Parse request [15:08:42]Sock 9.Check first char [15:08:42]Sock 9.First char is OK [15:08:42]request: POST /json_proto HTTP/1.0 [15:08:42]Method: POST [15:08:42]URL: /json_proto [15:08:42]Method is POST - this is cgi request [15:08:42]url: /json_proto [15:08:42]query_string will be loaded in cgi processing [15:08:42]execute_cgi json_proto POST (null) [15:08:42]execute_cgi path=json_proto method=POST [15:08:42]POST find Content-Length [15:08:42]Host: 172.17.46.196:8080 [15:08:42]Content-Length: 1147 [15:08:42]Content-Type: application/json [15:08:42] [15:08:42]POST finish read [15:08:42]Found Content-Length = 1147 [15:08:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190139", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100091108", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0430\u0440\u0441 50\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" : 387.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:42]execute_script... [15:08: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)190139", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100091108", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0430\u0440\u0441 50\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" : 387.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:42]POST & json_proto [15:08:42]process_json_proto [15:08:42]json parsed OK: [15:08:42]protocol is kg_v1.0 [15:08:42]action value=close_receipt [15:08:42]process_action close_receipt [15:08:42]cmd_close_receipt [15:08:42]MH_GetDate [15:08:42]Write to MH i2c: F0 00 00 AF 02 A0 [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: F0 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: F0 09 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: F0 09 00 AF 02 00 FB 5F C3 66 C4 85 C2 66 9D [15:08:42]GetLastDocTimeStamp 1724079758 [15:08:42]current date 1724080123 [15:08:42]FM_GetShiftState [15:08:42]SAM_PROTO_GetShiftState [15:08:42]wFMCommunicate request_size=4 [15:08:42]MH_SAM_APDU [15:08:42]CAPDU: 80 13 01 00 [15:08:42]Write to MH i2c: E2 08 00 B0 02 80 13 01 00 00 00 00 00 2F [15:08:42]Write i2c OK [15:08:42]MH_I2C_Read... [15:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:42]Read from MH i2c: E2 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 0E 00 [15:08:42]MH_I2C_Read... [15:08:42]Read from MH i2c: E2 0E 00 B0 02 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 E9 [15:08:42]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:08:42]wFMCommunicate OK [15:08:42]SAM_PROTO_GetShiftState done [15:08:42]FM_GetShiftState done [15:08:42]opened in 1724026361 [15:08:42]opened+sec_in_day 1724112761 [15:08:42]quantity*price = 21000 [15:08:42]sum+1 = 21001 [15:08:42]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 2.000 * 59.00 = 118.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100091108 Шок Батончик Марс 50г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 387.00 НСП 1% : 3.42 НДС 12% : 41.09 Наличными: 387.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 113 19.08.2024 15:08 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50006 ФПД: 193312801033773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T150843&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50006&fm=193312801033773&tin=02508201610067®Number=0000000000092546&sum=38700 0 [15:08:44]StoreToDocumentArchive [15:08:44]shift 467 fd 50006 [15:08:44]save to /storage/0467/doc_00050006 [15:08:44]save last doc name /storage/0467/doc_00050006 to /storage/kkm_last_doc_name [15:08:44]save OK [15:08:44]Clear old archive folders... [15:08:44]ProcessDocumentItem done err = 0, tmpTLVsize=486 [15:08:44]tlvbuf is 011E5AB0 [15:08:44]SAM_PROTO_ClearQueue [15:08:44]wFMCommunicate request_size=4 [15:08:44]MH_SAM_APDU [15:08:44]CAPDU: 80 09 00 00 [15:08:44]Write to MH i2c: E2 08 00 BD 02 80 09 00 00 00 00 00 00 31 [15:08:44]Write i2c OK [15:08:44]MH_I2C_Read... [15:08:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:44]Read from MH i2c: E2 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 03 00 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 03 00 BD 02 00 90 00 33 [15:08:44]RAPDU: 90 00 [15:08:44]wFMCommunicate OK [15:08:44]SAM_PROTO_ClearQueue done [15:08:44]KKMCreateOFDPacket [15:08:44]OFDProtocolAddRootSTLVToBuf [15:08:44]FM_MakeSignedData [15:08:44]FM_MakeSignedData [15:08:44]SAM_PROTO_SignData [15:08:44]wFMCommunicate request_size=4 [15:08:44]MH_SAM_APDU [15:08:44]CAPDU: 80 0D 01 02 [15:08:44]Write to MH i2c: E2 08 00 BE 02 80 0D 01 02 00 00 00 00 39 [15:08:44]Write i2c OK [15:08:44]MH_I2C_Read... [15:08:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:44]Read from MH i2c: E2 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 03 00 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 03 00 BE 02 00 90 00 34 [15:08:44]RAPDU: 90 00 [15:08:44]wFMCommunicate OK [15:08:44]wFMCommunicate request_size=255 [15:08:44]MH_SAM_APDU [15:08:44]CAPDU: 80 0D 02 02 FA 03 00 E6 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 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 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 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 31 30 38 06 04 25 00 D0 A8 D0 BE D0 BA 20 D0 91 [15:08:44]Write to MH i2c: E2 02 01 BF 02 80 0D 02 02 FA 00 03 00 E6 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 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 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 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 31 30 38 06 04 25 00 D0 A8 D0 BE D0 BA 20 D0 91 00 00 E7 [15:08:44]Write i2c OK [15:08:44]MH_I2C_Read... [15:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:44]Read from MH i2c: E2 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 03 00 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 03 00 BF 02 00 90 00 35 [15:08:44]RAPDU: 90 00 [15:08:44]wFMCommunicate OK [15:08:44]wFMCommunicate request_size=245 [15:08:44]MH_SAM_APDU [15:08:44]CAPDU: 80 0D 02 02 F0 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B0 D1 80 D1 81 20 35 30 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 2C 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 10 00 00 00 00 07 04 06 00 2C 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 FB 5F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 56 C3 00 00 35 04 06 00 AF D1 24 D6 0E 2D [15:08:44]Write to MH i2c: E2 F8 00 C0 02 80 0D 02 02 F0 00 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B0 D1 80 D1 81 20 35 30 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 2C 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 10 00 00 00 00 07 04 06 00 2C 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 FB 5F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 56 C3 00 00 35 04 06 00 AF D1 24 D6 0E 2D 00 00 46 [15:08:44]Write i2c OK [15:08:44]MH_I2C_Read... [15:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:45]Read from MH i2c: E2 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: E2 03 00 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: E2 03 00 C0 02 00 90 00 36 [15:08:45]RAPDU: 90 00 [15:08:45]wFMCommunicate OK [15:08:45]wFMCommunicate request_size=4 [15:08:45]MH_SAM_APDU [15:08:45]CAPDU: 80 0D 03 02 [15:08:45]Write to MH i2c: E2 08 00 C1 02 80 0D 03 02 00 00 00 00 3E [15:08:45]Write i2c OK [15:08:45]MH_I2C_Read... [15:08:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:45]Read from MH i2c: E2 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: E2 0B 00 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: E2 0B 00 C1 02 00 54 B0 0F C3 17 C5 4F EB 90 00 2B [15:08:45]RAPDU: 54 B0 0F C3 17 C5 4F EB 90 00 [15:08:45]wFMCommunicate OK [15:08:45]SAM_PROTO_SignData done [15:08:45]FM_MakeSignedData done [15:08:45]CreateOFDProtocolMessage [15:08:45]wFMCommunicate request_size=4 [15:08:45]MH_SAM_APDU [15:08:45]CAPDU: 80 11 00 00 [15:08:45]Write to MH i2c: E2 08 00 C2 02 80 11 00 00 00 00 00 00 3E [15:08:45]Write i2c OK [15:08:45]MH_I2C_Read... [15:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:45]Read from MH i2c: E2 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: E2 17 00 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: E2 17 00 C2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 89 [15:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:08:45]wFMCommunicate OK [15:08:45]CreateOFDProtocolMessage done [15:08:45]OFDSenderStorePacket 50006 [15:08:45]StoreOFDPacket docnum=50006 [15:08:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 FA 01 00 00 E7 F5 F2 01 98 EA 5A 03 01 00 03 00 E6 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 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 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 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 31 30 38 06 04 25 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 B0 D1 80 D1 81 20 35 30 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 2C 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 10 00 00 00 00 07 04 06 00 2C 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 FB 5F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 56 C3 00 00 35 04 06 00 AF D1 24 D6 0E 2D 54 B0 0F C3 17 C5 4F EB [15:08:45]CheckFolder [15:08:45]dirname=/storage/ofd_packets [15:08:45]CheckFolder done [15:08:45]ProducePacketName [15:08:45]name=ofd_packets/00050006 [15:08:45]NVStorageSaveData ofd_packets/00050006 [15:08:45]File name is /storage/ofd_packets/00050006 [15:08:45]Write 536 bytes [15:08:45]NVStorageSaveData done [15:08:45]OFDSenderStorePacket done [15:08:45]KKMCreateOFDPacket done [15:08:45]NVStorageSaveData kkm_last_timestamp [15:08:45]File name is /storage/kkm_last_timestamp [15:08:45]Write 4 bytes [15:08:45]NVStorageSaveData done [15:08:45]ExternCall_PrintAddStr [15:08:45]wPrintStart [15:08:45]Write to MH i2c: 01 00 00 C3 02 C5 [15:08:45]Write i2c OK [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: 01 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: 01 07 00 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: 01 07 00 C3 02 00 00 00 00 00 FF 0F DA [15:08:45]RasterBufferAndPrint [15:08:45]line Счет N : (3)190139 [15:08:45]line ИНН: 02508201610067 [15:08:45]line Контрольно-Кассовый Чек [15:08:45]line ПРОДАЖА [15:08:45]line Товар: 4870001570095 [15:08:45]line Напиток Pepsi 2л [15:08:45]line 1.000 * 210.00 [15:08:45]line = 210.00 [15:08:45]line НДС 12% НСП 1% [15:08:45]line > о реализуемом товаре [15:08:45]line Товар: 4607065001445 [15:08:45]line Шок батончик Snickers 50,5г [15:08:45]line 2.000 * 59.00 [15:08:45]line = 118.00 [15:08:45]line НДС 12% НСП 1% [15:08:45]line > о реализуемом товаре [15:08:45]line Товар: 4011100091108 [15:08:45]line Шок Батончик Марс 50г [15:08:45]line 1.000 * 59.00 [15:08:45]line = 59.00 [15:08:45]line НДС 12% НСП 1% [15:08:45]line > о реализуемом товаре [15:08:45]line ИТОГО: 387.00 [15:08:45]line НСП 1% : 3.42 [15:08:45]line НДС 12% : 41.09 [15:08:45]line Наличными: 387.00 [15:08:45]line Безнал.: 0.00 [15:08:45]line Место: АЗС № 95 "Партнер Нефть" [15:08:45]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:08:45]line СНО: Общий режим [15:08:45]line Чек 113 19.08.2024 15:08 [15:08:45]line Смена: 467 ФФД: 1.0 [15:08:45]line ЗНМ: 0300000078 [15:08:45]line РНМ: 0000000000092546 [15:08:45]line Версия ККМ: 001 [15:08:45]line ФМ: 0000000000871800 [15:08:45]line ФД: 50006 [15:08:45]line ФПД: 193312801033773 [15:08:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T150843&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50006&fm=193312801033773&tin=02508201610067®Number=0000000000092546&sum=38700 [15:08:45]line 0 [15:08:45]written 0, free lines is 4095 [15:08:45]OFD Sender: Processing packet 50006 [packets to send 21, broken 20] [15:08:45]ProducePacketName [15:08:45]name=ofd_packets/00050006 [15:08:45]OFD Sender: To server: pG, [15:08:45]CommunicateWithHost lk.salyk.kg:30040 [15:08:45]ConnectInit lk.salyk.kg [15:08:45]Connected sock=10 [15:08:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 FA 01 00 00 E7 F5 F2 01 98 EA 5A 03 01 00 03 00 E6 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 39 35 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 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 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 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 31 30 38 06 04 25 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 B0 D1 80 D1 81 20 35 30 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 2C 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 10 00 00 00 00 07 04 06 00 2C 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 FB 5F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 56 C3 00 00 35 04 06 00 AF D1 24 D6 0E 2D 54 B0 0F C3 17 C5 4F EB [15:08:45]Write to MH i2c: 01 00 00 F7 02 F9 [15:08:45]Write i2c OK [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: 01 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: 01 07 00 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 41 0C 4D [15:08:45]RasterBufferAndPrint [15:08:45]line [15:08:45]line [15:08:45]line [15:08:45]line [15:08:45]line [15:08:45]written 0, free lines is 3143 [15:08:45]MH_Cut [15:08:45]Write to MH i2c: D1 01 00 FE 02 01 D2 [15:08:45]Write i2c OK [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: D1 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: D1 01 00 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: D1 01 00 FE 02 00 D1 [15:08:45]Write to MH i2c: 01 00 00 FF 02 01 [15:08:45]Write i2c OK [15:08:45]MH_I2C_Read... [15:08:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 27 C6 47 00 2C BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 56 C3 00 00 F4 03 04 00 68 0A C3 66 B6 04 01 00 00 15 4E 1D F4 58 7A 27 9F [15:08:46]CommunicateWithHost err = 0 [15:08:46]CheckOFDResponse [15:08:46]1017 (14) - 77093643461234 [15:08:46]1041 (16) - 0000000000871800 [15:08:46]1040 (4) - 50006 [15:08:46]1012 (4) - 19.08.2024 09:03 [15:08:46]1206 (1) - 0 [15:08:46]OFD Sender: Remove packet 50006 [15:08:46]ProducePacketName [15:08:46]name=ofd_packets/00050006 [15:08:46]NVStorageDeleteData [15:08:46]OFD Sender: No OFD packet to send [15:08:46]*** Cut start [15:08:46]*** Purtial cut [15:08:46]*** Stage 1: CUTSNS_PIN = 1 [15:08:46]Read from MH i2c: 01 [15:08:46]MH_I2C_Read... [15:08:46]*** Stop cut motor [15:08:46]*** Cut end [15:08:46]Read from MH i2c: 01 07 00 [15:08:46]MH_I2C_Read... [15:08:46]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 FF 0F 16 [15:08:46]process_action close_receipt done [15:08:46]requested_data is exist [15:08:46]produce_requested_data [15:08:46]requested_item fm.sn is exist - process it [15:08:46]wFMCommunicate request_size=4 [15:08:46]MH_SAM_APDU [15:08:46]CAPDU: 80 11 00 00 [15:08:46]Write to MH i2c: E2 08 00 00 03 80 11 00 00 00 00 00 00 7D [15:08:46]Write i2c OK [15:08:46]MH_I2C_Read... [15:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:46]Read from MH i2c: E2 [15:08:46]MH_I2C_Read... [15:08:46]Read from MH i2c: E2 17 00 [15:08:46]MH_I2C_Read... [15:08:46]Read from MH i2c: E2 17 00 00 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C8 [15:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:08:46]wFMCommunicate OK [15:08:46]requested_item fd.num is exist - process it [15:08:46]SAM_PROTO_GetFieldsCounters [15:08:46]wFMCommunicate request_size=4 [15:08:46]MH_SAM_APDU [15:08:46]CAPDU: 80 13 00 00 [15:08:46]Write to MH i2c: E2 08 00 01 03 80 13 00 00 00 00 00 00 80 [15:08:46]Write i2c OK [15:08:46]MH_I2C_Read... [15:08:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:47]Read from MH i2c: E2 [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: E2 62 00 [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: E2 62 00 01 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 56 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [15:08:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 56 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:47]wFMCommunicate OK [15:08:47]SAM_PROTO_GetFieldsCounters done [15:08:47]requested_item shift.num is exist - process it [15:08:47]requested_item shift.opened is exist - process it [15:08:47]req_shift_opened [15:08:47]FM_GetShiftState [15:08:47]SAM_PROTO_GetShiftState [15:08:47]wFMCommunicate request_size=4 [15:08:47]MH_SAM_APDU [15:08:47]CAPDU: 80 13 01 00 [15:08:47]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [15:08:47]Write i2c OK [15:08:47]MH_I2C_Read... [15:08:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:47]Read from MH i2c: E2 [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: E2 0E 00 [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 3C [15:08:47]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:08:47]wFMCommunicate OK [15:08:47]SAM_PROTO_GetShiftState done [15:08:47]FM_GetShiftState done [15:08:47]req_shift_opened done [15:08:47]requested_item shift.open_date is exist - process it [15:08:47]req_shift_open_date [15:08:47]req_shift_open_date done [15:08:47]produce_requested_data done [15:08:47]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50006,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [15:08:47]process_action_free close_receipt [15:08:47]json_value_free [15:08:47]json_value_free done [15:08:47]process_json_proto returns [15:08:47]Send response to host [15:08:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50006,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [15:08:47]free response buf [15:08:47]execute_script done [15:08:47]execute_script returns [15:08:47]free content buf [15:08:47]Sock 9.Close socket [15:08:47]Sock 9.Thread stoped [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:52]OFD Sender: No OFD packet to send [15:16:57]OFD Sender: No OFD packet to send [15:17:02]OFD Sender: No OFD packet to send [15:17:07]OFD Sender: No OFD packet to send [15:17:12]OFD Sender: No OFD packet to send [15:17:17]OFD Sender: No OFD packet to send [15:17:22]OFD Sender: No OFD packet to send [15:17:27]OFD Sender: No OFD packet to send [15:17:32]OFD Sender: No OFD packet to send [15:17:37]OFD Sender: No OFD packet to send [15:17:42]OFD Sender: No OFD packet to send [15:17:47]OFD Sender: No OFD packet to send [15:17:52]OFD Sender: No OFD packet to send [15:17:57]OFD Sender: No OFD packet to send [15:18:02]OFD Sender: No OFD packet to send [15:18:07]OFD Sender: No OFD packet to send [15:18:12]OFD Sender: No OFD packet to send [15:18:17]OFD Sender: No OFD packet to send [15:18:22]OFD Sender: No OFD packet to send [15:18:27]OFD Sender: No OFD packet to send [15:18:32]OFD Sender: No OFD packet to send [15:18:37]OFD Sender: No OFD packet to send [15:18:42]OFD Sender: No OFD packet to send [15:18:47]OFD Sender: No OFD packet to send [15:18:52]OFD Sender: No OFD packet to send [15:18:57]OFD Sender: No OFD packet to send [15:19:02]OFD Sender: No OFD packet to send [15:19:07]OFD Sender: No OFD packet to send [15:19:12]OFD Sender: No OFD packet to send [15:19:17]OFD Sender: No OFD packet to send [15:19:22]OFD Sender: No OFD packet to send [15:19:27]OFD Sender: No OFD packet to send [15:19:32]OFD Sender: No OFD packet to send [15:19:37]OFD Sender: No OFD packet to send [15:19:42]OFD Sender: No OFD packet to send [15:19:47]OFD Sender: No OFD packet to send [15:19:52]OFD Sender: No OFD packet to send [15:19:57]OFD Sender: No OFD packet to send [15:20:02]OFD Sender: No OFD packet to send [15:20:07]OFD Sender: No OFD packet to send [15:20:12]OFD Sender: No OFD packet to send [15:20:17]OFD Sender: No OFD packet to send [15:20:22]OFD Sender: No OFD packet to send [15:20:27]OFD Sender: No OFD packet to send [15:20:32]OFD Sender: No OFD packet to send [15:20:37]OFD Sender: No OFD packet to send [15:20:42]OFD Sender: No OFD packet to send [15:20:47]OFD Sender: No OFD packet to send [15:20:52]OFD Sender: No OFD packet to send [15:20:57]OFD Sender: No OFD packet to send [15:21:02]OFD Sender: No OFD packet to send [15:21:07]OFD Sender: No OFD packet to send [15:21:12]OFD Sender: No OFD packet to send [15:21:17]OFD Sender: No OFD packet to send [15:21:22]OFD Sender: No OFD packet to send [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:17]OFD Sender: No OFD packet to send [15:23:22]OFD Sender: No OFD packet to send [15:23:27]OFD Sender: No OFD packet to send [15:23:30]accept exits with 7 [15:23:30]New connection [15:23:30]New thread 3066613092 created [15:23:30]Thread 3066469732 joined [15:23:30]Waiting for new connection... [15:23:30] Sock 7.Parse request [15:23:30]Sock 7.Check first char [15:23:30]Sock 7.First char is OK [15:23:30]request: POST /json_proto HTTP/1.0 [15:23:30]Method: POST [15:23:30]URL: /json_proto [15:23:30]Method is POST - this is cgi request [15:23:30]url: /json_proto [15:23:30]query_string will be loaded in cgi processing [15:23:30]execute_cgi json_proto POST (null) [15:23:30]execute_cgi path=json_proto method=POST [15:23:30]POST find Content-Length [15:23:30]Host: 172.17.46.196:8080 [15:23:30]Content-Length: 787 [15:23:30]Content-Type: application/json [15:23:30] [15:23:30]POST finish read [15:23:30]Found Content-Length = 787 [15:23:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190140", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:30]execute_script... [15:23: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)190140", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:30]POST & json_proto [15:23:30]process_json_proto [15:23:30]json parsed OK: [15:23:30]protocol is kg_v1.0 [15:23:30]action value=close_receipt [15:23:30]process_action close_receipt [15:23:30]cmd_close_receipt [15:23:30]MH_GetDate [15:23:30]Write to MH i2c: F0 00 00 03 03 F5 [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: F0 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: F0 09 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: F0 09 00 03 03 00 72 63 C3 66 C4 85 C2 66 6D [15:23:30]GetLastDocTimeStamp 1724080123 [15:23:30]current date 1724081010 [15:23:30]FM_GetShiftState [15:23:30]SAM_PROTO_GetShiftState [15:23:30]wFMCommunicate request_size=4 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 13 01 00 [15:23:30]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 0E 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 3E [15:23:30]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:23:30]wFMCommunicate OK [15:23:30]SAM_PROTO_GetShiftState done [15:23:30]FM_GetShiftState done [15:23:30]opened in 1724026361 [15:23:30]opened+sec_in_day 1724112761 [15:23:30]quantity*price = 11500 [15:23:30]sum+1 = 11501 [15:23:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 0.00 Безнал.: 115.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 114 19.08.2024 15:23 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 50007 ФПД: 192285005843678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T152330&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50007&fm=192285005843678&tin=02508201610067®Number=0000000000092546&sum=11500 0 [15:23:31]StoreToDocumentArchive [15:23:31]shift 467 fd 50007 [15:23:31]save to /storage/0467/doc_00050007 [15:23:31]save last doc name /storage/0467/doc_00050007 to /storage/kkm_last_doc_name [15:23:31]save OK [15:23:31]Clear old archive folders... [15:23:31]ProcessDocumentItem done err = 0, tmpTLVsize=274 [15:23:31]tlvbuf is 0124C030 [15:23:31]SAM_PROTO_ClearQueue [15:23:31]wFMCommunicate request_size=4 [15:23:31]MH_SAM_APDU [15:23:31]CAPDU: 80 09 00 00 [15:23:31]Write to MH i2c: E2 08 00 11 03 80 09 00 00 00 00 00 00 86 [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:31]Read from MH i2c: E2 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 03 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [15:23:31]RAPDU: 90 00 [15:23:31]wFMCommunicate OK [15:23:31]SAM_PROTO_ClearQueue done [15:23:31]KKMCreateOFDPacket [15:23:31]OFDProtocolAddRootSTLVToBuf [15:23:31]FM_MakeSignedData [15:23:31]FM_MakeSignedData [15:23:31]SAM_PROTO_SignData [15:23:31]wFMCommunicate request_size=4 [15:23:31]MH_SAM_APDU [15:23:31]CAPDU: 80 0D 01 02 [15:23:31]Write to MH i2c: E2 08 00 12 03 80 0D 01 02 00 00 00 00 8E [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:31]Read from MH i2c: E2 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 03 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [15:23:31]RAPDU: 90 00 [15:23:31]wFMCommunicate OK [15:23:31]wFMCommunicate request_size=255 [15:23:31]MH_SAM_APDU [15:23:31]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 72 63 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 [15:23:31]Write to MH i2c: E2 02 01 13 03 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 72 63 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 00 00 6F [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:32]Read from MH i2c: E2 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 03 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [15:23:32]RAPDU: 90 00 [15:23:32]wFMCommunicate OK [15:23:32]wFMCommunicate request_size=33 [15:23:32]MH_SAM_APDU [15:23:32]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 30 30 10 04 04 00 57 C3 00 00 35 04 06 00 AE E1 D7 78 0C DE [15:23:32]Write to MH i2c: E2 24 00 14 03 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 30 30 10 04 04 00 57 C3 00 00 35 04 06 00 AE E1 D7 78 0C DE 00 00 FA [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:32]Read from MH i2c: E2 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 03 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [15:23:32]RAPDU: 90 00 [15:23:32]wFMCommunicate OK [15:23:32]wFMCommunicate request_size=4 [15:23:32]MH_SAM_APDU [15:23:32]CAPDU: 80 0D 03 02 [15:23:32]Write to MH i2c: E2 08 00 15 03 80 0D 03 02 00 00 00 00 93 [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:32]Read from MH i2c: E2 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 0B 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 0B 00 15 03 00 03 63 A3 53 6C 4C D9 2F 90 00 B0 [15:23:32]RAPDU: 03 63 A3 53 6C 4C D9 2F 90 00 [15:23:32]wFMCommunicate OK [15:23:32]SAM_PROTO_SignData done [15:23:32]FM_MakeSignedData done [15:23:32]CreateOFDProtocolMessage [15:23:32]wFMCommunicate request_size=4 [15:23:32]MH_SAM_APDU [15:23:32]CAPDU: 80 11 00 00 [15:23:32]Write to MH i2c: E2 08 00 16 03 80 11 00 00 00 00 00 00 93 [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:32]Read from MH i2c: E2 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 17 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 17 00 16 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DE [15:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:23:32]wFMCommunicate OK [15:23:32]CreateOFDProtocolMessage done [15:23:32]OFDSenderStorePacket 50007 [15:23:32]StoreOFDPacket docnum=50007 [15:23:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 E1 6B 1E 01 9C BB 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 72 63 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 57 C3 00 00 35 04 06 00 AE E1 D7 78 0C DE 03 63 A3 53 6C 4C D9 2F [15:23:32]CheckFolder [15:23:32]dirname=/storage/ofd_packets [15:23:32]CheckFolder done [15:23:32]ProducePacketName [15:23:32]name=ofd_packets/00050007 [15:23:32]NVStorageSaveData ofd_packets/00050007 [15:23:32]File name is /storage/ofd_packets/00050007 [15:23:32]Write 324 bytes [15:23:32]NVStorageSaveData done [15:23:32]OFDSenderStorePacket done [15:23:32]KKMCreateOFDPacket done [15:23:32]NVStorageSaveData kkm_last_timestamp [15:23:32]File name is /storage/kkm_last_timestamp [15:23:32]Write 4 bytes [15:23:32]NVStorageSaveData done [15:23:32]ExternCall_PrintAddStr [15:23:32]wPrintStart [15:23:32]Write to MH i2c: 01 00 00 17 03 1A [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: 01 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: 01 07 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: 01 07 00 17 03 00 00 00 00 00 FF 0F 2F [15:23:32]RasterBufferAndPrint [15:23:32]line Счет N : (3)190140 [15:23:32]line ИНН: 02508201610067 [15:23:32]line Контрольно-Кассовый Чек [15:23:32]line ПРОДАЖА [15:23:32]line Товар: 2000036240010 [15:23:32]line Кофе Латте (GABB TRADE) [15:23:32]line 1.000 * 115.00 [15:23:32]line = 115.00 [15:23:32]line НДС 12% НСП 1% [15:23:32]line > о реализуемом товаре [15:23:32]line ИТОГО: 115.00 [15:23:32]line НСП 1% : 1.02 [15:23:32]line НДС 12% : 12.21 [15:23:32]line Наличными: 0.00 [15:23:32]line Безнал.: 115.00 [15:23:32]line Место: АЗС № 95 "Партнер Нефть" [15:23:32]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:23:32]line СНО: Общий режим [15:23:32]line Чек 114 19.08.2024 15:23 [15:23:32]line Смена: 467 ФФД: 1.0 [15:23:32]line ЗНМ: 0300000078 [15:23:32]line РНМ: 0000000000092546 [15:23:32]line Версия ККМ: 001 [15:23:32]line Платежная система: O! деньги [15:23:32]line ФМ: 0000000000871800 [15:23:32]line ФД: 50007 [15:23:32]line ФПД: 192285005843678 [15:23:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T152330&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50007&fm=192285005843678&tin=02508201610067®Number=0000000000092546&sum=11500 [15:23:32]OFD Sender: Processing packet 50007 [packets to send 21, broken 20] [15:23:32]ProducePacketName [15:23:32]name=ofd_packets/00050007 [15:23:32]OFD Sender: To server: pG, [15:23:32]CommunicateWithHost lk.salyk.kg:30040 [15:23:32]ConnectInit lk.salyk.kg [15:23:32]line 0 [15:23:32]written 0, free lines is 4095 [15:23:32]Connected sock=10 [15:23:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 E1 6B 1E 01 9C BB 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 72 63 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 57 C3 00 00 35 04 06 00 AE E1 D7 78 0C DE 03 63 A3 53 6C 4C D9 2F [15:23:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 7C 5E 47 00 06 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 31 38 30 30 10 04 04 00 57 C3 00 00 F4 03 04 00 DF 0D C3 66 B6 04 01 00 00 1C 96 83 21 17 3E F3 BD [15:23:32]CommunicateWithHost err = 0 [15:23:32]CheckOFDResponse [15:23:32]1017 (14) - 77093643461234 [15:23:32]1041 (16) - 0000000000871800 [15:23:32]1040 (4) - 50007 [15:23:32]1012 (4) - 19.08.2024 09:18 [15:23:32]1206 (1) - 0 [15:23:32]OFD Sender: Remove packet 50007 [15:23:32]ProducePacketName [15:23:32]name=ofd_packets/00050007 [15:23:32]NVStorageDeleteData [15:23:32]Write to MH i2c: 01 00 00 41 03 44 [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: 01 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: 01 07 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: 01 07 00 41 03 00 00 00 00 00 CB 0C 22 [15:23:32]RasterBufferAndPrint [15:23:32]line [15:23:32]line [15:23:32]line [15:23:32]line [15:23:32]line [15:23:32]written 0, free lines is 3281 [15:23:32]MH_Cut [15:23:32]Write to MH i2c: D1 01 00 48 03 01 1D [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: D1 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: D1 01 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: D1 01 00 48 03 00 1C [15:23:32]Write to MH i2c: 01 00 00 49 03 4C [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:33]OFD Sender: No OFD packet to send [15:23:33]*** Cut start [15:23:33]*** Purtial cut [15:23:33]*** CUTSNS_PIN = 0 [15:23:33]*** Stage 1: CUTSNS_PIN = 1 [15:23:35]Read from MH i2c: 01 [15:23:35]MH_I2C_Read... [15:23:35]*** Stop cut motor [15:23:35]*** Cut end [15:23:35]Read from MH i2c: 01 07 00 [15:23:35]MH_I2C_Read... [15:23:35]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 FF 0F 61 [15:23:35]process_action close_receipt done [15:23:35]requested_data is exist [15:23:35]produce_requested_data [15:23:35]requested_item fm.sn is exist - process it [15:23:35]wFMCommunicate request_size=4 [15:23:35]MH_SAM_APDU [15:23:35]CAPDU: 80 11 00 00 [15:23:35]Write to MH i2c: E2 08 00 4A 03 80 11 00 00 00 00 00 00 C7 [15:23:35]Write i2c OK [15:23:35]MH_I2C_Read... [15:23:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:35]Read from MH i2c: E2 [15:23:35]MH_I2C_Read... [15:23:35]Read from MH i2c: E2 17 00 [15:23:35]MH_I2C_Read... [15:23:35]Read from MH i2c: E2 17 00 4A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 12 [15:23:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:23:35]wFMCommunicate OK [15:23:35]requested_item fd.num is exist - process it [15:23:35]SAM_PROTO_GetFieldsCounters [15:23:35]wFMCommunicate request_size=4 [15:23:35]MH_SAM_APDU [15:23:35]CAPDU: 80 13 00 00 [15:23:35]Write to MH i2c: E2 08 00 4B 03 80 13 00 00 00 00 00 00 CA [15:23:35]Write i2c OK [15:23:35]MH_I2C_Read... [15:23:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:36]Read from MH i2c: E2 [15:23:36]MH_I2C_Read... [15:23:36]Read from MH i2c: E2 62 00 [15:23:36]MH_I2C_Read... [15:23:36]Read from MH i2c: E2 62 00 4B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 57 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [15:23:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 57 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:36]wFMCommunicate OK [15:23:36]SAM_PROTO_GetFieldsCounters done [15:23:36]requested_item shift.num is exist - process it [15:23:36]requested_item shift.opened is exist - process it [15:23:36]req_shift_opened [15:23:36]FM_GetShiftState [15:23:36]SAM_PROTO_GetShiftState [15:23:36]wFMCommunicate request_size=4 [15:23:36]MH_SAM_APDU [15:23:36]CAPDU: 80 13 01 00 [15:23:36]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [15:23:36]Write i2c OK [15:23:36]MH_I2C_Read... [15:23:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:36]Read from MH i2c: E2 [15:23:36]MH_I2C_Read... [15:23:36]Read from MH i2c: E2 0E 00 [15:23:36]MH_I2C_Read... [15:23:36]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 86 [15:23:36]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:23:36]wFMCommunicate OK [15:23:36]SAM_PROTO_GetShiftState done [15:23:36]FM_GetShiftState done [15:23:36]req_shift_opened done [15:23:36]requested_item shift.open_date is exist - process it [15:23:36]req_shift_open_date [15:23:36]req_shift_open_date done [15:23:36]produce_requested_data done [15:23:36]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50007,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [15:23:36]process_action_free close_receipt [15:23:36]json_value_free [15:23:36]json_value_free done [15:23:36]process_json_proto returns [15:23:36]Send response to host [15:23:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50007,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [15:23:36]free response buf [15:23:36]execute_script done [15:23:36]execute_script returns [15:23:36]free content buf [15:23:36]Sock 7.Close socket [15:23:36]Sock 7.Thread stoped [15:23:38]OFD Sender: No OFD packet to send [15:23:43]OFD Sender: No OFD packet to send [15:23:48]OFD Sender: No OFD packet to send [15:23:53]OFD Sender: No OFD packet to send [15:23:58]OFD Sender: No OFD packet to send [15:24:03]OFD Sender: No OFD packet to send [15:24:08]OFD Sender: No OFD packet to send [15:24:13]OFD Sender: No OFD packet to send [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:38]OFD Sender: No OFD packet to send [15:24:43]OFD Sender: No OFD packet to send [15:24:48]OFD Sender: No OFD packet to send [15:24:53]OFD Sender: No OFD packet to send [15:24:58]OFD Sender: No OFD packet to send [15:25:03]OFD Sender: No OFD packet to send [15:25:08]OFD Sender: No OFD packet to send [15:25:13]OFD Sender: No OFD packet to send [15:25:18]OFD Sender: No OFD packet to send [15:25:23]OFD Sender: No OFD packet to send [15:25:28]OFD Sender: No OFD packet to send [15:25:33]OFD Sender: No OFD packet to send [15:25:38]OFD Sender: No OFD packet to send [15:25:43]OFD Sender: No OFD packet to send [15:25:48]OFD Sender: No OFD packet to send [15:25:51]accept exits with 9 [15:25:51]New connection [15:25:51]New thread 3066469732 created [15:25:51]Thread 3066613092 joined [15:25:51]Waiting for new connection... [15:25:51] Sock 9.Parse request [15:25:51]Sock 9.Check first char [15:25:51]Sock 9.First char is OK [15:25:51]request: POST /json_proto HTTP/1.0 [15:25:51]Method: POST [15:25:51]URL: /json_proto [15:25:51]Method is POST - this is cgi request [15:25:51]url: /json_proto [15:25:51]query_string will be loaded in cgi processing [15:25:51]execute_cgi json_proto POST (null) [15:25:51]execute_cgi path=json_proto method=POST [15:25:51]POST find Content-Length [15:25:51]Host: 172.17.46.196:8080 [15:25:51]Content-Length: 924 [15:25:51]Content-Type: application/json [15:25:51] [15:25:51]POST finish read [15:25:51]Found Content-Length = 924 [15:25:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190141", "tax_sys" : 0, "items" : [ { "code": "90456060", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Red Bull Sugarfree 0.25\u043B \u0436", "price" : 152.00, "quantity" : 1.000, "sum" : 152.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:51]execute_script... [15:25: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)190141", "tax_sys" : 0, "items" : [ { "code": "90456060", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Red Bull Sugarfree 0.25\u043B \u0436", "price" : 152.00, "quantity" : 1.000, "sum" : 152.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:51]POST & json_proto [15:25:51]process_json_proto [15:25:51]json parsed OK: [15:25:51]protocol is kg_v1.0 [15:25:51]action value=close_receipt [15:25:51]process_action close_receipt [15:25:51]cmd_close_receipt [15:25:51]MH_GetDate [15:25:51]Write to MH i2c: F0 00 00 4D 03 3F [15:25:51]Write i2c OK [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: F0 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: F0 09 00 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: F0 09 00 4D 03 00 00 64 C3 66 C4 85 C2 66 46 [15:25:51]GetLastDocTimeStamp 1724081010 [15:25:51]current date 1724081152 [15:25:51]FM_GetShiftState [15:25:51]SAM_PROTO_GetShiftState [15:25:51]wFMCommunicate request_size=4 [15:25:51]MH_SAM_APDU [15:25:51]CAPDU: 80 13 01 00 [15:25:51]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [15:25:51]Write i2c OK [15:25:51]MH_I2C_Read... [15:25:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:51]Read from MH i2c: E2 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 0E 00 [15:25:51]MH_I2C_Read... [15:25:51]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 88 [15:25:51]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:25:51]wFMCommunicate OK [15:25:51]SAM_PROTO_GetShiftState done [15:25:51]FM_GetShiftState done [15:25:51]opened in 1724026361 [15:25:51]opened+sec_in_day 1724112761 [15:25:51]quantity*price = 15200 [15:25:51]sum+1 = 15201 [15:25:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000005489 Вода Бонаква 1л б/г 1.000 * 42.00 = 42.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 194.00 НСП 1% : 1.71 НДС 12% : 20.60 Наличными: 194.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 115 19.08.2024 15:25 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50008 ФПД: 201308781621240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T152552&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50008&fm=201308781621240&tin=02508201610067®Number=0000000000092546&sum=19400 0 [15:25:52]StoreToDocumentArchive [15:25:52]shift 467 fd 50008 [15:25:52]save to /storage/0467/doc_00050008 [15:25:52]save last doc name /storage/0467/doc_00050008 to /storage/kkm_last_doc_name [15:25:52]save OK [15:25:52]Clear old archive folders... [15:25:52]ProcessDocumentItem done err = 0, tmpTLVsize=396 [15:25:52]tlvbuf is 0124FDB0 [15:25:52]SAM_PROTO_ClearQueue [15:25:52]wFMCommunicate request_size=4 [15:25:52]MH_SAM_APDU [15:25:52]CAPDU: 80 09 00 00 [15:25:52]Write to MH i2c: E2 08 00 5B 03 80 09 00 00 00 00 00 00 D0 [15:25:52]Write i2c OK [15:25:52]MH_I2C_Read... [15:25:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:52]Read from MH i2c: E2 [15:25:52]MH_I2C_Read... [15:25:52]Read from MH i2c: E2 03 00 [15:25:52]MH_I2C_Read... [15:25:52]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [15:25:52]RAPDU: 90 00 [15:25:52]wFMCommunicate OK [15:25:52]SAM_PROTO_ClearQueue done [15:25:52]KKMCreateOFDPacket [15:25:52]OFDProtocolAddRootSTLVToBuf [15:25:52]FM_MakeSignedData [15:25:52]FM_MakeSignedData [15:25:52]SAM_PROTO_SignData [15:25:52]wFMCommunicate request_size=4 [15:25:52]MH_SAM_APDU [15:25:52]CAPDU: 80 0D 01 02 [15:25:52]Write to MH i2c: E2 08 00 5C 03 80 0D 01 02 00 00 00 00 D8 [15:25:52]Write i2c OK [15:25:52]MH_I2C_Read... [15:25:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:53]Read from MH i2c: E2 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 03 00 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [15:25:53]RAPDU: 90 00 [15:25:53]wFMCommunicate OK [15:25:53]wFMCommunicate request_size=255 [15:25:53]MH_SAM_APDU [15:25:53]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 36 30 36 30 06 04 36 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 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 3B 00 00 00 00 13 04 06 00 60 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF [15:25:53]Write to MH i2c: E2 02 01 5D 03 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 36 30 36 30 06 04 36 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 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 3B 00 00 00 00 13 04 06 00 60 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 00 00 3C [15:25:53]Write i2c OK [15:25:53]MH_I2C_Read... [15:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:53]Read from MH i2c: E2 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 03 00 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [15:25:53]RAPDU: 90 00 [15:25:53]wFMCommunicate OK [15:25:53]wFMCommunicate request_size=155 [15:25:53]MH_SAM_APDU [15:25:53]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 00 64 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 58 C3 00 00 35 04 06 00 B7 16 DA 6B 2F F8 [15:25:53]Write to MH i2c: E2 9E 00 5E 03 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 00 64 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 58 C3 00 00 35 04 06 00 B7 16 DA 6B 2F F8 00 00 34 [15:25:53]Write i2c OK [15:25:53]MH_I2C_Read... [15:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:53]Read from MH i2c: E2 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 03 00 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [15:25:53]RAPDU: 90 00 [15:25:53]wFMCommunicate OK [15:25:53]wFMCommunicate request_size=4 [15:25:53]MH_SAM_APDU [15:25:53]CAPDU: 80 0D 03 02 [15:25:53]Write to MH i2c: E2 08 00 5F 03 80 0D 03 02 00 00 00 00 DD [15:25:53]Write i2c OK [15:25:53]MH_I2C_Read... [15:25:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:53]Read from MH i2c: E2 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 0B 00 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 0B 00 5F 03 00 CE 35 03 01 96 00 6D 81 90 00 69 [15:25:53]RAPDU: CE 35 03 01 96 00 6D 81 90 00 [15:25:53]wFMCommunicate OK [15:25:53]SAM_PROTO_SignData done [15:25:53]FM_MakeSignedData done [15:25:53]CreateOFDProtocolMessage [15:25:53]wFMCommunicate request_size=4 [15:25:53]MH_SAM_APDU [15:25:53]CAPDU: 80 11 00 00 [15:25:53]Write to MH i2c: E2 08 00 60 03 80 11 00 00 00 00 00 00 DD [15:25:53]Write i2c OK [15:25:53]MH_I2C_Read... [15:25:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:53]Read from MH i2c: E2 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 17 00 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: E2 17 00 60 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 28 [15:25:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:25:53]wFMCommunicate OK [15:25:53]CreateOFDProtocolMessage done [15:25:53]OFDSenderStorePacket 50008 [15:25:53]StoreOFDPacket docnum=50008 [15:25:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A0 01 00 00 DE 5A 98 01 D7 41 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 36 30 36 30 06 04 36 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 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 3B 00 00 00 00 13 04 06 00 60 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 00 64 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 58 C3 00 00 35 04 06 00 B7 16 DA 6B 2F F8 CE 35 03 01 96 00 6D 81 [15:25:53]CheckFolder [15:25:53]dirname=/storage/ofd_packets [15:25:53]CheckFolder done [15:25:53]ProducePacketName [15:25:53]name=ofd_packets/00050008 [15:25:53]NVStorageSaveData ofd_packets/00050008 [15:25:53]File name is /storage/ofd_packets/00050008 [15:25:53]Write 446 bytes [15:25:53]NVStorageSaveData done [15:25:53]OFDSenderStorePacket done [15:25:53]KKMCreateOFDPacket done [15:25:53]NVStorageSaveData kkm_last_timestamp [15:25:53]File name is /storage/kkm_last_timestamp [15:25:53]Write 4 bytes [15:25:53]NVStorageSaveData done [15:25:53]ExternCall_PrintAddStr [15:25:53]wPrintStart [15:25:53]Write to MH i2c: 01 00 00 61 03 64 [15:25:53]Write i2c OK [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: 01 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: 01 07 00 [15:25:53]MH_I2C_Read... [15:25:53]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 FF 0F 79 [15:25:53]RasterBufferAndPrint [15:25:53]line Счет N : (3)190141 [15:25:53]line ИНН: 02508201610067 [15:25:53]line Контрольно-Кассовый Чек [15:25:53]line ПРОДАЖА [15:25:53]line Товар: 90456060 [15:25:53]line Напиток энерг Red Bull Sugarfree 0.25л ж [15:25:53]line 1.000 * 152.00 [15:25:53]line = 152.00 [15:25:53]line НДС 12% НСП 1% [15:25:53]line > о реализуемом товаре [15:25:53]line Товар: 5449000005489 [15:25:53]line Вода Бонаква 1л б/г [15:25:53]line 1.000 * 42.00 [15:25:53]line = 42.00 [15:25:53]line НДС 12% НСП 1% [15:25:53]line > о реализуемом товаре [15:25:53]line ИТОГО: 194.00 [15:25:53]line НСП 1% : 1.71 [15:25:53]line НДС 12% : 20.60 [15:25:53]line Наличными: 194.00 [15:25:53]line Безнал.: 0.00 [15:25:53]line Место: АЗС № 95 "Партнер Нефть" [15:25:53]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:25:53]line СНО: Общий режим [15:25:53]line Чек 115 19.08.2024 15:25 [15:25:53]line Смена: 467 ФФД: 1.0 [15:25:53]line ЗНМ: 0300000078 [15:25:53]line РНМ: 0000000000092546 [15:25:53]line Версия ККМ: 001 [15:25:53]line ФМ: 0000000000871800 [15:25:53]line ФД: 50008 [15:25:53]line ФПД: 201308781621240 [15:25:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T152552&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50008&fm=201308781621240&tin=02508201610067®Number=0000000000092546&sum=19400 [15:25:53]line 0 [15:25:53]OFD Sender: Processing packet 50008 [packets to send 21, broken 20] [15:25:53]ProducePacketName [15:25:53]name=ofd_packets/00050008 [15:25:53]OFD Sender: To server: pG, [15:25:53]CommunicateWithHost lk.salyk.kg:30040 [15:25:53]ConnectInit lk.salyk.kg [15:25:53]written 0, free lines is 4095 [15:25:54]Connected sock=10 [15:25:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A0 01 00 00 DE 5A 98 01 D7 41 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 36 30 36 30 06 04 36 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 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 3B 00 00 00 00 13 04 06 00 60 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 00 64 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 58 C3 00 00 35 04 06 00 B7 16 DA 6B 2F F8 CE 35 03 01 96 00 6D 81 [15:25:54]Write to MH i2c: 01 00 00 90 03 93 [15:25:54]Write i2c OK [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: 01 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: 01 07 00 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: 01 07 00 90 03 00 00 00 00 00 7D 0C 23 [15:25:54]RasterBufferAndPrint [15:25:54]line [15:25:54]line [15:25:54]line [15:25:54]line [15:25:54]line [15:25:54]written 0, free lines is 3203 [15:25:54]MH_Cut [15:25:54]Write to MH i2c: D1 01 00 97 03 01 6C [15:25:54]Write i2c OK [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: D1 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: D1 01 00 [15:25:54]MH_I2C_Read... [15:25:54]Read from MH i2c: D1 01 00 97 03 00 6B [15:25:54]Write to MH i2c: 01 00 00 98 03 9B [15:25:54]Write i2c OK [15:25:54]MH_I2C_Read... [15:25:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E1 88 47 00 56 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 58 C3 00 00 F4 03 04 00 6D 0E C3 66 B6 04 01 00 00 09 C1 8C 5B DA BA 75 F0 [15:25:54]CommunicateWithHost err = 0 [15:25:54]CheckOFDResponse [15:25:54]1017 (14) - 77093643461234 [15:25:54]1041 (16) - 0000000000871800 [15:25:54]1040 (4) - 50008 [15:25:54]1012 (4) - 19.08.2024 09:20 [15:25:54]1206 (1) - 0 [15:25:54]OFD Sender: Remove packet 50008 [15:25:54]ProducePacketName [15:25:54]name=ofd_packets/00050008 [15:25:54]NVStorageDeleteData [15:25:55]OFD Sender: No OFD packet to send [15:25:55]*** Cut start [15:25:55]*** Purtial cut [15:25:55]*** Stage 1: CUTSNS_PIN = 1 [15:25:55]Read from MH i2c: 01 [15:25:55]MH_I2C_Read... [15:25:55]*** Stop cut motor [15:25:55]*** Cut end [15:25:55]Read from MH i2c: 01 07 00 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: 01 07 00 98 03 00 00 00 00 00 FF 0F B0 [15:25:55]process_action close_receipt done [15:25:55]requested_data is exist [15:25:55]produce_requested_data [15:25:55]requested_item fm.sn is exist - process it [15:25:55]wFMCommunicate request_size=4 [15:25:55]MH_SAM_APDU [15:25:55]CAPDU: 80 11 00 00 [15:25:55]Write to MH i2c: E2 08 00 99 03 80 11 00 00 00 00 00 00 16 [15:25:55]Write i2c OK [15:25:55]MH_I2C_Read... [15:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:55]Read from MH i2c: E2 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 17 00 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 17 00 99 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 61 [15:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:25:55]wFMCommunicate OK [15:25:55]requested_item fd.num is exist - process it [15:25:55]SAM_PROTO_GetFieldsCounters [15:25:55]wFMCommunicate request_size=4 [15:25:55]MH_SAM_APDU [15:25:55]CAPDU: 80 13 00 00 [15:25:55]Write to MH i2c: E2 08 00 9A 03 80 13 00 00 00 00 00 00 19 [15:25:55]Write i2c OK [15:25:55]MH_I2C_Read... [15:25:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:55]Read from MH i2c: E2 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 62 00 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 62 00 9A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 58 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [15:25:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 58 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:55]wFMCommunicate OK [15:25:55]SAM_PROTO_GetFieldsCounters done [15:25:55]requested_item shift.num is exist - process it [15:25:55]requested_item shift.opened is exist - process it [15:25:55]req_shift_opened [15:25:55]FM_GetShiftState [15:25:55]SAM_PROTO_GetShiftState [15:25:55]wFMCommunicate request_size=4 [15:25:55]MH_SAM_APDU [15:25:55]CAPDU: 80 13 01 00 [15:25:55]Write to MH i2c: E2 08 00 9B 03 80 13 01 00 00 00 00 00 1B [15:25:55]Write i2c OK [15:25:55]MH_I2C_Read... [15:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:55]Read from MH i2c: E2 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 0E 00 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: E2 0E 00 9B 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 D5 [15:25:55]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:25:55]wFMCommunicate OK [15:25:55]SAM_PROTO_GetShiftState done [15:25:55]FM_GetShiftState done [15:25:55]req_shift_opened done [15:25:55]requested_item shift.open_date is exist - process it [15:25:55]req_shift_open_date [15:25:55]req_shift_open_date done [15:25:55]produce_requested_data done [15:25:55]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50008,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [15:25:55]process_action_free close_receipt [15:25:55]json_value_free [15:25:55]json_value_free done [15:25:55]process_json_proto returns [15:25:55]Send response to host [15:25:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50008,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [15:25:55]free response buf [15:25:55]execute_script done [15:25:55]execute_script returns [15:25:55]free content buf [15:25:55]Sock 9.Close socket [15:25:55]Sock 9.Thread stoped [15:25:55]accept exits with 7 [15:25:55]New connection [15:25:55]New thread 3066613092 created [15:25:55]Thread 3066469732 joined [15:25:55]Waiting for new connection... [15:25:55] Sock 7.Parse request [15:25:55]Sock 7.Check first char [15:25:55]Sock 7.First char is OK [15:25:55]request: POST /json_proto HTTP/1.0 [15:25:55]Method: POST [15:25:55]URL: /json_proto [15:25:55]Method is POST - this is cgi request [15:25:55]url: /json_proto [15:25:55]query_string will be loaded in cgi processing [15:25:55]execute_cgi json_proto POST (null) [15:25:55]execute_cgi path=json_proto method=POST [15:25:55]POST find Content-Length [15:25:55]Host: 172.17.46.196:8080 [15:25:55]Content-Length: 753 [15:25:55]Content-Type: application/json [15:25:55] [15:25:55]POST finish read [15:25:55]Found Content-Length = 753 [15:25:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30062667", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:55]execute_script... [15:25:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30062667", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:55]POST & json_proto [15:25:55]process_json_proto [15:25:55]json parsed OK: [15:25:55]protocol is kg_v1.0 [15:25:55]action value=close_receipt [15:25:55]process_action close_receipt [15:25:55]cmd_close_receipt [15:25:55]MH_GetDate [15:25:55]Write to MH i2c: F0 00 00 9C 03 8E [15:25:55]Write i2c OK [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: F0 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: F0 09 00 [15:25:55]MH_I2C_Read... [15:25:55]Read from MH i2c: F0 09 00 9C 03 00 04 64 C3 66 C4 85 C2 66 99 [15:25:55]GetLastDocTimeStamp 1724081152 [15:25:55]current date 1724081156 [15:25:55]FM_GetShiftState [15:25:55]SAM_PROTO_GetShiftState [15:25:55]wFMCommunicate request_size=4 [15:25:55]MH_SAM_APDU [15:25:55]CAPDU: 80 13 01 00 [15:25:55]Write to MH i2c: E2 08 00 9D 03 80 13 01 00 00 00 00 00 1D [15:25:55]Write i2c OK [15:25:55]MH_I2C_Read... [15:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:56]Read from MH i2c: E2 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 0E 00 [15:25:56]MH_I2C_Read... [15:25:56]Read from MH i2c: E2 0E 00 9D 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 D7 [15:25:56]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:25:56]wFMCommunicate OK [15:25:56]SAM_PROTO_GetShiftState done [15:25:56]FM_GetShiftState done [15:25:56]opened in 1724026361 [15:25:56]opened+sec_in_day 1724112761 [15:25:56]quantity*price = 0 [15:25:56]sum+1 = 1 [15:25:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 116 19.08.2024 15:25 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30062667 ФМ: 0000000000871800 ФД: 50009 ФПД: 231548978123637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T152556&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50009&fm=231548978123637&tin=02508201610067®Number=0000000000092546&sum=0 [15:25:57]StoreToDocumentArchive [15:25:57]shift 467 fd 50009 [15:25:57]save to /storage/0467/doc_00050009 [15:25:57]save last doc name /storage/0467/doc_00050009 to /storage/kkm_last_doc_name [15:25:57]save OK [15:25:57]Clear old archive folders... [15:25:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:25:57]tlvbuf is 0124B2A0 [15:25:57]SAM_PROTO_ClearQueue [15:25:57]wFMCommunicate request_size=4 [15:25:57]MH_SAM_APDU [15:25:57]CAPDU: 80 09 00 00 [15:25:57]Write to MH i2c: E2 08 00 AA 03 80 09 00 00 00 00 00 00 1F [15:25:57]Write i2c OK [15:25:57]MH_I2C_Read... [15:25:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:57]Read from MH i2c: E2 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: E2 03 00 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [15:25:57]RAPDU: 90 00 [15:25:57]wFMCommunicate OK [15:25:57]SAM_PROTO_ClearQueue done [15:25:57]KKMCreateOFDPacket [15:25:57]OFDProtocolAddRootSTLVToBuf [15:25:57]FM_MakeSignedData [15:25:57]FM_MakeSignedData [15:25:57]SAM_PROTO_SignData [15:25:57]wFMCommunicate request_size=4 [15:25:57]MH_SAM_APDU [15:25:57]CAPDU: 80 0D 01 02 [15:25:57]Write to MH i2c: E2 08 00 AB 03 80 0D 01 02 00 00 00 00 27 [15:25:57]Write i2c OK [15:25:57]MH_I2C_Read... [15:25:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:57]Read from MH i2c: E2 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: E2 03 00 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [15:25:57]RAPDU: 90 00 [15:25:57]wFMCommunicate OK [15:25:57]wFMCommunicate request_size=255 [15:25:57]MH_SAM_APDU [15:25:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 90 65 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 04 64 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 59 C3 00 00 35 04 06 00 D2 97 B2 96 [15:25:57]Write to MH i2c: E2 02 01 AC 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 90 65 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 04 64 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 59 C3 00 00 35 04 06 00 D2 97 B2 96 00 00 18 [15:25:57]Write i2c OK [15:25:57]MH_I2C_Read... [15:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:57]Read from MH i2c: E2 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: E2 03 00 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [15:25:57]RAPDU: 90 00 [15:25:57]wFMCommunicate OK [15:25:57]wFMCommunicate request_size=7 [15:25:57]MH_SAM_APDU [15:25:57]CAPDU: 80 0D 02 02 02 D3 75 [15:25:57]Write to MH i2c: E2 0A 00 AD 03 80 0D 02 02 02 00 D3 75 00 00 76 [15:25:57]Write i2c OK [15:25:57]MH_I2C_Read... [15:25:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:57]Read from MH i2c: E2 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: E2 03 00 [15:25:57]MH_I2C_Read... [15:25:57]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [15:25:58]RAPDU: 90 00 [15:25:58]wFMCommunicate OK [15:25:58]wFMCommunicate request_size=4 [15:25:58]MH_SAM_APDU [15:25:58]CAPDU: 80 0D 03 02 [15:25:58]Write to MH i2c: E2 08 00 AE 03 80 0D 03 02 00 00 00 00 2C [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:58]Read from MH i2c: E2 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 0B 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 0B 00 AE 03 00 C8 C3 41 6A F5 69 E3 5C 90 00 00 [15:25:58]RAPDU: C8 C3 41 6A F5 69 E3 5C 90 00 [15:25:58]wFMCommunicate OK [15:25:58]SAM_PROTO_SignData done [15:25:58]FM_MakeSignedData done [15:25:58]CreateOFDProtocolMessage [15:25:58]wFMCommunicate request_size=4 [15:25:58]MH_SAM_APDU [15:25:58]CAPDU: 80 11 00 00 [15:25:58]Write to MH i2c: E2 08 00 AF 03 80 11 00 00 00 00 00 00 2C [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:58]Read from MH i2c: E2 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 17 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: E2 17 00 AF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 77 [15:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:25:58]wFMCommunicate OK [15:25:58]CreateOFDProtocolMessage done [15:25:58]OFDSenderStorePacket 50009 [15:25:58]StoreOFDPacket docnum=50009 [15:25:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 ED 93 04 01 2C 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 90 65 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 04 64 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 59 C3 00 00 35 04 06 00 D2 97 B2 96 D3 75 C8 C3 41 6A F5 69 E3 5C [15:25:58]CheckFolder [15:25:58]dirname=/storage/ofd_packets [15:25:58]CheckFolder done [15:25:58]ProducePacketName [15:25:58]name=ofd_packets/00050009 [15:25:58]NVStorageSaveData ofd_packets/00050009 [15:25:58]File name is /storage/ofd_packets/00050009 [15:25:58]Write 298 bytes [15:25:58]NVStorageSaveData done [15:25:58]OFDSenderStorePacket done [15:25:58]KKMCreateOFDPacket done [15:25:58]NVStorageSaveData kkm_last_timestamp [15:25:58]File name is /storage/kkm_last_timestamp [15:25:58]Write 4 bytes [15:25:58]NVStorageSaveData done [15:25:58]ExternCall_PrintAddStr [15:25:58]wPrintStart [15:25:58]Write to MH i2c: 01 00 00 B0 03 B3 [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: 01 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: 01 07 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: 01 07 00 B0 03 00 00 00 00 00 FF 0F C8 [15:25:58]RasterBufferAndPrint [15:25:58]line Счет N : (1)11327910 [15:25:58]line ИНН: 02508201610067 [15:25:58]line Контрольно-Кассовый Чек [15:25:58]line ПРОДАЖА [15:25:58]line ТРК (МРК, ГНК) : 61 [15:25:58]line Товар: 2710194210 [15:25:58]line ДТ-К-5 [15:25:58]line 26.000 * 0.00 [15:25:58]line = 0.00 [15:25:58]line НДС 12% НСП 1% [15:25:58]line > о реализуемом товаре [15:25:58]line ИТОГО: 0.00 [15:25:58]line НСП 1% : 0.00 [15:25:58]line НДС 12% : 0.00 [15:25:58]line Наличными: 0.00 [15:25:58]line Безнал.: 0.00 [15:25:58]line Место: АЗС № 95 "Партнер Нефть" [15:25:58]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:25:58]line СНО: Общий режим [15:25:58]line Чек 116 19.08.2024 15:25 [15:25:58]line Смена: 467 ФФД: 1.0 [15:25:58]line ЗНМ: 0300000078 [15:25:58]line РНМ: 0000000000092546 [15:25:58]line Версия ККМ: 001 [15:25:58]line Талоны: ТК ГПНА Online [15:25:58]line 30062667 [15:25:58]line ФМ: 0000000000871800 [15:25:58]line ФД: 50009 [15:25:58]line ФПД: 231548978123637 [15:25:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T152556&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50009&fm=231548978123637&tin=02508201610067®Number=0000000000092546&sum=0 [15:25:58]written 0, free lines is 4095 [15:25:58]OFD Sender: Processing packet 50009 [packets to send 21, broken 20] [15:25:58]ProducePacketName [15:25:58]name=ofd_packets/00050009 [15:25:58]OFD Sender: To server: pG, [15:25:58]CommunicateWithHost lk.salyk.kg:30040 [15:25:58]ConnectInit lk.salyk.kg [15:25:58]Connected sock=10 [15:25:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 ED 93 04 01 2C 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 90 65 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 04 64 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 59 C3 00 00 35 04 06 00 D2 97 B2 96 D3 75 C8 C3 41 6A F5 69 E3 5C [15:25:58]Write to MH i2c: 01 00 00 DA 03 DD [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: 01 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: 01 07 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: 01 07 00 DA 03 00 00 00 00 00 E6 0C D6 [15:25:58]RasterBufferAndPrint [15:25:58]line [15:25:58]line [15:25:58]line [15:25:58]line [15:25:58]line [15:25:58]written 0, free lines is 3317 [15:25:58]MH_Cut [15:25:58]Write to MH i2c: D1 01 00 E1 03 01 B6 [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: D1 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: D1 01 00 [15:25:58]MH_I2C_Read... [15:25:58]Read from MH i2c: D1 01 00 E1 03 00 B5 [15:25:58]Write to MH i2c: 01 00 00 E2 03 E5 [15:25:58]Write i2c OK [15:25:58]MH_I2C_Read... [15:25:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A6 DD 47 00 87 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 59 C3 00 00 F4 03 04 00 71 0E C3 66 B6 04 01 00 00 A8 53 58 D6 CC 6A E5 8E [15:25:59]CommunicateWithHost err = 0 [15:25:59]CheckOFDResponse [15:25:59]1017 (14) - 77093643461234 [15:25:59]1041 (16) - 0000000000871800 [15:25:59]1040 (4) - 50009 [15:25:59]1012 (4) - 19.08.2024 09:20 [15:25:59]1206 (1) - 0 [15:25:59]OFD Sender: Remove packet 50009 [15:25:59]ProducePacketName [15:25:59]name=ofd_packets/00050009 [15:25:59]NVStorageDeleteData [15:25:59]*** Cut start [15:25:59]*** Purtial cut [15:25:59]*** CUTSNS_PIN = 0 [15:25:59]*** Stage 1: CUTSNS_PIN = 1 [15:25:59]OFD Sender: No OFD packet to send [15:26:01]Read from MH i2c: 01 [15:26:01]MH_I2C_Read... [15:26:01]*** Stop cut motor [15:26:01]*** Cut end [15:26:01]Read from MH i2c: 01 07 00 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: 01 07 00 E2 03 00 00 00 00 00 FF 0F FA [15:26:01]process_action close_receipt done [15:26:01]requested_data is exist [15:26:01]produce_requested_data [15:26:01]requested_item fm.sn is exist - process it [15:26:01]wFMCommunicate request_size=4 [15:26:01]MH_SAM_APDU [15:26:01]CAPDU: 80 11 00 00 [15:26:01]Write to MH i2c: E2 08 00 E3 03 80 11 00 00 00 00 00 00 60 [15:26:01]Write i2c OK [15:26:01]MH_I2C_Read... [15:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:01]Read from MH i2c: E2 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 17 00 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 17 00 E3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AB [15:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:26:01]wFMCommunicate OK [15:26:01]requested_item fd.num is exist - process it [15:26:01]SAM_PROTO_GetFieldsCounters [15:26:01]wFMCommunicate request_size=4 [15:26:01]MH_SAM_APDU [15:26:01]CAPDU: 80 13 00 00 [15:26:01]Write to MH i2c: E2 08 00 E4 03 80 13 00 00 00 00 00 00 63 [15:26:01]Write i2c OK [15:26:01]MH_I2C_Read... [15:26:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:01]Read from MH i2c: E2 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 62 00 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 62 00 E4 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 59 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [15:26:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 59 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:01]wFMCommunicate OK [15:26:01]SAM_PROTO_GetFieldsCounters done [15:26:01]requested_item shift.num is exist - process it [15:26:01]requested_item shift.opened is exist - process it [15:26:01]req_shift_opened [15:26:01]FM_GetShiftState [15:26:01]SAM_PROTO_GetShiftState [15:26:01]wFMCommunicate request_size=4 [15:26:01]MH_SAM_APDU [15:26:01]CAPDU: 80 13 01 00 [15:26:01]Write to MH i2c: E2 08 00 E5 03 80 13 01 00 00 00 00 00 65 [15:26:01]Write i2c OK [15:26:01]MH_I2C_Read... [15:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:01]Read from MH i2c: E2 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 0E 00 [15:26:01]MH_I2C_Read... [15:26:01]Read from MH i2c: E2 0E 00 E5 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 1F [15:26:01]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:26:01]wFMCommunicate OK [15:26:01]SAM_PROTO_GetShiftState done [15:26:01]FM_GetShiftState done [15:26:01]req_shift_opened done [15:26:01]requested_item shift.open_date is exist - process it [15:26:01]req_shift_open_date [15:26:01]req_shift_open_date done [15:26:01]produce_requested_data done [15:26:01]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50009,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [15:26:01]process_action_free close_receipt [15:26:01]json_value_free [15:26:01]json_value_free done [15:26:01]process_json_proto returns [15:26:01]Send response to host [15:26:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50009,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [15:26:01]free response buf [15:26:01]execute_script done [15:26:01]execute_script returns [15:26:01]free content buf [15:26:01]Sock 7.Close socket [15:26:01]Sock 7.Thread stoped [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:11]accept exits with 9 [15:27:11]New connection [15:27:11]New thread 3066469732 created [15:27:11]Thread 3066613092 joined [15:27:11]Waiting for new connection... [15:27:11] Sock 9.Parse request [15:27:11]Sock 9.Check first char [15:27:11]Sock 9.First char is OK [15:27:11]request: POST /json_proto HTTP/1.0 [15:27:11]Method: POST [15:27:11]URL: /json_proto [15:27:11]Method is POST - this is cgi request [15:27:11]url: /json_proto [15:27:11]query_string will be loaded in cgi processing [15:27:11]execute_cgi json_proto POST (null) [15:27:11]execute_cgi path=json_proto method=POST [15:27:11]POST find Content-Length [15:27:11]Host: 172.17.46.196:8080 [15:27:11]Content-Length: 872 [15:27:11]Content-Type: application/json [15:27:11] [15:27:11]POST finish read [15:27:11]Found Content-Length = 872 [15:27:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190142", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 82.00, "quantity" : 2.000, "sum" : 164.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 164.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:11]execute_script... [15:27:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190142", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 82.00, "quantity" : 2.000, "sum" : 164.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 164.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:11]POST & json_proto [15:27:11]process_json_proto [15:27:11]json parsed OK: [15:27:11]protocol is kg_v1.0 [15:27:11]action value=close_receipt [15:27:11]process_action close_receipt [15:27:11]cmd_close_receipt [15:27:11]MH_GetDate [15:27:11]Write to MH i2c: F0 00 00 E6 03 D8 [15:27:11]Write i2c OK [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: F0 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: F0 09 00 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: F0 09 00 E6 03 00 4F 64 C3 66 C4 85 C2 66 2E [15:27:11]GetLastDocTimeStamp 1724081156 [15:27:11]current date 1724081231 [15:27:11]FM_GetShiftState [15:27:11]SAM_PROTO_GetShiftState [15:27:11]wFMCommunicate request_size=4 [15:27:11]MH_SAM_APDU [15:27:11]CAPDU: 80 13 01 00 [15:27:11]Write to MH i2c: E2 08 00 E7 03 80 13 01 00 00 00 00 00 67 [15:27:11]Write i2c OK [15:27:11]MH_I2C_Read... [15:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:11]Read from MH i2c: E2 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: E2 0E 00 [15:27:11]MH_I2C_Read... [15:27:11]Read from MH i2c: E2 0E 00 E7 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 21 [15:27:11]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:27:11]wFMCommunicate OK [15:27:11]SAM_PROTO_GetShiftState done [15:27:11]FM_GetShiftState done [15:27:11]opened in 1724026361 [15:27:11]opened+sec_in_day 1724112761 [15:27:11]quantity*price = 16400 [15:27:11]sum+1 = 16401 [15:27:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 164.00 НСП 1% : 1.45 НДС 12% : 17.42 Наличными: 0.00 Безнал.: 164.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 117 19.08.2024 15:27 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 50010 ФПД: 246479145649652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T152711&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50010&fm=246479145649652&tin=02508201610067®Number=0000000000092546&sum=16400 0 [15:27:12]StoreToDocumentArchive [15:27:12]shift 467 fd 50010 [15:27:12]save to /storage/0467/doc_00050010 [15:27:12]save last doc name /storage/0467/doc_00050010 to /storage/kkm_last_doc_name [15:27:12]save OK [15:27:12]Clear old archive folders... [15:27:12]ProcessDocumentItem done err = 0, tmpTLVsize=304 [15:27:12]tlvbuf is 01287700 [15:27:12]SAM_PROTO_ClearQueue [15:27:12]wFMCommunicate request_size=4 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 09 00 00 [15:27:12]Write to MH i2c: E2 08 00 F4 03 80 09 00 00 00 00 00 00 69 [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:12]Read from MH i2c: E2 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 F4 03 00 90 00 6B [15:27:12]RAPDU: 90 00 [15:27:12]wFMCommunicate OK [15:27:12]SAM_PROTO_ClearQueue done [15:27:12]KKMCreateOFDPacket [15:27:12]OFDProtocolAddRootSTLVToBuf [15:27:12]FM_MakeSignedData [15:27:12]FM_MakeSignedData [15:27:12]SAM_PROTO_SignData [15:27:12]wFMCommunicate request_size=4 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 0D 01 02 [15:27:12]Write to MH i2c: E2 08 00 F5 03 80 0D 01 02 00 00 00 00 71 [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:12]Read from MH i2c: E2 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 [15:27:12]MH_I2C_Read... [15:27:12]Read from MH i2c: E2 03 00 F5 03 00 90 00 6C [15:27:12]RAPDU: 90 00 [15:27:12]wFMCommunicate OK [15:27:12]wFMCommunicate request_size=255 [15:27:12]MH_SAM_APDU [15:27:12]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 10 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 4F 64 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 [15:27:12]Write to MH i2c: E2 02 01 F6 03 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 10 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 4F 64 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 00 00 F9 [15:27:12]Write i2c OK [15:27:12]MH_I2C_Read... [15:27:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:13]Read from MH i2c: E2 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 03 00 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [15:27:13]RAPDU: 90 00 [15:27:13]wFMCommunicate OK [15:27:13]wFMCommunicate request_size=63 [15:27:13]MH_SAM_APDU [15:27:13]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5A C3 00 00 35 04 06 00 E0 2B E5 EB C5 F4 [15:27:13]Write to MH i2c: E2 42 00 F7 03 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5A C3 00 00 35 04 06 00 E0 2B E5 EB C5 F4 00 00 68 [15:27:13]Write i2c OK [15:27:13]MH_I2C_Read... [15:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:13]Read from MH i2c: E2 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 03 00 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [15:27:13]RAPDU: 90 00 [15:27:13]wFMCommunicate OK [15:27:13]wFMCommunicate request_size=4 [15:27:13]MH_SAM_APDU [15:27:13]CAPDU: 80 0D 03 02 [15:27:13]Write to MH i2c: E2 08 00 F8 03 80 0D 03 02 00 00 00 00 76 [15:27:13]Write i2c OK [15:27:13]MH_I2C_Read... [15:27:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:13]Read from MH i2c: E2 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 0B 00 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 0B 00 F8 03 00 58 3C FD BD 6E 4C 9E 4F 90 00 6C [15:27:13]RAPDU: 58 3C FD BD 6E 4C 9E 4F 90 00 [15:27:13]wFMCommunicate OK [15:27:13]SAM_PROTO_SignData done [15:27:13]FM_MakeSignedData done [15:27:13]CreateOFDProtocolMessage [15:27:13]wFMCommunicate request_size=4 [15:27:13]MH_SAM_APDU [15:27:13]CAPDU: 80 11 00 00 [15:27:13]Write to MH i2c: E2 08 00 F9 03 80 11 00 00 00 00 00 00 76 [15:27:13]Write i2c OK [15:27:13]MH_I2C_Read... [15:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:13]Read from MH i2c: E2 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 17 00 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: E2 17 00 F9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C1 [15:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:27:13]wFMCommunicate OK [15:27:13]CreateOFDProtocolMessage done [15:27:13]OFDSenderStorePacket 50010 [15:27:13]StoreOFDPacket docnum=50010 [15:27:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 44 01 00 00 38 67 3C 01 DA 43 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 10 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 4F 64 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5A C3 00 00 35 04 06 00 E0 2B E5 EB C5 F4 58 3C FD BD 6E 4C 9E 4F [15:27:13]CheckFolder [15:27:13]dirname=/storage/ofd_packets [15:27:13]CheckFolder done [15:27:13]ProducePacketName [15:27:13]name=ofd_packets/00050010 [15:27:13]NVStorageSaveData ofd_packets/00050010 [15:27:13]File name is /storage/ofd_packets/00050010 [15:27:13]Write 354 bytes [15:27:13]NVStorageSaveData done [15:27:13]OFDSenderStorePacket done [15:27:13]KKMCreateOFDPacket done [15:27:13]NVStorageSaveData kkm_last_timestamp [15:27:13]File name is /storage/kkm_last_timestamp [15:27:13]Write 4 bytes [15:27:13]NVStorageSaveData done [15:27:13]ExternCall_PrintAddStr [15:27:13]wPrintStart [15:27:13]Write to MH i2c: 01 00 00 FA 03 FD [15:27:13]Write i2c OK [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: 01 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: 01 07 00 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: 01 07 00 FA 03 00 00 00 00 00 FF 0F 12 [15:27:13]RasterBufferAndPrint [15:27:13]line Счет N : (3)190142 [15:27:13]line ИНН: 02508201610067 [15:27:13]line Контрольно-Кассовый Чек [15:27:13]line ПРОДАЖА [15:27:13]line Товар: 4700000480302 [15:27:13]line Напиток энерг Nitro манго-клуб 0.45 ж/б [15:27:13]line 2.000 * 82.00 [15:27:13]line = 164.00 [15:27:13]line НДС 12% НСП 1% [15:27:13]line > о реализуемом товаре [15:27:13]line ИТОГО: 164.00 [15:27:13]line НСП 1% : 1.45 [15:27:13]line НДС 12% : 17.42 [15:27:13]line Наличными: 0.00 [15:27:13]line Безнал.: 164.00 [15:27:13]line Место: АЗС № 95 "Партнер Нефть" [15:27:13]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:27:13]line СНО: Общий режим [15:27:13]line Чек 117 19.08.2024 15:27 [15:27:13]line Смена: 467 ФФД: 1.0 [15:27:13]line ЗНМ: 0300000078 [15:27:13]line РНМ: 0000000000092546 [15:27:13]line Версия ККМ: 001 [15:27:13]line Платежная система: O! деньги [15:27:13]line ФМ: 0000000000871800 [15:27:13]line ФД: 50010 [15:27:13]line ФПД: 246479145649652 [15:27:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T152711&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50010&fm=246479145649652&tin=02508201610067®Number=0000000000092546&sum=16400 [15:27:13]line 0 [15:27:13]OFD Sender: Processing packet 50010 [packets to send 21, broken 20] [15:27:13]ProducePacketName [15:27:13]name=ofd_packets/00050010 [15:27:13]OFD Sender: To server: pG, [15:27:13]CommunicateWithHost lk.salyk.kg:30040 [15:27:13]ConnectInit lk.salyk.kg [15:27:13]written 0, free lines is 4095 [15:27:13]Connected sock=11 [15:27:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 44 01 00 00 38 67 3C 01 DA 43 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 08 20 00 00 00 00 13 04 06 00 10 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 4F 64 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5A C3 00 00 35 04 06 00 E0 2B E5 EB C5 F4 58 3C FD BD 6E 4C 9E 4F [15:27:13]Write to MH i2c: 01 00 00 25 04 29 [15:27:13]Write i2c OK [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: 01 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: 01 07 00 [15:27:13]MH_I2C_Read... [15:27:13]Read from MH i2c: 01 07 00 25 04 00 00 00 00 00 BD 0C F9 [15:27:13]RasterBufferAndPrint [15:27:13]line [15:27:13]line [15:27:13]line [15:27:13]line [15:27:13]line [15:27:13]written 0, free lines is 3267 [15:27:13]MH_Cut [15:27:13]Write to MH i2c: D1 01 00 2C 04 01 02 [15:27:14]Write i2c OK [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: D1 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: D1 01 00 [15:27:14]MH_I2C_Read... [15:27:14]Read from MH i2c: D1 01 00 2C 04 00 01 [15:27:14]Write to MH i2c: 01 00 00 2D 04 31 [15:27:14]Write i2c OK [15:27:14]MH_I2C_Read... [15:27:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 27 C6 47 00 2C BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5A C3 00 00 F4 03 04 00 BD 0E C3 66 B6 04 01 00 00 9E 8B 57 F3 30 6C 37 6D [15:27:14]CommunicateWithHost err = 0 [15:27:14]CheckOFDResponse [15:27:14]1017 (14) - 77093643461234 [15:27:14]1041 (16) - 0000000000871800 [15:27:14]1040 (4) - 50010 [15:27:14]1012 (4) - 19.08.2024 09:22 [15:27:14]1206 (1) - 0 [15:27:14]OFD Sender: Remove packet 50010 [15:27:14]ProducePacketName [15:27:14]name=ofd_packets/00050010 [15:27:14]NVStorageDeleteData [15:27:14]OFD Sender: No OFD packet to send [15:27:14]*** Cut start [15:27:14]*** Purtial cut [15:27:14]*** Stage 1: CUTSNS_PIN = 1 [15:27:15]Read from MH i2c: 01 [15:27:15]MH_I2C_Read... [15:27:15]*** Stop cut motor [15:27:15]*** Cut end [15:27:15]Read from MH i2c: 01 07 00 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: 01 07 00 2D 04 00 00 00 00 00 FF 0F 46 [15:27:15]process_action close_receipt done [15:27:15]requested_data is exist [15:27:15]produce_requested_data [15:27:15]requested_item fm.sn is exist - process it [15:27:15]wFMCommunicate request_size=4 [15:27:15]MH_SAM_APDU [15:27:15]CAPDU: 80 11 00 00 [15:27:15]Write to MH i2c: E2 08 00 2E 04 80 11 00 00 00 00 00 00 AC [15:27:15]Write i2c OK [15:27:15]MH_I2C_Read... [15:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:15]Read from MH i2c: E2 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: E2 17 00 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: E2 17 00 2E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F7 [15:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:27:15]wFMCommunicate OK [15:27:15]requested_item fd.num is exist - process it [15:27:15]SAM_PROTO_GetFieldsCounters [15:27:15]wFMCommunicate request_size=4 [15:27:15]MH_SAM_APDU [15:27:15]CAPDU: 80 13 00 00 [15:27:15]Write to MH i2c: E2 08 00 2F 04 80 13 00 00 00 00 00 00 AF [15:27:15]Write i2c OK [15:27:15]MH_I2C_Read... [15:27:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:15]Read from MH i2c: E2 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: E2 62 00 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: E2 62 00 2F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5A C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [15:27:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5A C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:27:15]wFMCommunicate OK [15:27:15]SAM_PROTO_GetFieldsCounters done [15:27:15]requested_item shift.num is exist - process it [15:27:15]requested_item shift.opened is exist - process it [15:27:15]req_shift_opened [15:27:15]FM_GetShiftState [15:27:15]SAM_PROTO_GetShiftState [15:27:15]wFMCommunicate request_size=4 [15:27:15]MH_SAM_APDU [15:27:15]CAPDU: 80 13 01 00 [15:27:15]Write to MH i2c: E2 08 00 30 04 80 13 01 00 00 00 00 00 B1 [15:27:15]Write i2c OK [15:27:15]MH_I2C_Read... [15:27:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:15]Read from MH i2c: E2 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: E2 0E 00 [15:27:15]MH_I2C_Read... [15:27:15]Read from MH i2c: E2 0E 00 30 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 6B [15:27:15]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:27:15]wFMCommunicate OK [15:27:15]SAM_PROTO_GetShiftState done [15:27:15]FM_GetShiftState done [15:27:15]req_shift_opened done [15:27:15]requested_item shift.open_date is exist - process it [15:27:15]req_shift_open_date [15:27:15]req_shift_open_date done [15:27:15]produce_requested_data done [15:27:15]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50010,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [15:27:15]process_action_free close_receipt [15:27:15]json_value_free [15:27:15]json_value_free done [15:27:15]process_json_proto returns [15:27:15]Send response to host [15:27:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50010,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [15:27:15]free response buf [15:27:15]execute_script done [15:27:15]execute_script returns [15:27:15]free content buf [15:27:15]Sock 9.Close socket [15:27:15]Sock 9.Thread stoped [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:44]accept exits with 7 [15:34:44]New connection [15:34:44]New thread 3066613092 created [15:34:44]Thread 3066469732 joined [15:34:44]Waiting for new connection... [15:34:44] Sock 7.Parse request [15:34:44]Sock 7.Check first char [15:34:44]Sock 7.First char is OK [15:34:44]request: POST /json_proto HTTP/1.0 [15:34:44]Method: POST [15:34:44]URL: /json_proto [15:34:44]Method is POST - this is cgi request [15:34:44]url: /json_proto [15:34:44]query_string will be loaded in cgi processing [15:34:44]execute_cgi json_proto POST (null) [15:34:44]execute_cgi path=json_proto method=POST [15:34:44]POST find Content-Length [15:34:44]Host: 172.17.46.196:8080 [15:34:44]Content-Length: 646 [15:34:44]Content-Type: application/json [15:34:44] [15:34:44]POST finish read [15:34:44]Found Content-Length = 646 [15:34:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190143", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:44]execute_script... [15:34: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)190143", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:44]POST & json_proto [15:34:44]process_json_proto [15:34:44]json parsed OK: [15:34:44]protocol is kg_v1.0 [15:34:44]action value=close_receipt [15:34:44]process_action close_receipt [15:34:44]cmd_close_receipt [15:34:44]MH_GetDate [15:34:44]Write to MH i2c: F0 00 00 31 04 24 [15:34:44]Write i2c OK [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: F0 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: F0 09 00 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: F0 09 00 31 04 00 14 66 C3 66 C4 85 C2 66 41 [15:34:44]GetLastDocTimeStamp 1724081231 [15:34:44]current date 1724081684 [15:34:44]FM_GetShiftState [15:34:44]SAM_PROTO_GetShiftState [15:34:44]wFMCommunicate request_size=4 [15:34:44]MH_SAM_APDU [15:34:44]CAPDU: 80 13 01 00 [15:34:44]Write to MH i2c: E2 08 00 32 04 80 13 01 00 00 00 00 00 B3 [15:34:44]Write i2c OK [15:34:44]MH_I2C_Read... [15:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:44]Read from MH i2c: E2 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: E2 0E 00 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: E2 0E 00 32 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 6D [15:34:44]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:34:44]wFMCommunicate OK [15:34:44]SAM_PROTO_GetShiftState done [15:34:44]FM_GetShiftState done [15:34:44]opened in 1724026361 [15:34:44]opened+sec_in_day 1724112761 [15:34:44]quantity*price = 13000 [15:34:44]sum+1 = 13001 [15:34:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 118 19.08.2024 15:34 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50011 ФПД: 110291292992531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T153444&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50011&fm=110291292992531&tin=02508201610067®Number=0000000000092546&sum=13000 0 [15:34:45]StoreToDocumentArchive [15:34:45]shift 467 fd 50011 [15:34:45]save to /storage/0467/doc_00050011 [15:34:45]save last doc name /storage/0467/doc_00050011 to /storage/kkm_last_doc_name [15:34:45]save OK [15:34:45]Clear old archive folders... [15:34:45]ProcessDocumentItem done err = 0, tmpTLVsize=282 [15:34:45]tlvbuf is 0124C080 [15:34:45]SAM_PROTO_ClearQueue [15:34:45]wFMCommunicate request_size=4 [15:34:45]MH_SAM_APDU [15:34:45]CAPDU: 80 09 00 00 [15:34:45]Write to MH i2c: E2 08 00 3F 04 80 09 00 00 00 00 00 00 B5 [15:34:45]Write i2c OK [15:34:45]MH_I2C_Read... [15:34:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:45]Read from MH i2c: E2 [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: E2 03 00 [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [15:34:45]RAPDU: 90 00 [15:34:45]wFMCommunicate OK [15:34:45]SAM_PROTO_ClearQueue done [15:34:45]KKMCreateOFDPacket [15:34:45]OFDProtocolAddRootSTLVToBuf [15:34:45]FM_MakeSignedData [15:34:45]FM_MakeSignedData [15:34:45]SAM_PROTO_SignData [15:34:45]wFMCommunicate request_size=4 [15:34:45]MH_SAM_APDU [15:34:45]CAPDU: 80 0D 01 02 [15:34:45]Write to MH i2c: E2 08 00 40 04 80 0D 01 02 00 00 00 00 BD [15:34:45]Write i2c OK [15:34:45]MH_I2C_Read... [15:34:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:45]Read from MH i2c: E2 [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: E2 03 00 [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [15:34:45]RAPDU: 90 00 [15:34:45]wFMCommunicate OK [15:34:45]wFMCommunicate request_size=255 [15:34:45]MH_SAM_APDU [15:34:45]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 76 00 00 00 F4 03 04 00 14 66 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [15:34:45]Write to MH i2c: E2 02 01 41 04 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 76 00 00 00 F4 03 04 00 14 66 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 BA [15:34:45]Write i2c OK [15:34:45]MH_I2C_Read... [15:34:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:46]Read from MH i2c: E2 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 03 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [15:34:46]RAPDU: 90 00 [15:34:46]wFMCommunicate OK [15:34:46]wFMCommunicate request_size=41 [15:34:46]MH_SAM_APDU [15:34:46]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5B C3 00 00 35 04 06 00 64 4F 31 57 34 13 [15:34:46]Write to MH i2c: E2 2C 00 42 04 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5B C3 00 00 35 04 06 00 64 4F 31 57 34 13 00 00 27 [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:46]Read from MH i2c: E2 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 03 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [15:34:46]RAPDU: 90 00 [15:34:46]wFMCommunicate OK [15:34:46]wFMCommunicate request_size=4 [15:34:46]MH_SAM_APDU [15:34:46]CAPDU: 80 0D 03 02 [15:34:46]Write to MH i2c: E2 08 00 43 04 80 0D 03 02 00 00 00 00 C2 [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:46]Read from MH i2c: E2 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 0B 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 0B 00 43 04 00 F1 D5 46 F9 CB 59 47 DF 90 00 12 [15:34:46]RAPDU: F1 D5 46 F9 CB 59 47 DF 90 00 [15:34:46]wFMCommunicate OK [15:34:46]SAM_PROTO_SignData done [15:34:46]FM_MakeSignedData done [15:34:46]CreateOFDProtocolMessage [15:34:46]wFMCommunicate request_size=4 [15:34:46]MH_SAM_APDU [15:34:46]CAPDU: 80 11 00 00 [15:34:46]Write to MH i2c: E2 08 00 44 04 80 11 00 00 00 00 00 00 C2 [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:46]Read from MH i2c: E2 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 17 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 17 00 44 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0D [15:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:34:46]wFMCommunicate OK [15:34:46]CreateOFDProtocolMessage done [15:34:46]OFDSenderStorePacket 50011 [15:34:46]StoreOFDPacket docnum=50011 [15:34:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 FE D0 26 01 D6 9F 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 76 00 00 00 F4 03 04 00 14 66 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5B C3 00 00 35 04 06 00 64 4F 31 57 34 13 F1 D5 46 F9 CB 59 47 DF [15:34:46]CheckFolder [15:34:46]dirname=/storage/ofd_packets [15:34:46]CheckFolder done [15:34:46]ProducePacketName [15:34:46]name=ofd_packets/00050011 [15:34:46]NVStorageSaveData ofd_packets/00050011 [15:34:46]File name is /storage/ofd_packets/00050011 [15:34:46]Write 332 bytes [15:34:46]NVStorageSaveData done [15:34:46]OFDSenderStorePacket done [15:34:46]KKMCreateOFDPacket done [15:34:46]NVStorageSaveData kkm_last_timestamp [15:34:46]File name is /storage/kkm_last_timestamp [15:34:46]Write 4 bytes [15:34:46]NVStorageSaveData done [15:34:46]ExternCall_PrintAddStr [15:34:46]wPrintStart [15:34:46]Write to MH i2c: 01 00 00 45 04 49 [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: 01 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: 01 07 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: 01 07 00 45 04 00 00 00 00 00 FF 0F 5E [15:34:46]RasterBufferAndPrint [15:34:46]line Счет N : (3)190143 [15:34:46]line ИНН: 02508201610067 [15:34:46]line Контрольно-Кассовый Чек [15:34:46]line ПРОДАЖА [15:34:46]line Товар: 2000036220012 [15:34:46]line Кофе Капучино XL(GABB TRADE) [15:34:46]line 1.000 * 130.00 [15:34:46]line = 130.00 [15:34:46]line НДС 12% НСП 1% [15:34:46]line > о реализуемом товаре [15:34:46]line ИТОГО: 130.00 [15:34:46]line НСП 1% : 1.15 [15:34:46]line НДС 12% : 13.80 [15:34:46]line Наличными: 130.00 [15:34:46]line Безнал.: 0.00 [15:34:46]line Место: АЗС № 95 "Партнер Нефть" [15:34:46]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:34:46]line СНО: Общий режим [15:34:46]line Чек 118 19.08.2024 15:34 [15:34:46]line Смена: 467 ФФД: 1.0 [15:34:46]line ЗНМ: 0300000078 [15:34:46]line РНМ: 0000000000092546 [15:34:46]line Версия ККМ: 001 [15:34:46]line ФМ: 0000000000871800 [15:34:46]line ФД: 50011 [15:34:46]line ФПД: 110291292992531 [15:34:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T153444&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50011&fm=110291292992531&tin=02508201610067®Number=0000000000092546&sum=13000 [15:34:46]line 0 [15:34:46]OFD Sender: Processing packet 50011 [packets to send 21, broken 20] [15:34:46]ProducePacketName [15:34:46]name=ofd_packets/00050011 [15:34:46]OFD Sender: To server: pG, [15:34:46]CommunicateWithHost lk.salyk.kg:30040 [15:34:46]ConnectInit lk.salyk.kg [15:34:46]written 0, free lines is 4095 [15:34:46]Connected sock=10 [15:34:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 FE D0 26 01 D6 9F 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 76 00 00 00 F4 03 04 00 14 66 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5B C3 00 00 35 04 06 00 64 4F 31 57 34 13 F1 D5 46 F9 CB 59 47 DF [15:34:46]Write to MH i2c: 01 00 00 6E 04 72 [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: 01 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: 01 07 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: 01 07 00 6E 04 00 00 00 00 00 EA 0C 6F [15:34:46]RasterBufferAndPrint [15:34:46]line [15:34:46]line [15:34:46]line [15:34:46]line [15:34:46]line [15:34:46]written 0, free lines is 3312 [15:34:46]MH_Cut [15:34:46]Write to MH i2c: D1 01 00 75 04 01 4B [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: D1 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: D1 01 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: D1 01 00 75 04 00 4A [15:34:46]Write to MH i2c: 01 00 00 76 04 7A [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 19 A8 47 00 63 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5B C3 00 00 F4 03 04 00 82 10 C3 66 B6 04 01 00 00 EE 28 80 50 C2 BA 41 FA [15:34:47]CommunicateWithHost err = 0 [15:34:47]CheckOFDResponse [15:34:47]1017 (14) - 77093643461234 [15:34:47]1041 (16) - 0000000000871800 [15:34:47]1040 (4) - 50011 [15:34:47]1012 (4) - 19.08.2024 09:29 [15:34:47]1206 (1) - 0 [15:34:47]OFD Sender: Remove packet 50011 [15:34:47]ProducePacketName [15:34:47]name=ofd_packets/00050011 [15:34:47]NVStorageDeleteData [15:34:47]*** Cut start [15:34:47]*** Purtial cut [15:34:47]*** CUTSNS_PIN = 0 [15:34:47]OFD Sender: No OFD packet to send [15:34:47]*** Stage 1: CUTSNS_PIN = 1 [15:34:49]Read from MH i2c: 01 [15:34:49]MH_I2C_Read... [15:34:49]*** Stop cut motor [15:34:49]*** Cut end [15:34:49]Read from MH i2c: 01 07 00 [15:34:49]MH_I2C_Read... [15:34:49]Read from MH i2c: 01 07 00 76 04 00 00 00 00 00 FF 0F 8F [15:34:49]process_action close_receipt done [15:34:49]requested_data is exist [15:34:49]produce_requested_data [15:34:49]requested_item fm.sn is exist - process it [15:34:49]wFMCommunicate request_size=4 [15:34:49]MH_SAM_APDU [15:34:49]CAPDU: 80 11 00 00 [15:34:49]Write to MH i2c: E2 08 00 77 04 80 11 00 00 00 00 00 00 F5 [15:34:49]Write i2c OK [15:34:49]MH_I2C_Read... [15:34:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:49]Read from MH i2c: E2 [15:34:49]MH_I2C_Read... [15:34:49]Read from MH i2c: E2 17 00 [15:34:49]MH_I2C_Read... [15:34:49]Read from MH i2c: E2 17 00 77 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 40 [15:34:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:34:49]wFMCommunicate OK [15:34:49]requested_item fd.num is exist - process it [15:34:49]SAM_PROTO_GetFieldsCounters [15:34:49]wFMCommunicate request_size=4 [15:34:49]MH_SAM_APDU [15:34:49]CAPDU: 80 13 00 00 [15:34:49]Write to MH i2c: E2 08 00 78 04 80 13 00 00 00 00 00 00 F8 [15:34:49]Write i2c OK [15:34:49]MH_I2C_Read... [15:34:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:49]Read from MH i2c: E2 [15:34:49]MH_I2C_Read... [15:34:49]Read from MH i2c: E2 62 00 [15:34:49]MH_I2C_Read... [15:34:49]Read from MH i2c: E2 62 00 78 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5B C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [15:34:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5B C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:49]wFMCommunicate OK [15:34:49]SAM_PROTO_GetFieldsCounters done [15:34:49]requested_item shift.num is exist - process it [15:34:49]requested_item shift.opened is exist - process it [15:34:49]req_shift_opened [15:34:49]FM_GetShiftState [15:34:49]SAM_PROTO_GetShiftState [15:34:49]wFMCommunicate request_size=4 [15:34:49]MH_SAM_APDU [15:34:49]CAPDU: 80 13 01 00 [15:34:49]Write to MH i2c: E2 08 00 79 04 80 13 01 00 00 00 00 00 FA [15:34:49]Write i2c OK [15:34:49]MH_I2C_Read... [15:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:50]Read from MH i2c: E2 [15:34:50]MH_I2C_Read... [15:34:50]Read from MH i2c: E2 0E 00 [15:34:50]MH_I2C_Read... [15:34:50]Read from MH i2c: E2 0E 00 79 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B4 [15:34:50]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:34:50]wFMCommunicate OK [15:34:50]SAM_PROTO_GetShiftState done [15:34:50]FM_GetShiftState done [15:34:50]req_shift_opened done [15:34:50]requested_item shift.open_date is exist - process it [15:34:50]req_shift_open_date [15:34:50]req_shift_open_date done [15:34:50]produce_requested_data done [15:34:50]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50011,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [15:34:50]process_action_free close_receipt [15:34:50]json_value_free [15:34:50]json_value_free done [15:34:50]process_json_proto returns [15:34:50]Send response to host [15:34:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50011,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [15:34:50]free response buf [15:34:50]execute_script done [15:34:50]execute_script returns [15:34:50]free content buf [15:34:50]Sock 7.Close socket [15:34:50]Sock 7.Thread stoped [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:58]OFD Sender: No OFD packet to send [15:38:03]OFD Sender: No OFD packet to send [15:38:08]OFD Sender: No OFD packet to send [15:38:13]OFD Sender: No OFD packet to send [15:38:18]OFD Sender: No OFD packet to send [15:38:23]OFD Sender: No OFD packet to send [15:38:28]OFD Sender: No OFD packet to send [15:38:33]OFD Sender: No OFD packet to send [15:38:38]OFD Sender: No OFD packet to send [15:38:43]OFD Sender: No OFD packet to send [15:38:48]OFD Sender: No OFD packet to send [15:38:53]OFD Sender: No OFD packet to send [15:38:58]OFD Sender: No OFD packet to send [15:39:03]OFD Sender: No OFD packet to send [15:39:08]OFD Sender: No OFD packet to send [15:39:13]OFD Sender: No OFD packet to send [15:39:18]OFD Sender: No OFD packet to send [15:39:23]OFD Sender: No OFD packet to send [15:39:28]OFD Sender: No OFD packet to send [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:13]accept exits with 9 [15:40:13]New connection [15:40:13]New thread 3066469732 created [15:40:13]Thread 3066613092 joined [15:40:13]Waiting for new connection... [15:40:13] Sock 9.Parse request [15:40:13]Sock 9.Check first char [15:40:13]Sock 9.First char is OK [15:40:13]request: POST /json_proto HTTP/1.0 [15:40:13]Method: POST [15:40:13]URL: /json_proto [15:40:13]Method is POST - this is cgi request [15:40:13]url: /json_proto [15:40:13]query_string will be loaded in cgi processing [15:40:13]execute_cgi json_proto POST (null) [15:40:13]execute_cgi path=json_proto method=POST [15:40:13]POST find Content-Length [15:40:13]Host: 172.17.46.196:8080 [15:40:13]Content-Length: 861 [15:40:13]Content-Type: application/json [15:40:13] [15:40:13]POST finish read [15:40:13]Found Content-Length = 861 [15:40:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190144", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:13]execute_script... [15:40: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)190144", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:13]POST & json_proto [15:40:13]process_json_proto [15:40:13]json parsed OK: [15:40:13]protocol is kg_v1.0 [15:40:13]action value=close_receipt [15:40:13]process_action close_receipt [15:40:13]cmd_close_receipt [15:40:13]MH_GetDate [15:40:13]Write to MH i2c: F0 00 00 7A 04 6D [15:40:13]Write i2c OK [15:40:13]MH_I2C_Read... [15:40:13]Read from MH i2c: F0 [15:40:13]MH_I2C_Read... [15:40:13]Read from MH i2c: F0 09 00 [15:40:13]MH_I2C_Read... [15:40:13]Read from MH i2c: F0 09 00 7A 04 00 5D 67 C3 66 C4 85 C2 66 D4 [15:40:13]GetLastDocTimeStamp 1724081684 [15:40:13]current date 1724082013 [15:40:13]FM_GetShiftState [15:40:13]SAM_PROTO_GetShiftState [15:40:13]wFMCommunicate request_size=4 [15:40:13]MH_SAM_APDU [15:40:13]CAPDU: 80 13 01 00 [15:40:13]Write to MH i2c: E2 08 00 7B 04 80 13 01 00 00 00 00 00 FC [15:40:13]Write i2c OK [15:40:13]MH_I2C_Read... [15:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:13]Read from MH i2c: E2 [15:40:13]MH_I2C_Read... [15:40:13]Read from MH i2c: E2 0E 00 [15:40:13]MH_I2C_Read... [15:40:13]Read from MH i2c: E2 0E 00 7B 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B6 [15:40:13]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:40:13]wFMCommunicate OK [15:40:13]SAM_PROTO_GetShiftState done [15:40:13]FM_GetShiftState done [15:40:13]opened in 1724026361 [15:40:13]opened+sec_in_day 1724112761 [15:40:13]quantity*price = 6500 [15:40:13]sum+1 = 6501 [15:40:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 0.00 Безнал.: 65.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 119 19.08.2024 15:40 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 50012 ФПД: 124442795132353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154013&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50012&fm=124442795132353&tin=02508201610067®Number=0000000000092546&sum=6500 0 [15:40:14]StoreToDocumentArchive [15:40:14]shift 467 fd 50012 [15:40:14]save to /storage/0467/doc_00050012 [15:40:14]save last doc name /storage/0467/doc_00050012 to /storage/kkm_last_doc_name [15:40:14]save OK [15:40:14]Clear old archive folders... [15:40:14]ProcessDocumentItem done err = 0, tmpTLVsize=295 [15:40:14]tlvbuf is 01271B90 [15:40:14]SAM_PROTO_ClearQueue [15:40:14]wFMCommunicate request_size=4 [15:40:14]MH_SAM_APDU [15:40:14]CAPDU: 80 09 00 00 [15:40:14]Write to MH i2c: E2 08 00 88 04 80 09 00 00 00 00 00 00 FE [15:40:14]Write i2c OK [15:40:14]MH_I2C_Read... [15:40:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:14]Read from MH i2c: E2 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 88 04 00 90 00 00 [15:40:14]RAPDU: 90 00 [15:40:14]wFMCommunicate OK [15:40:14]SAM_PROTO_ClearQueue done [15:40:14]KKMCreateOFDPacket [15:40:14]OFDProtocolAddRootSTLVToBuf [15:40:14]FM_MakeSignedData [15:40:14]FM_MakeSignedData [15:40:14]SAM_PROTO_SignData [15:40:14]wFMCommunicate request_size=4 [15:40:14]MH_SAM_APDU [15:40:14]CAPDU: 80 0D 01 02 [15:40:14]Write to MH i2c: E2 08 00 89 04 80 0D 01 02 00 00 00 00 06 [15:40:14]Write i2c OK [15:40:14]MH_I2C_Read... [15:40:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:14]Read from MH i2c: E2 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 [15:40:14]MH_I2C_Read... [15:40:14]Read from MH i2c: E2 03 00 89 04 00 90 00 01 [15:40:14]RAPDU: 90 00 [15:40:14]wFMCommunicate OK [15:40:14]wFMCommunicate request_size=255 [15:40:14]MH_SAM_APDU [15:40:14]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 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 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 5D 67 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [15:40:14]Write to MH i2c: E2 02 01 8A 04 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 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 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 5D 67 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 5F [15:40:14]Write i2c OK [15:40:14]MH_I2C_Read... [15:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:15]Read from MH i2c: E2 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: E2 03 00 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: E2 03 00 8A 04 00 90 00 02 [15:40:15]RAPDU: 90 00 [15:40:15]wFMCommunicate OK [15:40:15]wFMCommunicate request_size=54 [15:40:15]MH_SAM_APDU [15:40:15]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5C C3 00 00 35 04 06 00 71 2E 18 99 45 C1 [15:40:15]Write to MH i2c: E2 39 00 8B 04 80 0D 02 02 31 00 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5C C3 00 00 35 04 06 00 71 2E 18 99 45 C1 00 00 9E [15:40:15]Write i2c OK [15:40:15]MH_I2C_Read... [15:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:15]Read from MH i2c: E2 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: E2 03 00 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: E2 03 00 8B 04 00 90 00 03 [15:40:15]RAPDU: 90 00 [15:40:15]wFMCommunicate OK [15:40:15]wFMCommunicate request_size=4 [15:40:15]MH_SAM_APDU [15:40:15]CAPDU: 80 0D 03 02 [15:40:15]Write to MH i2c: E2 08 00 8C 04 80 0D 03 02 00 00 00 00 0B [15:40:15]Write i2c OK [15:40:15]MH_I2C_Read... [15:40:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:15]Read from MH i2c: E2 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: E2 0B 00 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: E2 0B 00 8C 04 00 2D DE E1 23 C2 4B 68 39 90 00 C9 [15:40:15]RAPDU: 2D DE E1 23 C2 4B 68 39 90 00 [15:40:15]wFMCommunicate OK [15:40:15]SAM_PROTO_SignData done [15:40:15]FM_MakeSignedData done [15:40:15]CreateOFDProtocolMessage [15:40:15]wFMCommunicate request_size=4 [15:40:15]MH_SAM_APDU [15:40:15]CAPDU: 80 11 00 00 [15:40:15]Write to MH i2c: E2 08 00 8D 04 80 11 00 00 00 00 00 00 0B [15:40:15]Write i2c OK [15:40:15]MH_I2C_Read... [15:40:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:15]Read from MH i2c: E2 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: E2 17 00 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: E2 17 00 8D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 56 [15:40:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:40:15]wFMCommunicate OK [15:40:15]CreateOFDProtocolMessage done [15:40:15]OFDSenderStorePacket 50012 [15:40:15]StoreOFDPacket docnum=50012 [15:40:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3B 01 00 00 51 0A 33 01 95 9D 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 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 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 5D 67 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5C C3 00 00 35 04 06 00 71 2E 18 99 45 C1 2D DE E1 23 C2 4B 68 39 [15:40:15]CheckFolder [15:40:15]dirname=/storage/ofd_packets [15:40:15]CheckFolder done [15:40:15]ProducePacketName [15:40:15]name=ofd_packets/00050012 [15:40:15]NVStorageSaveData ofd_packets/00050012 [15:40:15]File name is /storage/ofd_packets/00050012 [15:40:15]Write 345 bytes [15:40:15]NVStorageSaveData done [15:40:15]OFDSenderStorePacket done [15:40:15]KKMCreateOFDPacket done [15:40:15]NVStorageSaveData kkm_last_timestamp [15:40:15]File name is /storage/kkm_last_timestamp [15:40:15]Write 4 bytes [15:40:15]OFD Sender: Processing packet 50012 [packets to send 21, broken 20] [15:40:15]ProducePacketName [15:40:15]name=ofd_packets/00050012 [15:40:15]OFD Sender: To server: pG, [15:40:15]CommunicateWithHost lk.salyk.kg:30040 [15:40:15]ConnectInit lk.salyk.kg [15:40:15]NVStorageSaveData done [15:40:15]ExternCall_PrintAddStr [15:40:15]wPrintStart [15:40:15]Write to MH i2c: 01 00 00 8E 04 92 [15:40:15]Write i2c OK [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: 01 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: 01 07 00 [15:40:15]MH_I2C_Read... [15:40:15]Read from MH i2c: 01 07 00 8E 04 00 00 00 00 00 FF 0F A7 [15:40:15]RasterBufferAndPrint [15:40:15]line Счет N : (3)190144 [15:40:15]line ИНН: 02508201610067 [15:40:15]line Контрольно-Кассовый Чек [15:40:15]line ПРОДАЖА [15:40:15]line Товар: 5449000027450 [15:40:15]line Напиток FuzeTea чай манго,ром 0,5л [15:40:15]line 1.000 * 65.00 [15:40:15]line = 65.00 [15:40:15]line НДС 12% НСП 1% [15:40:15]line > о реализуемом товаре [15:40:15]line ИТОГО: 65.00 [15:40:15]line НСП 1% : 0.57 [15:40:15]line НДС 12% : 6.90 [15:40:15]line Наличными: 0.00 [15:40:15]line Безнал.: 65.00 [15:40:15]line Место: АЗС № 95 "Партнер Нефть" [15:40:15]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:40:15]line СНО: Общий режим [15:40:15]line Чек 119 19.08.2024 15:40 [15:40:15]line Смена: 467 ФФД: 1.0 [15:40:15]line ЗНМ: 0300000078 [15:40:15]line РНМ: 0000000000092546 [15:40:15]line Версия ККМ: 001 [15:40:15]line Платежная система: Бакай Банк [15:40:15]line ФМ: 0000000000871800 [15:40:15]line ФД: 50012 [15:40:15]line ФПД: 124442795132353 [15:40:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154013&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50012&fm=124442795132353&tin=02508201610067®Number=0000000000092546&sum=6500 [15:40:15]line 0 [15:40:15]written 0, free lines is 4095 [15:40:15]Connected sock=11 [15:40:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3B 01 00 00 51 0A 33 01 95 9D 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 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 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 5D 67 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5C C3 00 00 35 04 06 00 71 2E 18 99 45 C1 2D DE E1 23 C2 4B 68 39 [15:40:16]Write to MH i2c: 01 00 00 B9 04 BD [15:40:16]Write i2c OK [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: 01 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: 01 07 00 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: 01 07 00 B9 04 00 00 00 00 00 A9 0C 79 [15:40:16]RasterBufferAndPrint [15:40:16]line [15:40:16]line [15:40:16]line [15:40:16]line [15:40:16]line [15:40:16]written 0, free lines is 3246 [15:40:16]MH_Cut [15:40:16]Write to MH i2c: D1 01 00 C0 04 01 96 [15:40:16]Write i2c OK [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: D1 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: D1 01 00 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: D1 01 00 C0 04 00 95 [15:40:16]Write to MH i2c: 01 00 00 C1 04 C5 [15:40:16]Write i2c OK [15:40:16]MH_I2C_Read... [15:40:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E7 6F 47 00 5D 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5C C3 00 00 F4 03 04 00 CA 11 C3 66 B6 04 01 00 00 77 C8 DA 11 AC 0E 70 BE [15:40:16]CommunicateWithHost err = 0 [15:40:16]CheckOFDResponse [15:40:16]1017 (14) - 77093643461234 [15:40:16]1041 (16) - 0000000000871800 [15:40:16]1040 (4) - 50012 [15:40:16]1012 (4) - 19.08.2024 09:35 [15:40:16]1206 (1) - 0 [15:40:16]OFD Sender: Remove packet 50012 [15:40:16]ProducePacketName [15:40:16]name=ofd_packets/00050012 [15:40:16]NVStorageDeleteData [15:40:16]OFD Sender: No OFD packet to send [15:40:16]*** Cut start [15:40:16]*** Purtial cut [15:40:16]*** Stage 1: CUTSNS_PIN = 1 [15:40:17]Read from MH i2c: 01 [15:40:17]MH_I2C_Read... [15:40:17]*** Stop cut motor [15:40:17]*** Cut end [15:40:17]Read from MH i2c: 01 07 00 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: 01 07 00 C1 04 00 00 00 00 00 FF 0F DA [15:40:17]process_action close_receipt done [15:40:17]requested_data is exist [15:40:17]produce_requested_data [15:40:17]requested_item fm.sn is exist - process it [15:40:17]wFMCommunicate request_size=4 [15:40:17]MH_SAM_APDU [15:40:17]CAPDU: 80 11 00 00 [15:40:17]Write to MH i2c: E2 08 00 C2 04 80 11 00 00 00 00 00 00 40 [15:40:17]Write i2c OK [15:40:17]MH_I2C_Read... [15:40:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:17]Read from MH i2c: E2 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 17 00 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 17 00 C2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8B [15:40:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:40:17]wFMCommunicate OK [15:40:17]requested_item fd.num is exist - process it [15:40:17]SAM_PROTO_GetFieldsCounters [15:40:17]wFMCommunicate request_size=4 [15:40:17]MH_SAM_APDU [15:40:17]CAPDU: 80 13 00 00 [15:40:17]Write to MH i2c: E2 08 00 C3 04 80 13 00 00 00 00 00 00 43 [15:40:17]Write i2c OK [15:40:17]MH_I2C_Read... [15:40:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:17]Read from MH i2c: E2 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 62 00 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 62 00 C3 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5C C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [15:40:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5C C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:17]wFMCommunicate OK [15:40:17]SAM_PROTO_GetFieldsCounters done [15:40:17]requested_item shift.num is exist - process it [15:40:17]requested_item shift.opened is exist - process it [15:40:17]req_shift_opened [15:40:17]FM_GetShiftState [15:40:17]SAM_PROTO_GetShiftState [15:40:17]wFMCommunicate request_size=4 [15:40:17]MH_SAM_APDU [15:40:17]CAPDU: 80 13 01 00 [15:40:17]Write to MH i2c: E2 08 00 C4 04 80 13 01 00 00 00 00 00 45 [15:40:17]Write i2c OK [15:40:17]MH_I2C_Read... [15:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:17]Read from MH i2c: E2 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 0E 00 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 0E 00 C4 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 FF [15:40:17]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:40:17]wFMCommunicate OK [15:40:17]SAM_PROTO_GetShiftState done [15:40:17]FM_GetShiftState done [15:40:17]req_shift_opened done [15:40:17]requested_item shift.open_date is exist - process it [15:40:17]req_shift_open_date [15:40:17]req_shift_open_date done [15:40:17]produce_requested_data done [15:40:17]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50012,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [15:40:17]process_action_free close_receipt [15:40:17]json_value_free [15:40:17]json_value_free done [15:40:17]process_json_proto returns [15:40:17]Send response to host [15:40:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50012,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [15:40:17]free response buf [15:40:17]execute_script done [15:40:17]execute_script returns [15:40:17]free content buf [15:40:17]Sock 9.Close socket [15:40:17]Sock 9.Thread stoped [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]accept exits with 7 [15:41:16]New connection [15:41:16]New thread 3066613092 created [15:41:16]Thread 3066469732 joined [15:41:16]Waiting for new connection... [15:41:16] Sock 7.Parse request [15:41:16]Sock 7.Check first char [15:41:16]Sock 7.First char is OK [15:41:16]request: POST /json_proto HTTP/1.0 [15:41:16]Method: POST [15:41:16]URL: /json_proto [15:41:16]Method is POST - this is cgi request [15:41:16]url: /json_proto [15:41:16]query_string will be loaded in cgi processing [15:41:16]execute_cgi json_proto POST (null) [15:41:16]execute_cgi path=json_proto method=POST [15:41:16]POST find Content-Length [15:41:16]Host: 172.17.46.196:8080 [15:41:16]Content-Length: 1076 [15:41:16]Content-Type: application/json [15:41:16] [15:41:16]POST finish read [15:41:16]Found Content-Length = 1076 [15:41:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190145", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:16]execute_script... [15:41:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190145", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:16]POST & json_proto [15:41:16]process_json_proto [15:41:16]json parsed OK: [15:41:16]protocol is kg_v1.0 [15:41:16]action value=close_receipt [15:41:16]process_action close_receipt [15:41:16]cmd_close_receipt [15:41:16]MH_GetDate [15:41:16]Write to MH i2c: F0 00 00 C5 04 B8 [15:41:16]Write i2c OK [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: F0 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: F0 09 00 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: F0 09 00 C5 04 00 9C 67 C3 66 C4 85 C2 66 5E [15:41:16]GetLastDocTimeStamp 1724082013 [15:41:16]current date 1724082076 [15:41:16]FM_GetShiftState [15:41:16]SAM_PROTO_GetShiftState [15:41:16]wFMCommunicate request_size=4 [15:41:16]MH_SAM_APDU [15:41:16]CAPDU: 80 13 01 00 [15:41:16]Write to MH i2c: E2 08 00 C6 04 80 13 01 00 00 00 00 00 47 [15:41:16]Write i2c OK [15:41:16]MH_I2C_Read... [15:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:16]Read from MH i2c: E2 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 0E 00 [15:41:16]MH_I2C_Read... [15:41:16]Read from MH i2c: E2 0E 00 C6 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 01 [15:41:16]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:41:16]wFMCommunicate OK [15:41:16]SAM_PROTO_GetShiftState done [15:41:16]FM_GetShiftState done [15:41:16]opened in 1724026361 [15:41:16]opened+sec_in_day 1724112761 [15:41:16]quantity*price = 8500 [15:41:16]sum+1 = 8501 [15:41:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001157913 Вода ASU 0,5л c без газа 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.10 НДС 12% : 13.28 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 120 19.08.2024 15:41 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 50013 ФПД: 15953361775782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154116&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50013&fm=15953361775782&tin=02508201610067®Number=0000000000092546&sum=12500 0 [15:41:17]StoreToDocumentArchive [15:41:17]shift 467 fd 50013 [15:41:17]save to /storage/0467/doc_00050013 [15:41:17]save last doc name /storage/0467/doc_00050013 to /storage/kkm_last_doc_name [15:41:17]save OK [15:41:17]Clear old archive folders... [15:41:17]ProcessDocumentItem done err = 0, tmpTLVsize=389 [15:41:17]tlvbuf is 012736B0 [15:41:17]SAM_PROTO_ClearQueue [15:41:17]wFMCommunicate request_size=4 [15:41:17]MH_SAM_APDU [15:41:17]CAPDU: 80 09 00 00 [15:41:17]Write to MH i2c: E2 08 00 D3 04 80 09 00 00 00 00 00 00 49 [15:41:17]Write i2c OK [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: E2 [15:41:17]MH_I2C_Read... [15:41:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:17]Read from MH i2c: E2 03 00 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: E2 03 00 D3 04 00 90 00 4B [15:41:17]RAPDU: 90 00 [15:41:17]wFMCommunicate OK [15:41:17]SAM_PROTO_ClearQueue done [15:41:17]KKMCreateOFDPacket [15:41:17]OFDProtocolAddRootSTLVToBuf [15:41:17]FM_MakeSignedData [15:41:17]FM_MakeSignedData [15:41:17]SAM_PROTO_SignData [15:41:17]wFMCommunicate request_size=4 [15:41:17]MH_SAM_APDU [15:41:17]CAPDU: 80 0D 01 02 [15:41:17]Write to MH i2c: E2 08 00 D4 04 80 0D 01 02 00 00 00 00 51 [15:41:17]Write i2c OK [15:41:17]MH_I2C_Read... [15:41:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:17]Read from MH i2c: E2 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: E2 03 00 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: E2 03 00 D4 04 00 90 00 4C [15:41:17]RAPDU: 90 00 [15:41:17]wFMCommunicate OK [15:41:17]wFMCommunicate request_size=255 [15:41:17]MH_SAM_APDU [15:41:17]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [15:41:17]Write to MH i2c: E2 02 01 D5 04 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 DC [15:41:17]Write i2c OK [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: E2 [15:41:17]MH_I2C_Read... [15:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:18]Read from MH i2c: E2 03 00 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 03 00 D5 04 00 90 00 4D [15:41:18]RAPDU: 90 00 [15:41:18]wFMCommunicate OK [15:41:18]wFMCommunicate request_size=148 [15:41:18]MH_SAM_APDU [15:41:18]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 9C 67 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5D C3 00 00 35 04 06 00 0E 82 6E 76 2C A6 [15:41:18]Write to MH i2c: E2 97 00 D6 04 80 0D 02 02 8F 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 9C 67 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5D C3 00 00 35 04 06 00 0E 82 6E 76 2C A6 00 00 1E [15:41:18]Write i2c OK [15:41:18]MH_I2C_Read... [15:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:18]Read from MH i2c: E2 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 03 00 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 03 00 D6 04 00 90 00 4E [15:41:18]RAPDU: 90 00 [15:41:18]wFMCommunicate OK [15:41:18]wFMCommunicate request_size=4 [15:41:18]MH_SAM_APDU [15:41:18]CAPDU: 80 0D 03 02 [15:41:18]Write to MH i2c: E2 08 00 D7 04 80 0D 03 02 00 00 00 00 56 [15:41:18]Write i2c OK [15:41:18]MH_I2C_Read... [15:41:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:18]Read from MH i2c: E2 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 0B 00 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 0B 00 D7 04 00 A7 9D 85 16 78 59 CE 32 90 00 07 [15:41:18]RAPDU: A7 9D 85 16 78 59 CE 32 90 00 [15:41:18]wFMCommunicate OK [15:41:18]SAM_PROTO_SignData done [15:41:18]FM_MakeSignedData done [15:41:18]CreateOFDProtocolMessage [15:41:18]wFMCommunicate request_size=4 [15:41:18]MH_SAM_APDU [15:41:18]CAPDU: 80 11 00 00 [15:41:18]Write to MH i2c: E2 08 00 D8 04 80 11 00 00 00 00 00 00 56 [15:41:18]Write i2c OK [15:41:18]MH_I2C_Read... [15:41:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:18]Read from MH i2c: E2 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 17 00 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: E2 17 00 D8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A1 [15:41:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:41:18]wFMCommunicate OK [15:41:18]CreateOFDProtocolMessage done [15:41:18]OFDSenderStorePacket 50013 [15:41:18]StoreOFDPacket docnum=50013 [15:41:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 99 01 00 00 86 EC 91 01 E3 25 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 9C 67 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5D C3 00 00 35 04 06 00 0E 82 6E 76 2C A6 A7 9D 85 16 78 59 CE 32 [15:41:18]CheckFolder [15:41:18]dirname=/storage/ofd_packets [15:41:18]CheckFolder done [15:41:18]ProducePacketName [15:41:18]name=ofd_packets/00050013 [15:41:18]NVStorageSaveData ofd_packets/00050013 [15:41:18]File name is /storage/ofd_packets/00050013 [15:41:18]Write 439 bytes [15:41:18]NVStorageSaveData done [15:41:18]OFDSenderStorePacket done [15:41:18]KKMCreateOFDPacket done [15:41:18]NVStorageSaveData kkm_last_timestamp [15:41:18]File name is /storage/kkm_last_timestamp [15:41:18]Write 4 bytes [15:41:18]NVStorageSaveData done [15:41:18]ExternCall_PrintAddStr [15:41:18]wPrintStart [15:41:18]Write to MH i2c: 01 00 00 D9 04 DD [15:41:18]OFD Sender: Processing packet 50013 [packets to send 21, broken 20] [15:41:18]ProducePacketName [15:41:18]name=ofd_packets/00050013 [15:41:18]OFD Sender: To server: pG, [15:41:18]CommunicateWithHost lk.salyk.kg:30040 [15:41:18]ConnectInit lk.salyk.kg [15:41:18]Write i2c OK [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: 01 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: 01 07 00 [15:41:18]MH_I2C_Read... [15:41:18]Read from MH i2c: 01 07 00 D9 04 00 00 00 00 00 FF 0F F2 [15:41:18]RasterBufferAndPrint [15:41:18]line Счет N : (3)190145 [15:41:18]line ИНН: 02508201610067 [15:41:18]line Контрольно-Кассовый Чек [15:41:18]line ПРОДАЖА [15:41:18]line Товар: 5449000000996 [15:41:18]line Напиток Кока-Кола 0,33л [15:41:18]line 1.000 * 85.00 [15:41:18]line = 85.00 [15:41:18]line НДС 12% НСП 1% [15:41:18]line > о реализуемом товаре [15:41:18]line Товар: 4870001157913 [15:41:18]line Вода ASU 0,5л c без газа [15:41:18]line 1.000 * 40.00 [15:41:18]line = 40.00 [15:41:18]line НДС 12% НСП 1% [15:41:18]line > о реализуемом товаре [15:41:18]line ИТОГО: 125.00 [15:41:18]line НСП 1% : 1.10 [15:41:18]line НДС 12% : 13.28 [15:41:18]line Наличными: 0.00 [15:41:18]line Безнал.: 125.00 [15:41:18]line Место: АЗС № 95 "Партнер Нефть" [15:41:18]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:41:18]line СНО: Общий режим [15:41:18]line Чек 120 19.08.2024 15:41 [15:41:18]line Смена: 467 ФФД: 1.0 [15:41:18]line ЗНМ: 0300000078 [15:41:18]line РНМ: 0000000000092546 [15:41:18]line Версия ККМ: 001 [15:41:18]line Платежная система: O! деньги [15:41:18]line ФМ: 0000000000871800 [15:41:18]line ФД: 50013 [15:41:18]line ФПД: 15953361775782 [15:41:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154116&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50013&fm=15953361775782&tin=02508201610067®Number=0000000000092546&sum=12500 [15:41:18]line 0 [15:41:18]written 0, free lines is 4095 [15:41:19]Connected sock=10 [15:41:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 99 01 00 00 86 EC 91 01 E3 25 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 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 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 9C 67 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5D C3 00 00 35 04 06 00 0E 82 6E 76 2C A6 A7 9D 85 16 78 59 CE 32 [15:41:19]Write to MH i2c: 01 00 00 09 05 0E [15:41:19]Write i2c OK [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: 01 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: 01 07 00 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: 01 07 00 09 05 00 00 00 00 00 77 0C 98 [15:41:19]RasterBufferAndPrint [15:41:19]line [15:41:19]line [15:41:19]line [15:41:19]line [15:41:19]line [15:41:19]written 0, free lines is 3194 [15:41:19]MH_Cut [15:41:19]Write to MH i2c: D1 01 00 10 05 01 E7 [15:41:19]Write i2c OK [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: D1 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: D1 01 00 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: D1 01 00 10 05 00 E6 [15:41:19]Write to MH i2c: 01 00 00 11 05 16 [15:41:19]Write i2c OK [15:41:19]MH_I2C_Read... [15:41:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 1E C0 47 00 82 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 31 38 30 30 10 04 04 00 5D C3 00 00 F4 03 04 00 0A 12 C3 66 B6 04 01 00 00 10 0C C5 9C D6 6E 87 CE [15:41:19]CommunicateWithHost err = 0 [15:41:19]CheckOFDResponse [15:41:19]1017 (14) - 77093643461234 [15:41:19]1041 (16) - 0000000000871800 [15:41:19]1040 (4) - 50013 [15:41:19]1012 (4) - 19.08.2024 09:36 [15:41:19]1206 (1) - 0 [15:41:19]OFD Sender: Remove packet 50013 [15:41:19]ProducePacketName [15:41:19]name=ofd_packets/00050013 [15:41:19]NVStorageDeleteData [15:41:19]OFD Sender: No OFD packet to send [15:41:19]*** Cut start [15:41:19]*** Purtial cut [15:41:19]*** CUTSNS_PIN = 0 [15:41:20]*** Stage 1: CUTSNS_PIN = 1 [15:41:22]Read from MH i2c: 01 [15:41:22]MH_I2C_Read... [15:41:22]*** Stop cut motor [15:41:22]*** Cut end [15:41:22]Read from MH i2c: 01 07 00 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: 01 07 00 11 05 00 00 00 00 00 FF 0F 2B [15:41:22]process_action close_receipt done [15:41:22]requested_data is exist [15:41:22]produce_requested_data [15:41:22]requested_item fm.sn is exist - process it [15:41:22]wFMCommunicate request_size=4 [15:41:22]MH_SAM_APDU [15:41:22]CAPDU: 80 11 00 00 [15:41:22]Write to MH i2c: E2 08 00 12 05 80 11 00 00 00 00 00 00 91 [15:41:22]Write i2c OK [15:41:22]MH_I2C_Read... [15:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:22]Read from MH i2c: E2 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 17 00 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 17 00 12 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DC [15:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:41:22]wFMCommunicate OK [15:41:22]requested_item fd.num is exist - process it [15:41:22]SAM_PROTO_GetFieldsCounters [15:41:22]wFMCommunicate request_size=4 [15:41:22]MH_SAM_APDU [15:41:22]CAPDU: 80 13 00 00 [15:41:22]Write to MH i2c: E2 08 00 13 05 80 13 00 00 00 00 00 00 94 [15:41:22]Write i2c OK [15:41:22]MH_I2C_Read... [15:41:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:22]Read from MH i2c: E2 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 62 00 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 62 00 13 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5D C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [15:41:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5D C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:22]wFMCommunicate OK [15:41:22]SAM_PROTO_GetFieldsCounters done [15:41:22]requested_item shift.num is exist - process it [15:41:22]requested_item shift.opened is exist - process it [15:41:22]req_shift_opened [15:41:22]FM_GetShiftState [15:41:22]SAM_PROTO_GetShiftState [15:41:22]wFMCommunicate request_size=4 [15:41:22]MH_SAM_APDU [15:41:22]CAPDU: 80 13 01 00 [15:41:22]Write to MH i2c: E2 08 00 14 05 80 13 01 00 00 00 00 00 96 [15:41:22]Write i2c OK [15:41:22]MH_I2C_Read... [15:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:22]Read from MH i2c: E2 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 0E 00 [15:41:22]MH_I2C_Read... [15:41:22]Read from MH i2c: E2 0E 00 14 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 50 [15:41:22]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:41:22]wFMCommunicate OK [15:41:22]SAM_PROTO_GetShiftState done [15:41:22]FM_GetShiftState done [15:41:22]req_shift_opened done [15:41:22]requested_item shift.open_date is exist - process it [15:41:22]req_shift_open_date [15:41:22]req_shift_open_date done [15:41:22]produce_requested_data done [15:41:22]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50013,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [15:41:22]process_action_free close_receipt [15:41:22]json_value_free [15:41:22]json_value_free done [15:41:22]process_json_proto returns [15:41:22]Send response to host [15:41:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50013,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [15:41:22]free response buf [15:41:22]execute_script done [15:41:22]execute_script returns [15:41:22]free content buf [15:41:22]Sock 7.Close socket [15:41:22]Sock 7.Thread stoped [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [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]accept exits with 9 [15:43:14]New connection [15:43:14]New thread 3066469732 created [15:43:14]Thread 3066613092 joined [15:43:14]Waiting for new connection... [15:43:14] Sock 9.Parse request [15:43:14]Sock 9.Check first char [15:43:14]Sock 9.First char is OK [15:43:14]request: POST /json_proto HTTP/1.0 [15:43:14]Method: POST [15:43:14]URL: /json_proto [15:43:14]Method is POST - this is cgi request [15:43:14]url: /json_proto [15:43:14]query_string will be loaded in cgi processing [15:43:14]execute_cgi json_proto POST (null) [15:43:14]execute_cgi path=json_proto method=POST [15:43:14]POST find Content-Length [15:43:14]Host: 172.17.46.196:8080 [15:43:14]Content-Length: 913 [15:43:14]Content-Type: application/json [15:43:14] [15:43:14]POST finish read [15:43:14]Found Content-Length = 913 [15:43:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190146", "tax_sys" : 0, "items" : [ { "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" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 216.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:14]execute_script... [15:43:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190146", "tax_sys" : 0, "items" : [ { "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" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 216.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:14]POST & json_proto [15:43:14]process_json_proto [15:43:14]json parsed OK: [15:43:14]protocol is kg_v1.0 [15:43:14]action value=close_receipt [15:43:14]process_action close_receipt [15:43:14]cmd_close_receipt [15:43:14]MH_GetDate [15:43:14]Write to MH i2c: F0 00 00 15 05 09 [15:43:14]Write i2c OK [15:43:14]MH_I2C_Read... [15:43:14]Read from MH i2c: F0 [15:43:14]MH_I2C_Read... [15:43:14]Read from MH i2c: F0 09 00 [15:43:14]MH_I2C_Read... [15:43:14]Read from MH i2c: F0 09 00 15 05 00 12 68 C3 66 C4 85 C2 66 26 [15:43:14]GetLastDocTimeStamp 1724082076 [15:43:14]current date 1724082194 [15:43:14]FM_GetShiftState [15:43:14]SAM_PROTO_GetShiftState [15:43:14]wFMCommunicate request_size=4 [15:43:14]MH_SAM_APDU [15:43:14]CAPDU: 80 13 01 00 [15:43:14]Write to MH i2c: E2 08 00 16 05 80 13 01 00 00 00 00 00 98 [15:43:14]Write i2c OK [15:43:14]MH_I2C_Read... [15:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:14]Read from MH i2c: E2 [15:43:14]MH_I2C_Read... [15:43:14]Read from MH i2c: E2 0E 00 [15:43:14]MH_I2C_Read... [15:43:14]Read from MH i2c: E2 0E 00 16 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 52 [15:43:14]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:43:14]wFMCommunicate OK [15:43:14]SAM_PROTO_GetShiftState done [15:43:14]FM_GetShiftState done [15:43:14]opened in 1724026361 [15:43:14]opened+sec_in_day 1724112761 [15:43:14]quantity*price = 6500 [15:43:14]sum+1 = 6501 [15:43:14]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 1.000 * 151.00 = 151.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 216.00 НСП 1% : 1.91 НДС 12% : 22.93 Наличными: 216.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 121 19.08.2024 15:43 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50014 ФПД: 128498459590753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154315&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50014&fm=128498459590753&tin=02508201610067®Number=0000000000092546&sum=21600 0 [15:43:15]StoreToDocumentArchive [15:43:15]shift 467 fd 50014 [15:43:15]save to /storage/0467/doc_00050014 [15:43:15]save last doc name /storage/0467/doc_00050014 to /storage/kkm_last_doc_name [15:43:15]save OK [15:43:15]Clear old archive folders... [15:43:15]ProcessDocumentItem done err = 0, tmpTLVsize=393 [15:43:15]tlvbuf is 01271C10 [15:43:15]SAM_PROTO_ClearQueue [15:43:15]wFMCommunicate request_size=4 [15:43:15]MH_SAM_APDU [15:43:15]CAPDU: 80 09 00 00 [15:43:15]Write to MH i2c: E2 08 00 23 05 80 09 00 00 00 00 00 00 9A [15:43:15]Write i2c OK [15:43:15]MH_I2C_Read... [15:43:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:15]Read from MH i2c: E2 [15:43:15]MH_I2C_Read... [15:43:15]Read from MH i2c: E2 03 00 [15:43:15]MH_I2C_Read... [15:43:15]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [15:43:15]RAPDU: 90 00 [15:43:15]wFMCommunicate OK [15:43:15]SAM_PROTO_ClearQueue done [15:43:15]KKMCreateOFDPacket [15:43:15]OFDProtocolAddRootSTLVToBuf [15:43:15]FM_MakeSignedData [15:43:15]FM_MakeSignedData [15:43:15]SAM_PROTO_SignData [15:43:15]wFMCommunicate request_size=4 [15:43:15]MH_SAM_APDU [15:43:15]CAPDU: 80 0D 01 02 [15:43:15]Write to MH i2c: E2 08 00 24 05 80 0D 01 02 00 00 00 00 A2 [15:43:15]Write i2c OK [15:43:15]MH_I2C_Read... [15:43:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:15]Read from MH i2c: E2 [15:43:15]MH_I2C_Read... [15:43:15]Read from MH i2c: E2 03 00 [15:43:15]MH_I2C_Read... [15:43:15]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [15:43:15]RAPDU: 90 00 [15:43:15]wFMCommunicate OK [15:43:15]wFMCommunicate request_size=255 [15:43:15]MH_SAM_APDU [15:43:15]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 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 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 [15:43:15]Write to MH i2c: E2 02 01 25 05 80 0D 02 02 FA 00 03 00 89 01 1E 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 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 09 [15:43:15]Write i2c OK [15:43:15]MH_I2C_Read... [15:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:16]Read from MH i2c: E2 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 03 00 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [15:43:16]RAPDU: 90 00 [15:43:16]wFMCommunicate OK [15:43:16]wFMCommunicate request_size=152 [15:43:16]MH_SAM_APDU [15:43:16]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 08 00 00 00 00 07 04 06 00 60 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 13 68 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5E C3 00 00 35 04 06 00 74 DE 61 09 C0 61 [15:43:16]Write to MH i2c: E2 9B 00 26 05 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 08 00 00 00 00 07 04 06 00 60 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 13 68 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5E C3 00 00 35 04 06 00 74 DE 61 09 C0 61 00 00 4B [15:43:16]Write i2c OK [15:43:16]MH_I2C_Read... [15:43:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:16]Read from MH i2c: E2 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 03 00 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [15:43:16]RAPDU: 90 00 [15:43:16]wFMCommunicate OK [15:43:16]wFMCommunicate request_size=4 [15:43:16]MH_SAM_APDU [15:43:16]CAPDU: 80 0D 03 02 [15:43:16]Write to MH i2c: E2 08 00 27 05 80 0D 03 02 00 00 00 00 A7 [15:43:16]Write i2c OK [15:43:16]MH_I2C_Read... [15:43:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:16]Read from MH i2c: E2 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 0B 00 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 0B 00 27 05 00 6B 1D C5 6C 9B DA B8 54 90 00 E2 [15:43:16]RAPDU: 6B 1D C5 6C 9B DA B8 54 90 00 [15:43:16]wFMCommunicate OK [15:43:16]SAM_PROTO_SignData done [15:43:16]FM_MakeSignedData done [15:43:16]CreateOFDProtocolMessage [15:43:16]wFMCommunicate request_size=4 [15:43:16]MH_SAM_APDU [15:43:16]CAPDU: 80 11 00 00 [15:43:16]Write to MH i2c: E2 08 00 28 05 80 11 00 00 00 00 00 00 A7 [15:43:16]Write i2c OK [15:43:16]MH_I2C_Read... [15:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:16]Read from MH i2c: E2 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 17 00 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: E2 17 00 28 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F2 [15:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:43:16]wFMCommunicate OK [15:43:16]CreateOFDProtocolMessage done [15:43:16]OFDSenderStorePacket 50014 [15:43:16]StoreOFDPacket docnum=50014 [15:43:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9D 01 00 00 B3 C5 95 01 86 3D 5A 03 01 00 03 00 89 01 1E 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 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 08 00 00 00 00 07 04 06 00 60 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 13 68 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5E C3 00 00 35 04 06 00 74 DE 61 09 C0 61 6B 1D C5 6C 9B DA B8 54 [15:43:16]CheckFolder [15:43:16]dirname=/storage/ofd_packets [15:43:16]CheckFolder done [15:43:16]ProducePacketName [15:43:16]name=ofd_packets/00050014 [15:43:16]NVStorageSaveData ofd_packets/00050014 [15:43:16]File name is /storage/ofd_packets/00050014 [15:43:16]Write 443 bytes [15:43:16]NVStorageSaveData done [15:43:16]OFDSenderStorePacket done [15:43:16]KKMCreateOFDPacket done [15:43:16]NVStorageSaveData kkm_last_timestamp [15:43:16]File name is /storage/kkm_last_timestamp [15:43:16]Write 4 bytes [15:43:16]NVStorageSaveData done [15:43:16]ExternCall_PrintAddStr [15:43:16]wPrintStart [15:43:16]Write to MH i2c: 01 00 00 29 05 2E [15:43:16]Write i2c OK [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: 01 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: 01 07 00 [15:43:16]MH_I2C_Read... [15:43:16]Read from MH i2c: 01 07 00 29 05 00 00 00 00 00 FF 0F 43 [15:43:16]RasterBufferAndPrint [15:43:16]line Счет N : (3)190146 [15:43:16]line ИНН: 02508201610067 [15:43:16]line Контрольно-Кассовый Чек [15:43:16]line ПРОДАЖА [15:43:16]line Товар: 5449000189325 [15:43:16]line Холодный чай Fuse персик 0,5л [15:43:16]line 1.000 * 65.00 [15:43:16]line = 65.00 [15:43:16]line НДС 12% НСП 1% [15:43:16]line > о реализуемом товаре [15:43:16]line Товар: 48741958 [15:43:16]line Сигареты Parliament Aqua Blue [15:43:16]line 1.000 * 151.00 [15:43:16]line = 151.00 [15:43:16]line НДС 12% НСП 1% [15:43:16]line > о реализуемом товаре [15:43:16]line ИТОГО: 216.00 [15:43:16]line НСП 1% : 1.91 [15:43:16]line НДС 12% : 22.93 [15:43:16]line Наличными: 216.00 [15:43:16]line Безнал.: 0.00 [15:43:16]line Место: АЗС № 95 "Партнер Нефть" [15:43:16]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:43:16]line СНО: Общий режим [15:43:16]line Чек 121 19.08.2024 15:43 [15:43:16]line Смена: 467 ФФД: 1.0 [15:43:16]line ЗНМ: 0300000078 [15:43:16]line РНМ: 0000000000092546 [15:43:16]line Версия ККМ: 001 [15:43:16]line ФМ: 0000000000871800 [15:43:16]line ФД: 50014 [15:43:16]line ФПД: 128498459590753 [15:43:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154315&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50014&fm=128498459590753&tin=02508201610067®Number=0000000000092546&sum=21600 [15:43:16]OFD Sender: Processing packet 50014 [packets to send 21, broken 20] [15:43:16]ProducePacketName [15:43:16]name=ofd_packets/00050014 [15:43:16]OFD Sender: To server: pG, [15:43:16]CommunicateWithHost lk.salyk.kg:30040 [15:43:16]ConnectInit lk.salyk.kg [15:43:16]line 0 [15:43:16]written 0, free lines is 4095 [15:43:16]Connected sock=10 [15:43:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9D 01 00 00 B3 C5 95 01 86 3D 5A 03 01 00 03 00 89 01 1E 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 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 08 00 00 00 00 07 04 06 00 60 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 13 68 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5E C3 00 00 35 04 06 00 74 DE 61 09 C0 61 6B 1D C5 6C 9B DA B8 54 [15:43:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E0 EA 47 00 2F 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 31 38 30 30 10 04 04 00 5E C3 00 00 F4 03 04 00 80 12 C3 66 B6 04 01 00 00 10 BE 85 68 89 43 E6 89 [15:43:17]CommunicateWithHost err = 0 [15:43:17]CheckOFDResponse [15:43:17]1017 (14) - 77093643461234 [15:43:17]1041 (16) - 0000000000871800 [15:43:17]1040 (4) - 50014 [15:43:17]1012 (4) - 19.08.2024 09:38 [15:43:17]1206 (1) - 0 [15:43:17]OFD Sender: Remove packet 50014 [15:43:17]ProducePacketName [15:43:17]name=ofd_packets/00050014 [15:43:17]NVStorageDeleteData [15:43:17]Write to MH i2c: 01 00 00 59 05 5E [15:43:17]Write i2c OK [15:43:17]MH_I2C_Read... [15:43:17]Read from MH i2c: 01 [15:43:17]MH_I2C_Read... [15:43:17]Read from MH i2c: 01 07 00 [15:43:17]MH_I2C_Read... [15:43:17]Read from MH i2c: 01 07 00 59 05 00 00 00 00 00 5C 0C CD [15:43:17]RasterBufferAndPrint [15:43:17]line [15:43:17]line [15:43:17]line [15:43:17]line [15:43:17]line [15:43:17]written 0, free lines is 3174 [15:43:17]MH_Cut [15:43:17]Write to MH i2c: D1 01 00 60 05 01 37 [15:43:17]Write i2c OK [15:43:17]MH_I2C_Read... [15:43:17]Read from MH i2c: D1 [15:43:17]MH_I2C_Read... [15:43:17]Read from MH i2c: D1 01 00 [15:43:17]MH_I2C_Read... [15:43:17]Read from MH i2c: D1 01 00 60 05 00 36 [15:43:17]Write to MH i2c: 01 00 00 61 05 66 [15:43:17]Write i2c OK [15:43:17]MH_I2C_Read... [15:43:17]OFD Sender: No OFD packet to send [15:43:18]*** Cut start [15:43:18]*** Purtial cut [15:43:18]*** Stage 1: CUTSNS_PIN = 1 [15:43:18]Read from MH i2c: 01 [15:43:18]MH_I2C_Read... [15:43:18]*** Stop cut motor [15:43:18]*** Cut end [15:43:18]Read from MH i2c: 01 07 00 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: 01 07 00 61 05 00 00 00 00 00 FF 0F 7B [15:43:18]process_action close_receipt done [15:43:18]requested_data is exist [15:43:18]produce_requested_data [15:43:18]requested_item fm.sn is exist - process it [15:43:18]wFMCommunicate request_size=4 [15:43:18]MH_SAM_APDU [15:43:18]CAPDU: 80 11 00 00 [15:43:18]Write to MH i2c: E2 08 00 62 05 80 11 00 00 00 00 00 00 E1 [15:43:18]Write i2c OK [15:43:18]MH_I2C_Read... [15:43:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:18]Read from MH i2c: E2 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: E2 17 00 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: E2 17 00 62 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2C [15:43:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:43:18]wFMCommunicate OK [15:43:18]requested_item fd.num is exist - process it [15:43:18]SAM_PROTO_GetFieldsCounters [15:43:18]wFMCommunicate request_size=4 [15:43:18]MH_SAM_APDU [15:43:18]CAPDU: 80 13 00 00 [15:43:18]Write to MH i2c: E2 08 00 63 05 80 13 00 00 00 00 00 00 E4 [15:43:18]Write i2c OK [15:43:18]MH_I2C_Read... [15:43:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:18]Read from MH i2c: E2 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: E2 62 00 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: E2 62 00 63 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5E C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [15:43:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5E C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:18]wFMCommunicate OK [15:43:18]SAM_PROTO_GetFieldsCounters done [15:43:18]requested_item shift.num is exist - process it [15:43:18]requested_item shift.opened is exist - process it [15:43:18]req_shift_opened [15:43:18]FM_GetShiftState [15:43:18]SAM_PROTO_GetShiftState [15:43:18]wFMCommunicate request_size=4 [15:43:18]MH_SAM_APDU [15:43:18]CAPDU: 80 13 01 00 [15:43:18]Write to MH i2c: E2 08 00 64 05 80 13 01 00 00 00 00 00 E6 [15:43:18]Write i2c OK [15:43:18]MH_I2C_Read... [15:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:18]Read from MH i2c: E2 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: E2 0E 00 [15:43:18]MH_I2C_Read... [15:43:18]Read from MH i2c: E2 0E 00 64 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A0 [15:43:18]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:43:18]wFMCommunicate OK [15:43:18]SAM_PROTO_GetShiftState done [15:43:18]FM_GetShiftState done [15:43:18]req_shift_opened done [15:43:18]requested_item shift.open_date is exist - process it [15:43:18]req_shift_open_date [15:43:18]req_shift_open_date done [15:43:18]produce_requested_data done [15:43:18]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50014,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [15:43:18]process_action_free close_receipt [15:43:18]json_value_free [15:43:18]json_value_free done [15:43:18]process_json_proto returns [15:43:18]Send response to host [15:43:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50014,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [15:43:18]free response buf [15:43:18]execute_script done [15:43:18]execute_script returns [15:43:18]free content buf [15:43:18]Sock 9.Close socket [15:43:18]Sock 9.Thread stoped [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:33]accept exits with 7 [15:46:33]New connection [15:46:33]New thread 3066613092 created [15:46:33]Thread 3066469732 joined [15:46:33]Waiting for new connection... [15:46:33] Sock 7.Parse request [15:46:33]Sock 7.Check first char [15:46:33]Sock 7.First char is OK [15:46:33]request: POST /json_proto HTTP/1.0 [15:46:33]Method: POST [15:46:33]URL: /json_proto [15:46:33]Method is POST - this is cgi request [15:46:33]url: /json_proto [15:46:33]query_string will be loaded in cgi processing [15:46:33]execute_cgi json_proto POST (null) [15:46:33]execute_cgi path=json_proto method=POST [15:46:33]POST find Content-Length [15:46:33]Host: 172.17.46.196:8080 [15:46:33]Content-Length: 646 [15:46:33]Content-Type: application/json [15:46:33] [15:46:33]POST finish read [15:46:33]Found Content-Length = 646 [15:46:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190147", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:33]execute_script... [15:46:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190147", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:33]POST & json_proto [15:46:33]process_json_proto [15:46:33]json parsed OK: [15:46:33]protocol is kg_v1.0 [15:46:33]action value=close_receipt [15:46:33]process_action close_receipt [15:46:33]cmd_close_receipt [15:46:33]MH_GetDate [15:46:33]Write to MH i2c: F0 00 00 65 05 59 [15:46:33]Write i2c OK [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: F0 [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: F0 09 00 [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: F0 09 00 65 05 00 D9 68 C3 66 C4 85 C2 66 3D [15:46:33]GetLastDocTimeStamp 1724082195 [15:46:33]current date 1724082393 [15:46:33]FM_GetShiftState [15:46:33]SAM_PROTO_GetShiftState [15:46:33]wFMCommunicate request_size=4 [15:46:33]MH_SAM_APDU [15:46:33]CAPDU: 80 13 01 00 [15:46:33]Write to MH i2c: E2 08 00 66 05 80 13 01 00 00 00 00 00 E8 [15:46:33]Write i2c OK [15:46:33]MH_I2C_Read... [15:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:33]Read from MH i2c: E2 [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: E2 0E 00 [15:46:33]MH_I2C_Read... [15:46:33]Read from MH i2c: E2 0E 00 66 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A2 [15:46:33]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:46:33]wFMCommunicate OK [15:46:33]SAM_PROTO_GetShiftState done [15:46:33]FM_GetShiftState done [15:46:33]opened in 1724026361 [15:46:33]opened+sec_in_day 1724112761 [15:46:33]quantity*price = 13000 [15:46:33]sum+1 = 13001 [15:46:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 122 19.08.2024 15:46 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50015 ФПД: 92108126041954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154633&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50015&fm=92108126041954&tin=02508201610067®Number=0000000000092546&sum=13000 0 [15:46:34]StoreToDocumentArchive [15:46:34]shift 467 fd 50015 [15:46:34]save to /storage/0467/doc_00050015 [15:46:34]save last doc name /storage/0467/doc_00050015 to /storage/kkm_last_doc_name [15:46:34]save OK [15:46:34]Clear old archive folders... [15:46:34]ProcessDocumentItem done err = 0, tmpTLVsize=282 [15:46:34]tlvbuf is 011FC9E0 [15:46:34]SAM_PROTO_ClearQueue [15:46:34]wFMCommunicate request_size=4 [15:46:34]MH_SAM_APDU [15:46:34]CAPDU: 80 09 00 00 [15:46:34]Write to MH i2c: E2 08 00 73 05 80 09 00 00 00 00 00 00 EA [15:46:34]Write i2c OK [15:46:34]MH_I2C_Read... [15:46:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:34]Read from MH i2c: E2 [15:46:34]MH_I2C_Read... [15:46:34]Read from MH i2c: E2 03 00 [15:46:34]MH_I2C_Read... [15:46:34]Read from MH i2c: E2 03 00 73 05 00 90 00 EC [15:46:34]RAPDU: 90 00 [15:46:34]wFMCommunicate OK [15:46:34]SAM_PROTO_ClearQueue done [15:46:34]KKMCreateOFDPacket [15:46:34]OFDProtocolAddRootSTLVToBuf [15:46:34]FM_MakeSignedData [15:46:34]FM_MakeSignedData [15:46:34]SAM_PROTO_SignData [15:46:34]wFMCommunicate request_size=4 [15:46:34]MH_SAM_APDU [15:46:34]CAPDU: 80 0D 01 02 [15:46:34]Write to MH i2c: E2 08 00 74 05 80 0D 01 02 00 00 00 00 F2 [15:46:34]Write i2c OK [15:46:34]MH_I2C_Read... [15:46:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:34]Read from MH i2c: E2 [15:46:34]MH_I2C_Read... [15:46:34]Read from MH i2c: E2 03 00 [15:46:34]MH_I2C_Read... [15:46:34]Read from MH i2c: E2 03 00 74 05 00 90 00 ED [15:46:34]RAPDU: 90 00 [15:46:34]wFMCommunicate OK [15:46:34]wFMCommunicate request_size=255 [15:46:34]MH_SAM_APDU [15:46:34]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 00 00 00 F4 03 04 00 D9 68 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [15:46:34]Write to MH i2c: E2 02 01 75 05 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 00 00 00 F4 03 04 00 D9 68 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 BA [15:46:34]Write i2c OK [15:46:34]MH_I2C_Read... [15:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:34]Read from MH i2c: E2 [15:46:34]MH_I2C_Read... [15:46:34]Read from MH i2c: E2 03 00 [15:46:34]MH_I2C_Read... [15:46:34]Read from MH i2c: E2 03 00 75 05 00 90 00 EE [15:46:34]RAPDU: 90 00 [15:46:34]wFMCommunicate OK [15:46:34]wFMCommunicate request_size=41 [15:46:34]MH_SAM_APDU [15:46:34]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5F C3 00 00 35 04 06 00 53 C5 98 22 37 62 [15:46:34]Write to MH i2c: E2 2C 00 76 05 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5F C3 00 00 35 04 06 00 53 C5 98 22 37 62 00 00 49 [15:46:34]Write i2c OK [15:46:34]MH_I2C_Read... [15:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:34]Read from MH i2c: E2 [15:46:34]MH_I2C_Read... [15:46:34]Read from MH i2c: E2 03 00 [15:46:34]MH_I2C_Read... [15:46:34]Read from MH i2c: E2 03 00 76 05 00 90 00 EF [15:46:34]RAPDU: 90 00 [15:46:34]wFMCommunicate OK [15:46:34]wFMCommunicate request_size=4 [15:46:34]MH_SAM_APDU [15:46:34]CAPDU: 80 0D 03 02 [15:46:35]Write to MH i2c: E2 08 00 77 05 80 0D 03 02 00 00 00 00 F7 [15:46:35]Write i2c OK [15:46:35]MH_I2C_Read... [15:46:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:35]Read from MH i2c: E2 [15:46:35]MH_I2C_Read... [15:46:35]Read from MH i2c: E2 0B 00 [15:46:35]MH_I2C_Read... [15:46:35]Read from MH i2c: E2 0B 00 77 05 00 62 C0 FE 0A 53 C7 81 22 90 00 DF [15:46:35]RAPDU: 62 C0 FE 0A 53 C7 81 22 90 00 [15:46:35]wFMCommunicate OK [15:46:35]SAM_PROTO_SignData done [15:46:35]FM_MakeSignedData done [15:46:35]CreateOFDProtocolMessage [15:46:35]wFMCommunicate request_size=4 [15:46:35]MH_SAM_APDU [15:46:35]CAPDU: 80 11 00 00 [15:46:35]Write to MH i2c: E2 08 00 78 05 80 11 00 00 00 00 00 00 F7 [15:46:35]Write i2c OK [15:46:35]MH_I2C_Read... [15:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:35]Read from MH i2c: E2 [15:46:35]MH_I2C_Read... [15:46:35]Read from MH i2c: E2 17 00 [15:46:35]MH_I2C_Read... [15:46:35]Read from MH i2c: E2 17 00 78 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 42 [15:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:46:35]wFMCommunicate OK [15:46:35]CreateOFDProtocolMessage done [15:46:35]OFDSenderStorePacket 50015 [15:46:35]StoreOFDPacket docnum=50015 [15:46:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 6E A7 26 01 B1 13 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 00 00 00 F4 03 04 00 D9 68 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5F C3 00 00 35 04 06 00 53 C5 98 22 37 62 62 C0 FE 0A 53 C7 81 22 [15:46:35]CheckFolder [15:46:35]dirname=/storage/ofd_packets [15:46:35]CheckFolder done [15:46:35]ProducePacketName [15:46:35]name=ofd_packets/00050015 [15:46:35]NVStorageSaveData ofd_packets/00050015 [15:46:35]File name is /storage/ofd_packets/00050015 [15:46:35]Write 332 bytes [15:46:35]NVStorageSaveData done [15:46:35]OFDSenderStorePacket done [15:46:35]KKMCreateOFDPacket done [15:46:35]NVStorageSaveData kkm_last_timestamp [15:46:35]File name is /storage/kkm_last_timestamp [15:46:35]Write 4 bytes [15:46:35]NVStorageSaveData done [15:46:35]ExternCall_PrintAddStr [15:46:35]wPrintStart [15:46:35]Write to MH i2c: 01 00 00 79 05 7E [15:46:35]Write i2c OK [15:46:35]MH_I2C_Read... [15:46:35]Read from MH i2c: 01 [15:46:35]MH_I2C_Read... [15:46:35]Read from MH i2c: 01 07 00 [15:46:35]MH_I2C_Read... [15:46:35]Read from MH i2c: 01 07 00 79 05 00 00 00 00 00 FF 0F 93 [15:46:35]RasterBufferAndPrint [15:46:35]line Счет N : (3)190147 [15:46:35]line ИНН: 02508201610067 [15:46:35]line Контрольно-Кассовый Чек [15:46:35]line ПРОДАЖА [15:46:35]line Товар: 2000036220012 [15:46:35]line Кофе Капучино XL(GABB TRADE) [15:46:35]line 1.000 * 130.00 [15:46:35]line = 130.00 [15:46:35]line НДС 12% НСП 1% [15:46:35]line > о реализуемом товаре [15:46:35]line ИТОГО: 130.00 [15:46:35]line НСП 1% : 1.15 [15:46:35]line НДС 12% : 13.80 [15:46:35]line Наличными: 130.00 [15:46:35]line Безнал.: 0.00 [15:46:35]line Место: АЗС № 95 "Партнер Нефть" [15:46:35]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:46:35]line СНО: Общий режим [15:46:35]line Чек 122 19.08.2024 15:46 [15:46:35]line Смена: 467 ФФД: 1.0 [15:46:35]line ЗНМ: 0300000078 [15:46:35]line РНМ: 0000000000092546 [15:46:35]line Версия ККМ: 001 [15:46:35]line ФМ: 0000000000871800 [15:46:35]line ФД: 50015 [15:46:35]line ФПД: 92108126041954 [15:46:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T154633&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50015&fm=92108126041954&tin=02508201610067®Number=0000000000092546&sum=13000 [15:46:35]line 0 [15:46:35]OFD Sender: Processing packet 50015 [packets to send 21, broken 20] [15:46:35]ProducePacketName [15:46:35]name=ofd_packets/00050015 [15:46:35]OFD Sender: To server: pG, [15:46:35]CommunicateWithHost lk.salyk.kg:30040 [15:46:35]ConnectInit lk.salyk.kg [15:46:35]written 0, free lines is 4095 [15:46:35]Connected sock=10 [15:46:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 6E A7 26 01 B1 13 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7A 00 00 00 F4 03 04 00 D9 68 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5F C3 00 00 35 04 06 00 53 C5 98 22 37 62 62 C0 FE 0A 53 C7 81 22 [15:46:35]Write to MH i2c: 01 00 00 A2 05 A7 [15:46:35]Write i2c OK [15:46:35]MH_I2C_Read... [15:46:35]Read from MH i2c: 01 [15:46:35]MH_I2C_Read... [15:46:35]Read from MH i2c: 01 07 00 [15:46:35]MH_I2C_Read... [15:46:35]Read from MH i2c: 01 07 00 A2 05 00 00 00 00 00 D4 0C 8E [15:46:35]RasterBufferAndPrint [15:46:35]line [15:46:35]line [15:46:35]line [15:46:35]line [15:46:35]line [15:46:35]written 0, free lines is 3289 [15:46:35]MH_Cut [15:46:35]Write to MH i2c: D1 01 00 A9 05 01 80 [15:46:35]Write i2c OK [15:46:35]MH_I2C_Read... [15:46:35]Read from MH i2c: D1 [15:46:35]MH_I2C_Read... [15:46:35]Read from MH i2c: D1 01 00 [15:46:35]MH_I2C_Read... [15:46:35]Read from MH i2c: D1 01 00 A9 05 00 7F [15:46:35]Write to MH i2c: 01 00 00 AA 05 AF [15:46:35]Write i2c OK [15:46:35]MH_I2C_Read... [15:46:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 8E 35 47 00 F9 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5F C3 00 00 F4 03 04 00 46 13 C3 66 B6 04 01 00 00 D3 6A F9 B1 1E 79 94 CB [15:46:35]CommunicateWithHost err = 0 [15:46:35]CheckOFDResponse [15:46:35]1017 (14) - 77093643461234 [15:46:35]1041 (16) - 0000000000871800 [15:46:35]1040 (4) - 50015 [15:46:35]1012 (4) - 19.08.2024 09:41 [15:46:35]1206 (1) - 0 [15:46:35]OFD Sender: Remove packet 50015 [15:46:35]ProducePacketName [15:46:35]name=ofd_packets/00050015 [15:46:35]NVStorageDeleteData [15:46:36]OFD Sender: No OFD packet to send [15:46:36]*** Cut start [15:46:36]*** Purtial cut [15:46:36]*** CUTSNS_PIN = 0 [15:46:36]*** Stage 1: CUTSNS_PIN = 1 [15:46:38]Read from MH i2c: 01 [15:46:38]MH_I2C_Read... [15:46:38]*** Stop cut motor [15:46:38]*** Cut end [15:46:38]Read from MH i2c: 01 07 00 [15:46:38]MH_I2C_Read... [15:46:38]Read from MH i2c: 01 07 00 AA 05 00 00 00 00 00 FF 0F C4 [15:46:38]process_action close_receipt done [15:46:38]requested_data is exist [15:46:38]produce_requested_data [15:46:38]requested_item fm.sn is exist - process it [15:46:38]wFMCommunicate request_size=4 [15:46:38]MH_SAM_APDU [15:46:38]CAPDU: 80 11 00 00 [15:46:38]Write to MH i2c: E2 08 00 AB 05 80 11 00 00 00 00 00 00 2A [15:46:38]Write i2c OK [15:46:38]MH_I2C_Read... [15:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:38]Read from MH i2c: E2 [15:46:38]MH_I2C_Read... [15:46:38]Read from MH i2c: E2 17 00 [15:46:38]MH_I2C_Read... [15:46:38]Read from MH i2c: E2 17 00 AB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 75 [15:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:46:38]wFMCommunicate OK [15:46:38]requested_item fd.num is exist - process it [15:46:38]SAM_PROTO_GetFieldsCounters [15:46:38]wFMCommunicate request_size=4 [15:46:38]MH_SAM_APDU [15:46:38]CAPDU: 80 13 00 00 [15:46:38]Write to MH i2c: E2 08 00 AC 05 80 13 00 00 00 00 00 00 2D [15:46:38]Write i2c OK [15:46:38]MH_I2C_Read... [15:46:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:38]Read from MH i2c: E2 [15:46:38]MH_I2C_Read... [15:46:38]Read from MH i2c: E2 62 00 [15:46:38]MH_I2C_Read... [15:46:38]Read from MH i2c: E2 62 00 AC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5F C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [15:46:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5F C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:38]wFMCommunicate OK [15:46:38]SAM_PROTO_GetFieldsCounters done [15:46:38]requested_item shift.num is exist - process it [15:46:38]requested_item shift.opened is exist - process it [15:46:38]req_shift_opened [15:46:38]FM_GetShiftState [15:46:38]SAM_PROTO_GetShiftState [15:46:38]wFMCommunicate request_size=4 [15:46:38]MH_SAM_APDU [15:46:38]CAPDU: 80 13 01 00 [15:46:38]Write to MH i2c: E2 08 00 AD 05 80 13 01 00 00 00 00 00 2F [15:46:38]Write i2c OK [15:46:38]MH_I2C_Read... [15:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:38]Read from MH i2c: E2 [15:46:38]MH_I2C_Read... [15:46:38]Read from MH i2c: E2 0E 00 [15:46:38]MH_I2C_Read... [15:46:38]Read from MH i2c: E2 0E 00 AD 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 E9 [15:46:38]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:46:38]wFMCommunicate OK [15:46:38]SAM_PROTO_GetShiftState done [15:46:38]FM_GetShiftState done [15:46:38]req_shift_opened done [15:46:38]requested_item shift.open_date is exist - process it [15:46:38]req_shift_open_date [15:46:38]req_shift_open_date done [15:46:38]produce_requested_data done [15:46:38]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50015,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [15:46:38]process_action_free close_receipt [15:46:38]json_value_free [15:46:38]json_value_free done [15:46:38]process_json_proto returns [15:46:38]Send response to host [15:46:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50015,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [15:46:38]free response buf [15:46:38]execute_script done [15:46:38]execute_script returns [15:46:38]free content buf [15:46:38]Sock 7.Close socket [15:46:38]Sock 7.Thread stoped [15:46:41]OFD Sender: No OFD packet to send [15:46:46]OFD Sender: No OFD packet to send [15:46:51]OFD Sender: No OFD packet to send [15:46:56]OFD Sender: No OFD packet to send [15:47:01]OFD Sender: No OFD packet to send [15:47:06]OFD Sender: No OFD packet to send [15:47:11]OFD Sender: No OFD packet to send [15:47:16]OFD Sender: No OFD packet to send [15:47:21]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:16]OFD Sender: No OFD packet to send [15:50:21]OFD Sender: No OFD packet to send [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:46]OFD Sender: No OFD packet to send [15:50:51]OFD Sender: No OFD packet to send [15:50:56]OFD Sender: No OFD packet to send [15:51:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]OFD Sender: No OFD packet to send [15:52:01]OFD Sender: No OFD packet to send [15:52:06]OFD Sender: No OFD packet to send [15:52:11]OFD Sender: No OFD packet to send [15:52:16]OFD Sender: No OFD packet to send [15:52:21]OFD Sender: No OFD packet to send [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:41]OFD Sender: No OFD packet to send [15:52:46]OFD Sender: No OFD packet to send [15:52:51]OFD Sender: No OFD packet to send [15:52:56]OFD Sender: No OFD packet to send [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]OFD Sender: No OFD packet to send [15:53:16]OFD Sender: No OFD packet to send [15:53:21]OFD Sender: No OFD packet to send [15:53:26]OFD Sender: No OFD packet to send [15:53:31]OFD Sender: No OFD packet to send [15:53:36]OFD Sender: No OFD packet to send [15:53:39]accept exits with 9 [15:53:39]New connection [15:53:39]New thread 3066469732 created [15:53:39]Thread 3066613092 joined [15:53:39]Waiting for new connection... [15:53:39] Sock 9.Parse request [15:53:39]Sock 9.Check first char [15:53:39]Sock 9.First char is OK [15:53:39]request: POST /json_proto HTTP/1.0 [15:53:39]Method: POST [15:53:39]URL: /json_proto [15:53:39]Method is POST - this is cgi request [15:53:39]url: /json_proto [15:53:39]query_string will be loaded in cgi processing [15:53:39]execute_cgi json_proto POST (null) [15:53:39]execute_cgi path=json_proto method=POST [15:53:39]POST find Content-Length [15:53:39]Host: 172.17.46.196:8080 [15:53:39]Content-Length: 666 [15:53:39]Content-Type: application/json [15:53:39] [15:53:39]POST finish read [15:53:39]Found Content-Length = 666 [15:53:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190148", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 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" ] } } [15:53:39]execute_script... [15:53: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)190148", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 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" ] } } [15:53:39]POST & json_proto [15:53:39]process_json_proto [15:53:39]json parsed OK: [15:53:39]protocol is kg_v1.0 [15:53:39]action value=close_receipt [15:53:39]process_action close_receipt [15:53:39]cmd_close_receipt [15:53:39]MH_GetDate [15:53:39]Write to MH i2c: F0 00 00 AE 05 A2 [15:53:39]Write i2c OK [15:53:39]MH_I2C_Read... [15:53:39]Read from MH i2c: F0 [15:53:39]MH_I2C_Read... [15:53:39]Read from MH i2c: F0 09 00 [15:53:39]MH_I2C_Read... [15:53:39]Read from MH i2c: F0 09 00 AE 05 00 83 6A C3 66 C4 85 C2 66 32 [15:53:39]GetLastDocTimeStamp 1724082393 [15:53:39]current date 1724082819 [15:53:39]FM_GetShiftState [15:53:39]SAM_PROTO_GetShiftState [15:53:39]wFMCommunicate request_size=4 [15:53:39]MH_SAM_APDU [15:53:39]CAPDU: 80 13 01 00 [15:53:39]Write to MH i2c: E2 08 00 AF 05 80 13 01 00 00 00 00 00 31 [15:53:39]Write i2c OK [15:53:39]MH_I2C_Read... [15:53:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:39]Read from MH i2c: E2 [15:53:39]MH_I2C_Read... [15:53:39]Read from MH i2c: E2 0E 00 [15:53:39]MH_I2C_Read... [15:53:39]Read from MH i2c: E2 0E 00 AF 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 EB [15:53:39]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:53:39]wFMCommunicate OK [15:53:39]SAM_PROTO_GetShiftState done [15:53:39]FM_GetShiftState done [15:53:39]opened in 1724026361 [15:53:39]opened+sec_in_day 1724112761 [15:53:39]quantity*price = 9000 [15:53:39]sum+1 = 9001 [15:53:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 123 19.08.2024 15:53 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50016 ФПД: 116498304260033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T155339&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50016&fm=116498304260033&tin=02508201610067®Number=0000000000092546&sum=9000 0 [15:53:40]StoreToDocumentArchive [15:53:40]shift 467 fd 50016 [15:53:40]save to /storage/0467/doc_00050016 [15:53:40]save last doc name /storage/0467/doc_00050016 to /storage/kkm_last_doc_name [15:53:40]save OK [15:53:40]Clear old archive folders... [15:53:40]ProcessDocumentItem done err = 0, tmpTLVsize=293 [15:53:40]tlvbuf is 01259F00 [15:53:40]SAM_PROTO_ClearQueue [15:53:40]wFMCommunicate request_size=4 [15:53:40]MH_SAM_APDU [15:53:40]CAPDU: 80 09 00 00 [15:53:40]Write to MH i2c: E2 08 00 BC 05 80 09 00 00 00 00 00 00 33 [15:53:40]Write i2c OK [15:53:40]MH_I2C_Read... [15:53:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:40]Read from MH i2c: E2 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: E2 03 00 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: E2 03 00 BC 05 00 90 00 35 [15:53:40]RAPDU: 90 00 [15:53:40]wFMCommunicate OK [15:53:40]SAM_PROTO_ClearQueue done [15:53:40]KKMCreateOFDPacket [15:53:40]OFDProtocolAddRootSTLVToBuf [15:53:40]FM_MakeSignedData [15:53:40]FM_MakeSignedData [15:53:40]SAM_PROTO_SignData [15:53:40]wFMCommunicate request_size=4 [15:53:40]MH_SAM_APDU [15:53:40]CAPDU: 80 0D 01 02 [15:53:40]Write to MH i2c: E2 08 00 BD 05 80 0D 01 02 00 00 00 00 3B [15:53:40]Write i2c OK [15:53:40]MH_I2C_Read... [15:53:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:40]Read from MH i2c: E2 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: E2 03 00 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: E2 03 00 BD 05 00 90 00 36 [15:53:40]RAPDU: 90 00 [15:53:40]wFMCommunicate OK [15:53:40]wFMCommunicate request_size=255 [15:53:40]MH_SAM_APDU [15:53:40]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 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 7B 00 00 00 F4 03 04 00 83 6A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [15:53:40]Write to MH i2c: E2 02 01 BE 05 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 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 7B 00 00 00 F4 03 04 00 83 6A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 78 [15:53:40]Write i2c OK [15:53:40]MH_I2C_Read... [15:53:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:40]Read from MH i2c: E2 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: E2 03 00 [15:53:40]MH_I2C_Read... [15:53:40]Read from MH i2c: E2 03 00 BE 05 00 90 00 37 [15:53:40]RAPDU: 90 00 [15:53:40]wFMCommunicate OK [15:53:40]wFMCommunicate request_size=52 [15:53:40]MH_SAM_APDU [15:53:40]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 60 C3 00 00 35 04 06 00 69 F4 60 0A D7 C1 [15:53:41]Write to MH i2c: E2 37 00 BF 05 80 0D 02 02 2F 00 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 60 C3 00 00 35 04 06 00 69 F4 60 0A D7 C1 00 00 7C [15:53:41]Write i2c OK [15:53:41]MH_I2C_Read... [15:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:41]Read from MH i2c: E2 [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: E2 03 00 [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: E2 03 00 BF 05 00 90 00 38 [15:53:41]RAPDU: 90 00 [15:53:41]wFMCommunicate OK [15:53:41]wFMCommunicate request_size=4 [15:53:41]MH_SAM_APDU [15:53:41]CAPDU: 80 0D 03 02 [15:53:41]Write to MH i2c: E2 08 00 C0 05 80 0D 03 02 00 00 00 00 40 [15:53:41]Write i2c OK [15:53:41]MH_I2C_Read... [15:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:41]Read from MH i2c: E2 [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: E2 0B 00 [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: E2 0B 00 C0 05 00 6D 8A 9E 0B 3A 1B 0D 2E 90 00 71 [15:53:41]RAPDU: 6D 8A 9E 0B 3A 1B 0D 2E 90 00 [15:53:41]wFMCommunicate OK [15:53:41]SAM_PROTO_SignData done [15:53:41]FM_MakeSignedData done [15:53:41]CreateOFDProtocolMessage [15:53:41]wFMCommunicate request_size=4 [15:53:41]MH_SAM_APDU [15:53:41]CAPDU: 80 11 00 00 [15:53:41]Write to MH i2c: E2 08 00 C1 05 80 11 00 00 00 00 00 00 40 [15:53:41]Write i2c OK [15:53:41]MH_I2C_Read... [15:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:41]Read from MH i2c: E2 [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: E2 17 00 [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: E2 17 00 C1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8B [15:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:53:41]wFMCommunicate OK [15:53:41]CreateOFDProtocolMessage done [15:53:41]OFDSenderStorePacket 50016 [15:53:41]StoreOFDPacket docnum=50016 [15:53:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 E4 9C 31 01 12 69 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 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 7B 00 00 00 F4 03 04 00 83 6A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 60 C3 00 00 35 04 06 00 69 F4 60 0A D7 C1 6D 8A 9E 0B 3A 1B 0D 2E [15:53:41]CheckFolder [15:53:41]dirname=/storage/ofd_packets [15:53:41]CheckFolder done [15:53:41]ProducePacketName [15:53:41]name=ofd_packets/00050016 [15:53:41]NVStorageSaveData ofd_packets/00050016 [15:53:41]File name is /storage/ofd_packets/00050016 [15:53:41]Write 343 bytes [15:53:41]NVStorageSaveData done [15:53:41]OFDSenderStorePacket done [15:53:41]KKMCreateOFDPacket done [15:53:41]NVStorageSaveData kkm_last_timestamp [15:53:41]File name is /storage/kkm_last_timestamp [15:53:41]Write 4 bytes [15:53:41]NVStorageSaveData done [15:53:41]OFD Sender: Processing packet 50016 [packets to send 21, broken 20] [15:53:41]ProducePacketName [15:53:41]name=ofd_packets/00050016 [15:53:41]OFD Sender: To server: pG, [15:53:41]CommunicateWithHost lk.salyk.kg:30040 [15:53:41]ConnectInit lk.salyk.kg [15:53:41]ExternCall_PrintAddStr [15:53:41]wPrintStart [15:53:41]Write to MH i2c: 01 00 00 C2 05 C7 [15:53:41]Write i2c OK [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: 01 [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: 01 07 00 [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: 01 07 00 C2 05 00 00 00 00 00 FF 0F DC [15:53:41]RasterBufferAndPrint [15:53:41]line Счет N : (3)190148 [15:53:41]line ИНН: 02508201610067 [15:53:41]line Контрольно-Кассовый Чек [15:53:41]line ПРОДАЖА [15:53:41]line Товар: 4870022003305 [15:53:41]line Напиток Gorilla эн нат ж/б 0,5/0,45л [15:53:41]line 1.000 * 90.00 [15:53:41]line = 90.00 [15:53:41]line НДС 12% НСП 1% [15:53:41]line > о реализуемом товаре [15:53:41]line ИТОГО: 90.00 [15:53:41]line НСП 1% : 0.80 [15:53:41]line НДС 12% : 9.56 [15:53:41]line Наличными: 90.00 [15:53:41]line Безнал.: 0.00 [15:53:41]line Место: АЗС № 95 "Партнер Нефть" [15:53:41]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:53:41]line СНО: Общий режим [15:53:41]line Чек 123 19.08.2024 15:53 [15:53:41]line Смена: 467 ФФД: 1.0 [15:53:41]line ЗНМ: 0300000078 [15:53:41]line РНМ: 0000000000092546 [15:53:41]line Версия ККМ: 001 [15:53:41]line ФМ: 0000000000871800 [15:53:41]line ФД: 50016 [15:53:41]line ФПД: 116498304260033 [15:53:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T155339&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50016&fm=116498304260033&tin=02508201610067®Number=0000000000092546&sum=9000 [15:53:41]line 0 [15:53:41]written 0, free lines is 4095 [15:53:41]Connected sock=11 [15:53:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 E4 9C 31 01 12 69 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 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 7B 00 00 00 F4 03 04 00 83 6A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 60 C3 00 00 35 04 06 00 69 F4 60 0A D7 C1 6D 8A 9E 0B 3A 1B 0D 2E [15:53:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 42 6F 47 00 77 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 60 C3 00 00 F4 03 04 00 F0 14 C3 66 B6 04 01 00 00 2A 25 E5 52 99 86 6C 51 [15:53:41]CommunicateWithHost err = 0 [15:53:41]CheckOFDResponse [15:53:41]1017 (14) - 77093643461234 [15:53:41]1041 (16) - 0000000000871800 [15:53:41]1040 (4) - 50016 [15:53:41]1012 (4) - 19.08.2024 09:48 [15:53:41]1206 (1) - 0 [15:53:41]OFD Sender: Remove packet 50016 [15:53:41]ProducePacketName [15:53:41]name=ofd_packets/00050016 [15:53:41]NVStorageDeleteData [15:53:41]Write to MH i2c: 01 00 00 EB 05 F0 [15:53:41]Write i2c OK [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: 01 [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: 01 07 00 [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: 01 07 00 EB 05 00 00 00 00 00 D7 0C DA [15:53:41]RasterBufferAndPrint [15:53:41]line [15:53:41]line [15:53:41]line [15:53:41]line [15:53:41]line [15:53:41]written 0, free lines is 3295 [15:53:41]MH_Cut [15:53:41]Write to MH i2c: D1 01 00 F2 05 01 C9 [15:53:41]Write i2c OK [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: D1 [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: D1 01 00 [15:53:41]MH_I2C_Read... [15:53:41]Read from MH i2c: D1 01 00 F2 05 00 C8 [15:53:41]Write to MH i2c: 01 00 00 F3 05 F8 [15:53:41]Write i2c OK [15:53:41]MH_I2C_Read... [15:53:42]OFD Sender: No OFD packet to send [15:53:42]*** Cut start [15:53:42]*** Purtial cut [15:53:42]*** Stage 1: CUTSNS_PIN = 1 [15:53:43]Read from MH i2c: 01 [15:53:43]MH_I2C_Read... [15:53:43]*** Stop cut motor [15:53:43]*** Cut end [15:53:43]Read from MH i2c: 01 07 00 [15:53:43]MH_I2C_Read... [15:53:43]Read from MH i2c: 01 07 00 F3 05 00 00 00 00 00 FF 0F 0D [15:53:43]process_action close_receipt done [15:53:43]requested_data is exist [15:53:43]produce_requested_data [15:53:43]requested_item fm.sn is exist - process it [15:53:43]wFMCommunicate request_size=4 [15:53:43]MH_SAM_APDU [15:53:43]CAPDU: 80 11 00 00 [15:53:43]Write to MH i2c: E2 08 00 F4 05 80 11 00 00 00 00 00 00 73 [15:53:43]Write i2c OK [15:53:43]MH_I2C_Read... [15:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:43]Read from MH i2c: E2 [15:53:43]MH_I2C_Read... [15:53:43]Read from MH i2c: E2 17 00 [15:53:43]MH_I2C_Read... [15:53:43]Read from MH i2c: E2 17 00 F4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BE [15:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:53:43]wFMCommunicate OK [15:53:43]requested_item fd.num is exist - process it [15:53:43]SAM_PROTO_GetFieldsCounters [15:53:43]wFMCommunicate request_size=4 [15:53:43]MH_SAM_APDU [15:53:43]CAPDU: 80 13 00 00 [15:53:43]Write to MH i2c: E2 08 00 F5 05 80 13 00 00 00 00 00 00 76 [15:53:43]Write i2c OK [15:53:43]MH_I2C_Read... [15:53:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:43]Read from MH i2c: E2 [15:53:43]MH_I2C_Read... [15:53:43]Read from MH i2c: E2 62 00 [15:53:43]MH_I2C_Read... [15:53:43]Read from MH i2c: E2 62 00 F5 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 60 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [15:53:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 60 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:43]wFMCommunicate OK [15:53:43]SAM_PROTO_GetFieldsCounters done [15:53:43]requested_item shift.num is exist - process it [15:53:43]requested_item shift.opened is exist - process it [15:53:43]req_shift_opened [15:53:43]FM_GetShiftState [15:53:43]SAM_PROTO_GetShiftState [15:53:43]wFMCommunicate request_size=4 [15:53:43]MH_SAM_APDU [15:53:43]CAPDU: 80 13 01 00 [15:53:43]Write to MH i2c: E2 08 00 F6 05 80 13 01 00 00 00 00 00 78 [15:53:43]Write i2c OK [15:53:43]MH_I2C_Read... [15:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:43]Read from MH i2c: E2 [15:53:43]MH_I2C_Read... [15:53:43]Read from MH i2c: E2 0E 00 [15:53:43]MH_I2C_Read... [15:53:43]Read from MH i2c: E2 0E 00 F6 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 32 [15:53:43]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:53:43]wFMCommunicate OK [15:53:43]SAM_PROTO_GetShiftState done [15:53:43]FM_GetShiftState done [15:53:43]req_shift_opened done [15:53:43]requested_item shift.open_date is exist - process it [15:53:43]req_shift_open_date [15:53:43]req_shift_open_date done [15:53:43]produce_requested_data done [15:53:43]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50016,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [15:53:43]process_action_free close_receipt [15:53:43]json_value_free [15:53:43]json_value_free done [15:53:43]process_json_proto returns [15:53:43]Send response to host [15:53:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50016,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [15:53:43]free response buf [15:53:43]execute_script done [15:53:43]execute_script returns [15:53:43]free content buf [15:53:43]Sock 9.Close socket [15:53:43]Sock 9.Thread stoped [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:16]accept exits with 7 [15:56:16]New connection [15:56:16]New thread 3066613092 created [15:56:16]Thread 3066469732 joined [15:56:16]Waiting for new connection... [15:56:16] Sock 7.Parse request [15:56:16]Sock 7.Check first char [15:56:16]Sock 7.First char is OK [15:56:16]request: POST /json_proto HTTP/1.0 [15:56:16]Method: POST [15:56:16]URL: /json_proto [15:56:16]Method is POST - this is cgi request [15:56:16]url: /json_proto [15:56:16]query_string will be loaded in cgi processing [15:56:16]execute_cgi json_proto POST (null) [15:56:16]execute_cgi path=json_proto method=POST [15:56:16]POST find Content-Length [15:56:16]Host: 172.17.46.196:8080 [15:56:16]Content-Length: 756 [15:56:16]Content-Type: application/json [15:56:16] [15:56:16]POST finish read [15:56:16]Found Content-Length = 756 [15:56:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30113809", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:16]execute_script... [15:56:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30113809", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:16]POST & json_proto [15:56:16]process_json_proto [15:56:16]json parsed OK: [15:56:16]protocol is kg_v1.0 [15:56:16]action value=close_receipt [15:56:16]process_action close_receipt [15:56:16]cmd_close_receipt [15:56:16]MH_GetDate [15:56:16]Write to MH i2c: F0 00 00 F7 05 EB [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: F0 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: F0 09 00 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: F0 09 00 F7 05 00 21 6B C3 66 C4 85 C2 66 1A [15:56:16]GetLastDocTimeStamp 1724082819 [15:56:16]current date 1724082977 [15:56:16]FM_GetShiftState [15:56:16]SAM_PROTO_GetShiftState [15:56:16]wFMCommunicate request_size=4 [15:56:16]MH_SAM_APDU [15:56:16]CAPDU: 80 13 01 00 [15:56:16]Write to MH i2c: E2 08 00 F8 05 80 13 01 00 00 00 00 00 7A [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:17]Read from MH i2c: E2 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: E2 0E 00 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: E2 0E 00 F8 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 34 [15:56:17]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:56:17]wFMCommunicate OK [15:56:17]SAM_PROTO_GetShiftState done [15:56:17]FM_GetShiftState done [15:56:17]opened in 1724026361 [15:56:17]opened+sec_in_day 1724112761 [15:56:17]quantity*price = 0 [15:56:17]sum+1 = 1 [15:56:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 124 19.08.2024 15:56 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30113809 ФМ: 0000000000871800 ФД: 50017 ФПД: 135706669035125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T155617&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50017&fm=135706669035125&tin=02508201610067®Number=0000000000092546&sum=0 [15:56:18]StoreToDocumentArchive [15:56:18]shift 467 fd 50017 [15:56:18]save to /storage/0467/doc_00050017 [15:56:18]save last doc name /storage/0467/doc_00050017 to /storage/kkm_last_doc_name [15:56:18]save OK [15:56:18]Clear old archive folders... [15:56:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:18]tlvbuf is 01288D20 [15:56:18]SAM_PROTO_ClearQueue [15:56:18]wFMCommunicate request_size=4 [15:56:18]MH_SAM_APDU [15:56:18]CAPDU: 80 09 00 00 [15:56:18]Write to MH i2c: E2 08 00 05 06 80 09 00 00 00 00 00 00 7D [15:56:18]Write i2c OK [15:56:18]MH_I2C_Read... [15:56:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:18]Read from MH i2c: E2 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: E2 03 00 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [15:56:18]RAPDU: 90 00 [15:56:18]wFMCommunicate OK [15:56:18]SAM_PROTO_ClearQueue done [15:56:18]KKMCreateOFDPacket [15:56:18]OFDProtocolAddRootSTLVToBuf [15:56:18]FM_MakeSignedData [15:56:18]FM_MakeSignedData [15:56:18]SAM_PROTO_SignData [15:56:18]wFMCommunicate request_size=4 [15:56:18]MH_SAM_APDU [15:56:18]CAPDU: 80 0D 01 02 [15:56:18]Write to MH i2c: E2 08 00 06 06 80 0D 01 02 00 00 00 00 85 [15:56:18]Write i2c OK [15:56:18]MH_I2C_Read... [15:56:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:18]Read from MH i2c: E2 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: E2 03 00 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: E2 03 00 06 06 00 90 00 80 [15:56:18]RAPDU: 90 00 [15:56:18]wFMCommunicate OK [15:56:18]wFMCommunicate request_size=255 [15:56:18]MH_SAM_APDU [15:56:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 21 6B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 61 C3 00 00 35 04 06 00 7B [15:56:18]Write to MH i2c: E2 02 01 07 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 21 6B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 61 C3 00 00 35 04 06 00 7B 00 00 0C [15:56:18]Write i2c OK [15:56:18]MH_I2C_Read... [15:56:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:18]Read from MH i2c: E2 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: E2 03 00 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: E2 03 00 07 06 00 90 00 81 [15:56:18]RAPDU: 90 00 [15:56:18]wFMCommunicate OK [15:56:18]wFMCommunicate request_size=10 [15:56:18]MH_SAM_APDU [15:56:18]CAPDU: 80 0D 02 02 05 6C AB CD 2E 75 [15:56:18]Write to MH i2c: E2 0D 00 08 06 80 0D 02 02 05 00 6C AB CD 2E 75 00 00 19 [15:56:18]Write i2c OK [15:56:18]MH_I2C_Read... [15:56:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:18]Read from MH i2c: E2 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: E2 03 00 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: E2 03 00 08 06 00 90 00 82 [15:56:18]RAPDU: 90 00 [15:56:18]wFMCommunicate OK [15:56:18]wFMCommunicate request_size=4 [15:56:18]MH_SAM_APDU [15:56:18]CAPDU: 80 0D 03 02 [15:56:18]Write to MH i2c: E2 08 00 09 06 80 0D 03 02 00 00 00 00 8A [15:56:18]Write i2c OK [15:56:18]MH_I2C_Read... [15:56:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:18]Read from MH i2c: E2 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: E2 0B 00 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: E2 0B 00 09 06 00 6E A6 16 7A F8 46 15 60 90 00 E2 [15:56:18]RAPDU: 6E A6 16 7A F8 46 15 60 90 00 [15:56:18]wFMCommunicate OK [15:56:18]SAM_PROTO_SignData done [15:56:18]FM_MakeSignedData done [15:56:18]CreateOFDProtocolMessage [15:56:18]wFMCommunicate request_size=4 [15:56:18]MH_SAM_APDU [15:56:18]CAPDU: 80 11 00 00 [15:56:18]Write to MH i2c: E2 08 00 0A 06 80 11 00 00 00 00 00 00 8A [15:56:18]Write i2c OK [15:56:18]MH_I2C_Read... [15:56:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:18]Read from MH i2c: E2 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: E2 17 00 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: E2 17 00 0A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D5 [15:56:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:56:18]wFMCommunicate OK [15:56:18]CreateOFDProtocolMessage done [15:56:18]OFDSenderStorePacket 50017 [15:56:18]StoreOFDPacket docnum=50017 [15:56:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 F5 8E 07 01 D7 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 21 6B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 61 C3 00 00 35 04 06 00 7B 6C AB CD 2E 75 6E A6 16 7A F8 46 15 60 [15:56:18]CheckFolder [15:56:18]dirname=/storage/ofd_packets [15:56:18]CheckFolder done [15:56:18]ProducePacketName [15:56:18]name=ofd_packets/00050017 [15:56:18]NVStorageSaveData ofd_packets/00050017 [15:56:18]File name is /storage/ofd_packets/00050017 [15:56:18]Write 301 bytes [15:56:18]NVStorageSaveData done [15:56:18]OFDSenderStorePacket done [15:56:18]KKMCreateOFDPacket done [15:56:18]NVStorageSaveData kkm_last_timestamp [15:56:18]File name is /storage/kkm_last_timestamp [15:56:18]Write 4 bytes [15:56:18]NVStorageSaveData done [15:56:18]ExternCall_PrintAddStr [15:56:18]wPrintStart [15:56:18]Write to MH i2c: 01 00 00 0B 06 11 [15:56:18]Write i2c OK [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: 01 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: 01 07 00 [15:56:18]MH_I2C_Read... [15:56:18]Read from MH i2c: 01 07 00 0B 06 00 00 00 00 00 FF 0F 26 [15:56:18]RasterBufferAndPrint [15:56:18]line Счет N : (1)11327929 [15:56:18]line ИНН: 02508201610067 [15:56:18]line Контрольно-Кассовый Чек [15:56:18]line ПРОДАЖА [15:56:18]line ТРК (МРК, ГНК) : 21 [15:56:18]line Товар: 2710124500 [15:56:18]line Аи-95-К-5 [15:56:18]line 40.000 * 0.00 [15:56:18]line = 0.00 [15:56:18]line НДС 12% НСП 1% [15:56:18]line > о реализуемом товаре [15:56:18]line ИТОГО: 0.00 [15:56:18]line НСП 1% : 0.00 [15:56:18]line НДС 12% : 0.00 [15:56:18]line Наличными: 0.00 [15:56:18]line Безнал.: 0.00 [15:56:18]line Место: АЗС № 95 "Партнер Нефть" [15:56:18]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:56:18]line СНО: Общий режим [15:56:18]line Чек 124 19.08.2024 15:56 [15:56:18]line Смена: 467 ФФД: 1.0 [15:56:18]line ЗНМ: 0300000078 [15:56:18]line РНМ: 0000000000092546 [15:56:18]line Версия ККМ: 001 [15:56:18]line Талоны: ТК ГПНА Online [15:56:18]line 30113809 [15:56:18]line ФМ: 0000000000871800 [15:56:18]line ФД: 50017 [15:56:18]line ФПД: 135706669035125 [15:56:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T155617&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50017&fm=135706669035125&tin=02508201610067®Number=0000000000092546&sum=0 [15:56:18]written 0, free lines is 4095 [15:56:18]OFD Sender: Processing packet 50017 [packets to send 21, broken 20] [15:56:18]ProducePacketName [15:56:18]name=ofd_packets/00050017 [15:56:18]OFD Sender: To server: pG, [15:56:18]CommunicateWithHost lk.salyk.kg:30040 [15:56:18]ConnectInit lk.salyk.kg [15:56:19]Connected sock=10 [15:56:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 F5 8E 07 01 D7 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 21 6B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 61 C3 00 00 35 04 06 00 7B 6C AB CD 2E 75 6E A6 16 7A F8 46 15 60 [15:56:19]Write to MH i2c: 01 00 00 35 06 3B [15:56:19]Write i2c OK [15:56:19]MH_I2C_Read... [15:56:19]Read from MH i2c: 01 [15:56:19]MH_I2C_Read... [15:56:19]Read from MH i2c: 01 07 00 [15:56:19]MH_I2C_Read... [15:56:19]Read from MH i2c: 01 07 00 35 06 00 00 00 00 00 DC 0C 2A [15:56:19]RasterBufferAndPrint [15:56:19]line [15:56:19]line [15:56:19]line [15:56:19]line [15:56:19]line [15:56:19]written 0, free lines is 3298 [15:56:19]MH_Cut [15:56:19]Write to MH i2c: D1 01 00 3C 06 01 14 [15:56:19]Write i2c OK [15:56:19]MH_I2C_Read... [15:56:19]Read from MH i2c: D1 [15:56:19]MH_I2C_Read... [15:56:19]Read from MH i2c: D1 01 00 [15:56:19]MH_I2C_Read... [15:56:19]Read from MH i2c: D1 01 00 3C 06 00 13 [15:56:19]Write to MH i2c: 01 00 00 3D 06 43 [15:56:19]Write i2c OK [15:56:19]MH_I2C_Read... [15:56:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B3 54 47 00 BB 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 61 C3 00 00 F4 03 04 00 8E 15 C3 66 B6 04 01 00 00 11 8E 36 20 7B EF 3C DB [15:56:19]CommunicateWithHost err = 0 [15:56:19]CheckOFDResponse [15:56:19]1017 (14) - 77093643461234 [15:56:19]1041 (16) - 0000000000871800 [15:56:19]1040 (4) - 50017 [15:56:19]1012 (4) - 19.08.2024 09:51 [15:56:19]1206 (1) - 0 [15:56:19]OFD Sender: Remove packet 50017 [15:56:19]ProducePacketName [15:56:19]name=ofd_packets/00050017 [15:56:19]NVStorageDeleteData [15:56:19]OFD Sender: No OFD packet to send [15:56:19]*** Cut start [15:56:19]*** Purtial cut [15:56:19]*** CUTSNS_PIN = 0 [15:56:20]*** Stage 1: CUTSNS_PIN = 1 [15:56:21]Read from MH i2c: 01 [15:56:21]MH_I2C_Read... [15:56:21]*** Stop cut motor [15:56:21]*** Cut end [15:56:21]Read from MH i2c: 01 07 00 [15:56:21]MH_I2C_Read... [15:56:21]Read from MH i2c: 01 07 00 3D 06 00 00 00 00 00 FF 0F 58 [15:56:21]process_action close_receipt done [15:56:21]requested_data is exist [15:56:21]produce_requested_data [15:56:21]requested_item fm.sn is exist - process it [15:56:21]wFMCommunicate request_size=4 [15:56:21]MH_SAM_APDU [15:56:21]CAPDU: 80 11 00 00 [15:56:21]Write to MH i2c: E2 08 00 3E 06 80 11 00 00 00 00 00 00 BE [15:56:21]Write i2c OK [15:56:21]MH_I2C_Read... [15:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:22]Read from MH i2c: E2 [15:56:22]MH_I2C_Read... [15:56:22]Read from MH i2c: E2 17 00 [15:56:22]MH_I2C_Read... [15:56:22]Read from MH i2c: E2 17 00 3E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 09 [15:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:56:22]wFMCommunicate OK [15:56:22]requested_item fd.num is exist - process it [15:56:22]SAM_PROTO_GetFieldsCounters [15:56:22]wFMCommunicate request_size=4 [15:56:22]MH_SAM_APDU [15:56:22]CAPDU: 80 13 00 00 [15:56:22]Write to MH i2c: E2 08 00 3F 06 80 13 00 00 00 00 00 00 C1 [15:56:22]Write i2c OK [15:56:22]MH_I2C_Read... [15:56:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:22]Read from MH i2c: E2 [15:56:22]MH_I2C_Read... [15:56:22]Read from MH i2c: E2 62 00 [15:56:22]MH_I2C_Read... [15:56:22]Read from MH i2c: E2 62 00 3F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 61 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [15:56:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 61 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:22]wFMCommunicate OK [15:56:22]SAM_PROTO_GetFieldsCounters done [15:56:22]requested_item shift.num is exist - process it [15:56:22]requested_item shift.opened is exist - process it [15:56:22]req_shift_opened [15:56:22]FM_GetShiftState [15:56:22]SAM_PROTO_GetShiftState [15:56:22]wFMCommunicate request_size=4 [15:56:22]MH_SAM_APDU [15:56:22]CAPDU: 80 13 01 00 [15:56:22]Write to MH i2c: E2 08 00 40 06 80 13 01 00 00 00 00 00 C3 [15:56:22]Write i2c OK [15:56:22]MH_I2C_Read... [15:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:22]Read from MH i2c: E2 [15:56:22]MH_I2C_Read... [15:56:22]Read from MH i2c: E2 0E 00 [15:56:22]MH_I2C_Read... [15:56:22]Read from MH i2c: E2 0E 00 40 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 7D [15:56:22]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [15:56:22]wFMCommunicate OK [15:56:22]SAM_PROTO_GetShiftState done [15:56:22]FM_GetShiftState done [15:56:22]req_shift_opened done [15:56:22]requested_item shift.open_date is exist - process it [15:56:22]req_shift_open_date [15:56:22]req_shift_open_date done [15:56:22]produce_requested_data done [15:56:22]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50017,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [15:56:22]process_action_free close_receipt [15:56:22]json_value_free [15:56:22]json_value_free done [15:56:22]process_json_proto returns [15:56:22]Send response to host [15:56:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50017,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [15:56:22]free response buf [15:56:22]execute_script done [15:56:22]execute_script returns [15:56:22]free content buf [15:56:22]Sock 7.Close socket [15:56:22]Sock 7.Thread stoped [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]OFD Sender: No OFD packet to send [15:57:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:14]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:00]OFD Sender: No OFD packet to send [16:02:05]OFD Sender: No OFD packet to send [16:02:10]OFD Sender: No OFD packet to send [16:02:15]OFD Sender: No OFD packet to send [16:02:20]OFD Sender: No OFD packet to send [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:54]accept exits with 9 [16:08:54]New connection [16:08:54]New thread 3066469732 created [16:08:54]Thread 3066613092 joined [16:08:54]Waiting for new connection... [16:08:54] Sock 9.Parse request [16:08:54]Sock 9.Check first char [16:08:54]Sock 9.First char is OK [16:08:54]request: POST /json_proto HTTP/1.0 [16:08:54]Method: POST [16:08:54]URL: /json_proto [16:08:54]Method is POST - this is cgi request [16:08:54]url: /json_proto [16:08:54]query_string will be loaded in cgi processing [16:08:54]execute_cgi json_proto POST (null) [16:08:54]execute_cgi path=json_proto method=POST [16:08:54]POST find Content-Length [16:08:54]Host: 172.17.46.196:8080 [16:08:54]Content-Length: 621 [16:08:54]Content-Type: application/json [16:08:54] [16:08:54]POST finish read [16:08:54]Found Content-Length = 621 [16:08:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190149", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:54]execute_script... [16:08: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)190149", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:54]POST & json_proto [16:08:54]process_json_proto [16:08:54]json parsed OK: [16:08:54]protocol is kg_v1.0 [16:08:54]action value=close_receipt [16:08:54]process_action close_receipt [16:08:54]cmd_close_receipt [16:08:54]MH_GetDate [16:08:54]Write to MH i2c: F0 00 00 41 06 36 [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: F0 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: F0 09 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: F0 09 00 41 06 00 16 6E C3 66 C4 85 C2 66 5D [16:08:54]GetLastDocTimeStamp 1724082977 [16:08:54]current date 1724083734 [16:08:54]FM_GetShiftState [16:08:54]SAM_PROTO_GetShiftState [16:08:54]wFMCommunicate request_size=4 [16:08:54]MH_SAM_APDU [16:08:54]CAPDU: 80 13 01 00 [16:08:54]Write to MH i2c: E2 08 00 42 06 80 13 01 00 00 00 00 00 C5 [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:54]Read from MH i2c: E2 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 0E 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 0E 00 42 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 7F [16:08:54]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [16:08:54]wFMCommunicate OK [16:08:54]SAM_PROTO_GetShiftState done [16:08:54]FM_GetShiftState done [16:08:54]opened in 1724026361 [16:08:54]opened+sec_in_day 1724112761 [16:08:54]quantity*price = 14000 [16:08:54]sum+1 = 14001 [16:08:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 125 19.08.2024 16:08 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50018 ФПД: 271493926870390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T160854&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50018&fm=271493926870390&tin=02508201610067®Number=0000000000092546&sum=14000 0 [16:08:55]StoreToDocumentArchive [16:08:55]shift 467 fd 50018 [16:08:55]save to /storage/0467/doc_00050018 [16:08:55]save last doc name /storage/0467/doc_00050018 to /storage/kkm_last_doc_name [16:08:55]save OK [16:08:55]Clear old archive folders... [16:08:55]ProcessDocumentItem done err = 0, tmpTLVsize=273 [16:08:55]tlvbuf is 01282A40 [16:08:55]SAM_PROTO_ClearQueue [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 09 00 00 [16:08:55]Write to MH i2c: E2 08 00 4F 06 80 09 00 00 00 00 00 00 C7 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]OFD Sender: No OFD packet to send [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:55]Read from MH i2c: E2 03 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 4F 06 00 90 00 C9 [16:08:55]RAPDU: 90 00 [16:08:55]wFMCommunicate OK [16:08:55]SAM_PROTO_ClearQueue done [16:08:55]KKMCreateOFDPacket [16:08:55]OFDProtocolAddRootSTLVToBuf [16:08:55]FM_MakeSignedData [16:08:55]FM_MakeSignedData [16:08:55]SAM_PROTO_SignData [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 0D 01 02 [16:08:55]Write to MH i2c: E2 08 00 50 06 80 0D 01 02 00 00 00 00 CF [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 50 06 00 90 00 CA [16:08:55]RAPDU: 90 00 [16:08:55]wFMCommunicate OK [16:08:55]wFMCommunicate request_size=255 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 16 6E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [16:08:55]Write to MH i2c: E2 02 01 51 06 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 16 6E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 EB [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 51 06 00 90 00 CB [16:08:55]RAPDU: 90 00 [16:08:55]wFMCommunicate OK [16:08:55]wFMCommunicate request_size=32 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 62 C3 00 00 35 04 06 00 F6 EC 1B 11 DD 76 [16:08:55]Write to MH i2c: E2 23 00 52 06 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 62 C3 00 00 35 04 06 00 F6 EC 1B 11 DD 76 00 00 AD [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 03 00 52 06 00 90 00 CC [16:08:55]RAPDU: 90 00 [16:08:55]wFMCommunicate OK [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 0D 03 02 [16:08:55]Write to MH i2c: E2 08 00 53 06 80 0D 03 02 00 00 00 00 D4 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 0B 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 0B 00 53 06 00 26 BC 8E 35 A7 54 37 E8 90 00 94 [16:08:56]RAPDU: 26 BC 8E 35 A7 54 37 E8 90 00 [16:08:56]wFMCommunicate OK [16:08:56]SAM_PROTO_SignData done [16:08:56]FM_MakeSignedData done [16:08:56]CreateOFDProtocolMessage [16:08:56]wFMCommunicate request_size=4 [16:08:56]MH_SAM_APDU [16:08:56]CAPDU: 80 11 00 00 [16:08:56]Write to MH i2c: E2 08 00 54 06 80 11 00 00 00 00 00 00 D4 [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:56]Read from MH i2c: E2 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 17 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: E2 17 00 54 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1F [16:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:08:56]wFMCommunicate OK [16:08:56]CreateOFDProtocolMessage done [16:08:56]OFDSenderStorePacket 50018 [16:08:56]StoreOFDPacket docnum=50018 [16:08:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 8B F8 1D 01 25 59 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 16 6E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 62 C3 00 00 35 04 06 00 F6 EC 1B 11 DD 76 26 BC 8E 35 A7 54 37 E8 [16:08:56]CheckFolder [16:08:56]dirname=/storage/ofd_packets [16:08:56]CheckFolder done [16:08:56]ProducePacketName [16:08:56]name=ofd_packets/00050018 [16:08:56]NVStorageSaveData ofd_packets/00050018 [16:08:56]File name is /storage/ofd_packets/00050018 [16:08:56]Write 323 bytes [16:08:56]NVStorageSaveData done [16:08:56]OFDSenderStorePacket done [16:08:56]KKMCreateOFDPacket done [16:08:56]NVStorageSaveData kkm_last_timestamp [16:08:56]File name is /storage/kkm_last_timestamp [16:08:56]Write 4 bytes [16:08:56]NVStorageSaveData done [16:08:56]ExternCall_PrintAddStr [16:08:56]wPrintStart [16:08:56]Write to MH i2c: 01 00 00 55 06 5B [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 07 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 07 00 55 06 00 00 00 00 00 FF 0F 70 [16:08:56]RasterBufferAndPrint [16:08:56]line Счет N : (3)190149 [16:08:56]line ИНН: 02508201610067 [16:08:56]line Контрольно-Кассовый Чек [16:08:56]line ПРОДАЖА [16:08:56]line Товар: 48747066 [16:08:56]line Сигареты Winston True Silver [16:08:56]line 1.000 * 140.00 [16:08:56]line = 140.00 [16:08:56]line НДС 12% НСП 1% [16:08:56]line > о реализуемом товаре [16:08:56]line ИТОГО: 140.00 [16:08:56]line НСП 1% : 1.24 [16:08:56]line НДС 12% : 14.87 [16:08:56]line Наличными: 140.00 [16:08:56]line Безнал.: 0.00 [16:08:56]line Место: АЗС № 95 "Партнер Нефть" [16:08:56]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:08:56]line СНО: Общий режим [16:08:56]line Чек 125 19.08.2024 16:08 [16:08:56]line Смена: 467 ФФД: 1.0 [16:08:56]line ЗНМ: 0300000078 [16:08:56]line РНМ: 0000000000092546 [16:08:56]line Версия ККМ: 001 [16:08:56]line ФМ: 0000000000871800 [16:08:56]line ФД: 50018 [16:08:56]line ФПД: 271493926870390 [16:08:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T160854&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50018&fm=271493926870390&tin=02508201610067®Number=0000000000092546&sum=14000 [16:08:56]OFD Sender: Processing packet 50018 [packets to send 21, broken 20] [16:08:56]ProducePacketName [16:08:56]name=ofd_packets/00050018 [16:08:56]OFD Sender: To server: pG, [16:08:56]CommunicateWithHost lk.salyk.kg:30040 [16:08:56]ConnectInit lk.salyk.kg [16:08:56]line 0 [16:08:56]written 0, free lines is 4095 [16:08:56]Connected sock=10 [16:08:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 8B F8 1D 01 25 59 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 54 72 75 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 16 6E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 62 C3 00 00 35 04 06 00 F6 EC 1B 11 DD 76 26 BC 8E 35 A7 54 37 E8 [16:08:56]Write to MH i2c: 01 00 00 7D 06 83 [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 07 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: 01 07 00 7D 06 00 00 00 00 00 F1 0C 87 [16:08:56]RasterBufferAndPrint [16:08:56]line [16:08:56]line [16:08:56]line [16:08:56]line [16:08:56]line [16:08:56]written 0, free lines is 3319 [16:08:56]MH_Cut [16:08:56]Write to MH i2c: D1 01 00 84 06 01 5C [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: D1 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: D1 01 00 [16:08:56]MH_I2C_Read... [16:08:56]Read from MH i2c: D1 01 00 84 06 00 5B [16:08:56]Write to MH i2c: 01 00 00 85 06 8B [16:08:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 14 B8 47 00 F3 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 62 C3 00 00 F4 03 04 00 83 18 C3 66 B6 04 01 00 00 8C 24 C3 30 25 C5 8E D8 [16:08:56]CommunicateWithHost err = 0 [16:08:56]CheckOFDResponse [16:08:56]1017 (14) - 77093643461234 [16:08:56]1041 (16) - 0000000000871800 [16:08:56]1040 (4) - 50018 [16:08:56]1012 (4) - 19.08.2024 10:03 [16:08:56]1206 (1) - 0 [16:08:56]OFD Sender: Remove packet 50018 [16:08:56]ProducePacketName [16:08:56]name=ofd_packets/00050018 [16:08:56]NVStorageDeleteData [16:08:56]Write i2c OK [16:08:56]MH_I2C_Read... [16:08:57]OFD Sender: No OFD packet to send [16:08:57]*** Cut start [16:08:57]*** Purtial cut [16:08:57]*** Stage 1: CUTSNS_PIN = 1 [16:08:57]Read from MH i2c: 01 [16:08:57]MH_I2C_Read... [16:08:57]*** Stop cut motor [16:08:57]*** Cut end [16:08:57]Read from MH i2c: 01 07 00 [16:08:57]MH_I2C_Read... [16:08:57]Read from MH i2c: 01 07 00 85 06 00 00 00 00 00 FF 0F A0 [16:08:57]process_action close_receipt done [16:08:57]requested_data is exist [16:08:57]produce_requested_data [16:08:57]requested_item fm.sn is exist - process it [16:08:57]wFMCommunicate request_size=4 [16:08:57]MH_SAM_APDU [16:08:57]CAPDU: 80 11 00 00 [16:08:57]Write to MH i2c: E2 08 00 86 06 80 11 00 00 00 00 00 00 06 [16:08:57]Write i2c OK [16:08:57]MH_I2C_Read... [16:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:57]Read from MH i2c: E2 [16:08:57]MH_I2C_Read... [16:08:57]Read from MH i2c: E2 17 00 [16:08:57]MH_I2C_Read... [16:08:57]Read from MH i2c: E2 17 00 86 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 51 [16:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:08:57]wFMCommunicate OK [16:08:57]requested_item fd.num is exist - process it [16:08:57]SAM_PROTO_GetFieldsCounters [16:08:57]wFMCommunicate request_size=4 [16:08:57]MH_SAM_APDU [16:08:57]CAPDU: 80 13 00 00 [16:08:57]Write to MH i2c: E2 08 00 87 06 80 13 00 00 00 00 00 00 09 [16:08:57]Write i2c OK [16:08:57]MH_I2C_Read... [16:08:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:58]Read from MH i2c: E2 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 62 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 62 00 87 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 62 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [16:08:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 62 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:58]wFMCommunicate OK [16:08:58]SAM_PROTO_GetFieldsCounters done [16:08:58]requested_item shift.num is exist - process it [16:08:58]requested_item shift.opened is exist - process it [16:08:58]req_shift_opened [16:08:58]FM_GetShiftState [16:08:58]SAM_PROTO_GetShiftState [16:08:58]wFMCommunicate request_size=4 [16:08:58]MH_SAM_APDU [16:08:58]CAPDU: 80 13 01 00 [16:08:58]Write to MH i2c: E2 08 00 88 06 80 13 01 00 00 00 00 00 0B [16:08:58]Write i2c OK [16:08:58]MH_I2C_Read... [16:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:58]Read from MH i2c: E2 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 0E 00 [16:08:58]MH_I2C_Read... [16:08:58]Read from MH i2c: E2 0E 00 88 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 C5 [16:08:58]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [16:08:58]wFMCommunicate OK [16:08:58]SAM_PROTO_GetShiftState done [16:08:58]FM_GetShiftState done [16:08:58]req_shift_opened done [16:08:58]requested_item shift.open_date is exist - process it [16:08:58]req_shift_open_date [16:08:58]req_shift_open_date done [16:08:58]produce_requested_data done [16:08:58]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50018,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [16:08:58]process_action_free close_receipt [16:08:58]json_value_free [16:08:58]json_value_free done [16:08:58]process_json_proto returns [16:08:58]Send response to host [16:08:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50018,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [16:08:58]free response buf [16:08:58]execute_script done [16:08:58]execute_script returns [16:08:58]free content buf [16:08:58]Sock 9.Close socket [16:08:58]Sock 9.Thread stoped [16:09:02]OFD Sender: No OFD packet to send [16:09:03]accept exits with 7 [16:09:03]New connection [16:09:03]New thread 3066613092 created [16:09:03]Thread 3066469732 joined [16:09:03]Waiting for new connection... [16:09:03] Sock 7.Parse request [16:09:03]Sock 7.Check first char [16:09:03]Sock 7.First char is OK [16:09:03]request: POST /json_proto HTTP/1.0 [16:09:03]Method: POST [16:09:03]URL: /json_proto [16:09:03]Method is POST - this is cgi request [16:09:03]url: /json_proto [16:09:03]query_string will be loaded in cgi processing [16:09:03]execute_cgi json_proto POST (null) [16:09:03]execute_cgi path=json_proto method=POST [16:09:03]POST find Content-Length [16:09:03]Host: 172.17.46.196:8080 [16:09:03]Content-Length: 621 [16:09:03]Content-Type: application/json [16:09:03] [16:09:03]POST finish read [16:09:03]Found Content-Length = 621 [16:09:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190150", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:03]execute_script... [16:09: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)190150", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:03]POST & json_proto [16:09:03]process_json_proto [16:09:03]json parsed OK: [16:09:03]protocol is kg_v1.0 [16:09:03]action value=close_receipt [16:09:03]process_action close_receipt [16:09:03]cmd_close_receipt [16:09:03]MH_GetDate [16:09:03]Write to MH i2c: F0 00 00 89 06 7E [16:09:03]Write i2c OK [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: F0 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: F0 09 00 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: F0 09 00 89 06 00 1F 6E C3 66 C4 85 C2 66 AE [16:09:03]GetLastDocTimeStamp 1724083734 [16:09:03]current date 1724083743 [16:09:03]FM_GetShiftState [16:09:03]SAM_PROTO_GetShiftState [16:09:03]wFMCommunicate request_size=4 [16:09:03]MH_SAM_APDU [16:09:03]CAPDU: 80 13 01 00 [16:09:03]Write to MH i2c: E2 08 00 8A 06 80 13 01 00 00 00 00 00 0D [16:09:03]Write i2c OK [16:09:03]MH_I2C_Read... [16:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:03]Read from MH i2c: E2 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: E2 0E 00 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: E2 0E 00 8A 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 C7 [16:09:03]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [16:09:03]wFMCommunicate OK [16:09:03]SAM_PROTO_GetShiftState done [16:09:03]FM_GetShiftState done [16:09:03]opened in 1724026361 [16:09:03]opened+sec_in_day 1724112761 [16:09:03]quantity*price = 14000 [16:09:03]sum+1 = 14001 [16:09:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 126 19.08.2024 16:09 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50019 ФПД: 50742222322634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T160903&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50019&fm=50742222322634&tin=02508201610067®Number=0000000000092546&sum=14000 0 [16:09:04]StoreToDocumentArchive [16:09:04]shift 467 fd 50019 [16:09:04]save to /storage/0467/doc_00050019 [16:09:04]save last doc name /storage/0467/doc_00050019 to /storage/kkm_last_doc_name [16:09:04]save OK [16:09:04]Clear old archive folders... [16:09:04]ProcessDocumentItem done err = 0, tmpTLVsize=273 [16:09:04]tlvbuf is 012587C0 [16:09:04]SAM_PROTO_ClearQueue [16:09:04]wFMCommunicate request_size=4 [16:09:04]MH_SAM_APDU [16:09:04]CAPDU: 80 09 00 00 [16:09:04]Write to MH i2c: E2 08 00 97 06 80 09 00 00 00 00 00 00 0F [16:09:04]Write i2c OK [16:09:04]MH_I2C_Read... [16:09:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:04]Read from MH i2c: E2 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: E2 03 00 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: E2 03 00 97 06 00 90 00 11 [16:09:04]RAPDU: 90 00 [16:09:04]wFMCommunicate OK [16:09:04]SAM_PROTO_ClearQueue done [16:09:04]KKMCreateOFDPacket [16:09:04]OFDProtocolAddRootSTLVToBuf [16:09:04]FM_MakeSignedData [16:09:04]FM_MakeSignedData [16:09:04]SAM_PROTO_SignData [16:09:04]wFMCommunicate request_size=4 [16:09:04]MH_SAM_APDU [16:09:04]CAPDU: 80 0D 01 02 [16:09:04]Write to MH i2c: E2 08 00 98 06 80 0D 01 02 00 00 00 00 17 [16:09:04]Write i2c OK [16:09:04]MH_I2C_Read... [16:09:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:04]Read from MH i2c: E2 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: E2 03 00 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [16:09:04]RAPDU: 90 00 [16:09:04]wFMCommunicate OK [16:09:04]wFMCommunicate request_size=255 [16:09:04]MH_SAM_APDU [16:09:04]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 1F 6E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [16:09:04]Write to MH i2c: E2 02 01 99 06 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 1F 6E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 15 [16:09:04]Write i2c OK [16:09:04]MH_I2C_Read... [16:09:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:04]Read from MH i2c: E2 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: E2 03 00 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [16:09:04]RAPDU: 90 00 [16:09:04]wFMCommunicate OK [16:09:04]wFMCommunicate request_size=32 [16:09:04]MH_SAM_APDU [16:09:04]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 63 C3 00 00 35 04 06 00 2E 26 58 22 FB CA [16:09:04]Write to MH i2c: E2 23 00 9A 06 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 63 C3 00 00 35 04 06 00 2E 26 58 22 FB CA 00 00 28 [16:09:04]Write i2c OK [16:09:04]MH_I2C_Read... [16:09:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:05]Read from MH i2c: E2 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: E2 03 00 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: E2 03 00 9A 06 00 90 00 14 [16:09:05]RAPDU: 90 00 [16:09:05]wFMCommunicate OK [16:09:05]wFMCommunicate request_size=4 [16:09:05]MH_SAM_APDU [16:09:05]CAPDU: 80 0D 03 02 [16:09:05]Write to MH i2c: E2 08 00 9B 06 80 0D 03 02 00 00 00 00 1C [16:09:05]Write i2c OK [16:09:05]MH_I2C_Read... [16:09:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:05]Read from MH i2c: E2 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: E2 0B 00 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: E2 0B 00 9B 06 00 7D A8 F8 B4 A2 9F 03 78 90 00 AA [16:09:05]RAPDU: 7D A8 F8 B4 A2 9F 03 78 90 00 [16:09:05]wFMCommunicate OK [16:09:05]SAM_PROTO_SignData done [16:09:05]FM_MakeSignedData done [16:09:05]CreateOFDProtocolMessage [16:09:05]wFMCommunicate request_size=4 [16:09:05]MH_SAM_APDU [16:09:05]CAPDU: 80 11 00 00 [16:09:05]Write to MH i2c: E2 08 00 9C 06 80 11 00 00 00 00 00 00 1C [16:09:05]Write i2c OK [16:09:05]MH_I2C_Read... [16:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:05]Read from MH i2c: E2 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: E2 17 00 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: E2 17 00 9C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 67 [16:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:09:05]wFMCommunicate OK [16:09:05]CreateOFDProtocolMessage done [16:09:05]OFDSenderStorePacket 50019 [16:09:05]StoreOFDPacket docnum=50019 [16:09:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 E8 61 1D 01 75 AC 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 1F 6E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 63 C3 00 00 35 04 06 00 2E 26 58 22 FB CA 7D A8 F8 B4 A2 9F 03 78 [16:09:05]CheckFolder [16:09:05]dirname=/storage/ofd_packets [16:09:05]CheckFolder done [16:09:05]ProducePacketName [16:09:05]name=ofd_packets/00050019 [16:09:05]NVStorageSaveData ofd_packets/00050019 [16:09:05]File name is /storage/ofd_packets/00050019 [16:09:05]Write 323 bytes [16:09:05]NVStorageSaveData done [16:09:05]OFDSenderStorePacket done [16:09:05]KKMCreateOFDPacket done [16:09:05]NVStorageSaveData kkm_last_timestamp [16:09:05]File name is /storage/kkm_last_timestamp [16:09:05]Write 4 bytes [16:09:05]NVStorageSaveData done [16:09:05]ExternCall_PrintAddStr [16:09:05]wPrintStart [16:09:05]Write to MH i2c: 01 00 00 9D 06 A3 [16:09:05]Write i2c OK [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: 01 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: 01 07 00 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: 01 07 00 9D 06 00 00 00 00 00 FF 0F B8 [16:09:05]RasterBufferAndPrint [16:09:05]line Счет N : (3)190150 [16:09:05]line ИНН: 02508201610067 [16:09:05]line Контрольно-Кассовый Чек [16:09:05]line ПРОДАЖА [16:09:05]line Товар: 48743570 [16:09:05]line Сигареты Winston XStyle Blue [16:09:05]line 1.000 * 140.00 [16:09:05]line = 140.00 [16:09:05]line НДС 12% НСП 1% [16:09:05]line > о реализуемом товаре [16:09:05]line ИТОГО: 140.00 [16:09:05]line НСП 1% : 1.24 [16:09:05]line НДС 12% : 14.87 [16:09:05]line Наличными: 140.00 [16:09:05]line Безнал.: 0.00 [16:09:05]line Место: АЗС № 95 "Партнер Нефть" [16:09:05]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:09:05]line СНО: Общий режим [16:09:05]line Чек 126 19.08.2024 16:09 [16:09:05]line Смена: 467 ФФД: 1.0 [16:09:05]line ЗНМ: 0300000078 [16:09:05]line РНМ: 0000000000092546 [16:09:05]line Версия ККМ: 001 [16:09:05]line ФМ: 0000000000871800 [16:09:05]line ФД: 50019 [16:09:05]line ФПД: 50742222322634 [16:09:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T160903&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50019&fm=50742222322634&tin=02508201610067®Number=0000000000092546&sum=14000 [16:09:05]line 0 [16:09:05]written 0, free lines is 4095 [16:09:05]OFD Sender: Processing packet 50019 [packets to send 21, broken 20] [16:09:05]ProducePacketName [16:09:05]name=ofd_packets/00050019 [16:09:05]OFD Sender: To server: pG, [16:09:05]CommunicateWithHost lk.salyk.kg:30040 [16:09:05]ConnectInit lk.salyk.kg [16:09:05]Connected sock=9 [16:09:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 E8 61 1D 01 75 AC 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 1F 6E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 63 C3 00 00 35 04 06 00 2E 26 58 22 FB CA 7D A8 F8 B4 A2 9F 03 78 [16:09:05]Write to MH i2c: 01 00 00 C5 06 CB [16:09:05]Write i2c OK [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: 01 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: 01 07 00 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: 01 07 00 C5 06 00 00 00 00 00 EF 0C CD [16:09:05]RasterBufferAndPrint [16:09:05]line [16:09:05]line [16:09:05]line [16:09:05]line [16:09:05]line [16:09:05]written 0, free lines is 3319 [16:09:05]MH_Cut [16:09:05]Write to MH i2c: D1 01 00 CC 06 01 A4 [16:09:05]Write i2c OK [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: D1 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: D1 01 00 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: D1 01 00 CC 06 00 A3 [16:09:05]Write to MH i2c: 01 00 00 CD 06 D3 [16:09:05]Write i2c OK [16:09:05]MH_I2C_Read... [16:09:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 1A 62 47 00 C2 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 63 C3 00 00 F4 03 04 00 8C 18 C3 66 B6 04 01 00 00 CE A9 2C B7 24 D7 1B F2 [16:09:05]CommunicateWithHost err = 0 [16:09:05]CheckOFDResponse [16:09:05]1017 (14) - 77093643461234 [16:09:05]1041 (16) - 0000000000871800 [16:09:05]1040 (4) - 50019 [16:09:05]1012 (4) - 19.08.2024 10:03 [16:09:05]1206 (1) - 0 [16:09:05]OFD Sender: Remove packet 50019 [16:09:05]ProducePacketName [16:09:05]name=ofd_packets/00050019 [16:09:05]NVStorageDeleteData [16:09:06]OFD Sender: No OFD packet to send [16:09:06]*** Cut start [16:09:06]*** Purtial cut [16:09:06]*** CUTSNS_PIN = 0 [16:09:06]*** Stage 1: CUTSNS_PIN = 1 [16:09:08]Read from MH i2c: 01 [16:09:08]MH_I2C_Read... [16:09:08]*** Stop cut motor [16:09:08]*** Cut end [16:09:08]Read from MH i2c: 01 07 00 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: 01 07 00 CD 06 00 00 00 00 00 FF 0F E8 [16:09:08]process_action close_receipt done [16:09:08]requested_data is exist [16:09:08]produce_requested_data [16:09:08]requested_item fm.sn is exist - process it [16:09:08]wFMCommunicate request_size=4 [16:09:08]MH_SAM_APDU [16:09:08]CAPDU: 80 11 00 00 [16:09:08]Write to MH i2c: E2 08 00 CE 06 80 11 00 00 00 00 00 00 4E [16:09:08]Write i2c OK [16:09:08]MH_I2C_Read... [16:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:08]Read from MH i2c: E2 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 17 00 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 17 00 CE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 99 [16:09:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:09:08]wFMCommunicate OK [16:09:08]requested_item fd.num is exist - process it [16:09:08]SAM_PROTO_GetFieldsCounters [16:09:08]wFMCommunicate request_size=4 [16:09:08]MH_SAM_APDU [16:09:08]CAPDU: 80 13 00 00 [16:09:08]Write to MH i2c: E2 08 00 CF 06 80 13 00 00 00 00 00 00 51 [16:09:08]Write i2c OK [16:09:08]MH_I2C_Read... [16:09:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:08]Read from MH i2c: E2 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 62 00 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 62 00 CF 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 63 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [16:09:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 63 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:08]wFMCommunicate OK [16:09:08]SAM_PROTO_GetFieldsCounters done [16:09:08]requested_item shift.num is exist - process it [16:09:08]requested_item shift.opened is exist - process it [16:09:08]req_shift_opened [16:09:08]FM_GetShiftState [16:09:08]SAM_PROTO_GetShiftState [16:09:08]wFMCommunicate request_size=4 [16:09:08]MH_SAM_APDU [16:09:08]CAPDU: 80 13 01 00 [16:09:08]Write to MH i2c: E2 08 00 D0 06 80 13 01 00 00 00 00 00 53 [16:09:08]Write i2c OK [16:09:08]MH_I2C_Read... [16:09:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:08]Read from MH i2c: E2 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 0E 00 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 0E 00 D0 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 0D [16:09:08]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [16:09:08]wFMCommunicate OK [16:09:08]SAM_PROTO_GetShiftState done [16:09:08]FM_GetShiftState done [16:09:08]req_shift_opened done [16:09:08]requested_item shift.open_date is exist - process it [16:09:08]req_shift_open_date [16:09:08]req_shift_open_date done [16:09:08]produce_requested_data done [16:09:08]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50019,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [16:09:08]process_action_free close_receipt [16:09:08]json_value_free [16:09:08]json_value_free done [16:09:08]process_json_proto returns [16:09:08]Send response to host [16:09:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50019,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [16:09:08]free response buf [16:09:08]execute_script done [16:09:08]execute_script returns [16:09:08]free content buf [16:09:08]Sock 7.Close socket [16:09:08]Sock 7.Thread stoped [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:56]OFD Sender: No OFD packet to send [16:16:01]OFD Sender: No OFD packet to send [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]OFD Sender: No OFD packet to send [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]OFD Sender: No OFD packet to send [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:06]OFD Sender: No OFD packet to send [16:19:11]OFD Sender: No OFD packet to send [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]OFD Sender: No OFD packet to send [16:19:36]OFD Sender: No OFD packet to send [16:19:41]OFD Sender: No OFD packet to send [16:19:46]OFD Sender: No OFD packet to send [16:19:51]OFD Sender: No OFD packet to send [16:19:56]OFD Sender: No OFD packet to send [16:20:01]OFD Sender: No OFD packet to send [16:20:06]OFD Sender: No OFD packet to send [16:20:11]OFD Sender: No OFD packet to send [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21:06]OFD Sender: No OFD packet to send [16:21:11]OFD Sender: No OFD packet to send [16:21:16]OFD Sender: No OFD packet to send [16:21:21]OFD Sender: No OFD packet to send [16:21:26]OFD Sender: No OFD packet to send [16:21:31]OFD Sender: No OFD packet to send [16:21:36]OFD Sender: No OFD packet to send [16:21:41]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:21]OFD Sender: No OFD packet to send [16:22:26]OFD Sender: No OFD packet to send [16:22:31]OFD Sender: No OFD packet to send [16:22:36]OFD Sender: No OFD packet to send [16:22:41]OFD Sender: No OFD packet to send [16:22:46]OFD Sender: No OFD packet to send [16:22:51]OFD Sender: No OFD packet to send [16:22:56]OFD Sender: No OFD packet to send [16:23:01]OFD Sender: No OFD packet to send [16:23:06]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:49]accept exits with 10 [16:29:49]New connection [16:29:49]New thread 3066469732 created [16:29:49]Thread 3066613092 joined [16:29:49]Waiting for new connection... [16:29:49] Sock 10.Parse request [16:29:49]Sock 10.Check first char [16:29:49]Sock 10.First char is OK [16:29:49]request: POST /json_proto HTTP/1.0 [16:29:49]Method: POST [16:29:49]URL: /json_proto [16:29:49]Method is POST - this is cgi request [16:29:49]url: /json_proto [16:29:49]query_string will be loaded in cgi processing [16:29:49]execute_cgi json_proto POST (null) [16:29:49]execute_cgi path=json_proto method=POST [16:29:49]POST find Content-Length [16:29:49]Host: 172.17.46.196:8080 [16:29:49]Content-Length: 568 [16:29:49]Content-Type: application/json [16:29:49] [16:29:49]POST finish read [16:29:49]Found Content-Length = 568 [16:29:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190151", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD Compact Blue", "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" ] } } [16:29:49]execute_script... [16:29: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)190151", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD Compact Blue", "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" ] } } [16:29:49]POST & json_proto [16:29:49]process_json_proto [16:29:49]json parsed OK: [16:29:49]protocol is kg_v1.0 [16:29:49]action value=close_receipt [16:29:49]process_action close_receipt [16:29:49]cmd_close_receipt [16:29:49]MH_GetDate [16:29:49]Write to MH i2c: F0 00 00 D1 06 C6 [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: F0 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: F0 09 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: F0 09 00 D1 06 00 FD 72 C3 66 C4 85 C2 66 D8 [16:29:49]GetLastDocTimeStamp 1724083743 [16:29:49]current date 1724084989 [16:29:49]FM_GetShiftState [16:29:49]SAM_PROTO_GetShiftState [16:29:49]wFMCommunicate request_size=4 [16:29:49]MH_SAM_APDU [16:29:49]CAPDU: 80 13 01 00 [16:29:49]Write to MH i2c: E2 08 00 D2 06 80 13 01 00 00 00 00 00 55 [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:49]Read from MH i2c: E2 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 0E 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 0E 00 D2 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 0F [16:29:49]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [16:29:49]wFMCommunicate OK [16:29:49]SAM_PROTO_GetShiftState done [16:29:49]FM_GetShiftState done [16:29:49]opened in 1724026361 [16:29:49]opened+sec_in_day 1724112761 [16:29:49]quantity*price = 13000 [16:29:49]sum+1 = 13001 [16:29:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 127 19.08.2024 16:29 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50020 ФПД: 106495266827976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T162950&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50020&fm=106495266827976&tin=02508201610067®Number=0000000000092546&sum=13000 0 [16:29:50]StoreToDocumentArchive [16:29:50]shift 467 fd 50020 [16:29:50]save to /storage/0467/doc_00050020 [16:29:50]save last doc name /storage/0467/doc_00050020 to /storage/kkm_last_doc_name [16:29:50]save OK [16:29:50]Clear old archive folders... [16:29:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:29:50]tlvbuf is 011E3890 [16:29:50]SAM_PROTO_ClearQueue [16:29:50]wFMCommunicate request_size=4 [16:29:50]MH_SAM_APDU [16:29:50]CAPDU: 80 09 00 00 [16:29:50]Write to MH i2c: E2 08 00 DF 06 80 09 00 00 00 00 00 00 57 [16:29:50]Write i2c OK [16:29:50]MH_I2C_Read... [16:29:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:50]Read from MH i2c: E2 [16:29:50]MH_I2C_Read... [16:29:50]Read from MH i2c: E2 03 00 [16:29:50]MH_I2C_Read... [16:29:50]Read from MH i2c: E2 03 00 DF 06 00 90 00 59 [16:29:50]RAPDU: 90 00 [16:29:50]wFMCommunicate OK [16:29:50]SAM_PROTO_ClearQueue done [16:29:50]KKMCreateOFDPacket [16:29:50]OFDProtocolAddRootSTLVToBuf [16:29:50]FM_MakeSignedData [16:29:50]FM_MakeSignedData [16:29:50]SAM_PROTO_SignData [16:29:50]wFMCommunicate request_size=4 [16:29:50]MH_SAM_APDU [16:29:50]CAPDU: 80 0D 01 02 [16:29:50]Write to MH i2c: E2 08 00 E0 06 80 0D 01 02 00 00 00 00 5F [16:29:50]Write i2c OK [16:29:50]MH_I2C_Read... [16:29:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:50]Read from MH i2c: E2 [16:29:50]MH_I2C_Read... [16:29:50]Read from MH i2c: E2 03 00 [16:29:50]MH_I2C_Read... [16:29:50]Read from MH i2c: E2 03 00 E0 06 00 90 00 5A [16:29:50]RAPDU: 90 00 [16:29:50]wFMCommunicate OK [16:29:50]wFMCommunicate request_size=255 [16:29:50]MH_SAM_APDU [16:29:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FE 72 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 64 C3 00 00 35 04 06 00 [16:29:50]Write to MH i2c: E2 02 01 E1 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FE 72 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 64 C3 00 00 35 04 06 00 00 00 84 [16:29:50]Write i2c OK [16:29:50]MH_I2C_Read... [16:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:50]Read from MH i2c: E2 [16:29:50]MH_I2C_Read... [16:29:50]Read from MH i2c: E2 03 00 [16:29:50]MH_I2C_Read... [16:29:50]Read from MH i2c: E2 03 00 E1 06 00 90 00 5B [16:29:50]RAPDU: 90 00 [16:29:50]wFMCommunicate OK [16:29:50]wFMCommunicate request_size=11 [16:29:50]MH_SAM_APDU [16:29:50]CAPDU: 80 0D 02 02 06 60 DB 5C 8C AE C8 [16:29:50]Write to MH i2c: E2 0E 00 E2 06 80 0D 02 02 06 00 60 DB 5C 8C AE C8 00 00 07 [16:29:50]Write i2c OK [16:29:50]MH_I2C_Read... [16:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:50]Read from MH i2c: E2 [16:29:50]MH_I2C_Read... [16:29:50]Read from MH i2c: E2 03 00 [16:29:50]MH_I2C_Read... [16:29:50]Read from MH i2c: E2 03 00 E2 06 00 90 00 5C [16:29:50]RAPDU: 90 00 [16:29:50]wFMCommunicate OK [16:29:50]wFMCommunicate request_size=4 [16:29:50]MH_SAM_APDU [16:29:50]CAPDU: 80 0D 03 02 [16:29:50]Write to MH i2c: E2 08 00 E3 06 80 0D 03 02 00 00 00 00 64 [16:29:50]Write i2c OK [16:29:50]MH_I2C_Read... [16:29:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:51]Read from MH i2c: E2 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: E2 0B 00 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: E2 0B 00 E3 06 00 F0 60 26 53 B9 3D A1 39 90 00 FE [16:29:51]RAPDU: F0 60 26 53 B9 3D A1 39 90 00 [16:29:51]wFMCommunicate OK [16:29:51]SAM_PROTO_SignData done [16:29:51]FM_MakeSignedData done [16:29:51]CreateOFDProtocolMessage [16:29:51]wFMCommunicate request_size=4 [16:29:51]MH_SAM_APDU [16:29:51]CAPDU: 80 11 00 00 [16:29:51]Write to MH i2c: E2 08 00 E4 06 80 11 00 00 00 00 00 00 64 [16:29:51]Write i2c OK [16:29:51]MH_I2C_Read... [16:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:51]Read from MH i2c: E2 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: E2 17 00 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: E2 17 00 E4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AF [16:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:29:51]wFMCommunicate OK [16:29:51]CreateOFDProtocolMessage done [16:29:51]OFDSenderStorePacket 50020 [16:29:51]StoreOFDPacket docnum=50020 [16:29:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 01 00 00 88 3E 08 01 EB 4E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FE 72 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 64 C3 00 00 35 04 06 00 60 DB 5C 8C AE C8 F0 60 26 53 B9 3D A1 39 [16:29:51]CheckFolder [16:29:51]dirname=/storage/ofd_packets [16:29:51]CheckFolder done [16:29:51]ProducePacketName [16:29:51]name=ofd_packets/00050020 [16:29:51]NVStorageSaveData ofd_packets/00050020 [16:29:51]File name is /storage/ofd_packets/00050020 [16:29:51]Write 302 bytes [16:29:51]NVStorageSaveData done [16:29:51]OFDSenderStorePacket done [16:29:51]KKMCreateOFDPacket done [16:29:51]NVStorageSaveData kkm_last_timestamp [16:29:51]File name is /storage/kkm_last_timestamp [16:29:51]Write 4 bytes [16:29:51]NVStorageSaveData done [16:29:51]OFD Sender: Processing packet 50020 [packets to send 21, broken 20] [16:29:51]ProducePacketName [16:29:51]name=ofd_packets/00050020 [16:29:51]OFD Sender: To server: pG, [16:29:51]CommunicateWithHost lk.salyk.kg:30040 [16:29:51]ConnectInit lk.salyk.kg [16:29:51]ExternCall_PrintAddStr [16:29:51]wPrintStart [16:29:51]Write to MH i2c: 01 00 00 E5 06 EB [16:29:51]Write i2c OK [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: 01 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: 01 07 00 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: 01 07 00 E5 06 00 00 00 00 00 FF 0F 00 [16:29:51]RasterBufferAndPrint [16:29:51]line Счет N : (3)190151 [16:29:51]line ИНН: 02508201610067 [16:29:51]line Контрольно-Кассовый Чек [16:29:51]line ПРОДАЖА [16:29:51]line Товар: 48744539 [16:29:51]line LD Compact Blue [16:29:51]line 1.000 * 130.00 [16:29:51]line = 130.00 [16:29:51]line НДС 12% НСП 1% [16:29:51]line > о реализуемом товаре [16:29:51]line ИТОГО: 130.00 [16:29:51]line НСП 1% : 1.15 [16:29:51]line НДС 12% : 13.80 [16:29:51]line Наличными: 130.00 [16:29:51]line Безнал.: 0.00 [16:29:51]line Место: АЗС № 95 "Партнер Нефть" [16:29:51]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:29:51]line СНО: Общий режим [16:29:51]line Чек 127 19.08.2024 16:29 [16:29:51]line Смена: 467 ФФД: 1.0 [16:29:51]line ЗНМ: 0300000078 [16:29:51]line РНМ: 0000000000092546 [16:29:51]line Версия ККМ: 001 [16:29:51]line ФМ: 0000000000871800 [16:29:51]line ФД: 50020 [16:29:51]line ФПД: 106495266827976 [16:29:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T162950&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50020&fm=106495266827976&tin=02508201610067®Number=0000000000092546&sum=13000 [16:29:51]line 0 [16:29:51]Connected sock=11 [16:29:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 01 00 00 88 3E 08 01 EB 4E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 FE 72 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 64 C3 00 00 35 04 06 00 60 DB 5C 8C AE C8 F0 60 26 53 B9 3D A1 39 [16:29:51]written 0, free lines is 4095 [16:29:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 38 4F 47 00 EA D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 64 C3 00 00 F4 03 04 00 6A 1D C3 66 B6 04 01 00 00 71 A3 C0 EA A2 FC 45 80 [16:29:51]CommunicateWithHost err = 0 [16:29:51]CheckOFDResponse [16:29:51]1017 (14) - 77093643461234 [16:29:51]1041 (16) - 0000000000871800 [16:29:51]1040 (4) - 50020 [16:29:51]1012 (4) - 19.08.2024 10:24 [16:29:51]1206 (1) - 0 [16:29:51]OFD Sender: Remove packet 50020 [16:29:51]ProducePacketName [16:29:51]name=ofd_packets/00050020 [16:29:51]NVStorageDeleteData [16:29:51]Write to MH i2c: 01 00 00 0D 07 14 [16:29:51]Write i2c OK [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: 01 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: 01 07 00 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: 01 07 00 0D 07 00 00 00 00 00 FF 0C 26 [16:29:51]RasterBufferAndPrint [16:29:51]line [16:29:51]line [16:29:51]line [16:29:51]line [16:29:51]line [16:29:51]written 0, free lines is 3332 [16:29:51]MH_Cut [16:29:51]Write to MH i2c: D1 01 00 14 07 01 ED [16:29:51]Write i2c OK [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: D1 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: D1 01 00 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: D1 01 00 14 07 00 EC [16:29:51]Write to MH i2c: 01 00 00 15 07 1C [16:29:51]Write i2c OK [16:29:51]MH_I2C_Read... [16:29:52]OFD Sender: No OFD packet to send [16:29:52]*** Cut start [16:29:52]*** Purtial cut [16:29:52]*** Stage 1: CUTSNS_PIN = 1 [16:29:52]Read from MH i2c: 01 [16:29:52]MH_I2C_Read... [16:29:52]*** Stop cut motor [16:29:52]*** Cut end [16:29:52]Read from MH i2c: 01 07 00 [16:29:52]MH_I2C_Read... [16:29:52]Read from MH i2c: 01 07 00 15 07 00 00 00 00 00 FF 0F 31 [16:29:52]process_action close_receipt done [16:29:52]requested_data is exist [16:29:52]produce_requested_data [16:29:52]requested_item fm.sn is exist - process it [16:29:52]wFMCommunicate request_size=4 [16:29:52]MH_SAM_APDU [16:29:52]CAPDU: 80 11 00 00 [16:29:52]Write to MH i2c: E2 08 00 16 07 80 11 00 00 00 00 00 00 97 [16:29:52]Write i2c OK [16:29:52]MH_I2C_Read... [16:29:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:52]Read from MH i2c: E2 [16:29:52]MH_I2C_Read... [16:29:52]Read from MH i2c: E2 17 00 [16:29:52]MH_I2C_Read... [16:29:53]Read from MH i2c: E2 17 00 16 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E2 [16:29:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:29:53]wFMCommunicate OK [16:29:53]requested_item fd.num is exist - process it [16:29:53]SAM_PROTO_GetFieldsCounters [16:29:53]wFMCommunicate request_size=4 [16:29:53]MH_SAM_APDU [16:29:53]CAPDU: 80 13 00 00 [16:29:53]Write to MH i2c: E2 08 00 17 07 80 13 00 00 00 00 00 00 9A [16:29:53]Write i2c OK [16:29:53]MH_I2C_Read... [16:29:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:53]Read from MH i2c: E2 [16:29:53]MH_I2C_Read... [16:29:53]Read from MH i2c: E2 62 00 [16:29:53]MH_I2C_Read... [16:29:53]Read from MH i2c: E2 62 00 17 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 64 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [16:29:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 64 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:53]wFMCommunicate OK [16:29:53]SAM_PROTO_GetFieldsCounters done [16:29:53]requested_item shift.num is exist - process it [16:29:53]requested_item shift.opened is exist - process it [16:29:53]req_shift_opened [16:29:53]FM_GetShiftState [16:29:53]SAM_PROTO_GetShiftState [16:29:53]wFMCommunicate request_size=4 [16:29:53]MH_SAM_APDU [16:29:53]CAPDU: 80 13 01 00 [16:29:53]Write to MH i2c: E2 08 00 18 07 80 13 01 00 00 00 00 00 9C [16:29:53]Write i2c OK [16:29:53]MH_I2C_Read... [16:29:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:53]Read from MH i2c: E2 [16:29:53]MH_I2C_Read... [16:29:53]Read from MH i2c: E2 0E 00 [16:29:53]MH_I2C_Read... [16:29:53]Read from MH i2c: E2 0E 00 18 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 56 [16:29:53]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [16:29:53]wFMCommunicate OK [16:29:53]SAM_PROTO_GetShiftState done [16:29:53]FM_GetShiftState done [16:29:53]req_shift_opened done [16:29:53]requested_item shift.open_date is exist - process it [16:29:53]req_shift_open_date [16:29:53]req_shift_open_date done [16:29:53]produce_requested_data done [16:29:53]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50020,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [16:29:53]process_action_free close_receipt [16:29:53]json_value_free [16:29:53]json_value_free done [16:29:53]process_json_proto returns [16:29:53]Send response to host [16:29:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50020,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [16:29:53]free response buf [16:29:53]execute_script done [16:29:53]execute_script returns [16:29:53]free content buf [16:29:53]Sock 10.Close socket [16:29:53]Sock 10.Thread stoped [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:11]accept exits with 7 [16:36:11]New connection [16:36:11]New thread 3066613092 created [16:36:11]Thread 3066469732 joined [16:36:11]Waiting for new connection... [16:36:11] Sock 7.Parse request [16:36:11]Sock 7.Check first char [16:36:11]Sock 7.First char is OK [16:36:11]request: POST /json_proto HTTP/1.0 [16:36:11]Method: POST [16:36:11]URL: /json_proto [16:36:11]Method is POST - this is cgi request [16:36:11]url: /json_proto [16:36:11]query_string will be loaded in cgi processing [16:36:11]execute_cgi json_proto POST (null) [16:36:11]execute_cgi path=json_proto method=POST [16:36:11]POST find Content-Length [16:36:11]Host: 172.17.46.196:8080 [16:36:11]Content-Length: 644 [16:36:11]Content-Type: application/json [16:36:11] [16:36:11]POST finish read [16:36:11]Found Content-Length = 644 [16:36:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190152", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:11]execute_script... [16:36:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190152", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:11]POST & json_proto [16:36:11]process_json_proto [16:36:11]json parsed OK: [16:36:11]protocol is kg_v1.0 [16:36:11]action value=close_receipt [16:36:11]process_action close_receipt [16:36:11]cmd_close_receipt [16:36:11]MH_GetDate [16:36:11]Write to MH i2c: F0 00 00 19 07 0F [16:36:11]Write i2c OK [16:36:11]MH_I2C_Read... [16:36:11]Read from MH i2c: F0 [16:36:11]MH_I2C_Read... [16:36:11]Read from MH i2c: F0 09 00 [16:36:11]MH_I2C_Read... [16:36:11]Read from MH i2c: F0 09 00 19 07 00 7B 74 C3 66 C4 85 C2 66 A1 [16:36:11]GetLastDocTimeStamp 1724084990 [16:36:11]current date 1724085371 [16:36:11]FM_GetShiftState [16:36:11]SAM_PROTO_GetShiftState [16:36:11]wFMCommunicate request_size=4 [16:36:11]MH_SAM_APDU [16:36:11]CAPDU: 80 13 01 00 [16:36:11]Write to MH i2c: E2 08 00 1A 07 80 13 01 00 00 00 00 00 9E [16:36:11]Write i2c OK [16:36:11]MH_I2C_Read... [16:36:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:11]Read from MH i2c: E2 [16:36:11]MH_I2C_Read... [16:36:11]Read from MH i2c: E2 0E 00 [16:36:11]MH_I2C_Read... [16:36:11]Read from MH i2c: E2 0E 00 1A 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 58 [16:36:11]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [16:36:11]wFMCommunicate OK [16:36:11]SAM_PROTO_GetShiftState done [16:36:11]FM_GetShiftState done [16:36:11]opened in 1724026361 [16:36:11]opened+sec_in_day 1724112761 [16:36:11]quantity*price = 4200 [16:36:11]sum+1 = 4201 [16:36:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 42.00 НСП 1% : 0.37 НДС 12% : 4.46 Наличными: 42.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 128 19.08.2024 16:36 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50021 ФПД: 276513652451968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T163612&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50021&fm=276513652451968&tin=02508201610067®Number=0000000000092546&sum=4200 0 [16:36:12]StoreToDocumentArchive [16:36:12]shift 467 fd 50021 [16:36:12]save to /storage/0467/doc_00050021 [16:36:12]save last doc name /storage/0467/doc_00050021 to /storage/kkm_last_doc_name [16:36:12]save OK [16:36:12]Clear old archive folders... [16:36:12]ProcessDocumentItem done err = 0, tmpTLVsize=275 [16:36:12]tlvbuf is 0127E580 [16:36:12]SAM_PROTO_ClearQueue [16:36:12]wFMCommunicate request_size=4 [16:36:12]MH_SAM_APDU [16:36:12]CAPDU: 80 09 00 00 [16:36:12]Write to MH i2c: E2 08 00 27 07 80 09 00 00 00 00 00 00 A0 [16:36:12]Write i2c OK [16:36:12]MH_I2C_Read... [16:36:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:12]Read from MH i2c: E2 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 03 00 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 03 00 27 07 00 90 00 A2 [16:36:12]RAPDU: 90 00 [16:36:12]wFMCommunicate OK [16:36:12]SAM_PROTO_ClearQueue done [16:36:12]KKMCreateOFDPacket [16:36:12]OFDProtocolAddRootSTLVToBuf [16:36:12]FM_MakeSignedData [16:36:12]FM_MakeSignedData [16:36:12]SAM_PROTO_SignData [16:36:12]wFMCommunicate request_size=4 [16:36:12]MH_SAM_APDU [16:36:12]CAPDU: 80 0D 01 02 [16:36:12]Write to MH i2c: E2 08 00 28 07 80 0D 01 02 00 00 00 00 A8 [16:36:12]Write i2c OK [16:36:12]MH_I2C_Read... [16:36:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:12]Read from MH i2c: E2 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 03 00 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 03 00 28 07 00 90 00 A3 [16:36:12]RAPDU: 90 00 [16:36:12]wFMCommunicate OK [16:36:12]wFMCommunicate request_size=255 [16:36:12]MH_SAM_APDU [16:36:12]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7C 74 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [16:36:12]Write to MH i2c: E2 02 01 29 07 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7C 74 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 8E [16:36:12]Write i2c OK [16:36:12]MH_I2C_Read... [16:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:12]Read from MH i2c: E2 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 03 00 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 03 00 29 07 00 90 00 A4 [16:36:12]RAPDU: 90 00 [16:36:12]wFMCommunicate OK [16:36:12]wFMCommunicate request_size=34 [16:36:12]MH_SAM_APDU [16:36:12]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 65 C3 00 00 35 04 06 00 FB 7C DA 07 AA 80 [16:36:12]Write to MH i2c: E2 25 00 2A 07 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 65 C3 00 00 35 04 06 00 FB 7C DA 07 AA 80 00 00 0E [16:36:12]Write i2c OK [16:36:12]MH_I2C_Read... [16:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:12]Read from MH i2c: E2 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 03 00 [16:36:12]MH_I2C_Read... [16:36:12]Read from MH i2c: E2 03 00 2A 07 00 90 00 A5 [16:36:12]RAPDU: 90 00 [16:36:12]wFMCommunicate OK [16:36:12]wFMCommunicate request_size=4 [16:36:12]MH_SAM_APDU [16:36:12]CAPDU: 80 0D 03 02 [16:36:12]Write to MH i2c: E2 08 00 2B 07 80 0D 03 02 00 00 00 00 AD [16:36:12]Write i2c OK [16:36:12]MH_I2C_Read... [16:36:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:13]Read from MH i2c: E2 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 0B 00 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 0B 00 2B 07 00 91 C0 18 0F 4B F0 2E DD 90 00 6C [16:36:13]RAPDU: 91 C0 18 0F 4B F0 2E DD 90 00 [16:36:13]wFMCommunicate OK [16:36:13]SAM_PROTO_SignData done [16:36:13]FM_MakeSignedData done [16:36:13]CreateOFDProtocolMessage [16:36:13]wFMCommunicate request_size=4 [16:36:13]MH_SAM_APDU [16:36:13]CAPDU: 80 11 00 00 [16:36:13]Write to MH i2c: E2 08 00 2C 07 80 11 00 00 00 00 00 00 AD [16:36:13]Write i2c OK [16:36:13]MH_I2C_Read... [16:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:13]Read from MH i2c: E2 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 17 00 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: E2 17 00 2C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F8 [16:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:36:13]wFMCommunicate OK [16:36:13]CreateOFDProtocolMessage done [16:36:13]OFDSenderStorePacket 50021 [16:36:13]StoreOFDPacket docnum=50021 [16:36:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 85 52 1F 01 C5 D5 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7C 74 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 65 C3 00 00 35 04 06 00 FB 7C DA 07 AA 80 91 C0 18 0F 4B F0 2E DD [16:36:13]CheckFolder [16:36:13]dirname=/storage/ofd_packets [16:36:13]CheckFolder done [16:36:13]ProducePacketName [16:36:13]name=ofd_packets/00050021 [16:36:13]NVStorageSaveData ofd_packets/00050021 [16:36:13]File name is /storage/ofd_packets/00050021 [16:36:13]Write 325 bytes [16:36:13]NVStorageSaveData done [16:36:13]OFDSenderStorePacket done [16:36:13]KKMCreateOFDPacket done [16:36:13]NVStorageSaveData kkm_last_timestamp [16:36:13]File name is /storage/kkm_last_timestamp [16:36:13]Write 4 bytes [16:36:13]NVStorageSaveData done [16:36:13]ExternCall_PrintAddStr [16:36:13]wPrintStart [16:36:13]Write to MH i2c: 01 00 00 2D 07 34 [16:36:13]Write i2c OK [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: 01 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: 01 07 00 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: 01 07 00 2D 07 00 00 00 00 00 FF 0F 49 [16:36:13]RasterBufferAndPrint [16:36:13]line Счет N : (3)190152 [16:36:13]line ИНН: 02508201610067 [16:36:13]line Контрольно-Кассовый Чек [16:36:13]line ПРОДАЖА [16:36:13]line Товар: 5449000005489 [16:36:13]line Вода Бонаква 1л б/г [16:36:13]line 1.000 * 42.00 [16:36:13]line = 42.00 [16:36:13]line НДС 12% НСП 1% [16:36:13]line > о реализуемом товаре [16:36:13]line ИТОГО: 42.00 [16:36:13]line НСП 1% : 0.37 [16:36:13]line НДС 12% : 4.46 [16:36:13]line Наличными: 42.00 [16:36:13]line Безнал.: 0.00 [16:36:13]line Место: АЗС № 95 "Партнер Нефть" [16:36:13]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:36:13]line СНО: Общий режим [16:36:13]line Чек 128 19.08.2024 16:36 [16:36:13]line Смена: 467 ФФД: 1.0 [16:36:13]line ЗНМ: 0300000078 [16:36:13]line РНМ: 0000000000092546 [16:36:13]line Версия ККМ: 001 [16:36:13]line ФМ: 0000000000871800 [16:36:13]line ФД: 50021 [16:36:13]line ФПД: 276513652451968 [16:36:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T163612&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50021&fm=276513652451968&tin=02508201610067®Number=0000000000092546&sum=4200 [16:36:13]line 0 [16:36:13]OFD Sender: Processing packet 50021 [packets to send 21, broken 20] [16:36:13]ProducePacketName [16:36:13]name=ofd_packets/00050021 [16:36:13]OFD Sender: To server: pG, [16:36:13]CommunicateWithHost lk.salyk.kg:30040 [16:36:13]ConnectInit lk.salyk.kg [16:36:13]written 0, free lines is 4095 [16:36:13]Connected sock=10 [16:36:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 85 52 1F 01 C5 D5 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 7C 74 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 65 C3 00 00 35 04 06 00 FB 7C DA 07 AA 80 91 C0 18 0F 4B F0 2E DD [16:36:13]Write to MH i2c: 01 00 00 55 07 5C [16:36:13]Write i2c OK [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: 01 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: 01 07 00 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: 01 07 00 55 07 00 00 00 00 00 FA 0C 69 [16:36:13]RasterBufferAndPrint [16:36:13]line [16:36:13]line [16:36:13]line [16:36:13]line [16:36:13]line [16:36:13]written 0, free lines is 3331 [16:36:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 6A 0A 47 00 27 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 65 C3 00 00 F4 03 04 00 E8 1E C3 66 B6 04 01 00 00 91 7E F0 C0 B0 47 6A EC [16:36:13]CommunicateWithHost err = 0 [16:36:13]CheckOFDResponse [16:36:13]1017 (14) - 77093643461234 [16:36:13]1041 (16) - 0000000000871800 [16:36:13]1040 (4) - 50021 [16:36:13]1012 (4) - 19.08.2024 10:31 [16:36:13]1206 (1) - 0 [16:36:13]OFD Sender: Remove packet 50021 [16:36:13]ProducePacketName [16:36:13]name=ofd_packets/00050021 [16:36:13]NVStorageDeleteData [16:36:13]MH_Cut [16:36:13]Write to MH i2c: D1 01 00 5C 07 01 35 [16:36:13]Write i2c OK [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: D1 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: D1 01 00 [16:36:13]MH_I2C_Read... [16:36:13]Read from MH i2c: D1 01 00 5C 07 00 34 [16:36:13]Write to MH i2c: 01 00 00 5D 07 64 [16:36:13]Write i2c OK [16:36:13]MH_I2C_Read... [16:36:14]OFD Sender: No OFD packet to send [16:36:14]*** Cut start [16:36:14]*** Purtial cut [16:36:14]*** CUTSNS_PIN = 0 [16:36:14]*** Stage 1: CUTSNS_PIN = 1 [16:36:16]Read from MH i2c: 01 [16:36:16]MH_I2C_Read... [16:36:16]*** Stop cut motor [16:36:16]*** Cut end [16:36:16]Read from MH i2c: 01 07 00 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: 01 07 00 5D 07 00 00 00 00 00 FF 0F 79 [16:36:16]process_action close_receipt done [16:36:16]requested_data is exist [16:36:16]produce_requested_data [16:36:16]requested_item fm.sn is exist - process it [16:36:16]wFMCommunicate request_size=4 [16:36:16]MH_SAM_APDU [16:36:16]CAPDU: 80 11 00 00 [16:36:16]Write to MH i2c: E2 08 00 5E 07 80 11 00 00 00 00 00 00 DF [16:36:16]Write i2c OK [16:36:16]MH_I2C_Read... [16:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:16]Read from MH i2c: E2 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 17 00 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 17 00 5E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2A [16:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:36:16]wFMCommunicate OK [16:36:16]requested_item fd.num is exist - process it [16:36:16]SAM_PROTO_GetFieldsCounters [16:36:16]wFMCommunicate request_size=4 [16:36:16]MH_SAM_APDU [16:36:16]CAPDU: 80 13 00 00 [16:36:16]Write to MH i2c: E2 08 00 5F 07 80 13 00 00 00 00 00 00 E2 [16:36:16]Write i2c OK [16:36:16]MH_I2C_Read... [16:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:16]Read from MH i2c: E2 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 62 00 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 62 00 5F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 65 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [16:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 65 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:16]wFMCommunicate OK [16:36:16]SAM_PROTO_GetFieldsCounters done [16:36:16]requested_item shift.num is exist - process it [16:36:16]requested_item shift.opened is exist - process it [16:36:16]req_shift_opened [16:36:16]FM_GetShiftState [16:36:16]SAM_PROTO_GetShiftState [16:36:16]wFMCommunicate request_size=4 [16:36:16]MH_SAM_APDU [16:36:16]CAPDU: 80 13 01 00 [16:36:16]Write to MH i2c: E2 08 00 60 07 80 13 01 00 00 00 00 00 E4 [16:36:16]Write i2c OK [16:36:16]MH_I2C_Read... [16:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:16]Read from MH i2c: E2 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 0E 00 [16:36:16]MH_I2C_Read... [16:36:16]Read from MH i2c: E2 0E 00 60 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 9E [16:36:16]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [16:36:16]wFMCommunicate OK [16:36:16]SAM_PROTO_GetShiftState done [16:36:16]FM_GetShiftState done [16:36:16]req_shift_opened done [16:36:16]requested_item shift.open_date is exist - process it [16:36:16]req_shift_open_date [16:36:16]req_shift_open_date done [16:36:16]produce_requested_data done [16:36:16]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50021,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [16:36:16]process_action_free close_receipt [16:36:16]json_value_free [16:36:16]json_value_free done [16:36:16]process_json_proto returns [16:36:16]Send response to host [16:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50021,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [16:36:16]free response buf [16:36:16]execute_script done [16:36:16]execute_script returns [16:36:16]free content buf [16:36:16]Sock 7.Close socket [16:36:16]Sock 7.Thread stoped [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]accept exits with 9 [16:54:05]New connection [16:54:05]New thread 3066469732 created [16:54:05]Thread 3066613092 joined [16:54:05]Waiting for new connection... [16:54:05] Sock 9.Parse request [16:54:05]Sock 9.Check first char [16:54:05]Sock 9.First char is OK [16:54:05]request: POST /json_proto HTTP/1.0 [16:54:05]Method: POST [16:54:05]URL: /json_proto [16:54:05]Method is POST - this is cgi request [16:54:05]url: /json_proto [16:54:05]query_string will be loaded in cgi processing [16:54:05]execute_cgi json_proto POST (null) [16:54:05]execute_cgi path=json_proto method=POST [16:54:05]POST find Content-Length [16:54:05]Host: 172.17.46.196:8080 [16:54:05]Content-Length: 620 [16:54:05]Content-Type: application/json [16:54:05] [16:54:05]POST finish read [16:54:05]Found Content-Length = 620 [16:54:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190153", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "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" ] } } [16:54:05]execute_script... [16:54: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)190153", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "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" ] } } [16:54:05]POST & json_proto [16:54:05]process_json_proto [16:54:05]json parsed OK: [16:54:05]protocol is kg_v1.0 [16:54:05]action value=close_receipt [16:54:05]process_action close_receipt [16:54:05]cmd_close_receipt [16:54:05]MH_GetDate [16:54:05]Write to MH i2c: F0 00 00 61 07 57 [16:54:05]Write i2c OK [16:54:05]MH_I2C_Read... [16:54:05]Read from MH i2c: F0 [16:54:05]MH_I2C_Read... [16:54:05]Read from MH i2c: F0 09 00 [16:54:05]MH_I2C_Read... [16:54:05]Read from MH i2c: F0 09 00 61 07 00 AD 78 C3 66 C4 85 C2 66 1F [16:54:05]GetLastDocTimeStamp 1724085372 [16:54:05]current date 1724086445 [16:54:05]FM_GetShiftState [16:54:05]SAM_PROTO_GetShiftState [16:54:05]wFMCommunicate request_size=4 [16:54:05]MH_SAM_APDU [16:54:05]CAPDU: 80 13 01 00 [16:54:05]Write to MH i2c: E2 08 00 62 07 80 13 01 00 00 00 00 00 E6 [16:54:05]Write i2c OK [16:54:05]MH_I2C_Read... [16:54:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:05]Read from MH i2c: E2 [16:54:05]MH_I2C_Read... [16:54:05]Read from MH i2c: E2 0E 00 [16:54:05]MH_I2C_Read... [16:54:05]Read from MH i2c: E2 0E 00 62 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A0 [16:54:05]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [16:54:05]wFMCommunicate OK [16:54:05]SAM_PROTO_GetShiftState done [16:54:05]FM_GetShiftState done [16:54:05]opened in 1724026361 [16:54:05]opened+sec_in_day 1724112761 [16:54:05]quantity*price = 15000 [16:54:05]sum+1 = 15001 [16:54:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 129 19.08.2024 16:54 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50022 ФПД: 39020122930051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T165405&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50022&fm=39020122930051&tin=02508201610067®Number=0000000000092546&sum=15000 0 [16:54:06]StoreToDocumentArchive [16:54:06]shift 467 fd 50022 [16:54:06]save to /storage/0467/doc_00050022 [16:54:06]save last doc name /storage/0467/doc_00050022 to /storage/kkm_last_doc_name [16:54:06]save OK [16:54:06]Clear old archive folders... [16:54:06]ProcessDocumentItem done err = 0, tmpTLVsize=272 [16:54:06]tlvbuf is 0127DAB0 [16:54:06]SAM_PROTO_ClearQueue [16:54:06]wFMCommunicate request_size=4 [16:54:06]MH_SAM_APDU [16:54:06]CAPDU: 80 09 00 00 [16:54:06]Write to MH i2c: E2 08 00 6F 07 80 09 00 00 00 00 00 00 E8 [16:54:06]Write i2c OK [16:54:06]MH_I2C_Read... [16:54:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:06]Read from MH i2c: E2 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: E2 03 00 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: E2 03 00 6F 07 00 90 00 EA [16:54:06]RAPDU: 90 00 [16:54:06]wFMCommunicate OK [16:54:06]SAM_PROTO_ClearQueue done [16:54:06]KKMCreateOFDPacket [16:54:06]OFDProtocolAddRootSTLVToBuf [16:54:06]FM_MakeSignedData [16:54:06]FM_MakeSignedData [16:54:06]SAM_PROTO_SignData [16:54:06]wFMCommunicate request_size=4 [16:54:06]MH_SAM_APDU [16:54:06]CAPDU: 80 0D 01 02 [16:54:06]Write to MH i2c: E2 08 00 70 07 80 0D 01 02 00 00 00 00 F0 [16:54:06]Write i2c OK [16:54:06]MH_I2C_Read... [16:54:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:06]Read from MH i2c: E2 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: E2 03 00 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: E2 03 00 70 07 00 90 00 EB [16:54:06]RAPDU: 90 00 [16:54:06]wFMCommunicate OK [16:54:06]wFMCommunicate request_size=255 [16:54:06]MH_SAM_APDU [16:54:06]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 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 81 00 00 00 F4 03 04 00 AD 78 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 [16:54:06]Write to MH i2c: E2 02 01 71 07 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 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 81 00 00 00 F4 03 04 00 AD 78 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 1C [16:54:06]Write i2c OK [16:54:06]MH_I2C_Read... [16:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:06]Read from MH i2c: E2 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: E2 03 00 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: E2 03 00 71 07 00 90 00 EC [16:54:06]RAPDU: 90 00 [16:54:06]wFMCommunicate OK [16:54:06]wFMCommunicate request_size=31 [16:54:06]MH_SAM_APDU [16:54:06]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 30 30 10 04 04 00 66 C3 00 00 35 04 06 00 23 7D 14 90 FB 83 [16:54:06]Write to MH i2c: E2 22 00 72 07 80 0D 02 02 1A 00 30 30 38 37 31 38 30 30 10 04 04 00 66 C3 00 00 35 04 06 00 23 7D 14 90 FB 83 00 00 01 [16:54:06]Write i2c OK [16:54:06]MH_I2C_Read... [16:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:06]Read from MH i2c: E2 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: E2 03 00 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: E2 03 00 72 07 00 90 00 ED [16:54:06]RAPDU: 90 00 [16:54:06]wFMCommunicate OK [16:54:06]wFMCommunicate request_size=4 [16:54:06]MH_SAM_APDU [16:54:06]CAPDU: 80 0D 03 02 [16:54:06]Write to MH i2c: E2 08 00 73 07 80 0D 03 02 00 00 00 00 F5 [16:54:06]Write i2c OK [16:54:06]MH_I2C_Read... [16:54:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:06]Read from MH i2c: E2 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: E2 0B 00 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: E2 0B 00 73 07 00 57 1C 4F F8 62 BD DC BA 90 00 65 [16:54:06]RAPDU: 57 1C 4F F8 62 BD DC BA 90 00 [16:54:06]wFMCommunicate OK [16:54:06]SAM_PROTO_SignData done [16:54:06]FM_MakeSignedData done [16:54:06]CreateOFDProtocolMessage [16:54:06]wFMCommunicate request_size=4 [16:54:06]MH_SAM_APDU [16:54:06]CAPDU: 80 11 00 00 [16:54:06]Write to MH i2c: E2 08 00 74 07 80 11 00 00 00 00 00 00 F5 [16:54:06]Write i2c OK [16:54:06]MH_I2C_Read... [16:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:06]Read from MH i2c: E2 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: E2 17 00 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: E2 17 00 74 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 40 [16:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:54:06]wFMCommunicate OK [16:54:06]CreateOFDProtocolMessage done [16:54:06]OFDSenderStorePacket 50022 [16:54:06]StoreOFDPacket docnum=50022 [16:54:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 5F 4E 1C 01 68 FA 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 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 81 00 00 00 F4 03 04 00 AD 78 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 66 C3 00 00 35 04 06 00 23 7D 14 90 FB 83 57 1C 4F F8 62 BD DC BA [16:54:06]CheckFolder [16:54:06]dirname=/storage/ofd_packets [16:54:06]CheckFolder done [16:54:06]ProducePacketName [16:54:06]name=ofd_packets/00050022 [16:54:06]NVStorageSaveData ofd_packets/00050022 [16:54:06]File name is /storage/ofd_packets/00050022 [16:54:06]Write 322 bytes [16:54:06]NVStorageSaveData done [16:54:06]OFDSenderStorePacket done [16:54:06]KKMCreateOFDPacket done [16:54:06]NVStorageSaveData kkm_last_timestamp [16:54:06]File name is /storage/kkm_last_timestamp [16:54:06]Write 4 bytes [16:54:06]NVStorageSaveData done [16:54:06]ExternCall_PrintAddStr [16:54:06]wPrintStart [16:54:06]Write to MH i2c: 01 00 00 75 07 7C [16:54:06]Write i2c OK [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: 01 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: 01 07 00 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: 01 07 00 75 07 00 00 00 00 00 FF 0F 91 [16:54:06]RasterBufferAndPrint [16:54:06]line Счет N : (3)190153 [16:54:06]line ИНН: 02508201610067 [16:54:06]line Контрольно-Кассовый Чек [16:54:06]line ПРОДАЖА [16:54:06]line Товар: 4640030091607 [16:54:06]line Сигареты ESSE Exchange [16:54:06]line 1.000 * 150.00 [16:54:06]line = 150.00 [16:54:06]line НДС 12% НСП 1% [16:54:06]line > о реализуемом товаре [16:54:06]line ИТОГО: 150.00 [16:54:06]line НСП 1% : 1.33 [16:54:06]line НДС 12% : 15.93 [16:54:06]line Наличными: 150.00 [16:54:06]line Безнал.: 0.00 [16:54:06]line Место: АЗС № 95 "Партнер Нефть" [16:54:06]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:54:06]line СНО: Общий режим [16:54:06]line Чек 129 19.08.2024 16:54 [16:54:06]line Смена: 467 ФФД: 1.0 [16:54:06]line ЗНМ: 0300000078 [16:54:06]line РНМ: 0000000000092546 [16:54:06]line Версия ККМ: 001 [16:54:06]line ФМ: 0000000000871800 [16:54:06]line ФД: 50022 [16:54:06]line ФПД: 39020122930051 [16:54:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T165405&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50022&fm=39020122930051&tin=02508201610067®Number=0000000000092546&sum=15000 [16:54:07]OFD Sender: Processing packet 50022 [packets to send 21, broken 20] [16:54:07]ProducePacketName [16:54:07]name=ofd_packets/00050022 [16:54:07]OFD Sender: To server: pG, [16:54:07]CommunicateWithHost lk.salyk.kg:30040 [16:54:07]ConnectInit lk.salyk.kg [16:54:07]line 0 [16:54:07]written 0, free lines is 4095 [16:54:07]Write to MH i2c: 01 00 00 9D 07 A4 [16:54:07]Write i2c OK [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: 01 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: 01 07 00 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: 01 07 00 9D 07 00 00 00 00 00 E1 0C 98 [16:54:07]RasterBufferAndPrint [16:54:07]line [16:54:07]line [16:54:07]line [16:54:07]line [16:54:07]line [16:54:07]written 0, free lines is 3303 [16:54:07]MH_Cut [16:54:07]Write to MH i2c: D1 01 00 A4 07 01 7D [16:54:07]Write i2c OK [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: D1 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: D1 01 00 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: D1 01 00 A4 07 00 7C [16:54:07]Write to MH i2c: 01 00 00 A5 07 AC [16:54:07]Write i2c OK [16:54:07]MH_I2C_Read... [16:54:07]Connected sock=11 [16:54:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 5F 4E 1C 01 68 FA 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 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 81 00 00 00 F4 03 04 00 AD 78 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 66 C3 00 00 35 04 06 00 23 7D 14 90 FB 83 57 1C 4F F8 62 BD DC BA [16:54:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D2 77 47 00 9F 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 31 38 30 30 10 04 04 00 66 C3 00 00 F4 03 04 00 1B 23 C3 66 B6 04 01 00 00 8F D0 F6 0D 65 28 A3 30 [16:54:07]CommunicateWithHost err = 0 [16:54:07]CheckOFDResponse [16:54:07]1017 (14) - 77093643461234 [16:54:07]1041 (16) - 0000000000871800 [16:54:07]1040 (4) - 50022 [16:54:07]1012 (4) - 19.08.2024 10:48 [16:54:07]1206 (1) - 0 [16:54:07]OFD Sender: Remove packet 50022 [16:54:07]ProducePacketName [16:54:07]name=ofd_packets/00050022 [16:54:07]NVStorageDeleteData [16:54:08]*** Cut start [16:54:08]*** Purtial cut [16:54:08]*** Stage 1: CUTSNS_PIN = 1 [16:54:08]OFD Sender: No OFD packet to send [16:54:08]Read from MH i2c: 01 [16:54:08]MH_I2C_Read... [16:54:08]*** Stop cut motor [16:54:08]*** Cut end [16:54:08]Read from MH i2c: 01 07 00 [16:54:08]MH_I2C_Read... [16:54:08]Read from MH i2c: 01 07 00 A5 07 00 00 00 00 00 FF 0F C1 [16:54:08]process_action close_receipt done [16:54:08]requested_data is exist [16:54:08]produce_requested_data [16:54:08]requested_item fm.sn is exist - process it [16:54:08]wFMCommunicate request_size=4 [16:54:08]MH_SAM_APDU [16:54:08]CAPDU: 80 11 00 00 [16:54:08]Write to MH i2c: E2 08 00 A6 07 80 11 00 00 00 00 00 00 27 [16:54:08]Write i2c OK [16:54:08]MH_I2C_Read... [16:54:08]Read from MH i2c: E2 [16:54:08]MH_I2C_Read... [16:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:08]Read from MH i2c: E2 17 00 [16:54:08]MH_I2C_Read... [16:54:08]Read from MH i2c: E2 17 00 A6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 72 [16:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:54:08]wFMCommunicate OK [16:54:08]requested_item fd.num is exist - process it [16:54:08]SAM_PROTO_GetFieldsCounters [16:54:08]wFMCommunicate request_size=4 [16:54:08]MH_SAM_APDU [16:54:08]CAPDU: 80 13 00 00 [16:54:08]Write to MH i2c: E2 08 00 A7 07 80 13 00 00 00 00 00 00 2A [16:54:08]Write i2c OK [16:54:08]MH_I2C_Read... [16:54:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:08]Read from MH i2c: E2 [16:54:08]MH_I2C_Read... [16:54:08]Read from MH i2c: E2 62 00 [16:54:08]MH_I2C_Read... [16:54:08]Read from MH i2c: E2 62 00 A7 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 66 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [16:54:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 66 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:54:08]wFMCommunicate OK [16:54:08]SAM_PROTO_GetFieldsCounters done [16:54:08]requested_item shift.num is exist - process it [16:54:08]requested_item shift.opened is exist - process it [16:54:08]req_shift_opened [16:54:08]FM_GetShiftState [16:54:08]SAM_PROTO_GetShiftState [16:54:08]wFMCommunicate request_size=4 [16:54:08]MH_SAM_APDU [16:54:08]CAPDU: 80 13 01 00 [16:54:08]Write to MH i2c: E2 08 00 A8 07 80 13 01 00 00 00 00 00 2C [16:54:08]Write i2c OK [16:54:08]MH_I2C_Read... [16:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:09]Read from MH i2c: E2 [16:54:09]MH_I2C_Read... [16:54:09]Read from MH i2c: E2 0E 00 [16:54:09]MH_I2C_Read... [16:54:09]Read from MH i2c: E2 0E 00 A8 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 E6 [16:54:09]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [16:54:09]wFMCommunicate OK [16:54:09]SAM_PROTO_GetShiftState done [16:54:09]FM_GetShiftState done [16:54:09]req_shift_opened done [16:54:09]requested_item shift.open_date is exist - process it [16:54:09]req_shift_open_date [16:54:09]req_shift_open_date done [16:54:09]produce_requested_data done [16:54:09]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50022,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [16:54:09]process_action_free close_receipt [16:54:09]json_value_free [16:54:09]json_value_free done [16:54:09]process_json_proto returns [16:54:09]Send response to host [16:54:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50022,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [16:54:09]free response buf [16:54:09]execute_script done [16:54:09]execute_script returns [16:54:09]free content buf [16:54:09]Sock 9.Close socket [16:54:09]Sock 9.Thread stoped [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:22]accept exits with 7 [16:57:22]New connection [16:57:22]New thread 3066613092 created [16:57:22]Thread 3066469732 joined [16:57:22]Waiting for new connection... [16:57:22] Sock 7.Parse request [16:57:22]Sock 7.Check first char [16:57:22]Sock 7.First char is OK [16:57:22]request: POST /json_proto HTTP/1.0 [16:57:22]Method: POST [16:57:22]URL: /json_proto [16:57:22]Method is POST - this is cgi request [16:57:22]url: /json_proto [16:57:22]query_string will be loaded in cgi processing [16:57:22]execute_cgi json_proto POST (null) [16:57:22]execute_cgi path=json_proto method=POST [16:57:22]POST find Content-Length [16:57:22]Host: 172.17.46.196:8080 [16:57:22]Content-Length: 641 [16:57:22]Content-Type: application/json [16:57:22] [16:57:22]POST finish read [16:57:22]Found Content-Length = 641 [16:57:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190154", "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" : 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" ] } } [16:57:22]execute_script... [16:57:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190154", "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" : 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" ] } } [16:57:22]POST & json_proto [16:57:22]process_json_proto [16:57:22]json parsed OK: [16:57:22]protocol is kg_v1.0 [16:57:22]action value=close_receipt [16:57:22]process_action close_receipt [16:57:22]cmd_close_receipt [16:57:22]MH_GetDate [16:57:22]Write to MH i2c: F0 00 00 A9 07 9F [16:57:22]Write i2c OK [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: F0 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: F0 09 00 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: F0 09 00 A9 07 00 72 79 C3 66 C4 85 C2 66 2D [16:57:22]GetLastDocTimeStamp 1724086445 [16:57:22]current date 1724086642 [16:57:22]FM_GetShiftState [16:57:22]SAM_PROTO_GetShiftState [16:57:22]wFMCommunicate request_size=4 [16:57:22]MH_SAM_APDU [16:57:22]CAPDU: 80 13 01 00 [16:57:22]Write to MH i2c: E2 08 00 AA 07 80 13 01 00 00 00 00 00 2E [16:57:22]Write i2c OK [16:57:22]MH_I2C_Read... [16:57:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:22]Read from MH i2c: E2 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: E2 0E 00 [16:57:22]MH_I2C_Read... [16:57:22]Read from MH i2c: E2 0E 00 AA 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 E8 [16:57:22]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [16:57:22]wFMCommunicate OK [16:57:22]SAM_PROTO_GetShiftState done [16:57:22]FM_GetShiftState done [16:57:22]opened in 1724026361 [16:57:22]opened+sec_in_day 1724112761 [16:57:22]quantity*price = 4000 [16:57:22]sum+1 = 4001 [16:57:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 130 19.08.2024 16:57 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50023 ФПД: 235757443992157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T165722&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50023&fm=235757443992157&tin=02508201610067®Number=0000000000092546&sum=4000 0 [16:57:23]StoreToDocumentArchive [16:57:23]shift 467 fd 50023 [16:57:23]save to /storage/0467/doc_00050023 [16:57:23]save last doc name /storage/0467/doc_00050023 to /storage/kkm_last_doc_name [16:57:23]save OK [16:57:23]Clear old archive folders... [16:57:23]ProcessDocumentItem done err = 0, tmpTLVsize=272 [16:57:23]tlvbuf is 0126B570 [16:57:23]SAM_PROTO_ClearQueue [16:57:23]wFMCommunicate request_size=4 [16:57:23]MH_SAM_APDU [16:57:23]CAPDU: 80 09 00 00 [16:57:23]Write to MH i2c: E2 08 00 B7 07 80 09 00 00 00 00 00 00 30 [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:23]Read from MH i2c: E2 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 03 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 03 00 B7 07 00 90 00 32 [16:57:23]RAPDU: 90 00 [16:57:23]wFMCommunicate OK [16:57:23]SAM_PROTO_ClearQueue done [16:57:23]KKMCreateOFDPacket [16:57:23]OFDProtocolAddRootSTLVToBuf [16:57:23]FM_MakeSignedData [16:57:23]FM_MakeSignedData [16:57:23]SAM_PROTO_SignData [16:57:23]wFMCommunicate request_size=4 [16:57:23]MH_SAM_APDU [16:57:23]CAPDU: 80 0D 01 02 [16:57:23]Write to MH i2c: E2 08 00 B8 07 80 0D 01 02 00 00 00 00 38 [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:23]Read from MH i2c: E2 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 03 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 03 00 B8 07 00 90 00 33 [16:57:23]RAPDU: 90 00 [16:57:23]wFMCommunicate OK [16:57:23]wFMCommunicate request_size=255 [16:57:23]MH_SAM_APDU [16:57:23]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 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 82 00 00 00 F4 03 04 00 72 79 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 [16:57:23]Write to MH i2c: E2 02 01 B9 07 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 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 82 00 00 00 F4 03 04 00 72 79 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 C3 [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]OFD Sender: No OFD packet to send [16:57:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:23]Read from MH i2c: E2 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 03 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 03 00 B9 07 00 90 00 34 [16:57:23]RAPDU: 90 00 [16:57:23]wFMCommunicate OK [16:57:23]wFMCommunicate request_size=31 [16:57:23]MH_SAM_APDU [16:57:23]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 30 30 10 04 04 00 67 C3 00 00 35 04 06 00 D6 6B 8E B3 CA 5D [16:57:23]Write to MH i2c: E2 22 00 BA 07 80 0D 02 02 1A 00 30 30 38 37 31 38 30 30 10 04 04 00 67 C3 00 00 35 04 06 00 D6 6B 8E B3 CA 5D 00 00 31 [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:23]Read from MH i2c: E2 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 03 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 03 00 BA 07 00 90 00 35 [16:57:23]RAPDU: 90 00 [16:57:23]wFMCommunicate OK [16:57:23]wFMCommunicate request_size=4 [16:57:23]MH_SAM_APDU [16:57:23]CAPDU: 80 0D 03 02 [16:57:23]Write to MH i2c: E2 08 00 BB 07 80 0D 03 02 00 00 00 00 3D [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:23]Read from MH i2c: E2 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 0B 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 0B 00 BB 07 00 10 90 26 ED 9E D1 1E 48 90 00 C6 [16:57:23]RAPDU: 10 90 26 ED 9E D1 1E 48 90 00 [16:57:23]wFMCommunicate OK [16:57:23]SAM_PROTO_SignData done [16:57:23]FM_MakeSignedData done [16:57:23]CreateOFDProtocolMessage [16:57:23]wFMCommunicate request_size=4 [16:57:23]MH_SAM_APDU [16:57:23]CAPDU: 80 11 00 00 [16:57:23]Write to MH i2c: E2 08 00 BC 07 80 11 00 00 00 00 00 00 3D [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:23]Read from MH i2c: E2 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 17 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: E2 17 00 BC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 88 [16:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:57:23]wFMCommunicate OK [16:57:23]CreateOFDProtocolMessage done [16:57:23]OFDSenderStorePacket 50023 [16:57:23]StoreOFDPacket docnum=50023 [16:57:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 30 C0 1C 01 56 EB 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 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 82 00 00 00 F4 03 04 00 72 79 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 67 C3 00 00 35 04 06 00 D6 6B 8E B3 CA 5D 10 90 26 ED 9E D1 1E 48 [16:57:23]CheckFolder [16:57:23]dirname=/storage/ofd_packets [16:57:23]CheckFolder done [16:57:23]ProducePacketName [16:57:23]name=ofd_packets/00050023 [16:57:23]NVStorageSaveData ofd_packets/00050023 [16:57:23]File name is /storage/ofd_packets/00050023 [16:57:23]Write 322 bytes [16:57:23]NVStorageSaveData done [16:57:23]OFDSenderStorePacket done [16:57:23]KKMCreateOFDPacket done [16:57:23]NVStorageSaveData kkm_last_timestamp [16:57:23]File name is /storage/kkm_last_timestamp [16:57:23]Write 4 bytes [16:57:23]NVStorageSaveData done [16:57:23]ExternCall_PrintAddStr [16:57:23]wPrintStart [16:57:23]Write to MH i2c: 01 00 00 BD 07 C4 [16:57:23]Write i2c OK [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: 01 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: 01 07 00 [16:57:23]MH_I2C_Read... [16:57:23]Read from MH i2c: 01 07 00 BD 07 00 00 00 00 00 FF 0F D9 [16:57:23]RasterBufferAndPrint [16:57:23]line Счет N : (3)190154 [16:57:23]line ИНН: 02508201610067 [16:57:23]line Контрольно-Кассовый Чек [16:57:23]line ПРОДАЖА [16:57:23]line Товар: 40822426 [16:57:23]line Вода Бонаква 0,5л б/г [16:57:23]line 1.000 * 40.00 [16:57:23]line = 40.00 [16:57:23]line НДС 12% НСП 1% [16:57:23]line > о реализуемом товаре [16:57:23]line ИТОГО: 40.00 [16:57:23]line НСП 1% : 0.35 [16:57:23]line НДС 12% : 4.25 [16:57:23]line Наличными: 40.00 [16:57:23]line Безнал.: 0.00 [16:57:23]line Место: АЗС № 95 "Партнер Нефть" [16:57:23]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:57:23]line СНО: Общий режим [16:57:23]line Чек 130 19.08.2024 16:57 [16:57:23]line Смена: 467 ФФД: 1.0 [16:57:23]line ЗНМ: 0300000078 [16:57:23]line РНМ: 0000000000092546 [16:57:23]line Версия ККМ: 001 [16:57:23]line ФМ: 0000000000871800 [16:57:23]line ФД: 50023 [16:57:23]line ФПД: 235757443992157 [16:57:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T165722&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50023&fm=235757443992157&tin=02508201610067®Number=0000000000092546&sum=4000 [16:57:24]line 0 [16:57:24]OFD Sender: Processing packet 50023 [packets to send 21, broken 20] [16:57:24]ProducePacketName [16:57:24]name=ofd_packets/00050023 [16:57:24]OFD Sender: To server: pG, [16:57:24]CommunicateWithHost lk.salyk.kg:30040 [16:57:24]ConnectInit lk.salyk.kg [16:57:24]written 0, free lines is 4095 [16:57:24]Write to MH i2c: 01 00 00 E5 07 EC [16:57:24]Write i2c OK [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: 01 [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: 01 07 00 [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: 01 07 00 E5 07 00 00 00 00 00 DC 0C DB [16:57:24]RasterBufferAndPrint [16:57:24]line [16:57:24]line [16:57:24]line [16:57:24]line [16:57:24]line [16:57:24]written 0, free lines is 3298 [16:57:24]MH_Cut [16:57:24]Write to MH i2c: D1 01 00 EC 07 01 C5 [16:57:24]Write i2c OK [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: D1 [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: D1 01 00 [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: D1 01 00 EC 07 00 C4 [16:57:24]Write to MH i2c: 01 00 00 ED 07 F4 [16:57:24]Write i2c OK [16:57:24]MH_I2C_Read... [16:57:24]Connected sock=11 [16:57:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 30 C0 1C 01 56 EB 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 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 82 00 00 00 F4 03 04 00 72 79 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 67 C3 00 00 35 04 06 00 D6 6B 8E B3 CA 5D 10 90 26 ED 9E D1 1E 48 [16:57:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 96 41 47 00 E5 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 67 C3 00 00 F4 03 04 00 E0 23 C3 66 B6 04 01 00 00 59 1D 70 7C CF 20 EF 97 [16:57:25]CommunicateWithHost err = 0 [16:57:25]CheckOFDResponse [16:57:25]1017 (14) - 77093643461234 [16:57:25]1041 (16) - 0000000000871800 [16:57:25]1040 (4) - 50023 [16:57:25]1012 (4) - 19.08.2024 10:52 [16:57:25]1206 (1) - 0 [16:57:25]OFD Sender: Remove packet 50023 [16:57:25]ProducePacketName [16:57:25]name=ofd_packets/00050023 [16:57:25]NVStorageDeleteData [16:57:25]*** Cut start [16:57:25]*** Purtial cut [16:57:25]*** CUTSNS_PIN = 0 [16:57:25]OFD Sender: No OFD packet to send [16:57:25]*** Stage 1: CUTSNS_PIN = 1 [16:57:27]Read from MH i2c: 01 [16:57:27]MH_I2C_Read... [16:57:27]*** Stop cut motor [16:57:27]*** Cut end [16:57:27]Read from MH i2c: 01 07 00 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: 01 07 00 ED 07 00 00 00 00 00 FF 0F 09 [16:57:27]process_action close_receipt done [16:57:27]requested_data is exist [16:57:27]produce_requested_data [16:57:27]requested_item fm.sn is exist - process it [16:57:27]wFMCommunicate request_size=4 [16:57:27]MH_SAM_APDU [16:57:27]CAPDU: 80 11 00 00 [16:57:27]Write to MH i2c: E2 08 00 EE 07 80 11 00 00 00 00 00 00 6F [16:57:27]Write i2c OK [16:57:27]MH_I2C_Read... [16:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:27]Read from MH i2c: E2 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: E2 17 00 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: E2 17 00 EE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BA [16:57:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:57:27]wFMCommunicate OK [16:57:27]requested_item fd.num is exist - process it [16:57:27]SAM_PROTO_GetFieldsCounters [16:57:27]wFMCommunicate request_size=4 [16:57:27]MH_SAM_APDU [16:57:27]CAPDU: 80 13 00 00 [16:57:27]Write to MH i2c: E2 08 00 EF 07 80 13 00 00 00 00 00 00 72 [16:57:27]Write i2c OK [16:57:27]MH_I2C_Read... [16:57:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:27]Read from MH i2c: E2 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: E2 62 00 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: E2 62 00 EF 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 67 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [16:57:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 67 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:27]wFMCommunicate OK [16:57:27]SAM_PROTO_GetFieldsCounters done [16:57:27]requested_item shift.num is exist - process it [16:57:27]requested_item shift.opened is exist - process it [16:57:27]req_shift_opened [16:57:27]FM_GetShiftState [16:57:27]SAM_PROTO_GetShiftState [16:57:27]wFMCommunicate request_size=4 [16:57:27]MH_SAM_APDU [16:57:27]CAPDU: 80 13 01 00 [16:57:27]Write to MH i2c: E2 08 00 F0 07 80 13 01 00 00 00 00 00 74 [16:57:27]Write i2c OK [16:57:27]MH_I2C_Read... [16:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:27]Read from MH i2c: E2 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: E2 0E 00 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: E2 0E 00 F0 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 2E [16:57:27]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [16:57:27]wFMCommunicate OK [16:57:27]SAM_PROTO_GetShiftState done [16:57:27]FM_GetShiftState done [16:57:27]req_shift_opened done [16:57:27]requested_item shift.open_date is exist - process it [16:57:27]req_shift_open_date [16:57:27]req_shift_open_date done [16:57:27]produce_requested_data done [16:57:27]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50023,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [16:57:27]process_action_free close_receipt [16:57:27]json_value_free [16:57:27]json_value_free done [16:57:27]process_json_proto returns [16:57:27]Send response to host [16:57:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50023,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [16:57:27]free response buf [16:57:27]execute_script done [16:57:27]execute_script returns [16:57:27]free content buf [16:57:27]Sock 7.Close socket [16:57:27]Sock 7.Thread stoped [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:43]accept exits with 9 [16:57:43]New connection [16:57:43]New thread 3066469732 created [16:57:43]Thread 3066613092 joined [16:57:43]Waiting for new connection... [16:57:43] Sock 9.Parse request [16:57:43]Sock 9.Check first char [16:57:43]Sock 9.First char is OK [16:57:43]request: POST /json_proto HTTP/1.0 [16:57:43]Method: POST [16:57:43]URL: /json_proto [16:57:43]Method is POST - this is cgi request [16:57:43]url: /json_proto [16:57:43]query_string will be loaded in cgi processing [16:57:43]execute_cgi json_proto POST (null) [16:57:43]execute_cgi path=json_proto method=POST [16:57:43]POST find Content-Length [16:57:43]Host: 172.17.46.196:8080 [16:57:43]Content-Length: 756 [16:57:43]Content-Type: application/json [16:57:43] [16:57:43]POST finish read [16:57:43]Found Content-Length = 756 [16:57:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30073292", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:43]execute_script... [16:57:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30073292", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:43]POST & json_proto [16:57:43]process_json_proto [16:57:43]json parsed OK: [16:57:43]protocol is kg_v1.0 [16:57:43]action value=close_receipt [16:57:43]process_action close_receipt [16:57:43]cmd_close_receipt [16:57:43]MH_GetDate [16:57:43]Write to MH i2c: F0 00 00 F1 07 E7 [16:57:43]Write i2c OK [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: F0 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: F0 09 00 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: F0 09 00 F1 07 00 88 79 C3 66 C4 85 C2 66 8B [16:57:43]GetLastDocTimeStamp 1724086642 [16:57:43]current date 1724086664 [16:57:43]FM_GetShiftState [16:57:43]SAM_PROTO_GetShiftState [16:57:43]wFMCommunicate request_size=4 [16:57:43]MH_SAM_APDU [16:57:43]CAPDU: 80 13 01 00 [16:57:43]Write to MH i2c: E2 08 00 F2 07 80 13 01 00 00 00 00 00 76 [16:57:43]Write i2c OK [16:57:43]MH_I2C_Read... [16:57:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:43]Read from MH i2c: E2 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: E2 0E 00 [16:57:43]MH_I2C_Read... [16:57:43]Read from MH i2c: E2 0E 00 F2 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 30 [16:57:43]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [16:57:43]wFMCommunicate OK [16:57:43]SAM_PROTO_GetShiftState done [16:57:43]FM_GetShiftState done [16:57:43]opened in 1724026361 [16:57:43]opened+sec_in_day 1724112761 [16:57:43]quantity*price = 0 [16:57:43]sum+1 = 1 [16:57:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 131 19.08.2024 16:57 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30073292 ФМ: 0000000000871800 ФД: 50024 ФПД: 16526453654206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T165744&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50024&fm=16526453654206&tin=02508201610067®Number=0000000000092546&sum=0 [16:57:44]StoreToDocumentArchive [16:57:44]shift 467 fd 50024 [16:57:44]save to /storage/0467/doc_00050024 [16:57:44]save last doc name /storage/0467/doc_00050024 to /storage/kkm_last_doc_name [16:57:44]save OK [16:57:44]Clear old archive folders... [16:57:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:44]tlvbuf is 012557C0 [16:57:44]SAM_PROTO_ClearQueue [16:57:44]wFMCommunicate request_size=4 [16:57:44]MH_SAM_APDU [16:57:44]CAPDU: 80 09 00 00 [16:57:44]Write to MH i2c: E2 08 00 FF 07 80 09 00 00 00 00 00 00 78 [16:57:44]Write i2c OK [16:57:44]MH_I2C_Read... [16:57:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:44]Read from MH i2c: E2 [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: E2 03 00 [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: E2 03 00 FF 07 00 90 00 7A [16:57:44]RAPDU: 90 00 [16:57:44]wFMCommunicate OK [16:57:44]SAM_PROTO_ClearQueue done [16:57:44]KKMCreateOFDPacket [16:57:44]OFDProtocolAddRootSTLVToBuf [16:57:44]FM_MakeSignedData [16:57:44]FM_MakeSignedData [16:57:44]SAM_PROTO_SignData [16:57:44]wFMCommunicate request_size=4 [16:57:44]MH_SAM_APDU [16:57:44]CAPDU: 80 0D 01 02 [16:57:44]Write to MH i2c: E2 08 00 00 08 80 0D 01 02 00 00 00 00 81 [16:57:44]Write i2c OK [16:57:44]MH_I2C_Read... [16:57:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:44]Read from MH i2c: E2 [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: E2 03 00 [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: E2 03 00 00 08 00 90 00 7C [16:57:44]RAPDU: 90 00 [16:57:44]wFMCommunicate OK [16:57:44]wFMCommunicate request_size=255 [16:57:44]MH_SAM_APDU [16:57:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 88 79 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 68 C3 00 00 35 04 06 00 0F [16:57:44]Write to MH i2c: E2 02 01 01 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 88 79 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 68 C3 00 00 35 04 06 00 0F 00 00 51 [16:57:44]Write i2c OK [16:57:44]MH_I2C_Read... [16:57:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:45]Read from MH i2c: E2 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 03 00 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 03 00 01 08 00 90 00 7D [16:57:45]RAPDU: 90 00 [16:57:45]wFMCommunicate OK [16:57:45]wFMCommunicate request_size=10 [16:57:45]MH_SAM_APDU [16:57:45]CAPDU: 80 0D 02 02 05 07 DD 66 42 BE [16:57:45]Write to MH i2c: E2 0D 00 02 08 80 0D 02 02 05 00 07 DD 66 42 BE 00 00 D8 [16:57:45]Write i2c OK [16:57:45]MH_I2C_Read... [16:57:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:45]Read from MH i2c: E2 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 03 00 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 03 00 02 08 00 90 00 7E [16:57:45]RAPDU: 90 00 [16:57:45]wFMCommunicate OK [16:57:45]wFMCommunicate request_size=4 [16:57:45]MH_SAM_APDU [16:57:45]CAPDU: 80 0D 03 02 [16:57:45]Write to MH i2c: E2 08 00 03 08 80 0D 03 02 00 00 00 00 86 [16:57:45]Write i2c OK [16:57:45]MH_I2C_Read... [16:57:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:45]Read from MH i2c: E2 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 0B 00 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 0B 00 03 08 00 A8 69 23 42 3C 43 3B 2D 90 00 E4 [16:57:45]RAPDU: A8 69 23 42 3C 43 3B 2D 90 00 [16:57:45]wFMCommunicate OK [16:57:45]SAM_PROTO_SignData done [16:57:45]FM_MakeSignedData done [16:57:45]CreateOFDProtocolMessage [16:57:45]wFMCommunicate request_size=4 [16:57:45]MH_SAM_APDU [16:57:45]CAPDU: 80 11 00 00 [16:57:45]Write to MH i2c: E2 08 00 04 08 80 11 00 00 00 00 00 00 86 [16:57:45]Write i2c OK [16:57:45]MH_I2C_Read... [16:57:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:45]Read from MH i2c: E2 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 17 00 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 17 00 04 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D1 [16:57:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:57:45]wFMCommunicate OK [16:57:45]CreateOFDProtocolMessage done [16:57:45]OFDSenderStorePacket 50024 [16:57:45]StoreOFDPacket docnum=50024 [16:57:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 B4 36 07 01 E5 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 88 79 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 68 C3 00 00 35 04 06 00 0F 07 DD 66 42 BE A8 69 23 42 3C 43 3B 2D [16:57:45]CheckFolder [16:57:45]dirname=/storage/ofd_packets [16:57:45]CheckFolder done [16:57:45]ProducePacketName [16:57:45]name=ofd_packets/00050024 [16:57:45]NVStorageSaveData ofd_packets/00050024 [16:57:45]File name is /storage/ofd_packets/00050024 [16:57:45]Write 301 bytes [16:57:45]NVStorageSaveData done [16:57:45]OFDSenderStorePacket done [16:57:45]KKMCreateOFDPacket done [16:57:45]NVStorageSaveData kkm_last_timestamp [16:57:45]File name is /storage/kkm_last_timestamp [16:57:45]Write 4 bytes [16:57:45]NVStorageSaveData done [16:57:45]ExternCall_PrintAddStr [16:57:45]wPrintStart [16:57:45]Write to MH i2c: 01 00 00 05 08 0D [16:57:45]Write i2c OK [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: 01 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: 01 07 00 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: 01 07 00 05 08 00 00 00 00 00 FF 0F 22 [16:57:45]RasterBufferAndPrint [16:57:45]line Счет N : (1)11327972 [16:57:45]line ИНН: 02508201610067 [16:57:45]line Контрольно-Кассовый Чек [16:57:45]line ПРОДАЖА [16:57:45]line ТРК (МРК, ГНК) : 12 [16:57:45]line Товар: 2710124130 [16:57:45]line Аи-92-К-4 [16:57:45]line 50.000 * 0.00 [16:57:45]line = 0.00 [16:57:45]line НДС 12% НСП 1% [16:57:45]line > о реализуемом товаре [16:57:45]line ИТОГО: 0.00 [16:57:45]line НСП 1% : 0.00 [16:57:45]line НДС 12% : 0.00 [16:57:45]line Наличными: 0.00 [16:57:45]line Безнал.: 0.00 [16:57:45]line Место: АЗС № 95 "Партнер Нефть" [16:57:45]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:57:45]line СНО: Общий режим [16:57:45]line Чек 131 19.08.2024 16:57 [16:57:45]line Смена: 467 ФФД: 1.0 [16:57:45]line ЗНМ: 0300000078 [16:57:45]line РНМ: 0000000000092546 [16:57:45]line Версия ККМ: 001 [16:57:45]line Талоны: ТК ГПНА Online [16:57:45]line 30073292 [16:57:45]line ФМ: 0000000000871800 [16:57:45]line ФД: 50024 [16:57:45]line ФПД: 16526453654206 [16:57:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T165744&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50024&fm=16526453654206&tin=02508201610067®Number=0000000000092546&sum=0 [16:57:45]written 0, free lines is 4095 [16:57:45]OFD Sender: Processing packet 50024 [packets to send 21, broken 20] [16:57:45]ProducePacketName [16:57:45]name=ofd_packets/00050024 [16:57:45]OFD Sender: To server: pG, [16:57:45]CommunicateWithHost lk.salyk.kg:30040 [16:57:45]ConnectInit lk.salyk.kg [16:57:45]Connected sock=10 [16:57:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 B4 36 07 01 E5 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 88 79 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 68 C3 00 00 35 04 06 00 0F 07 DD 66 42 BE A8 69 23 42 3C 43 3B 2D [16:57:46]Write to MH i2c: 01 00 00 2F 08 37 [16:57:46]Write i2c OK [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: 01 [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: 01 07 00 [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: 01 07 00 2F 08 00 00 00 00 00 D1 0C 1B [16:57:46]RasterBufferAndPrint [16:57:46]line [16:57:46]line [16:57:46]line [16:57:46]line [16:57:46]line [16:57:46]written 0, free lines is 3287 [16:57:46]MH_Cut [16:57:46]Write to MH i2c: D1 01 00 36 08 01 10 [16:57:46]Write i2c OK [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: D1 [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: D1 01 00 [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: D1 01 00 36 08 00 0F [16:57:46]Write to MH i2c: 01 00 00 37 08 3F [16:57:46]Write i2c OK [16:57:46]MH_I2C_Read... [16:57:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 58 49 47 00 9C 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 68 C3 00 00 F4 03 04 00 F5 23 C3 66 B6 04 01 00 00 A1 68 44 62 0F 73 9B 28 [16:57:46]CommunicateWithHost err = 0 [16:57:46]CheckOFDResponse [16:57:46]1017 (14) - 77093643461234 [16:57:46]1041 (16) - 0000000000871800 [16:57:46]1040 (4) - 50024 [16:57:46]1012 (4) - 19.08.2024 10:52 [16:57:46]1206 (1) - 0 [16:57:46]OFD Sender: Remove packet 50024 [16:57:46]ProducePacketName [16:57:46]name=ofd_packets/00050024 [16:57:46]NVStorageDeleteData [16:57:46]OFD Sender: No OFD packet to send [16:57:46]*** Cut start [16:57:46]*** Purtial cut [16:57:46]*** Stage 1: CUTSNS_PIN = 1 [16:57:46]Read from MH i2c: 01 [16:57:46]MH_I2C_Read... [16:57:46]*** Stop cut motor [16:57:46]*** Cut end [16:57:46]Read from MH i2c: 01 07 00 [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: 01 07 00 37 08 00 00 00 00 00 FF 0F 54 [16:57:46]process_action close_receipt done [16:57:46]requested_data is exist [16:57:46]produce_requested_data [16:57:46]requested_item fm.sn is exist - process it [16:57:46]wFMCommunicate request_size=4 [16:57:46]MH_SAM_APDU [16:57:46]CAPDU: 80 11 00 00 [16:57:46]Write to MH i2c: E2 08 00 38 08 80 11 00 00 00 00 00 00 BA [16:57:46]Write i2c OK [16:57:46]MH_I2C_Read... [16:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:46]Read from MH i2c: E2 [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: E2 17 00 [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: E2 17 00 38 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 05 [16:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:57:46]wFMCommunicate OK [16:57:46]requested_item fd.num is exist - process it [16:57:46]SAM_PROTO_GetFieldsCounters [16:57:46]wFMCommunicate request_size=4 [16:57:46]MH_SAM_APDU [16:57:46]CAPDU: 80 13 00 00 [16:57:46]Write to MH i2c: E2 08 00 39 08 80 13 00 00 00 00 00 00 BD [16:57:46]Write i2c OK [16:57:46]MH_I2C_Read... [16:57:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:47]Read from MH i2c: E2 [16:57:47]MH_I2C_Read... [16:57:47]Read from MH i2c: E2 62 00 [16:57:47]MH_I2C_Read... [16:57:47]Read from MH i2c: E2 62 00 39 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 68 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [16:57:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 68 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:47]wFMCommunicate OK [16:57:47]SAM_PROTO_GetFieldsCounters done [16:57:47]requested_item shift.num is exist - process it [16:57:47]requested_item shift.opened is exist - process it [16:57:47]req_shift_opened [16:57:47]FM_GetShiftState [16:57:47]SAM_PROTO_GetShiftState [16:57:47]wFMCommunicate request_size=4 [16:57:47]MH_SAM_APDU [16:57:47]CAPDU: 80 13 01 00 [16:57:47]Write to MH i2c: E2 08 00 3A 08 80 13 01 00 00 00 00 00 BF [16:57:47]Write i2c OK [16:57:47]MH_I2C_Read... [16:57:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:47]Read from MH i2c: E2 [16:57:47]MH_I2C_Read... [16:57:47]Read from MH i2c: E2 0E 00 [16:57:47]MH_I2C_Read... [16:57:47]Read from MH i2c: E2 0E 00 3A 08 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 79 [16:57:47]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [16:57:47]wFMCommunicate OK [16:57:47]SAM_PROTO_GetShiftState done [16:57:47]FM_GetShiftState done [16:57:47]req_shift_opened done [16:57:47]requested_item shift.open_date is exist - process it [16:57:47]req_shift_open_date [16:57:47]req_shift_open_date done [16:57:47]produce_requested_data done [16:57:47]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50024,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [16:57:47]process_action_free close_receipt [16:57:47]json_value_free [16:57:47]json_value_free done [16:57:47]process_json_proto returns [16:57:47]Send response to host [16:57:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50024,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [16:57:47]free response buf [16:57:47]execute_script done [16:57:47]execute_script returns [16:57:47]free content buf [16:57:47]Sock 9.Close socket [16:57:47]Sock 9.Thread stoped [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:04]accept exits with 7 [16:59:04]New connection [16:59:04]New thread 3066613092 created [16:59:04]Thread 3066469732 joined [16:59:04]Waiting for new connection... [16:59:04] Sock 7.Parse request [16:59:04]Sock 7.Check first char [16:59:04]Sock 7.First char is OK [16:59:04]request: POST /json_proto HTTP/1.0 [16:59:04]Method: POST [16:59:04]URL: /json_proto [16:59:04]Method is POST - this is cgi request [16:59:04]url: /json_proto [16:59:04]query_string will be loaded in cgi processing [16:59:04]execute_cgi json_proto POST (null) [16:59:04]execute_cgi path=json_proto method=POST [16:59:04]POST find Content-Length [16:59:04]Host: 172.17.46.196:8080 [16:59:04]Content-Length: 613 [16:59:04]Content-Type: application/json [16:59:04] [16:59:04]POST finish read [16:59:04]Found Content-Length = 613 [16:59:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190155", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:04]execute_script... [16:59: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)190155", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:04]POST & json_proto [16:59:04]process_json_proto [16:59:04]json parsed OK: [16:59:04]protocol is kg_v1.0 [16:59:04]action value=close_receipt [16:59:04]process_action close_receipt [16:59:04]cmd_close_receipt [16:59:04]MH_GetDate [16:59:04]Write to MH i2c: F0 00 00 3B 08 32 [16:59:04]Write i2c OK [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: F0 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: F0 09 00 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: F0 09 00 3B 08 00 D9 79 C3 66 C4 85 C2 66 27 [16:59:04]GetLastDocTimeStamp 1724086664 [16:59:04]current date 1724086745 [16:59:04]FM_GetShiftState [16:59:04]SAM_PROTO_GetShiftState [16:59:04]wFMCommunicate request_size=4 [16:59:04]MH_SAM_APDU [16:59:04]CAPDU: 80 13 01 00 [16:59:04]Write to MH i2c: E2 08 00 3C 08 80 13 01 00 00 00 00 00 C1 [16:59:04]Write i2c OK [16:59:04]MH_I2C_Read... [16:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:04]Read from MH i2c: E2 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: E2 0E 00 [16:59:04]MH_I2C_Read... [16:59:04]Read from MH i2c: E2 0E 00 3C 08 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 7B [16:59:04]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [16:59:04]wFMCommunicate OK [16:59:04]SAM_PROTO_GetShiftState done [16:59:04]FM_GetShiftState done [16:59:04]opened in 1724026361 [16:59:04]opened+sec_in_day 1724112761 [16:59:04]quantity*price = 8000 [16:59:04]sum+1 = 8001 [16:59:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 132 19.08.2024 16:59 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50025 ФПД: 104275844588643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T165905&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50025&fm=104275844588643&tin=02508201610067®Number=0000000000092546&sum=8000 0 [16:59:05]StoreToDocumentArchive [16:59:05]shift 467 fd 50025 [16:59:05]save to /storage/0467/doc_00050025 [16:59:05]save last doc name /storage/0467/doc_00050025 to /storage/kkm_last_doc_name [16:59:05]save OK [16:59:05]Clear old archive folders... [16:59:05]ProcessDocumentItem done err = 0, tmpTLVsize=268 [16:59:05]tlvbuf is 0127EF10 [16:59:05]SAM_PROTO_ClearQueue [16:59:05]wFMCommunicate request_size=4 [16:59:05]MH_SAM_APDU [16:59:05]CAPDU: 80 09 00 00 [16:59:05]Write to MH i2c: E2 08 00 49 08 80 09 00 00 00 00 00 00 C3 [16:59:05]Write i2c OK [16:59:05]MH_I2C_Read... [16:59:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:05]Read from MH i2c: E2 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: E2 03 00 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: E2 03 00 49 08 00 90 00 C5 [16:59:05]RAPDU: 90 00 [16:59:05]wFMCommunicate OK [16:59:05]SAM_PROTO_ClearQueue done [16:59:05]KKMCreateOFDPacket [16:59:05]OFDProtocolAddRootSTLVToBuf [16:59:05]FM_MakeSignedData [16:59:05]FM_MakeSignedData [16:59:05]SAM_PROTO_SignData [16:59:05]wFMCommunicate request_size=4 [16:59:05]MH_SAM_APDU [16:59:05]CAPDU: 80 0D 01 02 [16:59:05]Write to MH i2c: E2 08 00 4A 08 80 0D 01 02 00 00 00 00 CB [16:59:05]Write i2c OK [16:59:05]MH_I2C_Read... [16:59:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:05]Read from MH i2c: E2 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: E2 03 00 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: E2 03 00 4A 08 00 90 00 C6 [16:59:05]RAPDU: 90 00 [16:59:05]wFMCommunicate OK [16:59:05]wFMCommunicate request_size=255 [16:59:05]MH_SAM_APDU [16:59:05]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 D9 79 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [16:59:05]Write to MH i2c: E2 02 01 4B 08 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 D9 79 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 B2 [16:59:05]Write i2c OK [16:59:05]MH_I2C_Read... [16:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:05]Read from MH i2c: E2 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: E2 03 00 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: E2 03 00 4B 08 00 90 00 C7 [16:59:05]RAPDU: 90 00 [16:59:05]wFMCommunicate OK [16:59:05]wFMCommunicate request_size=27 [16:59:05]MH_SAM_APDU [16:59:05]CAPDU: 80 0D 02 02 16 31 38 30 30 10 04 04 00 69 C3 00 00 35 04 06 00 5E D6 9C AC E4 63 [16:59:05]Write to MH i2c: E2 1E 00 4C 08 80 0D 02 02 16 00 31 38 30 30 10 04 04 00 69 C3 00 00 35 04 06 00 5E D6 9C AC E4 63 00 00 09 [16:59:05]Write i2c OK [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: E2 [16:59:05]MH_I2C_Read... [16:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:05]Read from MH i2c: E2 03 00 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: E2 03 00 4C 08 00 90 00 C8 [16:59:05]RAPDU: 90 00 [16:59:05]wFMCommunicate OK [16:59:05]wFMCommunicate request_size=4 [16:59:05]MH_SAM_APDU [16:59:05]CAPDU: 80 0D 03 02 [16:59:05]Write to MH i2c: E2 08 00 4D 08 80 0D 03 02 00 00 00 00 D0 [16:59:05]Write i2c OK [16:59:05]MH_I2C_Read... [16:59:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:05]Read from MH i2c: E2 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: E2 0B 00 [16:59:05]MH_I2C_Read... [16:59:05]Read from MH i2c: E2 0B 00 4D 08 00 EE E4 35 49 49 F6 B9 E7 90 00 00 [16:59:05]RAPDU: EE E4 35 49 49 F6 B9 E7 90 00 [16:59:05]wFMCommunicate OK [16:59:05]SAM_PROTO_SignData done [16:59:05]FM_MakeSignedData done [16:59:05]CreateOFDProtocolMessage [16:59:05]wFMCommunicate request_size=4 [16:59:05]MH_SAM_APDU [16:59:05]CAPDU: 80 11 00 00 [16:59:05]Write to MH i2c: E2 08 00 4E 08 80 11 00 00 00 00 00 00 D0 [16:59:05]Write i2c OK [16:59:05]MH_I2C_Read... [16:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:06]Read from MH i2c: E2 [16:59:06]MH_I2C_Read... [16:59:06]Read from MH i2c: E2 17 00 [16:59:06]MH_I2C_Read... [16:59:06]Read from MH i2c: E2 17 00 4E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1B [16:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:59:06]wFMCommunicate OK [16:59:06]CreateOFDProtocolMessage done [16:59:06]OFDSenderStorePacket 50025 [16:59:06]StoreOFDPacket docnum=50025 [16:59:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 20 01 00 00 07 12 18 01 48 58 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 D9 79 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 69 C3 00 00 35 04 06 00 5E D6 9C AC E4 63 EE E4 35 49 49 F6 B9 E7 [16:59:06]CheckFolder [16:59:06]dirname=/storage/ofd_packets [16:59:06]CheckFolder done [16:59:06]ProducePacketName [16:59:06]name=ofd_packets/00050025 [16:59:06]NVStorageSaveData ofd_packets/00050025 [16:59:06]File name is /storage/ofd_packets/00050025 [16:59:06]Write 318 bytes [16:59:06]NVStorageSaveData done [16:59:06]OFDSenderStorePacket done [16:59:06]KKMCreateOFDPacket done [16:59:06]NVStorageSaveData kkm_last_timestamp [16:59:06]File name is /storage/kkm_last_timestamp [16:59:06]Write 4 bytes [16:59:06]NVStorageSaveData done [16:59:06]ExternCall_PrintAddStr [16:59:06]wPrintStart [16:59:06]Write to MH i2c: 01 00 00 4F 08 57 [16:59:06]Write i2c OK [16:59:06]MH_I2C_Read... [16:59:06]Read from MH i2c: 01 [16:59:06]MH_I2C_Read... [16:59:06]Read from MH i2c: 01 07 00 [16:59:06]MH_I2C_Read... [16:59:06]Read from MH i2c: 01 07 00 4F 08 00 00 00 00 00 FF 0F 6C [16:59:06]RasterBufferAndPrint [16:59:06]line Счет N : (3)190155 [16:59:06]line ИНН: 02508201610067 [16:59:06]line Контрольно-Кассовый Чек [16:59:06]line ПРОДАЖА [16:59:06]line Товар: 4870001570057 [16:59:06]line Напиток Pepsi 0,5л [16:59:06]line 1.000 * 80.00 [16:59:06]line = 80.00 [16:59:06]line НДС 12% НСП 1% [16:59:06]line > о реализуемом товаре [16:59:06]line ИТОГО: 80.00 [16:59:06]line НСП 1% : 0.71 [16:59:06]line НДС 12% : 8.50 [16:59:06]line Наличными: 80.00 [16:59:06]line Безнал.: 0.00 [16:59:06]line Место: АЗС № 95 "Партнер Нефть" [16:59:06]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:59:06]line СНО: Общий режим [16:59:06]line Чек 132 19.08.2024 16:59 [16:59:06]line Смена: 467 ФФД: 1.0 [16:59:06]line ЗНМ: 0300000078 [16:59:06]line РНМ: 0000000000092546 [16:59:06]line Версия ККМ: 001 [16:59:06]line ФМ: 0000000000871800 [16:59:06]line ФД: 50025 [16:59:06]line ФПД: 104275844588643 [16:59:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T165905&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50025&fm=104275844588643&tin=02508201610067®Number=0000000000092546&sum=8000 [16:59:06]line 0 [16:59:06]written 0, free lines is 4095 [16:59:06]OFD Sender: Processing packet 50025 [packets to send 21, broken 20] [16:59:06]ProducePacketName [16:59:06]name=ofd_packets/00050025 [16:59:06]OFD Sender: To server: pG, [16:59:06]CommunicateWithHost lk.salyk.kg:30040 [16:59:06]ConnectInit lk.salyk.kg [16:59:06]Connected sock=10 [16:59:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 20 01 00 00 07 12 18 01 48 58 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 D9 79 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 69 C3 00 00 35 04 06 00 5E D6 9C AC E4 63 EE E4 35 49 49 F6 B9 E7 [16:59:06]Write to MH i2c: 01 00 00 77 08 7F [16:59:06]Write i2c OK [16:59:06]MH_I2C_Read... [16:59:06]Read from MH i2c: 01 [16:59:06]MH_I2C_Read... [16:59:06]Read from MH i2c: 01 07 00 [16:59:06]MH_I2C_Read... [16:59:06]Read from MH i2c: 01 07 00 77 08 00 00 00 00 00 E5 0C 77 [16:59:06]RasterBufferAndPrint [16:59:06]line [16:59:06]line [16:59:06]line [16:59:06]line [16:59:06]line [16:59:06]written 0, free lines is 3306 [16:59:06]MH_Cut [16:59:06]Write to MH i2c: D1 01 00 7E 08 01 58 [16:59:06]Write i2c OK [16:59:06]MH_I2C_Read... [16:59:06]Read from MH i2c: D1 [16:59:06]MH_I2C_Read... [16:59:06]Read from MH i2c: D1 01 00 [16:59:06]MH_I2C_Read... [16:59:06]Read from MH i2c: D1 01 00 7E 08 00 57 [16:59:06]Write to MH i2c: 01 00 00 7F 08 87 [16:59:06]Write i2c OK [16:59:06]MH_I2C_Read... [16:59:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 67 DF 47 00 38 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 31 38 30 30 10 04 04 00 69 C3 00 00 F4 03 04 00 45 24 C3 66 B6 04 01 00 00 48 F8 F8 E2 79 D7 DC 2A [16:59:06]CommunicateWithHost err = 0 [16:59:06]CheckOFDResponse [16:59:06]1017 (14) - 77093643461234 [16:59:06]1041 (16) - 0000000000871800 [16:59:06]1040 (4) - 50025 [16:59:06]1012 (4) - 19.08.2024 10:53 [16:59:06]1206 (1) - 0 [16:59:06]OFD Sender: Remove packet 50025 [16:59:06]ProducePacketName [16:59:06]name=ofd_packets/00050025 [16:59:06]NVStorageDeleteData [16:59:07]OFD Sender: No OFD packet to send [16:59:07]*** Cut start [16:59:07]*** Purtial cut [16:59:07]*** CUTSNS_PIN = 0 [16:59:07]*** Stage 1: CUTSNS_PIN = 1 [16:59:09]Read from MH i2c: 01 [16:59:09]MH_I2C_Read... [16:59:09]*** Stop cut motor [16:59:09]*** Cut end [16:59:09]Read from MH i2c: 01 07 00 [16:59:09]MH_I2C_Read... [16:59:09]Read from MH i2c: 01 07 00 7F 08 00 00 00 00 00 FF 0F 9C [16:59:09]process_action close_receipt done [16:59:09]requested_data is exist [16:59:09]produce_requested_data [16:59:09]requested_item fm.sn is exist - process it [16:59:09]wFMCommunicate request_size=4 [16:59:09]MH_SAM_APDU [16:59:09]CAPDU: 80 11 00 00 [16:59:09]Write to MH i2c: E2 08 00 80 08 80 11 00 00 00 00 00 00 02 [16:59:09]Write i2c OK [16:59:09]MH_I2C_Read... [16:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:09]Read from MH i2c: E2 [16:59:09]MH_I2C_Read... [16:59:09]Read from MH i2c: E2 17 00 [16:59:09]MH_I2C_Read... [16:59:09]Read from MH i2c: E2 17 00 80 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4D [16:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:59:09]wFMCommunicate OK [16:59:09]requested_item fd.num is exist - process it [16:59:09]SAM_PROTO_GetFieldsCounters [16:59:09]wFMCommunicate request_size=4 [16:59:09]MH_SAM_APDU [16:59:09]CAPDU: 80 13 00 00 [16:59:09]Write to MH i2c: E2 08 00 81 08 80 13 00 00 00 00 00 00 05 [16:59:09]Write i2c OK [16:59:09]MH_I2C_Read... [16:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:09]Read from MH i2c: E2 [16:59:09]MH_I2C_Read... [16:59:09]Read from MH i2c: E2 62 00 [16:59:09]MH_I2C_Read... [16:59:09]Read from MH i2c: E2 62 00 81 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 69 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [16:59:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 69 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:09]wFMCommunicate OK [16:59:09]SAM_PROTO_GetFieldsCounters done [16:59:09]requested_item shift.num is exist - process it [16:59:09]requested_item shift.opened is exist - process it [16:59:09]req_shift_opened [16:59:09]FM_GetShiftState [16:59:09]SAM_PROTO_GetShiftState [16:59:09]wFMCommunicate request_size=4 [16:59:09]MH_SAM_APDU [16:59:09]CAPDU: 80 13 01 00 [16:59:09]Write to MH i2c: E2 08 00 82 08 80 13 01 00 00 00 00 00 07 [16:59:09]Write i2c OK [16:59:09]MH_I2C_Read... [16:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:09]Read from MH i2c: E2 [16:59:09]MH_I2C_Read... [16:59:09]Read from MH i2c: E2 0E 00 [16:59:09]MH_I2C_Read... [16:59:09]Read from MH i2c: E2 0E 00 82 08 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 C1 [16:59:09]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [16:59:09]wFMCommunicate OK [16:59:09]SAM_PROTO_GetShiftState done [16:59:09]FM_GetShiftState done [16:59:09]req_shift_opened done [16:59:09]requested_item shift.open_date is exist - process it [16:59:09]req_shift_open_date [16:59:09]req_shift_open_date done [16:59:09]produce_requested_data done [16:59:09]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50025,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [16:59:09]process_action_free close_receipt [16:59:09]json_value_free [16:59:09]json_value_free done [16:59:09]process_json_proto returns [16:59:09]Send response to host [16:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50025,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [16:59:09]free response buf [16:59:09]execute_script done [16:59:09]execute_script returns [16:59:09]free content buf [16:59:09]Sock 7.Close socket [16:59:09]Sock 7.Thread stoped [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:29]accept exits with 9 [17:00:29]New connection [17:00:29]New thread 3066469732 created [17:00:29]Thread 3066613092 joined [17:00:29]Waiting for new connection... [17:00:29] Sock 9.Parse request [17:00:29]Sock 9.Check first char [17:00:29]Sock 9.First char is OK [17:00:29]request: POST /json_proto HTTP/1.0 [17:00:29]Method: POST [17:00:29]URL: /json_proto [17:00:29]Method is POST - this is cgi request [17:00:29]url: /json_proto [17:00:29]query_string will be loaded in cgi processing [17:00:29]execute_cgi json_proto POST (null) [17:00:29]execute_cgi path=json_proto method=POST [17:00:29]POST find Content-Length [17:00:29]Host: 172.17.46.196:8080 [17:00:29]Content-Length: 688 [17:00:29]Content-Type: application/json [17:00:29] [17:00:29]POST finish read [17:00:29]Found Content-Length = 688 [17:00:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190156", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:29]execute_script... [17:00: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)190156", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:29]POST & json_proto [17:00:29]process_json_proto [17:00:29]json parsed OK: [17:00:29]protocol is kg_v1.0 [17:00:29]action value=close_receipt [17:00:29]process_action close_receipt [17:00:29]cmd_close_receipt [17:00:29]MH_GetDate [17:00:29]Write to MH i2c: F0 00 00 83 08 7A [17:00:29]Write i2c OK [17:00:29]MH_I2C_Read... [17:00:29]Read from MH i2c: F0 [17:00:29]MH_I2C_Read... [17:00:29]Read from MH i2c: F0 09 00 [17:00:29]MH_I2C_Read... [17:00:29]Read from MH i2c: F0 09 00 83 08 00 2D 7A C3 66 C4 85 C2 66 C4 [17:00:29]GetLastDocTimeStamp 1724086745 [17:00:29]current date 1724086829 [17:00:29]FM_GetShiftState [17:00:29]SAM_PROTO_GetShiftState [17:00:29]wFMCommunicate request_size=4 [17:00:29]MH_SAM_APDU [17:00:29]CAPDU: 80 13 01 00 [17:00:29]Write to MH i2c: E2 08 00 84 08 80 13 01 00 00 00 00 00 09 [17:00:29]Write i2c OK [17:00:29]MH_I2C_Read... [17:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:29]Read from MH i2c: E2 [17:00:29]MH_I2C_Read... [17:00:29]Read from MH i2c: E2 0E 00 [17:00:29]MH_I2C_Read... [17:00:29]Read from MH i2c: E2 0E 00 84 08 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 C3 [17:00:29]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:00:29]wFMCommunicate OK [17:00:29]SAM_PROTO_GetShiftState done [17:00:29]FM_GetShiftState done [17:00:29]opened in 1724026361 [17:00:29]opened+sec_in_day 1724112761 [17:00:29]quantity*price = 9500 [17:00:29]sum+1 = 9501 [17:00:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 133 19.08.2024 17:00 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50026 ФПД: 12338037722152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T170029&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50026&fm=12338037722152&tin=02508201610067®Number=0000000000092546&sum=9500 0 [17:00:30]StoreToDocumentArchive [17:00:30]shift 467 fd 50026 [17:00:30]save to /storage/0467/doc_00050026 [17:00:30]save last doc name /storage/0467/doc_00050026 to /storage/kkm_last_doc_name [17:00:30]save OK [17:00:30]Clear old archive folders... [17:00:30]ProcessDocumentItem done err = 0, tmpTLVsize=299 [17:00:30]tlvbuf is 01282E80 [17:00:30]SAM_PROTO_ClearQueue [17:00:30]wFMCommunicate request_size=4 [17:00:30]MH_SAM_APDU [17:00:30]CAPDU: 80 09 00 00 [17:00:30]Write to MH i2c: E2 08 00 91 08 80 09 00 00 00 00 00 00 0B [17:00:30]Write i2c OK [17:00:30]MH_I2C_Read... [17:00:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:30]Read from MH i2c: E2 [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: E2 03 00 [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [17:00:30]RAPDU: 90 00 [17:00:30]wFMCommunicate OK [17:00:30]SAM_PROTO_ClearQueue done [17:00:30]KKMCreateOFDPacket [17:00:30]OFDProtocolAddRootSTLVToBuf [17:00:30]FM_MakeSignedData [17:00:30]FM_MakeSignedData [17:00:30]SAM_PROTO_SignData [17:00:30]wFMCommunicate request_size=4 [17:00:30]MH_SAM_APDU [17:00:30]CAPDU: 80 0D 01 02 [17:00:30]Write to MH i2c: E2 08 00 92 08 80 0D 01 02 00 00 00 00 13 [17:00:30]Write i2c OK [17:00:30]MH_I2C_Read... [17:00:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:30]Read from MH i2c: E2 [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: E2 03 00 [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: E2 03 00 92 08 00 90 00 0E [17:00:30]RAPDU: 90 00 [17:00:30]wFMCommunicate OK [17:00:30]wFMCommunicate request_size=255 [17:00:30]MH_SAM_APDU [17:00:30]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 2D 7A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [17:00:30]Write to MH i2c: E2 02 01 93 08 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 2D 7A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 E3 [17:00:30]Write i2c OK [17:00:30]MH_I2C_Read... [17:00:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:30]Read from MH i2c: E2 [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: E2 03 00 [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [17:00:30]RAPDU: 90 00 [17:00:30]wFMCommunicate OK [17:00:30]wFMCommunicate request_size=58 [17:00:30]MH_SAM_APDU [17:00:30]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6A C3 00 00 35 04 06 00 0B 38 AC 5B 0C 28 [17:00:30]Write to MH i2c: E2 3D 00 94 08 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6A C3 00 00 35 04 06 00 0B 38 AC 5B 0C 28 00 00 A9 [17:00:30]Write i2c OK [17:00:30]MH_I2C_Read... [17:00:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:30]Read from MH i2c: E2 [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: E2 03 00 [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: E2 03 00 94 08 00 90 00 10 [17:00:30]RAPDU: 90 00 [17:00:30]wFMCommunicate OK [17:00:30]wFMCommunicate request_size=4 [17:00:30]MH_SAM_APDU [17:00:30]CAPDU: 80 0D 03 02 [17:00:30]Write to MH i2c: E2 08 00 95 08 80 0D 03 02 00 00 00 00 18 [17:00:30]Write i2c OK [17:00:30]MH_I2C_Read... [17:00:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:30]Read from MH i2c: E2 [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: E2 0B 00 [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: E2 0B 00 95 08 00 7B 14 F1 41 0A BC 17 C6 90 00 7D [17:00:30]RAPDU: 7B 14 F1 41 0A BC 17 C6 90 00 [17:00:30]wFMCommunicate OK [17:00:30]SAM_PROTO_SignData done [17:00:30]FM_MakeSignedData done [17:00:30]CreateOFDProtocolMessage [17:00:30]wFMCommunicate request_size=4 [17:00:30]MH_SAM_APDU [17:00:30]CAPDU: 80 11 00 00 [17:00:30]Write to MH i2c: E2 08 00 96 08 80 11 00 00 00 00 00 00 18 [17:00:30]Write i2c OK [17:00:30]MH_I2C_Read... [17:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:30]Read from MH i2c: E2 [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: E2 17 00 [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: E2 17 00 96 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 63 [17:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:00:30]wFMCommunicate OK [17:00:30]CreateOFDProtocolMessage done [17:00:30]OFDSenderStorePacket 50026 [17:00:30]StoreOFDPacket docnum=50026 [17:00:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3F 01 00 00 5D F8 37 01 23 30 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 2D 7A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6A C3 00 00 35 04 06 00 0B 38 AC 5B 0C 28 7B 14 F1 41 0A BC 17 C6 [17:00:30]CheckFolder [17:00:30]dirname=/storage/ofd_packets [17:00:30]CheckFolder done [17:00:30]ProducePacketName [17:00:30]name=ofd_packets/00050026 [17:00:30]NVStorageSaveData ofd_packets/00050026 [17:00:30]File name is /storage/ofd_packets/00050026 [17:00:30]Write 349 bytes [17:00:30]NVStorageSaveData done [17:00:30]OFDSenderStorePacket done [17:00:30]KKMCreateOFDPacket done [17:00:30]NVStorageSaveData kkm_last_timestamp [17:00:30]File name is /storage/kkm_last_timestamp [17:00:30]Write 4 bytes [17:00:30]NVStorageSaveData done [17:00:30]ExternCall_PrintAddStr [17:00:30]wPrintStart [17:00:30]Write to MH i2c: 01 00 00 97 08 9F [17:00:30]Write i2c OK [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: 01 [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: 01 07 00 [17:00:30]MH_I2C_Read... [17:00:30]Read from MH i2c: 01 07 00 97 08 00 00 00 00 00 FF 0F B4 [17:00:30]RasterBufferAndPrint [17:00:30]line Счет N : (3)190156 [17:00:30]line ИНН: 02508201610067 [17:00:30]line Контрольно-Кассовый Чек [17:00:30]line ПРОДАЖА [17:00:30]line Товар: 4700003010070 [17:00:30]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [17:00:30]line 1.000 * 95.00 [17:00:30]line = 95.00 [17:00:30]line НДС 12% НСП 1% [17:00:30]line > о реализуемом товаре [17:00:30]line ИТОГО: 95.00 [17:00:30]line НСП 1% : 0.84 [17:00:30]line НДС 12% : 10.09 [17:00:30]line Наличными: 95.00 [17:00:30]line Безнал.: 0.00 [17:00:30]line Место: АЗС № 95 "Партнер Нефть" [17:00:30]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:00:30]line СНО: Общий режим [17:00:30]line Чек 133 19.08.2024 17:00 [17:00:30]line Смена: 467 ФФД: 1.0 [17:00:30]line ЗНМ: 0300000078 [17:00:30]line РНМ: 0000000000092546 [17:00:30]line Версия ККМ: 001 [17:00:30]line ФМ: 0000000000871800 [17:00:30]line ФД: 50026 [17:00:30]line ФПД: 12338037722152 [17:00:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T170029&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50026&fm=12338037722152&tin=02508201610067®Number=0000000000092546&sum=9500 [17:00:31]line 0 [17:00:31]OFD Sender: Processing packet 50026 [packets to send 21, broken 20] [17:00:31]ProducePacketName [17:00:31]name=ofd_packets/00050026 [17:00:31]OFD Sender: To server: pG, [17:00:31]CommunicateWithHost lk.salyk.kg:30040 [17:00:31]ConnectInit lk.salyk.kg [17:00:31]written 0, free lines is 4095 [17:00:31]Connected sock=10 [17:00:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3F 01 00 00 5D F8 37 01 23 30 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 2D 7A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6A C3 00 00 35 04 06 00 0B 38 AC 5B 0C 28 7B 14 F1 41 0A BC 17 C6 [17:00:31]Write to MH i2c: 01 00 00 C0 08 C8 [17:00:31]Write i2c OK [17:00:31]MH_I2C_Read... [17:00:31]Read from MH i2c: 01 [17:00:31]MH_I2C_Read... [17:00:31]Read from MH i2c: 01 07 00 [17:00:31]MH_I2C_Read... [17:00:31]Read from MH i2c: 01 07 00 C0 08 00 00 00 00 00 DC 0C B7 [17:00:31]RasterBufferAndPrint [17:00:31]line [17:00:31]line [17:00:31]line [17:00:31]line [17:00:31]line [17:00:31]written 0, free lines is 3298 [17:00:31]MH_Cut [17:00:31]Write to MH i2c: D1 01 00 C7 08 01 A1 [17:00:31]Write i2c OK [17:00:31]MH_I2C_Read... [17:00:31]Read from MH i2c: D1 [17:00:31]MH_I2C_Read... [17:00:31]Read from MH i2c: D1 01 00 [17:00:31]MH_I2C_Read... [17:00:31]Read from MH i2c: D1 01 00 C7 08 00 A0 [17:00:31]Write to MH i2c: 01 00 00 C8 08 D0 [17:00:31]Write i2c OK [17:00:31]MH_I2C_Read... [17:00:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 CA 96 47 00 B8 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6A C3 00 00 F4 03 04 00 9A 24 C3 66 B6 04 01 00 00 48 B8 1C CC FB 09 F6 8E [17:00:31]CommunicateWithHost err = 0 [17:00:31]CheckOFDResponse [17:00:31]1017 (14) - 77093643461234 [17:00:31]1041 (16) - 0000000000871800 [17:00:31]1040 (4) - 50026 [17:00:31]1012 (4) - 19.08.2024 10:55 [17:00:31]1206 (1) - 0 [17:00:31]OFD Sender: Remove packet 50026 [17:00:31]ProducePacketName [17:00:31]name=ofd_packets/00050026 [17:00:31]NVStorageDeleteData [17:00:32]OFD Sender: No OFD packet to send [17:00:32]*** Cut start [17:00:32]*** Purtial cut [17:00:32]*** Stage 1: CUTSNS_PIN = 1 [17:00:32]Read from MH i2c: 01 [17:00:32]MH_I2C_Read... [17:00:32]*** Stop cut motor [17:00:32]*** Cut end [17:00:32]Read from MH i2c: 01 07 00 [17:00:32]MH_I2C_Read... [17:00:32]Read from MH i2c: 01 07 00 C8 08 00 00 00 00 00 FF 0F E5 [17:00:32]process_action close_receipt done [17:00:32]requested_data is exist [17:00:32]produce_requested_data [17:00:32]requested_item fm.sn is exist - process it [17:00:32]wFMCommunicate request_size=4 [17:00:32]MH_SAM_APDU [17:00:32]CAPDU: 80 11 00 00 [17:00:32]Write to MH i2c: E2 08 00 C9 08 80 11 00 00 00 00 00 00 4B [17:00:32]Write i2c OK [17:00:32]MH_I2C_Read... [17:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:32]Read from MH i2c: E2 [17:00:32]MH_I2C_Read... [17:00:32]Read from MH i2c: E2 17 00 [17:00:32]MH_I2C_Read... [17:00:32]Read from MH i2c: E2 17 00 C9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 96 [17:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:00:32]wFMCommunicate OK [17:00:32]requested_item fd.num is exist - process it [17:00:32]SAM_PROTO_GetFieldsCounters [17:00:32]wFMCommunicate request_size=4 [17:00:32]MH_SAM_APDU [17:00:32]CAPDU: 80 13 00 00 [17:00:32]Write to MH i2c: E2 08 00 CA 08 80 13 00 00 00 00 00 00 4E [17:00:32]Write i2c OK [17:00:32]MH_I2C_Read... [17:00:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:32]Read from MH i2c: E2 [17:00:32]MH_I2C_Read... [17:00:32]Read from MH i2c: E2 62 00 [17:00:32]MH_I2C_Read... [17:00:32]Read from MH i2c: E2 62 00 CA 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6A C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [17:00:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6A C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:00:32]wFMCommunicate OK [17:00:32]SAM_PROTO_GetFieldsCounters done [17:00:32]requested_item shift.num is exist - process it [17:00:32]requested_item shift.opened is exist - process it [17:00:32]req_shift_opened [17:00:32]FM_GetShiftState [17:00:32]SAM_PROTO_GetShiftState [17:00:32]wFMCommunicate request_size=4 [17:00:32]MH_SAM_APDU [17:00:32]CAPDU: 80 13 01 00 [17:00:32]Write to MH i2c: E2 08 00 CB 08 80 13 01 00 00 00 00 00 50 [17:00:32]Write i2c OK [17:00:32]MH_I2C_Read... [17:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:33]Read from MH i2c: E2 [17:00:33]MH_I2C_Read... [17:00:33]Read from MH i2c: E2 0E 00 [17:00:33]MH_I2C_Read... [17:00:33]Read from MH i2c: E2 0E 00 CB 08 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 0A [17:00:33]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:00:33]wFMCommunicate OK [17:00:33]SAM_PROTO_GetShiftState done [17:00:33]FM_GetShiftState done [17:00:33]req_shift_opened done [17:00:33]requested_item shift.open_date is exist - process it [17:00:33]req_shift_open_date [17:00:33]req_shift_open_date done [17:00:33]produce_requested_data done [17:00:33]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50026,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [17:00:33]process_action_free close_receipt [17:00:33]json_value_free [17:00:33]json_value_free done [17:00:33]process_json_proto returns [17:00:33]Send response to host [17:00:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50026,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [17:00:33]free response buf [17:00:33]execute_script done [17:00:33]execute_script returns [17:00:33]free content buf [17:00:33]Sock 9.Close socket [17:00:33]Sock 9.Thread stoped [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:09]accept exits with 7 [17:01:09]New connection [17:01:09]New thread 3066613092 created [17:01:09]Thread 3066469732 joined [17:01:09]Waiting for new connection... [17:01:09] Sock 7.Parse request [17:01:09]Sock 7.Check first char [17:01:09]Sock 7.First char is OK [17:01:09]request: POST /json_proto HTTP/1.0 [17:01:09]Method: POST [17:01:09]URL: /json_proto [17:01:09]Method is POST - this is cgi request [17:01:09]url: /json_proto [17:01:09]query_string will be loaded in cgi processing [17:01:09]execute_cgi json_proto POST (null) [17:01:09]execute_cgi path=json_proto method=POST [17:01:09]POST find Content-Length [17:01:09]Host: 172.17.46.196:8080 [17:01:09]Content-Length: 644 [17:01:09]Content-Type: application/json [17:01:09] [17:01:09]POST finish read [17:01:09]Found Content-Length = 644 [17:01:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190157", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:09]execute_script... [17:01: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)190157", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 42.00, "quantity" : 1.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 42.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:09]POST & json_proto [17:01:09]process_json_proto [17:01:09]json parsed OK: [17:01:09]protocol is kg_v1.0 [17:01:09]action value=close_receipt [17:01:09]process_action close_receipt [17:01:09]cmd_close_receipt [17:01:09]MH_GetDate [17:01:09]Write to MH i2c: F0 00 00 CC 08 C3 [17:01:09]Write i2c OK [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: F0 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: F0 09 00 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: F0 09 00 CC 08 00 55 7A C3 66 C4 85 C2 66 35 [17:01:09]GetLastDocTimeStamp 1724086829 [17:01:09]current date 1724086869 [17:01:09]FM_GetShiftState [17:01:09]SAM_PROTO_GetShiftState [17:01:09]wFMCommunicate request_size=4 [17:01:09]MH_SAM_APDU [17:01:09]CAPDU: 80 13 01 00 [17:01:09]Write to MH i2c: E2 08 00 CD 08 80 13 01 00 00 00 00 00 52 [17:01:09]Write i2c OK [17:01:09]MH_I2C_Read... [17:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:09]Read from MH i2c: E2 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: E2 0E 00 [17:01:09]MH_I2C_Read... [17:01:09]Read from MH i2c: E2 0E 00 CD 08 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 0C [17:01:09]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:01:09]wFMCommunicate OK [17:01:09]SAM_PROTO_GetShiftState done [17:01:09]FM_GetShiftState done [17:01:09]opened in 1724026361 [17:01:09]opened+sec_in_day 1724112761 [17:01:09]quantity*price = 4200 [17:01:09]sum+1 = 4201 [17:01:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 42.00 НСП 1% : 0.37 НДС 12% : 4.46 Наличными: 42.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 134 19.08.2024 17:01 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50027 ФПД: 32490476546450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T170110&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50027&fm=32490476546450&tin=02508201610067®Number=0000000000092546&sum=4200 0 [17:01:10]StoreToDocumentArchive [17:01:10]shift 467 fd 50027 [17:01:10]save to /storage/0467/doc_00050027 [17:01:10]save last doc name /storage/0467/doc_00050027 to /storage/kkm_last_doc_name [17:01:10]save OK [17:01:10]Clear old archive folders... [17:01:10]ProcessDocumentItem done err = 0, tmpTLVsize=275 [17:01:10]tlvbuf is 01282D30 [17:01:10]SAM_PROTO_ClearQueue [17:01:10]wFMCommunicate request_size=4 [17:01:10]MH_SAM_APDU [17:01:10]CAPDU: 80 09 00 00 [17:01:10]Write to MH i2c: E2 08 00 DA 08 80 09 00 00 00 00 00 00 54 [17:01:10]Write i2c OK [17:01:10]MH_I2C_Read... [17:01:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:10]Read from MH i2c: E2 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: E2 03 00 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: E2 03 00 DA 08 00 90 00 56 [17:01:10]RAPDU: 90 00 [17:01:10]wFMCommunicate OK [17:01:10]SAM_PROTO_ClearQueue done [17:01:10]KKMCreateOFDPacket [17:01:10]OFDProtocolAddRootSTLVToBuf [17:01:10]FM_MakeSignedData [17:01:10]FM_MakeSignedData [17:01:10]SAM_PROTO_SignData [17:01:10]wFMCommunicate request_size=4 [17:01:10]MH_SAM_APDU [17:01:10]CAPDU: 80 0D 01 02 [17:01:10]Write to MH i2c: E2 08 00 DB 08 80 0D 01 02 00 00 00 00 5C [17:01:10]Write i2c OK [17:01:10]MH_I2C_Read... [17:01:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:10]Read from MH i2c: E2 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: E2 03 00 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [17:01:10]RAPDU: 90 00 [17:01:10]wFMCommunicate OK [17:01:10]wFMCommunicate request_size=255 [17:01:10]MH_SAM_APDU [17:01:10]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 56 7A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [17:01:10]Write to MH i2c: E2 02 01 DC 08 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 56 7A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 28 [17:01:10]Write i2c OK [17:01:10]MH_I2C_Read... [17:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:10]Read from MH i2c: E2 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: E2 03 00 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: E2 03 00 DC 08 00 90 00 58 [17:01:10]RAPDU: 90 00 [17:01:10]wFMCommunicate OK [17:01:10]wFMCommunicate request_size=34 [17:01:10]MH_SAM_APDU [17:01:10]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6B C3 00 00 35 04 06 00 1D 8C C7 50 29 92 [17:01:10]Write to MH i2c: E2 25 00 DD 08 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6B C3 00 00 35 04 06 00 1D 8C C7 50 29 92 00 00 C1 [17:01:10]Write i2c OK [17:01:10]MH_I2C_Read... [17:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:10]Read from MH i2c: E2 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: E2 03 00 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: E2 03 00 DD 08 00 90 00 59 [17:01:10]RAPDU: 90 00 [17:01:10]wFMCommunicate OK [17:01:10]wFMCommunicate request_size=4 [17:01:10]MH_SAM_APDU [17:01:10]CAPDU: 80 0D 03 02 [17:01:10]Write to MH i2c: E2 08 00 DE 08 80 0D 03 02 00 00 00 00 61 [17:01:10]Write i2c OK [17:01:10]MH_I2C_Read... [17:01:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:10]Read from MH i2c: E2 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: E2 0B 00 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: E2 0B 00 DE 08 00 0F C2 BC C6 69 12 A7 58 90 00 2F [17:01:10]RAPDU: 0F C2 BC C6 69 12 A7 58 90 00 [17:01:10]wFMCommunicate OK [17:01:10]SAM_PROTO_SignData done [17:01:10]FM_MakeSignedData done [17:01:10]CreateOFDProtocolMessage [17:01:10]wFMCommunicate request_size=4 [17:01:10]MH_SAM_APDU [17:01:10]CAPDU: 80 11 00 00 [17:01:10]Write to MH i2c: E2 08 00 DF 08 80 11 00 00 00 00 00 00 61 [17:01:10]Write i2c OK [17:01:10]MH_I2C_Read... [17:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:11]Read from MH i2c: E2 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: E2 17 00 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: E2 17 00 DF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AC [17:01:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:01:11]wFMCommunicate OK [17:01:11]CreateOFDProtocolMessage done [17:01:11]OFDSenderStorePacket 50027 [17:01:11]StoreOFDPacket docnum=50027 [17:01:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 C4 2C 1F 01 ED 2B 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 56 7A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6B C3 00 00 35 04 06 00 1D 8C C7 50 29 92 0F C2 BC C6 69 12 A7 58 [17:01:11]CheckFolder [17:01:11]dirname=/storage/ofd_packets [17:01:11]CheckFolder done [17:01:11]ProducePacketName [17:01:11]name=ofd_packets/00050027 [17:01:11]NVStorageSaveData ofd_packets/00050027 [17:01:11]File name is /storage/ofd_packets/00050027 [17:01:11]Write 325 bytes [17:01:11]NVStorageSaveData done [17:01:11]OFDSenderStorePacket done [17:01:11]KKMCreateOFDPacket done [17:01:11]NVStorageSaveData kkm_last_timestamp [17:01:11]File name is /storage/kkm_last_timestamp [17:01:11]Write 4 bytes [17:01:11]NVStorageSaveData done [17:01:11]ExternCall_PrintAddStr [17:01:11]wPrintStart [17:01:11]Write to MH i2c: 01 00 00 E0 08 E8 [17:01:11]Write i2c OK [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: 01 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: 01 07 00 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: 01 07 00 E0 08 00 00 00 00 00 FF 0F FD [17:01:11]RasterBufferAndPrint [17:01:11]line Счет N : (3)190157 [17:01:11]line ИНН: 02508201610067 [17:01:11]line Контрольно-Кассовый Чек [17:01:11]line ПРОДАЖА [17:01:11]line Товар: 5449000005489 [17:01:11]line Вода Бонаква 1л б/г [17:01:11]line 1.000 * 42.00 [17:01:11]line = 42.00 [17:01:11]line НДС 12% НСП 1% [17:01:11]line > о реализуемом товаре [17:01:11]line ИТОГО: 42.00 [17:01:11]line НСП 1% : 0.37 [17:01:11]line НДС 12% : 4.46 [17:01:11]line Наличными: 42.00 [17:01:11]line Безнал.: 0.00 [17:01:11]line Место: АЗС № 95 "Партнер Нефть" [17:01:11]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:01:11]line СНО: Общий режим [17:01:11]line Чек 134 19.08.2024 17:01 [17:01:11]line Смена: 467 ФФД: 1.0 [17:01:11]line ЗНМ: 0300000078 [17:01:11]line РНМ: 0000000000092546 [17:01:11]line Версия ККМ: 001 [17:01:11]line ФМ: 0000000000871800 [17:01:11]line ФД: 50027 [17:01:11]line ФПД: 32490476546450 [17:01:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T170110&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50027&fm=32490476546450&tin=02508201610067®Number=0000000000092546&sum=4200 [17:01:11]line 0 [17:01:11]OFD Sender: Processing packet 50027 [packets to send 21, broken 20] [17:01:11]ProducePacketName [17:01:11]name=ofd_packets/00050027 [17:01:11]OFD Sender: To server: pG, [17:01:11]CommunicateWithHost lk.salyk.kg:30040 [17:01:11]ConnectInit lk.salyk.kg [17:01:11]written 0, free lines is 4095 [17:01:11]Write to MH i2c: 01 00 00 08 09 11 [17:01:11]Write i2c OK [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: 01 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: 01 07 00 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: 01 07 00 08 09 00 00 00 00 00 DF 0C 03 [17:01:11]RasterBufferAndPrint [17:01:11]line [17:01:11]line [17:01:11]line [17:01:11]line [17:01:11]line [17:01:11]written 0, free lines is 3301 [17:01:11]MH_Cut [17:01:11]Write to MH i2c: D1 01 00 0F 09 01 EA [17:01:11]Write i2c OK [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: D1 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: D1 01 00 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: D1 01 00 0F 09 00 E9 [17:01:11]Write to MH i2c: 01 00 00 10 09 19 [17:01:11]Write i2c OK [17:01:11]MH_I2C_Read... [17:01:11]Connected sock=10 [17:01:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 C4 2C 1F 01 ED 2B 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 10 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 01 00 00 00 00 07 04 06 00 68 10 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 56 7A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6B C3 00 00 35 04 06 00 1D 8C C7 50 29 92 0F C2 BC C6 69 12 A7 58 [17:01:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 1A 9B 47 00 19 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6B C3 00 00 F4 03 04 00 C3 24 C3 66 B6 04 01 00 00 E6 70 21 62 22 CE FA B2 [17:01:12]CommunicateWithHost err = 0 [17:01:12]CheckOFDResponse [17:01:12]1017 (14) - 77093643461234 [17:01:12]1041 (16) - 0000000000871800 [17:01:12]1040 (4) - 50027 [17:01:12]1012 (4) - 19.08.2024 10:56 [17:01:12]1206 (1) - 0 [17:01:12]OFD Sender: Remove packet 50027 [17:01:12]ProducePacketName [17:01:12]name=ofd_packets/00050027 [17:01:12]NVStorageDeleteData [17:01:12]*** Cut start [17:01:12]*** Purtial cut [17:01:12]*** CUTSNS_PIN = 0 [17:01:12]OFD Sender: No OFD packet to send [17:01:12]*** Stage 1: CUTSNS_PIN = 1 [17:01:14]Read from MH i2c: 01 [17:01:14]MH_I2C_Read... [17:01:14]*** Stop cut motor [17:01:14]*** Cut end [17:01:14]Read from MH i2c: 01 07 00 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: 01 07 00 10 09 00 00 00 00 00 FF 0F 2E [17:01:14]process_action close_receipt done [17:01:14]requested_data is exist [17:01:14]produce_requested_data [17:01:14]requested_item fm.sn is exist - process it [17:01:14]wFMCommunicate request_size=4 [17:01:14]MH_SAM_APDU [17:01:14]CAPDU: 80 11 00 00 [17:01:14]Write to MH i2c: E2 08 00 11 09 80 11 00 00 00 00 00 00 94 [17:01:14]Write i2c OK [17:01:14]MH_I2C_Read... [17:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:14]Read from MH i2c: E2 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: E2 17 00 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: E2 17 00 11 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DF [17:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:01:14]wFMCommunicate OK [17:01:14]requested_item fd.num is exist - process it [17:01:14]SAM_PROTO_GetFieldsCounters [17:01:14]wFMCommunicate request_size=4 [17:01:14]MH_SAM_APDU [17:01:14]CAPDU: 80 13 00 00 [17:01:14]Write to MH i2c: E2 08 00 12 09 80 13 00 00 00 00 00 00 97 [17:01:14]Write i2c OK [17:01:14]MH_I2C_Read... [17:01:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:14]Read from MH i2c: E2 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: E2 62 00 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: E2 62 00 12 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6B C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [17:01:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6B C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:14]wFMCommunicate OK [17:01:14]SAM_PROTO_GetFieldsCounters done [17:01:14]requested_item shift.num is exist - process it [17:01:14]requested_item shift.opened is exist - process it [17:01:14]req_shift_opened [17:01:14]FM_GetShiftState [17:01:14]SAM_PROTO_GetShiftState [17:01:14]wFMCommunicate request_size=4 [17:01:14]MH_SAM_APDU [17:01:14]CAPDU: 80 13 01 00 [17:01:14]Write to MH i2c: E2 08 00 13 09 80 13 01 00 00 00 00 00 99 [17:01:14]Write i2c OK [17:01:14]MH_I2C_Read... [17:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:14]Read from MH i2c: E2 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: E2 0E 00 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: E2 0E 00 13 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 53 [17:01:14]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:01:14]wFMCommunicate OK [17:01:14]SAM_PROTO_GetShiftState done [17:01:14]FM_GetShiftState done [17:01:14]req_shift_opened done [17:01:14]requested_item shift.open_date is exist - process it [17:01:14]req_shift_open_date [17:01:14]req_shift_open_date done [17:01:14]produce_requested_data done [17:01:14]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50027,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [17:01:14]process_action_free close_receipt [17:01:14]json_value_free [17:01:14]json_value_free done [17:01:14]process_json_proto returns [17:01:14]Send response to host [17:01:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50027,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [17:01:14]free response buf [17:01:14]execute_script done [17:01:14]execute_script returns [17:01:14]free content buf [17:01:14]Sock 7.Close socket [17:01:14]Sock 7.Thread stoped [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:50]accept exits with 9 [17:01:50]New connection [17:01:50]New thread 3066469732 created [17:01:50]Thread 3066613092 joined [17:01:50]Waiting for new connection... [17:01:50] Sock 9.Parse request [17:01:50]Sock 9.Check first char [17:01:50]Sock 9.First char is OK [17:01:50]request: POST /json_proto HTTP/1.0 [17:01:50]Method: POST [17:01:50]URL: /json_proto [17:01:50]Method is POST - this is cgi request [17:01:50]url: /json_proto [17:01:50]query_string will be loaded in cgi processing [17:01:50]execute_cgi json_proto POST (null) [17:01:50]execute_cgi path=json_proto method=POST [17:01:50]POST find Content-Length [17:01:50]Host: 172.17.46.196:8080 [17:01:50]Content-Length: 905 [17:01:50]Content-Type: application/json [17:01:50] [17:01:50]POST finish read [17:01:50]Found Content-Length = 905 [17:01:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190158", "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": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:50]execute_script... [17:01:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190158", "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": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:50]POST & json_proto [17:01:50]process_json_proto [17:01:50]json parsed OK: [17:01:50]protocol is kg_v1.0 [17:01:50]action value=close_receipt [17:01:50]process_action close_receipt [17:01:50]cmd_close_receipt [17:01:50]MH_GetDate [17:01:50]Write to MH i2c: F0 00 00 14 09 0C [17:01:50]Write i2c OK [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: F0 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: F0 09 00 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: F0 09 00 14 09 00 7F 7A C3 66 C4 85 C2 66 A8 [17:01:50]GetLastDocTimeStamp 1724086870 [17:01:50]current date 1724086911 [17:01:50]FM_GetShiftState [17:01:50]SAM_PROTO_GetShiftState [17:01:50]wFMCommunicate request_size=4 [17:01:50]MH_SAM_APDU [17:01:50]CAPDU: 80 13 01 00 [17:01:50]Write to MH i2c: E2 08 00 15 09 80 13 01 00 00 00 00 00 9B [17:01:50]Write i2c OK [17:01:50]MH_I2C_Read... [17:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:50]Read from MH i2c: E2 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: E2 0E 00 [17:01:50]MH_I2C_Read... [17:01:50]Read from MH i2c: E2 0E 00 15 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 55 [17:01:50]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:01:50]wFMCommunicate OK [17:01:50]SAM_PROTO_GetShiftState done [17:01:50]FM_GetShiftState done [17:01:50]opened in 1724026361 [17:01:50]opened+sec_in_day 1724112761 [17:01:50]quantity*price = 4000 [17:01:50]sum+1 = 4001 [17:01:50]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065000868 Шок M&M`s с шоколадом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 135 19.08.2024 17:01 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50028 ФПД: 26623937025309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T170151&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50028&fm=26623937025309&tin=02508201610067®Number=0000000000092546&sum=11000 0 [17:01:51]StoreToDocumentArchive [17:01:51]shift 467 fd 50028 [17:01:51]save to /storage/0467/doc_00050028 [17:01:51]save last doc name /storage/0467/doc_00050028 to /storage/kkm_last_doc_name [17:01:51]save OK [17:01:51]Clear old archive folders... [17:01:51]ProcessDocumentItem done err = 0, tmpTLVsize=382 [17:01:51]tlvbuf is 0127DAB0 [17:01:51]SAM_PROTO_ClearQueue [17:01:51]wFMCommunicate request_size=4 [17:01:51]MH_SAM_APDU [17:01:51]CAPDU: 80 09 00 00 [17:01:51]Write to MH i2c: E2 08 00 22 09 80 09 00 00 00 00 00 00 9D [17:01:51]Write i2c OK [17:01:51]MH_I2C_Read... [17:01:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:51]Read from MH i2c: E2 [17:01:51]MH_I2C_Read... [17:01:51]Read from MH i2c: E2 03 00 [17:01:51]MH_I2C_Read... [17:01:51]Read from MH i2c: E2 03 00 22 09 00 90 00 9F [17:01:51]RAPDU: 90 00 [17:01:51]wFMCommunicate OK [17:01:51]SAM_PROTO_ClearQueue done [17:01:51]KKMCreateOFDPacket [17:01:51]OFDProtocolAddRootSTLVToBuf [17:01:51]FM_MakeSignedData [17:01:51]FM_MakeSignedData [17:01:51]SAM_PROTO_SignData [17:01:51]wFMCommunicate request_size=4 [17:01:51]MH_SAM_APDU [17:01:51]CAPDU: 80 0D 01 02 [17:01:51]Write to MH i2c: E2 08 00 23 09 80 0D 01 02 00 00 00 00 A5 [17:01:51]Write i2c OK [17:01:51]MH_I2C_Read... [17:01:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:51]Read from MH i2c: E2 [17:01:51]MH_I2C_Read... [17:01:51]Read from MH i2c: E2 03 00 [17:01:51]MH_I2C_Read... [17:01:51]Read from MH i2c: E2 03 00 23 09 00 90 00 A0 [17:01:51]RAPDU: 90 00 [17:01:51]wFMCommunicate OK [17:01:51]wFMCommunicate request_size=255 [17:01:51]MH_SAM_APDU [17:01:51]CAPDU: 80 0D 02 02 FA 03 00 7E 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 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 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 [17:01:51]Write to MH i2c: E2 02 01 24 09 80 0D 02 02 FA 00 03 00 7E 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 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 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 64 [17:01:51]Write i2c OK [17:01:51]MH_I2C_Read... [17:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:52]Read from MH i2c: E2 [17:01:52]MH_I2C_Read... [17:01:52]Read from MH i2c: E2 03 00 [17:01:52]MH_I2C_Read... [17:01:52]Read from MH i2c: E2 03 00 24 09 00 90 00 A1 [17:01:52]RAPDU: 90 00 [17:01:52]wFMCommunicate OK [17:01:52]wFMCommunicate request_size=141 [17:01:52]MH_SAM_APDU [17:01:52]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 7F 7A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6C C3 00 00 35 04 06 00 18 36 DE 4F 15 1D [17:01:52]Write to MH i2c: E2 90 00 25 09 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 7F 7A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6C C3 00 00 35 04 06 00 18 36 DE 4F 15 1D 00 00 ED [17:01:52]Write i2c OK [17:01:52]MH_I2C_Read... [17:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:52]Read from MH i2c: E2 [17:01:52]MH_I2C_Read... [17:01:52]Read from MH i2c: E2 03 00 [17:01:52]MH_I2C_Read... [17:01:52]Read from MH i2c: E2 03 00 25 09 00 90 00 A2 [17:01:52]RAPDU: 90 00 [17:01:52]wFMCommunicate OK [17:01:52]wFMCommunicate request_size=4 [17:01:52]MH_SAM_APDU [17:01:52]CAPDU: 80 0D 03 02 [17:01:52]Write to MH i2c: E2 08 00 26 09 80 0D 03 02 00 00 00 00 AA [17:01:52]Write i2c OK [17:01:52]MH_I2C_Read... [17:01:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:52]Read from MH i2c: E2 [17:01:52]MH_I2C_Read... [17:01:52]Read from MH i2c: E2 0B 00 [17:01:52]MH_I2C_Read... [17:01:52]Read from MH i2c: E2 0B 00 26 09 00 D0 A1 0E 20 F3 0F 1A 87 90 00 ED [17:01:52]RAPDU: D0 A1 0E 20 F3 0F 1A 87 90 00 [17:01:52]wFMCommunicate OK [17:01:52]SAM_PROTO_SignData done [17:01:52]FM_MakeSignedData done [17:01:52]CreateOFDProtocolMessage [17:01:52]wFMCommunicate request_size=4 [17:01:52]MH_SAM_APDU [17:01:52]CAPDU: 80 11 00 00 [17:01:52]Write to MH i2c: E2 08 00 27 09 80 11 00 00 00 00 00 00 AA [17:01:52]Write i2c OK [17:01:52]MH_I2C_Read... [17:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:52]Read from MH i2c: E2 [17:01:52]MH_I2C_Read... [17:01:52]Read from MH i2c: E2 17 00 [17:01:52]MH_I2C_Read... [17:01:52]Read from MH i2c: E2 17 00 27 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F5 [17:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:01:52]wFMCommunicate OK [17:01:52]CreateOFDProtocolMessage done [17:01:52]OFDSenderStorePacket 50028 [17:01:52]StoreOFDPacket docnum=50028 [17:01:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 92 01 00 00 C4 2B 8A 01 14 B1 5A 03 01 00 03 00 7E 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 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 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 7F 7A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6C C3 00 00 35 04 06 00 18 36 DE 4F 15 1D D0 A1 0E 20 F3 0F 1A 87 [17:01:52]CheckFolder [17:01:52]dirname=/storage/ofd_packets [17:01:52]CheckFolder done [17:01:52]ProducePacketName [17:01:52]name=ofd_packets/00050028 [17:01:52]NVStorageSaveData ofd_packets/00050028 [17:01:52]File name is /storage/ofd_packets/00050028 [17:01:52]Write 432 bytes [17:01:52]NVStorageSaveData done [17:01:52]OFDSenderStorePacket done [17:01:52]KKMCreateOFDPacket done [17:01:52]NVStorageSaveData kkm_last_timestamp [17:01:52]File name is /storage/kkm_last_timestamp [17:01:52]Write 4 bytes [17:01:52]NVStorageSaveData done [17:01:52]ExternCall_PrintAddStr [17:01:52]wPrintStart [17:01:52]Write to MH i2c: 01 00 00 28 09 31 [17:01:52]Write i2c OK [17:01:52]MH_I2C_Read... [17:01:52]Read from MH i2c: 01 [17:01:52]MH_I2C_Read... [17:01:52]Read from MH i2c: 01 07 00 [17:01:52]MH_I2C_Read... [17:01:52]Read from MH i2c: 01 07 00 28 09 00 00 00 00 00 FF 0F 46 [17:01:52]RasterBufferAndPrint [17:01:52]line Счет N : (3)190158 [17:01:52]line ИНН: 02508201610067 [17:01:52]line Контрольно-Кассовый Чек [17:01:52]line ПРОДАЖА [17:01:52]line Товар: 4700000160211 [17:01:52]line Вода Легенда 0,5л [17:01:52]line 1.000 * 40.00 [17:01:52]line = 40.00 [17:01:52]line НДС 12% НСП 1% [17:01:52]line > о реализуемом товаре [17:01:52]line Товар: 4607065000868 [17:01:52]line Шок M&M`s с шоколадом 45г [17:01:52]line 1.000 * 70.00 [17:01:52]line = 70.00 [17:01:52]line НДС 12% НСП 1% [17:01:52]line > о реализуемом товаре [17:01:52]line ИТОГО: 110.00 [17:01:52]line НСП 1% : 0.97 [17:01:52]line НДС 12% : 11.68 [17:01:52]line Наличными: 110.00 [17:01:52]line Безнал.: 0.00 [17:01:52]line Место: АЗС № 95 "Партнер Нефть" [17:01:52]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:01:52]line СНО: Общий режим [17:01:52]line Чек 135 19.08.2024 17:01 [17:01:52]line Смена: 467 ФФД: 1.0 [17:01:52]line ЗНМ: 0300000078 [17:01:52]line РНМ: 0000000000092546 [17:01:52]line Версия ККМ: 001 [17:01:52]line ФМ: 0000000000871800 [17:01:52]line ФД: 50028 [17:01:52]line ФПД: 26623937025309 [17:01:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T170151&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50028&fm=26623937025309&tin=02508201610067®Number=0000000000092546&sum=11000 [17:01:52]line 0 [17:01:52]OFD Sender: Processing packet 50028 [packets to send 21, broken 20] [17:01:52]ProducePacketName [17:01:52]name=ofd_packets/00050028 [17:01:52]OFD Sender: To server: pG, [17:01:52]CommunicateWithHost lk.salyk.kg:30040 [17:01:52]ConnectInit lk.salyk.kg [17:01:52]written 0, free lines is 4095 [17:01:52]Connected sock=11 [17:01:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 92 01 00 00 C4 2B 8A 01 14 B1 5A 03 01 00 03 00 7E 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 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 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 7F 7A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6C C3 00 00 35 04 06 00 18 36 DE 4F 15 1D D0 A1 0E 20 F3 0F 1A 87 [17:01:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C8 79 47 00 68 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 31 38 30 30 10 04 04 00 6C C3 00 00 F4 03 04 00 EC 24 C3 66 B6 04 01 00 00 F8 2C 5E D2 8B F6 3F 8D [17:01:53]CommunicateWithHost err = 0 [17:01:53]CheckOFDResponse [17:01:53]1017 (14) - 77093643461234 [17:01:53]1041 (16) - 0000000000871800 [17:01:53]1040 (4) - 50028 [17:01:53]1012 (4) - 19.08.2024 10:56 [17:01:53]1206 (1) - 0 [17:01:53]OFD Sender: Remove packet 50028 [17:01:53]ProducePacketName [17:01:53]name=ofd_packets/00050028 [17:01:53]NVStorageDeleteData [17:01:53]Write to MH i2c: 01 00 00 56 09 5F [17:01:53]Write i2c OK [17:01:53]MH_I2C_Read... [17:01:53]Read from MH i2c: 01 [17:01:53]MH_I2C_Read... [17:01:53]Read from MH i2c: 01 07 00 [17:01:53]MH_I2C_Read... [17:01:53]Read from MH i2c: 01 07 00 56 09 00 00 00 00 00 90 0C 02 [17:01:53]RasterBufferAndPrint [17:01:53]line [17:01:53]line [17:01:53]line [17:01:53]line [17:01:53]line [17:01:53]written 0, free lines is 3221 [17:01:53]MH_Cut [17:01:53]Write to MH i2c: D1 01 00 5D 09 01 38 [17:01:53]Write i2c OK [17:01:53]MH_I2C_Read... [17:01:53]Read from MH i2c: D1 [17:01:53]MH_I2C_Read... [17:01:53]Read from MH i2c: D1 01 00 [17:01:53]MH_I2C_Read... [17:01:53]Read from MH i2c: D1 01 00 5D 09 00 37 [17:01:53]Write to MH i2c: 01 00 00 5E 09 67 [17:01:53]Write i2c OK [17:01:53]MH_I2C_Read... [17:01:53]OFD Sender: No OFD packet to send [17:01:53]*** Cut start [17:01:53]*** Purtial cut [17:01:53]*** Stage 1: CUTSNS_PIN = 1 [17:01:54]Read from MH i2c: 01 [17:01:54]MH_I2C_Read... [17:01:54]*** Stop cut motor [17:01:54]*** Cut end [17:01:54]Read from MH i2c: 01 07 00 [17:01:54]MH_I2C_Read... [17:01:54]Read from MH i2c: 01 07 00 5E 09 00 00 00 00 00 FF 0F 7C [17:01:54]process_action close_receipt done [17:01:54]requested_data is exist [17:01:54]produce_requested_data [17:01:54]requested_item fm.sn is exist - process it [17:01:54]wFMCommunicate request_size=4 [17:01:54]MH_SAM_APDU [17:01:54]CAPDU: 80 11 00 00 [17:01:54]Write to MH i2c: E2 08 00 5F 09 80 11 00 00 00 00 00 00 E2 [17:01:54]Write i2c OK [17:01:54]MH_I2C_Read... [17:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:54]Read from MH i2c: E2 [17:01:54]MH_I2C_Read... [17:01:54]Read from MH i2c: E2 17 00 [17:01:54]MH_I2C_Read... [17:01:54]Read from MH i2c: E2 17 00 5F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2D [17:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:01:54]wFMCommunicate OK [17:01:54]requested_item fd.num is exist - process it [17:01:54]SAM_PROTO_GetFieldsCounters [17:01:54]wFMCommunicate request_size=4 [17:01:54]MH_SAM_APDU [17:01:54]CAPDU: 80 13 00 00 [17:01:54]Write to MH i2c: E2 08 00 60 09 80 13 00 00 00 00 00 00 E5 [17:01:54]Write i2c OK [17:01:54]MH_I2C_Read... [17:01:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:54]Read from MH i2c: E2 [17:01:54]MH_I2C_Read... [17:01:54]Read from MH i2c: E2 62 00 [17:01:54]MH_I2C_Read... [17:01:54]Read from MH i2c: E2 62 00 60 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6C C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [17:01:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6C C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:54]wFMCommunicate OK [17:01:54]SAM_PROTO_GetFieldsCounters done [17:01:54]requested_item shift.num is exist - process it [17:01:54]requested_item shift.opened is exist - process it [17:01:54]req_shift_opened [17:01:54]FM_GetShiftState [17:01:54]SAM_PROTO_GetShiftState [17:01:54]wFMCommunicate request_size=4 [17:01:54]MH_SAM_APDU [17:01:54]CAPDU: 80 13 01 00 [17:01:54]Write to MH i2c: E2 08 00 61 09 80 13 01 00 00 00 00 00 E7 [17:01:54]Write i2c OK [17:01:54]MH_I2C_Read... [17:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:54]Read from MH i2c: E2 [17:01:54]MH_I2C_Read... [17:01:54]Read from MH i2c: E2 0E 00 [17:01:54]MH_I2C_Read... [17:01:54]Read from MH i2c: E2 0E 00 61 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A1 [17:01:54]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:01:54]wFMCommunicate OK [17:01:54]SAM_PROTO_GetShiftState done [17:01:54]FM_GetShiftState done [17:01:54]req_shift_opened done [17:01:54]requested_item shift.open_date is exist - process it [17:01:54]req_shift_open_date [17:01:54]req_shift_open_date done [17:01:54]produce_requested_data done [17:01:54]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50028,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [17:01:54]process_action_free close_receipt [17:01:54]json_value_free [17:01:54]json_value_free done [17:01:54]process_json_proto returns [17:01:54]Send response to host [17:01:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50028,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [17:01:54]free response buf [17:01:54]execute_script done [17:01:54]execute_script returns [17:01:54]free content buf [17:01:54]Sock 9.Close socket [17:01:54]Sock 9.Thread stoped [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:05]accept exits with 7 [17:07:05]New connection [17:07:05]New thread 3066613092 created [17:07:05]Thread 3066469732 joined [17:07:05]Waiting for new connection... [17:07:05] Sock 7.Parse request [17:07:05]Sock 7.Check first char [17:07:05]Sock 7.First char is OK [17:07:05]request: POST /json_proto HTTP/1.0 [17:07:05]Method: POST [17:07:05]URL: /json_proto [17:07:05]Method is POST - this is cgi request [17:07:05]url: /json_proto [17:07:05]query_string will be loaded in cgi processing [17:07:05]execute_cgi json_proto POST (null) [17:07:05]execute_cgi path=json_proto method=POST [17:07:05]POST find Content-Length [17:07:05]Host: 172.17.46.196:8080 [17:07:05]Content-Length: 687 [17:07:05]Content-Type: application/json [17:07:05] [17:07:05]POST finish read [17:07:05]Found Content-Length = 687 [17:07:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190159", "tax_sys" : 0, "items" : [ { "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:05]execute_script... [17:07: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)190159", "tax_sys" : 0, "items" : [ { "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:05]POST & json_proto [17:07:05]process_json_proto [17:07:05]json parsed OK: [17:07:05]protocol is kg_v1.0 [17:07:05]action value=close_receipt [17:07:05]process_action close_receipt [17:07:05]cmd_close_receipt [17:07:05]MH_GetDate [17:07:05]Write to MH i2c: F0 00 00 62 09 5A [17:07:05]Write i2c OK [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: F0 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: F0 09 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: F0 09 00 62 09 00 BA 7B C3 66 C4 85 C2 66 32 [17:07:05]GetLastDocTimeStamp 1724086911 [17:07:05]current date 1724087226 [17:07:05]FM_GetShiftState [17:07:05]SAM_PROTO_GetShiftState [17:07:05]wFMCommunicate request_size=4 [17:07:05]MH_SAM_APDU [17:07:05]CAPDU: 80 13 01 00 [17:07:05]Write to MH i2c: E2 08 00 63 09 80 13 01 00 00 00 00 00 E9 [17:07:05]Write i2c OK [17:07:05]MH_I2C_Read... [17:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:05]Read from MH i2c: E2 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 0E 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 0E 00 63 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A3 [17:07:05]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:07:05]wFMCommunicate OK [17:07:05]SAM_PROTO_GetShiftState done [17:07:05]FM_GetShiftState done [17:07:05]opened in 1724026361 [17:07:05]opened+sec_in_day 1724112761 [17:07:05]quantity*price = 5000 [17:07:05]sum+1 = 5001 [17:07:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 136 19.08.2024 17:07 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50029 ФПД: 258062628492736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T170706&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50029&fm=258062628492736&tin=02508201610067®Number=0000000000092546&sum=5000 0 [17:07:06]StoreToDocumentArchive [17:07:06]shift 467 fd 50029 [17:07:06]save to /storage/0467/doc_00050029 [17:07:06]save last doc name /storage/0467/doc_00050029 to /storage/kkm_last_doc_name [17:07:06]save OK [17:07:06]Clear old archive folders... [17:07:06]ProcessDocumentItem done err = 0, tmpTLVsize=298 [17:07:06]tlvbuf is 0127EA70 [17:07:06]SAM_PROTO_ClearQueue [17:07:06]wFMCommunicate request_size=4 [17:07:06]MH_SAM_APDU [17:07:06]CAPDU: 80 09 00 00 [17:07:06]Write to MH i2c: E2 08 00 70 09 80 09 00 00 00 00 00 00 EB [17:07:06]Write i2c OK [17:07:06]MH_I2C_Read... [17:07:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:06]Read from MH i2c: E2 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: E2 03 00 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: E2 03 00 70 09 00 90 00 ED [17:07:06]RAPDU: 90 00 [17:07:06]wFMCommunicate OK [17:07:06]SAM_PROTO_ClearQueue done [17:07:06]KKMCreateOFDPacket [17:07:06]OFDProtocolAddRootSTLVToBuf [17:07:06]FM_MakeSignedData [17:07:06]FM_MakeSignedData [17:07:06]SAM_PROTO_SignData [17:07:06]wFMCommunicate request_size=4 [17:07:06]MH_SAM_APDU [17:07:06]CAPDU: 80 0D 01 02 [17:07:06]Write to MH i2c: E2 08 00 71 09 80 0D 01 02 00 00 00 00 F3 [17:07:06]Write i2c OK [17:07:06]MH_I2C_Read... [17:07:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:06]Read from MH i2c: E2 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: E2 03 00 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: E2 03 00 71 09 00 90 00 EE [17:07:06]RAPDU: 90 00 [17:07:06]wFMCommunicate OK [17:07:06]wFMCommunicate request_size=255 [17:07:06]MH_SAM_APDU [17:07:06]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 BA 7B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [17:07:06]Write to MH i2c: E2 02 01 72 09 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 BA 7B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 AD [17:07:06]Write i2c OK [17:07:06]MH_I2C_Read... [17:07:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:06]Read from MH i2c: E2 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: E2 03 00 [17:07:06]MH_I2C_Read... [17:07:06]Read from MH i2c: E2 03 00 72 09 00 90 00 EF [17:07:06]RAPDU: 90 00 [17:07:06]wFMCommunicate OK [17:07:06]wFMCommunicate request_size=57 [17:07:06]MH_SAM_APDU [17:07:06]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6D C3 00 00 35 04 06 00 EA B4 E3 4D 15 C0 [17:07:06]Write to MH i2c: E2 3C 00 73 09 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6D C3 00 00 35 04 06 00 EA B4 E3 4D 15 C0 00 00 7F [17:07:06]Write i2c OK [17:07:06]MH_I2C_Read... [17:07:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:07]Read from MH i2c: E2 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: E2 03 00 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: E2 03 00 73 09 00 90 00 F0 [17:07:07]RAPDU: 90 00 [17:07:07]wFMCommunicate OK [17:07:07]wFMCommunicate request_size=4 [17:07:07]MH_SAM_APDU [17:07:07]CAPDU: 80 0D 03 02 [17:07:07]Write to MH i2c: E2 08 00 74 09 80 0D 03 02 00 00 00 00 F8 [17:07:07]Write i2c OK [17:07:07]MH_I2C_Read... [17:07:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:07]Read from MH i2c: E2 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: E2 0B 00 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: E2 0B 00 74 09 00 CE 6A FC 28 B6 A5 89 7A 90 00 B3 [17:07:07]RAPDU: CE 6A FC 28 B6 A5 89 7A 90 00 [17:07:07]wFMCommunicate OK [17:07:07]SAM_PROTO_SignData done [17:07:07]FM_MakeSignedData done [17:07:07]CreateOFDProtocolMessage [17:07:07]wFMCommunicate request_size=4 [17:07:07]MH_SAM_APDU [17:07:07]CAPDU: 80 11 00 00 [17:07:07]Write to MH i2c: E2 08 00 75 09 80 11 00 00 00 00 00 00 F8 [17:07:07]Write i2c OK [17:07:07]MH_I2C_Read... [17:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:07]Read from MH i2c: E2 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: E2 17 00 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: E2 17 00 75 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 43 [17:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:07:07]wFMCommunicate OK [17:07:07]CreateOFDProtocolMessage done [17:07:07]OFDSenderStorePacket 50029 [17:07:07]StoreOFDPacket docnum=50029 [17:07:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3E 01 00 00 8F B2 36 01 A3 66 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 BA 7B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6D C3 00 00 35 04 06 00 EA B4 E3 4D 15 C0 CE 6A FC 28 B6 A5 89 7A [17:07:07]CheckFolder [17:07:07]dirname=/storage/ofd_packets [17:07:07]CheckFolder done [17:07:07]ProducePacketName [17:07:07]name=ofd_packets/00050029 [17:07:07]NVStorageSaveData ofd_packets/00050029 [17:07:07]File name is /storage/ofd_packets/00050029 [17:07:07]Write 348 bytes [17:07:07]NVStorageSaveData done [17:07:07]OFDSenderStorePacket done [17:07:07]KKMCreateOFDPacket done [17:07:07]NVStorageSaveData kkm_last_timestamp [17:07:07]File name is /storage/kkm_last_timestamp [17:07:07]Write 4 bytes [17:07:07]NVStorageSaveData done [17:07:07]ExternCall_PrintAddStr [17:07:07]wPrintStart [17:07:07]Write to MH i2c: 01 00 00 76 09 7F [17:07:07]Write i2c OK [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: 01 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: 01 07 00 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: 01 07 00 76 09 00 00 00 00 00 FF 0F 94 [17:07:07]RasterBufferAndPrint [17:07:07]line Счет N : (3)190159 [17:07:07]line ИНН: 02508201610067 [17:07:07]line Контрольно-Кассовый Чек [17:07:07]line ПРОДАЖА [17:07:07]line Товар: 4700003010032 [17:07:07]line Чай хол Let`s Go! чер персик ПЭТ 0,5л [17:07:07]line 1.000 * 50.00 [17:07:07]line = 50.00 [17:07:07]line НДС 12% НСП 1% [17:07:07]line > о реализуемом товаре [17:07:07]line ИТОГО: 50.00 [17:07:07]line НСП 1% : 0.44 [17:07:07]line НДС 12% : 5.31 [17:07:07]line Наличными: 50.00 [17:07:07]line Безнал.: 0.00 [17:07:07]line Место: АЗС № 95 "Партнер Нефть" [17:07:07]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:07:07]line СНО: Общий режим [17:07:07]line Чек 136 19.08.2024 17:07 [17:07:07]line Смена: 467 ФФД: 1.0 [17:07:07]line ЗНМ: 0300000078 [17:07:07]line РНМ: 0000000000092546 [17:07:07]line Версия ККМ: 001 [17:07:07]line ФМ: 0000000000871800 [17:07:07]line ФД: 50029 [17:07:07]line ФПД: 258062628492736 [17:07:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T170706&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50029&fm=258062628492736&tin=02508201610067®Number=0000000000092546&sum=5000 [17:07:07]line 0 [17:07:07]OFD Sender: Processing packet 50029 [packets to send 21, broken 20] [17:07:07]ProducePacketName [17:07:07]name=ofd_packets/00050029 [17:07:07]OFD Sender: To server: pG, [17:07:07]CommunicateWithHost lk.salyk.kg:30040 [17:07:07]ConnectInit lk.salyk.kg [17:07:07]written 0, free lines is 4095 [17:07:07]Connected sock=10 [17:07:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3E 01 00 00 8F B2 36 01 A3 66 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 BA 7B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6D C3 00 00 35 04 06 00 EA B4 E3 4D 15 C0 CE 6A FC 28 B6 A5 89 7A [17:07:07]Write to MH i2c: 01 00 00 9F 09 A8 [17:07:07]Write i2c OK [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: 01 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: 01 07 00 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: 01 07 00 9F 09 00 00 00 00 00 EB 0C A6 [17:07:07]RasterBufferAndPrint [17:07:07]line [17:07:07]line [17:07:07]line [17:07:07]line [17:07:07]line [17:07:07]written 0, free lines is 3313 [17:07:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0D BA 47 00 FD 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6D C3 00 00 F4 03 04 00 26 26 C3 66 B6 04 01 00 00 F4 A0 01 32 30 62 6E FD [17:07:07]CommunicateWithHost err = 0 [17:07:07]CheckOFDResponse [17:07:07]1017 (14) - 77093643461234 [17:07:07]1041 (16) - 0000000000871800 [17:07:07]1040 (4) - 50029 [17:07:07]1012 (4) - 19.08.2024 11:01 [17:07:07]1206 (1) - 0 [17:07:07]OFD Sender: Remove packet 50029 [17:07:07]ProducePacketName [17:07:07]name=ofd_packets/00050029 [17:07:07]NVStorageDeleteData [17:07:07]MH_Cut [17:07:07]Write to MH i2c: D1 01 00 A6 09 01 81 [17:07:07]Write i2c OK [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: D1 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: D1 01 00 [17:07:07]MH_I2C_Read... [17:07:07]Read from MH i2c: D1 01 00 A6 09 00 80 [17:07:07]Write to MH i2c: 01 00 00 A7 09 B0 [17:07:07]Write i2c OK [17:07:07]MH_I2C_Read... [17:07:08]OFD Sender: No OFD packet to send [17:07:08]*** Cut start [17:07:08]*** Purtial cut [17:07:08]*** CUTSNS_PIN = 0 [17:07:08]*** Stage 1: CUTSNS_PIN = 1 [17:07:10]Read from MH i2c: 01 [17:07:10]MH_I2C_Read... [17:07:10]*** Stop cut motor [17:07:10]*** Cut end [17:07:10]Read from MH i2c: 01 07 00 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: 01 07 00 A7 09 00 00 00 00 00 FF 0F C5 [17:07:10]process_action close_receipt done [17:07:10]requested_data is exist [17:07:10]produce_requested_data [17:07:10]requested_item fm.sn is exist - process it [17:07:10]wFMCommunicate request_size=4 [17:07:10]MH_SAM_APDU [17:07:10]CAPDU: 80 11 00 00 [17:07:10]Write to MH i2c: E2 08 00 A8 09 80 11 00 00 00 00 00 00 2B [17:07:10]Write i2c OK [17:07:10]MH_I2C_Read... [17:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:10]Read from MH i2c: E2 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: E2 17 00 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: E2 17 00 A8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 76 [17:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:07:10]wFMCommunicate OK [17:07:10]requested_item fd.num is exist - process it [17:07:10]SAM_PROTO_GetFieldsCounters [17:07:10]wFMCommunicate request_size=4 [17:07:10]MH_SAM_APDU [17:07:10]CAPDU: 80 13 00 00 [17:07:10]Write to MH i2c: E2 08 00 A9 09 80 13 00 00 00 00 00 00 2E [17:07:10]Write i2c OK [17:07:10]MH_I2C_Read... [17:07:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:10]Read from MH i2c: E2 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: E2 62 00 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: E2 62 00 A9 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6D C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [17:07:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6D C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:10]wFMCommunicate OK [17:07:10]SAM_PROTO_GetFieldsCounters done [17:07:10]requested_item shift.num is exist - process it [17:07:10]requested_item shift.opened is exist - process it [17:07:10]req_shift_opened [17:07:10]FM_GetShiftState [17:07:10]SAM_PROTO_GetShiftState [17:07:10]wFMCommunicate request_size=4 [17:07:10]MH_SAM_APDU [17:07:10]CAPDU: 80 13 01 00 [17:07:10]Write to MH i2c: E2 08 00 AA 09 80 13 01 00 00 00 00 00 30 [17:07:10]Write i2c OK [17:07:10]MH_I2C_Read... [17:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:10]Read from MH i2c: E2 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: E2 0E 00 [17:07:10]MH_I2C_Read... [17:07:10]Read from MH i2c: E2 0E 00 AA 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 EA [17:07:10]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:07:10]wFMCommunicate OK [17:07:10]SAM_PROTO_GetShiftState done [17:07:10]FM_GetShiftState done [17:07:10]req_shift_opened done [17:07:10]requested_item shift.open_date is exist - process it [17:07:10]req_shift_open_date [17:07:10]req_shift_open_date done [17:07:10]produce_requested_data done [17:07:10]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50029,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [17:07:10]process_action_free close_receipt [17:07:10]json_value_free [17:07:10]json_value_free done [17:07:10]process_json_proto returns [17:07:10]Send response to host [17:07:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50029,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [17:07:10]free response buf [17:07:10]execute_script done [17:07:10]execute_script returns [17:07:10]free content buf [17:07:10]Sock 7.Close socket [17:07:10]Sock 7.Thread stoped [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:06]int [17:14:06]Write to MH i2c: 01 00 00 AB 09 B4 [17:14:06]*** FLAG_PRN_KEY set [17:14:06]Write i2c OK [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 07 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 07 00 AB 09 00 08 00 00 00 FF 0F D1 [17:14:06]state=0 [17:14:06]Key pressed [17:14:06]Feed [17:14:06]Write to MH i2c: D8 00 00 AC 09 8C [17:14:06]Write i2c OK [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: D8 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: D8 01 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: D8 01 00 AC 09 00 8D [17:14:06]int [17:14:06]Write to MH i2c: 01 00 00 AD 09 B6 [17:14:06]Write i2c OK [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 07 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 07 00 AD 09 00 48 00 00 00 3C 00 41 [17:14:06]state=2 [17:14:06]Key pressed [17:14:06]int [17:14:06]Write to MH i2c: 01 00 00 AE 09 B7 [17:14:06]*** FLAG_PRN_KEY reset [17:14:06]Write i2c OK [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 07 00 [17:14:06]MH_I2C_Read... [17:14:06]Read from MH i2c: 01 07 00 AE 09 00 00 00 00 00 FF 0F CC [17:14:06]state=2 [17:14:06]Stop feed [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]accept exits with 9 [17:14:53]New connection [17:14:53]New thread 3066469732 created [17:14:53]Thread 3066613092 joined [17:14:53]Waiting for new connection... [17:14:53] Sock 9.Parse request [17:14:53]Sock 9.Check first char [17:14:53]Sock 9.First char is OK [17:14:53]request: POST /json_proto HTTP/1.0 [17:14:53]Method: POST [17:14:53]URL: /json_proto [17:14:53]Method is POST - this is cgi request [17:14:53]url: /json_proto [17:14:53]query_string will be loaded in cgi processing [17:14:53]execute_cgi json_proto POST (null) [17:14:53]execute_cgi path=json_proto method=POST [17:14:53]POST find Content-Length [17:14:53]Host: 172.17.46.196:8080 [17:14:53]Content-Length: 756 [17:14:53]Content-Type: application/json [17:14:53] [17:14:53]POST finish read [17:14:53]Found Content-Length = 756 [17:14:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11327991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106662", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:53]execute_script... [17:14: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)11327991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106662", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:53]POST & json_proto [17:14:53]process_json_proto [17:14:53]json parsed OK: [17:14:53]protocol is kg_v1.0 [17:14:53]action value=close_receipt [17:14:53]process_action close_receipt [17:14:53]cmd_close_receipt [17:14:53]MH_GetDate [17:14:53]Write to MH i2c: F0 00 00 AF 09 A7 [17:14:53]Write i2c OK [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: F0 [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: F0 09 00 [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: F0 09 00 AF 09 00 8E 7D C3 66 C4 85 C2 66 55 [17:14:53]GetLastDocTimeStamp 1724087226 [17:14:53]current date 1724087694 [17:14:53]FM_GetShiftState [17:14:53]SAM_PROTO_GetShiftState [17:14:53]wFMCommunicate request_size=4 [17:14:53]MH_SAM_APDU [17:14:53]CAPDU: 80 13 01 00 [17:14:53]Write to MH i2c: E2 08 00 B0 09 80 13 01 00 00 00 00 00 36 [17:14:53]Write i2c OK [17:14:53]MH_I2C_Read... [17:14:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:53]Read from MH i2c: E2 [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: E2 0E 00 [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: E2 0E 00 B0 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 F0 [17:14:53]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:14:53]wFMCommunicate OK [17:14:53]SAM_PROTO_GetShiftState done [17:14:53]FM_GetShiftState done [17:14:53]opened in 1724026361 [17:14:53]opened+sec_in_day 1724112761 [17:14:53]quantity*price = 0 [17:14:53]sum+1 = 1 [17:14:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 137 19.08.2024 17:14 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106662 ФМ: 0000000000871800 ФД: 50030 ФПД: 90809079435649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T171454&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50030&fm=90809079435649&tin=02508201610067®Number=0000000000092546&sum=0 [17:14:54]StoreToDocumentArchive [17:14:54]shift 467 fd 50030 [17:14:54]save to /storage/0467/doc_00050030 [17:14:54]save last doc name /storage/0467/doc_00050030 to /storage/kkm_last_doc_name [17:14:54]save OK [17:14:54]Clear old archive folders... [17:14:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:54]tlvbuf is 0127E6E0 [17:14:54]SAM_PROTO_ClearQueue [17:14:54]wFMCommunicate request_size=4 [17:14:54]MH_SAM_APDU [17:14:54]CAPDU: 80 09 00 00 [17:14:54]Write to MH i2c: E2 08 00 BD 09 80 09 00 00 00 00 00 00 38 [17:14:54]Write i2c OK [17:14:54]MH_I2C_Read... [17:14:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:54]Read from MH i2c: E2 [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: E2 03 00 [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: E2 03 00 BD 09 00 90 00 3A [17:14:54]RAPDU: 90 00 [17:14:54]wFMCommunicate OK [17:14:54]SAM_PROTO_ClearQueue done [17:14:54]KKMCreateOFDPacket [17:14:54]OFDProtocolAddRootSTLVToBuf [17:14:54]FM_MakeSignedData [17:14:54]FM_MakeSignedData [17:14:54]SAM_PROTO_SignData [17:14:54]wFMCommunicate request_size=4 [17:14:54]MH_SAM_APDU [17:14:54]CAPDU: 80 0D 01 02 [17:14:54]Write to MH i2c: E2 08 00 BE 09 80 0D 01 02 00 00 00 00 40 [17:14:54]Write i2c OK [17:14:54]MH_I2C_Read... [17:14:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:54]Read from MH i2c: E2 [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: E2 03 00 [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: E2 03 00 BE 09 00 90 00 3B [17:14:54]RAPDU: 90 00 [17:14:54]wFMCommunicate OK [17:14:54]wFMCommunicate request_size=255 [17:14:54]MH_SAM_APDU [17:14:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8E 7D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6E C3 00 00 35 04 06 00 52 [17:14:54]Write to MH i2c: E2 02 01 BF 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8E 7D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6E C3 00 00 35 04 06 00 52 00 00 8D [17:14:55]Write i2c OK [17:14:55]MH_I2C_Read... [17:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:55]Read from MH i2c: E2 [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: E2 03 00 [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: E2 03 00 BF 09 00 90 00 3C [17:14:55]RAPDU: 90 00 [17:14:55]wFMCommunicate OK [17:14:55]wFMCommunicate request_size=10 [17:14:55]MH_SAM_APDU [17:14:55]CAPDU: 80 0D 02 02 05 97 22 EC 11 81 [17:14:55]Write to MH i2c: E2 0D 00 C0 09 80 0D 02 02 05 00 97 22 EC 11 81 00 00 84 [17:14:55]Write i2c OK [17:14:55]MH_I2C_Read... [17:14:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:55]Read from MH i2c: E2 [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: E2 03 00 [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: E2 03 00 C0 09 00 90 00 3D [17:14:55]RAPDU: 90 00 [17:14:55]wFMCommunicate OK [17:14:55]wFMCommunicate request_size=4 [17:14:55]MH_SAM_APDU [17:14:55]CAPDU: 80 0D 03 02 [17:14:55]Write to MH i2c: E2 08 00 C1 09 80 0D 03 02 00 00 00 00 45 [17:14:55]Write i2c OK [17:14:55]MH_I2C_Read... [17:14:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:55]Read from MH i2c: E2 [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: E2 0B 00 [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: E2 0B 00 C1 09 00 54 06 F7 2D 2B 43 8F FD 90 00 BE [17:14:55]RAPDU: 54 06 F7 2D 2B 43 8F FD 90 00 [17:14:55]wFMCommunicate OK [17:14:55]SAM_PROTO_SignData done [17:14:55]FM_MakeSignedData done [17:14:55]CreateOFDProtocolMessage [17:14:55]wFMCommunicate request_size=4 [17:14:55]MH_SAM_APDU [17:14:55]CAPDU: 80 11 00 00 [17:14:55]Write to MH i2c: E2 08 00 C2 09 80 11 00 00 00 00 00 00 45 [17:14:55]Write i2c OK [17:14:55]MH_I2C_Read... [17:14:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:55]Read from MH i2c: E2 [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: E2 17 00 [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: E2 17 00 C2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 90 [17:14:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:14:55]wFMCommunicate OK [17:14:55]CreateOFDProtocolMessage done [17:14:55]OFDSenderStorePacket 50030 [17:14:55]StoreOFDPacket docnum=50030 [17:14:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 18 AF 07 01 99 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8E 7D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6E C3 00 00 35 04 06 00 52 97 22 EC 11 81 54 06 F7 2D 2B 43 8F FD [17:14:55]CheckFolder [17:14:55]dirname=/storage/ofd_packets [17:14:55]CheckFolder done [17:14:55]ProducePacketName [17:14:55]name=ofd_packets/00050030 [17:14:55]NVStorageSaveData ofd_packets/00050030 [17:14:55]File name is /storage/ofd_packets/00050030 [17:14:55]Write 301 bytes [17:14:55]NVStorageSaveData done [17:14:55]OFDSenderStorePacket done [17:14:55]KKMCreateOFDPacket done [17:14:55]NVStorageSaveData kkm_last_timestamp [17:14:55]File name is /storage/kkm_last_timestamp [17:14:55]Write 4 bytes [17:14:55]NVStorageSaveData done [17:14:55]ExternCall_PrintAddStr [17:14:55]wPrintStart [17:14:55]Write to MH i2c: 01 00 00 C3 09 CC [17:14:55]Write i2c OK [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: 01 [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: 01 07 00 [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: 01 07 00 C3 09 00 00 00 00 00 FF 0F E1 [17:14:55]RasterBufferAndPrint [17:14:55]line Счет N : (1)11327991 [17:14:55]line ИНН: 02508201610067 [17:14:55]line Контрольно-Кассовый Чек [17:14:55]line ПРОДАЖА [17:14:55]line ТРК (МРК, ГНК) : 12 [17:14:55]line Товар: 2710124130 [17:14:55]line Аи-92-К-4 [17:14:55]line 10.000 * 0.00 [17:14:55]line = 0.00 [17:14:55]line НДС 12% НСП 1% [17:14:55]line > о реализуемом товаре [17:14:55]line ИТОГО: 0.00 [17:14:55]line НСП 1% : 0.00 [17:14:55]line НДС 12% : 0.00 [17:14:55]line Наличными: 0.00 [17:14:55]line Безнал.: 0.00 [17:14:55]line Место: АЗС № 95 "Партнер Нефть" [17:14:55]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:14:55]line СНО: Общий режим [17:14:55]line Чек 137 19.08.2024 17:14 [17:14:55]line Смена: 467 ФФД: 1.0 [17:14:55]line ЗНМ: 0300000078 [17:14:55]line РНМ: 0000000000092546 [17:14:55]line Версия ККМ: 001 [17:14:55]line Талоны: ТК ГПНА Online [17:14:55]line 30106662 [17:14:55]line ФМ: 0000000000871800 [17:14:55]line ФД: 50030 [17:14:55]line ФПД: 90809079435649 [17:14:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T171454&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50030&fm=90809079435649&tin=02508201610067®Number=0000000000092546&sum=0 [17:14:55]written 0, free lines is 4095 [17:14:55]OFD Sender: Processing packet 50030 [packets to send 21, broken 20] [17:14:55]ProducePacketName [17:14:55]name=ofd_packets/00050030 [17:14:55]OFD Sender: To server: pG, [17:14:55]CommunicateWithHost lk.salyk.kg:30040 [17:14:55]ConnectInit lk.salyk.kg [17:14:55]Connected sock=10 [17:14:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 18 AF 07 01 99 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 8E 7D C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6E C3 00 00 35 04 06 00 52 97 22 EC 11 81 54 06 F7 2D 2B 43 8F FD [17:14:56]Write to MH i2c: 01 00 00 ED 09 F6 [17:14:56]Write i2c OK [17:14:56]MH_I2C_Read... [17:14:56]Read from MH i2c: 01 [17:14:56]MH_I2C_Read... [17:14:56]Read from MH i2c: 01 07 00 [17:14:56]MH_I2C_Read... [17:14:56]Read from MH i2c: 01 07 00 ED 09 00 00 00 00 00 E6 0C EF [17:14:56]RasterBufferAndPrint [17:14:56]line [17:14:56]line [17:14:56]line [17:14:56]line [17:14:56]line [17:14:56]written 0, free lines is 3308 [17:14:56]MH_Cut [17:14:56]Write to MH i2c: D1 01 00 F4 09 01 CF [17:14:56]Write i2c OK [17:14:56]MH_I2C_Read... [17:14:56]Read from MH i2c: D1 [17:14:56]MH_I2C_Read... [17:14:56]Read from MH i2c: D1 01 00 [17:14:56]MH_I2C_Read... [17:14:56]Read from MH i2c: D1 01 00 F4 09 00 CE [17:14:56]Write to MH i2c: 01 00 00 F5 09 FE [17:14:56]Write i2c OK [17:14:56]MH_I2C_Read... [17:14:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 91 29 47 00 04 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6E C3 00 00 F4 03 04 00 FB 27 C3 66 B6 04 01 00 00 57 98 4A 9A D8 90 57 36 [17:14:56]CommunicateWithHost err = 0 [17:14:56]CheckOFDResponse [17:14:56]1017 (14) - 77093643461234 [17:14:56]1041 (16) - 0000000000871800 [17:14:56]1040 (4) - 50030 [17:14:56]1012 (4) - 19.08.2024 11:09 [17:14:56]1206 (1) - 0 [17:14:56]OFD Sender: Remove packet 50030 [17:14:56]ProducePacketName [17:14:56]name=ofd_packets/00050030 [17:14:56]NVStorageDeleteData [17:14:56]OFD Sender: No OFD packet to send [17:14:56]*** Cut start [17:14:56]*** Purtial cut [17:14:56]*** Stage 1: CUTSNS_PIN = 1 [17:14:57]Read from MH i2c: 01 [17:14:57]MH_I2C_Read... [17:14:57]*** Stop cut motor [17:14:57]*** Cut end [17:14:57]Read from MH i2c: 01 07 00 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: 01 07 00 F5 09 00 00 00 00 00 FF 0F 13 [17:14:57]process_action close_receipt done [17:14:57]requested_data is exist [17:14:57]produce_requested_data [17:14:57]requested_item fm.sn is exist - process it [17:14:57]wFMCommunicate request_size=4 [17:14:57]MH_SAM_APDU [17:14:57]CAPDU: 80 11 00 00 [17:14:57]Write to MH i2c: E2 08 00 F6 09 80 11 00 00 00 00 00 00 79 [17:14:57]Write i2c OK [17:14:57]MH_I2C_Read... [17:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:57]Read from MH i2c: E2 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 17 00 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 17 00 F6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C4 [17:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:14:57]wFMCommunicate OK [17:14:57]requested_item fd.num is exist - process it [17:14:57]SAM_PROTO_GetFieldsCounters [17:14:57]wFMCommunicate request_size=4 [17:14:57]MH_SAM_APDU [17:14:57]CAPDU: 80 13 00 00 [17:14:57]Write to MH i2c: E2 08 00 F7 09 80 13 00 00 00 00 00 00 7C [17:14:57]Write i2c OK [17:14:57]MH_I2C_Read... [17:14:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:57]Read from MH i2c: E2 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 62 00 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 62 00 F7 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6E C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [17:14:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6E C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:57]wFMCommunicate OK [17:14:57]SAM_PROTO_GetFieldsCounters done [17:14:57]requested_item shift.num is exist - process it [17:14:57]requested_item shift.opened is exist - process it [17:14:57]req_shift_opened [17:14:57]FM_GetShiftState [17:14:57]SAM_PROTO_GetShiftState [17:14:57]wFMCommunicate request_size=4 [17:14:57]MH_SAM_APDU [17:14:57]CAPDU: 80 13 01 00 [17:14:57]Write to MH i2c: E2 08 00 F8 09 80 13 01 00 00 00 00 00 7E [17:14:57]Write i2c OK [17:14:57]MH_I2C_Read... [17:14:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:57]Read from MH i2c: E2 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 0E 00 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 0E 00 F8 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 38 [17:14:57]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:14:57]wFMCommunicate OK [17:14:57]SAM_PROTO_GetShiftState done [17:14:57]FM_GetShiftState done [17:14:57]req_shift_opened done [17:14:57]requested_item shift.open_date is exist - process it [17:14:57]req_shift_open_date [17:14:57]req_shift_open_date done [17:14:57]produce_requested_data done [17:14:57]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50030,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [17:14:57]process_action_free close_receipt [17:14:57]json_value_free [17:14:57]json_value_free done [17:14:57]process_json_proto returns [17:14:57]Send response to host [17:14:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50030,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [17:14:57]free response buf [17:14:57]execute_script done [17:14:57]execute_script returns [17:14:57]free content buf [17:14:57]Sock 9.Close socket [17:14:57]Sock 9.Thread stoped [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:27]accept exits with 7 [17:17:27]New connection [17:17:27]New thread 3066613092 created [17:17:27]Thread 3066469732 joined [17:17:27]Waiting for new connection... [17:17:27] Sock 7.Parse request [17:17:27]Sock 7.Check first char [17:17:27]Sock 7.First char is OK [17:17:27]request: POST /json_proto HTTP/1.0 [17:17:27]Method: POST [17:17:27]URL: /json_proto [17:17:27]Method is POST - this is cgi request [17:17:27]url: /json_proto [17:17:27]query_string will be loaded in cgi processing [17:17:27]execute_cgi json_proto POST (null) [17:17:27]execute_cgi path=json_proto method=POST [17:17:27]POST find Content-Length [17:17:27]Host: 172.17.46.196:8080 [17:17:27]Content-Length: 1288 [17:17:27]Content-Type: application/json [17:17:27] [17:17:27]POST finish read [17:17:27]Found Content-Length = 1288 [17:17:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190160", "tax_sys" : 0, "items" : [ { "code": "4823063106498", "name": "\u0421\u0430\u0434\u043E\u0447\u043E\u043A 0,2 \u042F\u0431\u043B\u043E\u0447\u043D\u044B\u0439 \u0441\u043E\u043A 1/200", "price" : 45.00, "quantity" : 2.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:27]execute_script... [17:17:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190160", "tax_sys" : 0, "items" : [ { "code": "4823063106498", "name": "\u0421\u0430\u0434\u043E\u0447\u043E\u043A 0,2 \u042F\u0431\u043B\u043E\u0447\u043D\u044B\u0439 \u0441\u043E\u043A 1/200", "price" : 45.00, "quantity" : 2.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:27]POST & json_proto [17:17:27]process_json_proto [17:17:27]json parsed OK: [17:17:27]protocol is kg_v1.0 [17:17:27]action value=close_receipt [17:17:27]process_action close_receipt [17:17:27]cmd_close_receipt [17:17:27]MH_GetDate [17:17:27]Write to MH i2c: F0 00 00 F9 09 F1 [17:17:27]Write i2c OK [17:17:27]MH_I2C_Read... [17:17:27]Read from MH i2c: F0 [17:17:27]MH_I2C_Read... [17:17:27]Read from MH i2c: F0 09 00 [17:17:27]MH_I2C_Read... [17:17:27]Read from MH i2c: F0 09 00 F9 09 00 28 7E C3 66 C4 85 C2 66 3A [17:17:27]GetLastDocTimeStamp 1724087694 [17:17:27]current date 1724087848 [17:17:27]FM_GetShiftState [17:17:27]SAM_PROTO_GetShiftState [17:17:27]wFMCommunicate request_size=4 [17:17:27]MH_SAM_APDU [17:17:27]CAPDU: 80 13 01 00 [17:17:27]Write to MH i2c: E2 08 00 FA 09 80 13 01 00 00 00 00 00 80 [17:17:27]Write i2c OK [17:17:27]MH_I2C_Read... [17:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:27]Read from MH i2c: E2 [17:17:27]MH_I2C_Read... [17:17:27]Read from MH i2c: E2 0E 00 [17:17:27]MH_I2C_Read... [17:17:27]Read from MH i2c: E2 0E 00 FA 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 3A [17:17:27]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:17:27]wFMCommunicate OK [17:17:27]SAM_PROTO_GetShiftState done [17:17:27]FM_GetShiftState done [17:17:27]opened in 1724026361 [17:17:27]opened+sec_in_day 1724112761 [17:17:27]quantity*price = 9000 [17:17:27]sum+1 = 9001 [17:17:27]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173617 Жев Orbit Eucalyptus 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.59 Наличными: 0.00 Безнал.: 175.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 138 19.08.2024 17:17 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 50031 ФПД: 157202314353008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T171728&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50031&fm=157202314353008&tin=02508201610067®Number=0000000000092546&sum=17500 0 [17:17:28]StoreToDocumentArchive [17:17:28]shift 467 fd 50031 [17:17:28]save to /storage/0467/doc_00050031 [17:17:28]save last doc name /storage/0467/doc_00050031 to /storage/kkm_last_doc_name [17:17:28]save OK [17:17:28]Clear old archive folders... [17:17:28]ProcessDocumentItem done err = 0, tmpTLVsize=481 [17:17:28]tlvbuf is 01254690 [17:17:28]SAM_PROTO_ClearQueue [17:17:28]wFMCommunicate request_size=4 [17:17:28]MH_SAM_APDU [17:17:28]CAPDU: 80 09 00 00 [17:17:28]Write to MH i2c: E2 08 00 07 0A 80 09 00 00 00 00 00 00 83 [17:17:28]Write i2c OK [17:17:28]MH_I2C_Read... [17:17:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:28]Read from MH i2c: E2 [17:17:28]MH_I2C_Read... [17:17:28]Read from MH i2c: E2 03 00 [17:17:28]MH_I2C_Read... [17:17:28]Read from MH i2c: E2 03 00 07 0A 00 90 00 85 [17:17:28]RAPDU: 90 00 [17:17:28]wFMCommunicate OK [17:17:28]SAM_PROTO_ClearQueue done [17:17:28]KKMCreateOFDPacket [17:17:28]OFDProtocolAddRootSTLVToBuf [17:17:28]FM_MakeSignedData [17:17:28]FM_MakeSignedData [17:17:28]SAM_PROTO_SignData [17:17:28]wFMCommunicate request_size=4 [17:17:28]MH_SAM_APDU [17:17:28]CAPDU: 80 0D 01 02 [17:17:28]Write to MH i2c: E2 08 00 08 0A 80 0D 01 02 00 00 00 00 8B [17:17:28]Write i2c OK [17:17:28]MH_I2C_Read... [17:17:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:29]Read from MH i2c: E2 [17:17:29]MH_I2C_Read... [17:17:29]Read from MH i2c: E2 03 00 [17:17:29]MH_I2C_Read... [17:17:29]Read from MH i2c: E2 03 00 08 0A 00 90 00 86 [17:17:29]RAPDU: 90 00 [17:17:29]wFMCommunicate OK [17:17:29]wFMCommunicate request_size=255 [17:17:29]MH_SAM_APDU [17:17:29]CAPDU: 80 0D 02 02 FA 03 00 E1 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 34 39 38 06 04 30 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 AF D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 31 2F 32 30 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 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 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 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 [17:17:29]Write to MH i2c: E2 02 01 09 0A 80 0D 02 02 FA 00 03 00 E1 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 34 39 38 06 04 30 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 AF D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 31 2F 32 30 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 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 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 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 00 00 2A [17:17:29]Write i2c OK [17:17:29]MH_I2C_Read... [17:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:29]Read from MH i2c: E2 [17:17:29]MH_I2C_Read... [17:17:29]Read from MH i2c: E2 03 00 [17:17:29]MH_I2C_Read... [17:17:29]Read from MH i2c: E2 03 00 09 0A 00 90 00 87 [17:17:29]RAPDU: 90 00 [17:17:29]wFMCommunicate OK [17:17:29]wFMCommunicate request_size=240 [17:17:29]MH_SAM_APDU [17:17:29]CAPDU: 80 0D 02 02 EB D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 28 7E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6F C3 00 00 35 04 06 00 8E F9 84 1A D9 70 [17:17:29]Write to MH i2c: E2 F3 00 0A 0A 80 0D 02 02 EB 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 28 7E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6F C3 00 00 35 04 06 00 8E F9 84 1A D9 70 00 00 C1 [17:17:29]Write i2c OK [17:17:29]MH_I2C_Read... [17:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:29]Read from MH i2c: E2 [17:17:29]MH_I2C_Read... [17:17:29]Read from MH i2c: E2 03 00 [17:17:29]MH_I2C_Read... [17:17:29]Read from MH i2c: E2 03 00 0A 0A 00 90 00 88 [17:17:29]RAPDU: 90 00 [17:17:29]wFMCommunicate OK [17:17:29]wFMCommunicate request_size=4 [17:17:29]MH_SAM_APDU [17:17:29]CAPDU: 80 0D 03 02 [17:17:29]Write to MH i2c: E2 08 00 0B 0A 80 0D 03 02 00 00 00 00 90 [17:17:29]Write i2c OK [17:17:29]MH_I2C_Read... [17:17:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:29]Read from MH i2c: E2 [17:17:29]MH_I2C_Read... [17:17:29]Read from MH i2c: E2 0B 00 [17:17:29]MH_I2C_Read... [17:17:29]Read from MH i2c: E2 0B 00 0B 0A 00 2E 98 1B AE 96 7A 87 18 90 00 CF [17:17:29]RAPDU: 2E 98 1B AE 96 7A 87 18 90 00 [17:17:29]wFMCommunicate OK [17:17:29]SAM_PROTO_SignData done [17:17:29]FM_MakeSignedData done [17:17:29]CreateOFDProtocolMessage [17:17:29]wFMCommunicate request_size=4 [17:17:29]MH_SAM_APDU [17:17:29]CAPDU: 80 11 00 00 [17:17:29]Write to MH i2c: E2 08 00 0C 0A 80 11 00 00 00 00 00 00 90 [17:17:29]Write i2c OK [17:17:29]MH_I2C_Read... [17:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:29]Read from MH i2c: E2 [17:17:29]MH_I2C_Read... [17:17:29]Read from MH i2c: E2 17 00 [17:17:29]MH_I2C_Read... [17:17:29]Read from MH i2c: E2 17 00 0C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DB [17:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:17:29]wFMCommunicate OK [17:17:29]CreateOFDProtocolMessage done [17:17:29]OFDSenderStorePacket 50031 [17:17:29]StoreOFDPacket docnum=50031 [17:17:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 F5 01 00 00 0D 67 ED 01 81 7F 5A 03 01 00 03 00 E1 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 34 39 38 06 04 30 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 AF D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 31 2F 32 30 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 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 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 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 28 7E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6F C3 00 00 35 04 06 00 8E F9 84 1A D9 70 2E 98 1B AE 96 7A 87 18 [17:17:29]CheckFolder [17:17:29]dirname=/storage/ofd_packets [17:17:29]CheckFolder done [17:17:29]ProducePacketName [17:17:29]name=ofd_packets/00050031 [17:17:29]NVStorageSaveData ofd_packets/00050031 [17:17:29]File name is /storage/ofd_packets/00050031 [17:17:29]Write 531 bytes [17:17:29]NVStorageSaveData done [17:17:29]OFDSenderStorePacket done [17:17:29]KKMCreateOFDPacket done [17:17:29]NVStorageSaveData kkm_last_timestamp [17:17:29]File name is /storage/kkm_last_timestamp [17:17:29]Write 4 bytes [17:17:29]NVStorageSaveData done [17:17:29]ExternCall_PrintAddStr [17:17:29]wPrintStart [17:17:29]Write to MH i2c: 01 00 00 0D 0A 17 [17:17:29]Write i2c OK [17:17:29]MH_I2C_Read... [17:17:29]Read from MH i2c: 01 [17:17:29]MH_I2C_Read... [17:17:29]Read from MH i2c: 01 07 00 [17:17:29]MH_I2C_Read... [17:17:29]Read from MH i2c: 01 07 00 0D 0A 00 00 00 00 00 FF 0F 2C [17:17:29]RasterBufferAndPrint [17:17:29]line Счет N : (3)190160 [17:17:29]line ИНН: 02508201610067 [17:17:29]line Контрольно-Кассовый Чек [17:17:29]line ПРОДАЖА [17:17:29]line Товар: 4823063106498 [17:17:29]line Садочок 0,2 Яблочный сок 1/200 [17:17:29]line 2.000 * 45.00 [17:17:29]line = 90.00 [17:17:29]line НДС 12% НСП 1% [17:17:29]line > о реализуемом товаре [17:17:29]line Товар: 4700000160211 [17:17:29]line Вода Легенда 0,5л [17:17:29]line 1.000 * 40.00 [17:17:29]line = 40.00 [17:17:29]line НДС 12% НСП 1% [17:17:29]line > о реализуемом товаре [17:17:29]line Товар: 50173617 [17:17:29]line Жев Orbit Eucalyptus [17:17:29]line 1.000 * 45.00 [17:17:29]line = 45.00 [17:17:29]line НДС 12% НСП 1% [17:17:29]line > о реализуемом товаре [17:17:29]line ИТОГО: 175.00 [17:17:29]line НСП 1% : 1.55 [17:17:29]line НДС 12% : 18.59 [17:17:29]line Наличными: 0.00 [17:17:29]line Безнал.: 175.00 [17:17:29]line Место: АЗС № 95 "Партнер Нефть" [17:17:29]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:17:29]line СНО: Общий режим [17:17:29]line Чек 138 19.08.2024 17:17 [17:17:29]line Смена: 467 ФФД: 1.0 [17:17:29]line ЗНМ: 0300000078 [17:17:29]line РНМ: 0000000000092546 [17:17:29]line Версия ККМ: 001 [17:17:29]line Платежная система: O! деньги [17:17:29]line ФМ: 0000000000871800 [17:17:29]line ФД: 50031 [17:17:29]line ФПД: 157202314353008 [17:17:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T171728&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50031&fm=157202314353008&tin=02508201610067®Number=0000000000092546&sum=17500 [17:17:29]line 0 [17:17:29]written 0, free lines is 4095 [17:17:30]OFD Sender: Processing packet 50031 [packets to send 21, broken 20] [17:17:30]ProducePacketName [17:17:30]name=ofd_packets/00050031 [17:17:30]OFD Sender: To server: pG, [17:17:30]CommunicateWithHost lk.salyk.kg:30040 [17:17:30]ConnectInit lk.salyk.kg [17:17:30]Connected sock=10 [17:17:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 F5 01 00 00 0D 67 ED 01 81 7F 5A 03 01 00 03 00 E1 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 32 33 30 36 33 31 30 36 34 39 38 06 04 30 00 D0 A1 D0 B0 D0 B4 D0 BE D1 87 D0 BE D0 BA 20 30 2C 32 20 D0 AF D0 B1 D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D1 81 D0 BE D0 BA 20 31 2F 32 30 30 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 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 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 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 28 7E C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6F C3 00 00 35 04 06 00 8E F9 84 1A D9 70 2E 98 1B AE 96 7A 87 18 [17:17:30]Write to MH i2c: 01 00 00 44 0A 4E [17:17:30]Write i2c OK [17:17:30]MH_I2C_Read... [17:17:30]Read from MH i2c: 01 [17:17:30]MH_I2C_Read... [17:17:30]Read from MH i2c: 01 07 00 [17:17:30]MH_I2C_Read... [17:17:30]Read from MH i2c: 01 07 00 44 0A 00 00 00 00 00 F8 0B 58 [17:17:30]RasterBufferAndPrint [17:17:30]line [17:17:30]line [17:17:30]line [17:17:30]line [17:17:30]line [17:17:30]written 0, free lines is 3070 [17:17:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 7C 45 47 00 82 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6F C3 00 00 F4 03 04 00 95 28 C3 66 B6 04 01 00 00 D1 3D 97 8D 6C 1F 52 8A [17:17:30]CommunicateWithHost err = 0 [17:17:30]CheckOFDResponse [17:17:30]1017 (14) - 77093643461234 [17:17:30]1041 (16) - 0000000000871800 [17:17:30]1040 (4) - 50031 [17:17:30]1012 (4) - 19.08.2024 11:12 [17:17:30]1206 (1) - 0 [17:17:30]OFD Sender: Remove packet 50031 [17:17:30]ProducePacketName [17:17:30]name=ofd_packets/00050031 [17:17:30]NVStorageDeleteData [17:17:30]MH_Cut [17:17:30]Write to MH i2c: D1 01 00 4B 0A 01 27 [17:17:30]Write i2c OK [17:17:30]MH_I2C_Read... [17:17:30]Read from MH i2c: D1 [17:17:30]MH_I2C_Read... [17:17:30]Read from MH i2c: D1 01 00 [17:17:30]MH_I2C_Read... [17:17:30]Read from MH i2c: D1 01 00 4B 0A 00 26 [17:17:30]Write to MH i2c: 01 00 00 4C 0A 56 [17:17:30]Write i2c OK [17:17:30]MH_I2C_Read... [17:17:31]OFD Sender: No OFD packet to send [17:17:31]*** Cut start [17:17:31]*** Purtial cut [17:17:31]*** CUTSNS_PIN = 0 [17:17:31]*** Stage 1: CUTSNS_PIN = 1 [17:17:33]Read from MH i2c: 01 [17:17:33]MH_I2C_Read... [17:17:33]*** Stop cut motor [17:17:33]*** Cut end [17:17:33]Read from MH i2c: 01 07 00 [17:17:33]MH_I2C_Read... [17:17:33]Read from MH i2c: 01 07 00 4C 0A 00 00 00 00 00 FF 0F 6B [17:17:33]process_action close_receipt done [17:17:33]requested_data is exist [17:17:33]produce_requested_data [17:17:33]requested_item fm.sn is exist - process it [17:17:33]wFMCommunicate request_size=4 [17:17:33]MH_SAM_APDU [17:17:33]CAPDU: 80 11 00 00 [17:17:33]Write to MH i2c: E2 08 00 4D 0A 80 11 00 00 00 00 00 00 D1 [17:17:33]Write i2c OK [17:17:33]MH_I2C_Read... [17:17:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:33]Read from MH i2c: E2 [17:17:33]MH_I2C_Read... [17:17:33]Read from MH i2c: E2 17 00 [17:17:33]MH_I2C_Read... [17:17:33]Read from MH i2c: E2 17 00 4D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1C [17:17:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:17:33]wFMCommunicate OK [17:17:33]requested_item fd.num is exist - process it [17:17:33]SAM_PROTO_GetFieldsCounters [17:17:33]wFMCommunicate request_size=4 [17:17:33]MH_SAM_APDU [17:17:33]CAPDU: 80 13 00 00 [17:17:33]Write to MH i2c: E2 08 00 4E 0A 80 13 00 00 00 00 00 00 D4 [17:17:33]Write i2c OK [17:17:33]MH_I2C_Read... [17:17:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:33]Read from MH i2c: E2 [17:17:33]MH_I2C_Read... [17:17:33]Read from MH i2c: E2 62 00 [17:17:33]MH_I2C_Read... [17:17:33]Read from MH i2c: E2 62 00 4E 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6F C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [17:17:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6F C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:33]wFMCommunicate OK [17:17:33]SAM_PROTO_GetFieldsCounters done [17:17:33]requested_item shift.num is exist - process it [17:17:33]requested_item shift.opened is exist - process it [17:17:33]req_shift_opened [17:17:33]FM_GetShiftState [17:17:33]SAM_PROTO_GetShiftState [17:17:33]wFMCommunicate request_size=4 [17:17:33]MH_SAM_APDU [17:17:33]CAPDU: 80 13 01 00 [17:17:33]Write to MH i2c: E2 08 00 4F 0A 80 13 01 00 00 00 00 00 D6 [17:17:33]Write i2c OK [17:17:33]MH_I2C_Read... [17:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:33]Read from MH i2c: E2 [17:17:33]MH_I2C_Read... [17:17:33]Read from MH i2c: E2 0E 00 [17:17:33]MH_I2C_Read... [17:17:33]Read from MH i2c: E2 0E 00 4F 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 90 [17:17:33]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:17:33]wFMCommunicate OK [17:17:33]SAM_PROTO_GetShiftState done [17:17:33]FM_GetShiftState done [17:17:33]req_shift_opened done [17:17:33]requested_item shift.open_date is exist - process it [17:17:33]req_shift_open_date [17:17:33]req_shift_open_date done [17:17:33]produce_requested_data done [17:17:33]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50031,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [17:17:33]process_action_free close_receipt [17:17:33]json_value_free [17:17:33]json_value_free done [17:17:33]process_json_proto returns [17:17:33]Send response to host [17:17:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50031,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [17:17:33]free response buf [17:17:33]execute_script done [17:17:33]execute_script returns [17:17:33]free content buf [17:17:33]Sock 7.Close socket [17:17:33]Sock 7.Thread stoped [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:31]OFD Sender: No OFD packet to send [17:21:36]OFD Sender: No OFD packet to send [17:21:41]OFD Sender: No OFD packet to send [17:21:46]OFD Sender: No OFD packet to send [17:21:51]OFD Sender: No OFD packet to send [17:21:56]OFD Sender: No OFD packet to send [17:22:01]OFD Sender: No OFD packet to send [17:22:06]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:11]OFD Sender: No OFD packet to send [17:24:16]OFD Sender: No OFD packet to send [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]OFD Sender: No OFD packet to send [17:26:46]OFD Sender: No OFD packet to send [17:26:51]OFD Sender: No OFD packet to send [17:26:56]OFD Sender: No OFD packet to send [17:26:58]accept exits with 9 [17:26:58]New connection [17:26:58]New thread 3066469732 created [17:26:58]Thread 3066613092 joined [17:26:58]Waiting for new connection... [17:26:58] Sock 9.Parse request [17:26:58]Sock 9.Check first char [17:26:58]Sock 9.First char is OK [17:26:58]request: POST /json_proto HTTP/1.0 [17:26:58]Method: POST [17:26:58]URL: /json_proto [17:26:58]Method is POST - this is cgi request [17:26:58]url: /json_proto [17:26:58]query_string will be loaded in cgi processing [17:26:58]execute_cgi json_proto POST (null) [17:26:58]execute_cgi path=json_proto method=POST [17:26:58]POST find Content-Length [17:26:58]Host: 172.17.46.196:8080 [17:26:58]Content-Length: 756 [17:26:58]Content-Type: application/json [17:26:58] [17:26:58]POST finish read [17:26:58]Found Content-Length = 756 [17:26:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11328002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30026282", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:58]execute_script... [17:26:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11328002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30026282", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:58]POST & json_proto [17:26:58]process_json_proto [17:26:58]json parsed OK: [17:26:58]protocol is kg_v1.0 [17:26:58]action value=close_receipt [17:26:58]process_action close_receipt [17:26:58]cmd_close_receipt [17:26:58]MH_GetDate [17:26:58]Write to MH i2c: F0 00 00 50 0A 49 [17:26:58]Write i2c OK [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: F0 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: F0 09 00 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: F0 09 00 50 0A 00 63 80 C3 66 C4 85 C2 66 CF [17:26:58]GetLastDocTimeStamp 1724087848 [17:26:58]current date 1724088419 [17:26:58]FM_GetShiftState [17:26:58]SAM_PROTO_GetShiftState [17:26:58]wFMCommunicate request_size=4 [17:26:58]MH_SAM_APDU [17:26:58]CAPDU: 80 13 01 00 [17:26:58]Write to MH i2c: E2 08 00 51 0A 80 13 01 00 00 00 00 00 D8 [17:26:58]Write i2c OK [17:26:58]MH_I2C_Read... [17:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:58]Read from MH i2c: E2 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 0E 00 [17:26:58]MH_I2C_Read... [17:26:58]Read from MH i2c: E2 0E 00 51 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 92 [17:26:58]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:26:58]wFMCommunicate OK [17:26:58]SAM_PROTO_GetShiftState done [17:26:58]FM_GetShiftState done [17:26:58]opened in 1724026361 [17:26:58]opened+sec_in_day 1724112761 [17:26:58]quantity*price = 0 [17:26:58]sum+1 = 1 [17:26:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 139 19.08.2024 17:26 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30026282 ФМ: 0000000000871800 ФД: 50032 ФПД: 182304918966719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172659&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50032&fm=182304918966719&tin=02508201610067®Number=0000000000092546&sum=0 [17:26:59]StoreToDocumentArchive [17:26:59]shift 467 fd 50032 [17:26:59]save to /storage/0467/doc_00050032 [17:26:59]save last doc name /storage/0467/doc_00050032 to /storage/kkm_last_doc_name [17:26:59]save OK [17:26:59]Clear old archive folders... [17:26:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:59]tlvbuf is 011E1AD0 [17:26:59]SAM_PROTO_ClearQueue [17:26:59]wFMCommunicate request_size=4 [17:26:59]MH_SAM_APDU [17:26:59]CAPDU: 80 09 00 00 [17:26:59]Write to MH i2c: E2 08 00 5E 0A 80 09 00 00 00 00 00 00 DA [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:26:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:59]Read from MH i2c: E2 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 03 00 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 03 00 5E 0A 00 90 00 DC [17:26:59]RAPDU: 90 00 [17:26:59]wFMCommunicate OK [17:26:59]SAM_PROTO_ClearQueue done [17:26:59]KKMCreateOFDPacket [17:26:59]OFDProtocolAddRootSTLVToBuf [17:26:59]FM_MakeSignedData [17:26:59]FM_MakeSignedData [17:26:59]SAM_PROTO_SignData [17:26:59]wFMCommunicate request_size=4 [17:26:59]MH_SAM_APDU [17:26:59]CAPDU: 80 0D 01 02 [17:26:59]Write to MH i2c: E2 08 00 5F 0A 80 0D 01 02 00 00 00 00 E2 [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:26:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:59]Read from MH i2c: E2 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 03 00 [17:26:59]MH_I2C_Read... [17:26:59]Read from MH i2c: E2 03 00 5F 0A 00 90 00 DD [17:26:59]RAPDU: 90 00 [17:26:59]wFMCommunicate OK [17:26:59]wFMCommunicate request_size=255 [17:26:59]MH_SAM_APDU [17:26:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 63 80 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 70 C3 00 00 35 04 06 00 A5 [17:26:59]Write to MH i2c: E2 02 01 60 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 63 80 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 70 C3 00 00 35 04 06 00 A5 00 00 95 [17:26:59]Write i2c OK [17:26:59]MH_I2C_Read... [17:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:00]Read from MH i2c: E2 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 03 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 03 00 60 0A 00 90 00 DE [17:27:00]RAPDU: 90 00 [17:27:00]wFMCommunicate OK [17:27:00]wFMCommunicate request_size=10 [17:27:00]MH_SAM_APDU [17:27:00]CAPDU: 80 0D 02 02 05 CE 2B EF 91 BF [17:27:00]Write to MH i2c: E2 0D 00 61 0A 80 0D 02 02 05 00 CE 2B EF 91 BF 00 00 27 [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:00]Read from MH i2c: E2 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 03 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 03 00 61 0A 00 90 00 DF [17:27:00]RAPDU: 90 00 [17:27:00]wFMCommunicate OK [17:27:00]wFMCommunicate request_size=4 [17:27:00]MH_SAM_APDU [17:27:00]CAPDU: 80 0D 03 02 [17:27:00]Write to MH i2c: E2 08 00 62 0A 80 0D 03 02 00 00 00 00 E7 [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:00]Read from MH i2c: E2 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 0B 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 0B 00 62 0A 00 10 F5 75 FC 4A 3B 7F 98 90 00 FA [17:27:00]RAPDU: 10 F5 75 FC 4A 3B 7F 98 90 00 [17:27:00]wFMCommunicate OK [17:27:00]SAM_PROTO_SignData done [17:27:00]FM_MakeSignedData done [17:27:00]CreateOFDProtocolMessage [17:27:00]wFMCommunicate request_size=4 [17:27:00]MH_SAM_APDU [17:27:00]CAPDU: 80 11 00 00 [17:27:00]Write to MH i2c: E2 08 00 63 0A 80 11 00 00 00 00 00 00 E7 [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:00]Read from MH i2c: E2 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 17 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: E2 17 00 63 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 32 [17:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:27:00]wFMCommunicate OK [17:27:00]CreateOFDProtocolMessage done [17:27:00]OFDSenderStorePacket 50032 [17:27:00]StoreOFDPacket docnum=50032 [17:27:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 01 DC 07 01 59 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 63 80 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 70 C3 00 00 35 04 06 00 A5 CE 2B EF 91 BF 10 F5 75 FC 4A 3B 7F 98 [17:27:00]CheckFolder [17:27:00]dirname=/storage/ofd_packets [17:27:00]CheckFolder done [17:27:00]ProducePacketName [17:27:00]name=ofd_packets/00050032 [17:27:00]NVStorageSaveData ofd_packets/00050032 [17:27:00]File name is /storage/ofd_packets/00050032 [17:27:00]Write 301 bytes [17:27:00]NVStorageSaveData done [17:27:00]OFDSenderStorePacket done [17:27:00]KKMCreateOFDPacket done [17:27:00]NVStorageSaveData kkm_last_timestamp [17:27:00]File name is /storage/kkm_last_timestamp [17:27:00]Write 4 bytes [17:27:00]NVStorageSaveData done [17:27:00]ExternCall_PrintAddStr [17:27:00]wPrintStart [17:27:00]Write to MH i2c: 01 00 00 64 0A 6E [17:27:00]OFD Sender: Processing packet 50032 [packets to send 21, broken 20] [17:27:00]ProducePacketName [17:27:00]name=ofd_packets/00050032 [17:27:00]OFD Sender: To server: pG, [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]CommunicateWithHost lk.salyk.kg:30040 [17:27:00]ConnectInit lk.salyk.kg [17:27:00]Read from MH i2c: 01 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: 01 07 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: 01 07 00 64 0A 00 00 00 00 00 FF 0F 83 [17:27:00]RasterBufferAndPrint [17:27:00]line Счет N : (1)11328002 [17:27:00]line ИНН: 02508201610067 [17:27:00]line Контрольно-Кассовый Чек [17:27:00]line ПРОДАЖА [17:27:00]line ТРК (МРК, ГНК) : 42 [17:27:00]line Товар: 2710124130 [17:27:00]line Аи-92-К-4 [17:27:00]line 20.000 * 0.00 [17:27:00]line = 0.00 [17:27:00]line НДС 12% НСП 1% [17:27:00]line > о реализуемом товаре [17:27:00]line ИТОГО: 0.00 [17:27:00]line НСП 1% : 0.00 [17:27:00]line НДС 12% : 0.00 [17:27:00]line Наличными: 0.00 [17:27:00]line Безнал.: 0.00 [17:27:00]line Место: АЗС № 95 "Партнер Нефть" [17:27:00]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:27:00]line СНО: Общий режим [17:27:00]line Чек 139 19.08.2024 17:26 [17:27:00]line Смена: 467 ФФД: 1.0 [17:27:00]line ЗНМ: 0300000078 [17:27:00]line РНМ: 0000000000092546 [17:27:00]line Версия ККМ: 001 [17:27:00]line Талоны: ТК ГПНА Online [17:27:00]line 30026282 [17:27:00]line ФМ: 0000000000871800 [17:27:00]line ФД: 50032 [17:27:00]line ФПД: 182304918966719 [17:27:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T172659&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50032&fm=182304918966719&tin=02508201610067®Number=0000000000092546&sum=0 [17:27:00]written 0, free lines is 4095 [17:27:00]Connected sock=7 [17:27:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 01 DC 07 01 59 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 63 80 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 70 C3 00 00 35 04 06 00 A5 CE 2B EF 91 BF 10 F5 75 FC 4A 3B 7F 98 [17:27:00]Write to MH i2c: 01 00 00 8E 0A 98 [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: 01 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: 01 07 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: 01 07 00 8E 0A 00 00 00 00 00 DE 0C 89 [17:27:00]RasterBufferAndPrint [17:27:00]line [17:27:00]line [17:27:00]line [17:27:00]line [17:27:00]line [17:27:00]written 0, free lines is 3300 [17:27:00]MH_Cut [17:27:00]Write to MH i2c: D1 01 00 95 0A 01 71 [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: D1 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: D1 01 00 [17:27:00]MH_I2C_Read... [17:27:00]Read from MH i2c: D1 01 00 95 0A 00 70 [17:27:00]Write to MH i2c: 01 00 00 96 0A A0 [17:27:00]Write i2c OK [17:27:00]MH_I2C_Read... [17:27:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D2 44 47 00 07 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 70 C3 00 00 F4 03 04 00 CF 2A C3 66 B6 04 01 00 00 41 09 75 5E 76 32 F1 FB [17:27:00]CommunicateWithHost err = 0 [17:27:00]CheckOFDResponse [17:27:00]1017 (14) - 77093643461234 [17:27:00]1041 (16) - 0000000000871800 [17:27:00]1040 (4) - 50032 [17:27:00]1012 (4) - 19.08.2024 11:21 [17:27:00]1206 (1) - 0 [17:27:00]OFD Sender: Remove packet 50032 [17:27:00]ProducePacketName [17:27:00]name=ofd_packets/00050032 [17:27:00]NVStorageDeleteData [17:27:01]OFD Sender: No OFD packet to send [17:27:01]*** Cut start [17:27:01]*** Purtial cut [17:27:01]*** Stage 1: CUTSNS_PIN = 1 [17:27:01]Read from MH i2c: 01 [17:27:01]MH_I2C_Read... [17:27:01]*** Stop cut motor [17:27:01]*** Cut end [17:27:01]Read from MH i2c: 01 07 00 [17:27:01]MH_I2C_Read... [17:27:01]Read from MH i2c: 01 07 00 96 0A 00 00 00 00 00 FF 0F B5 [17:27:01]process_action close_receipt done [17:27:01]requested_data is exist [17:27:01]produce_requested_data [17:27:01]requested_item fm.sn is exist - process it [17:27:01]wFMCommunicate request_size=4 [17:27:01]MH_SAM_APDU [17:27:01]CAPDU: 80 11 00 00 [17:27:01]Write to MH i2c: E2 08 00 97 0A 80 11 00 00 00 00 00 00 1B [17:27:01]Write i2c OK [17:27:01]MH_I2C_Read... [17:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:02]Read from MH i2c: E2 [17:27:02]MH_I2C_Read... [17:27:02]Read from MH i2c: E2 17 00 [17:27:02]MH_I2C_Read... [17:27:02]Read from MH i2c: E2 17 00 97 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 66 [17:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:27:02]wFMCommunicate OK [17:27:02]requested_item fd.num is exist - process it [17:27:02]SAM_PROTO_GetFieldsCounters [17:27:02]wFMCommunicate request_size=4 [17:27:02]MH_SAM_APDU [17:27:02]CAPDU: 80 13 00 00 [17:27:02]Write to MH i2c: E2 08 00 98 0A 80 13 00 00 00 00 00 00 1E [17:27:02]Write i2c OK [17:27:02]MH_I2C_Read... [17:27:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:02]Read from MH i2c: E2 [17:27:02]MH_I2C_Read... [17:27:02]Read from MH i2c: E2 62 00 [17:27:02]MH_I2C_Read... [17:27:02]Read from MH i2c: E2 62 00 98 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 70 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [17:27:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 70 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:02]wFMCommunicate OK [17:27:02]SAM_PROTO_GetFieldsCounters done [17:27:02]requested_item shift.num is exist - process it [17:27:02]requested_item shift.opened is exist - process it [17:27:02]req_shift_opened [17:27:02]FM_GetShiftState [17:27:02]SAM_PROTO_GetShiftState [17:27:02]wFMCommunicate request_size=4 [17:27:02]MH_SAM_APDU [17:27:02]CAPDU: 80 13 01 00 [17:27:02]Write to MH i2c: E2 08 00 99 0A 80 13 01 00 00 00 00 00 20 [17:27:02]Write i2c OK [17:27:02]MH_I2C_Read... [17:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:02]Read from MH i2c: E2 [17:27:02]MH_I2C_Read... [17:27:02]Read from MH i2c: E2 0E 00 [17:27:02]MH_I2C_Read... [17:27:02]Read from MH i2c: E2 0E 00 99 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 DA [17:27:02]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:27:02]wFMCommunicate OK [17:27:02]SAM_PROTO_GetShiftState done [17:27:02]FM_GetShiftState done [17:27:02]req_shift_opened done [17:27:02]requested_item shift.open_date is exist - process it [17:27:02]req_shift_open_date [17:27:02]req_shift_open_date done [17:27:02]produce_requested_data done [17:27:02]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50032,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [17:27:02]process_action_free close_receipt [17:27:02]json_value_free [17:27:02]json_value_free done [17:27:02]process_json_proto returns [17:27:02]Send response to host [17:27:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50032,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [17:27:02]free response buf [17:27:02]execute_script done [17:27:02]execute_script returns [17:27:02]free content buf [17:27:02]Sock 9.Close socket [17:27:02]Sock 9.Thread stoped [17:27:06]OFD Sender: No OFD packet to send [17:27:11]OFD Sender: No OFD packet to send [17:27:16]OFD Sender: No OFD packet to send [17:27:21]OFD Sender: No OFD packet to send [17:27:26]OFD Sender: No OFD packet to send [17:27:31]OFD Sender: No OFD packet to send [17:27:36]OFD Sender: No OFD packet to send [17:27:41]OFD Sender: No OFD packet to send [17:27:46]OFD Sender: No OFD packet to send [17:27:51]OFD Sender: No OFD packet to send [17:27:56]OFD Sender: No OFD packet to send [17:28:01]OFD Sender: No OFD packet to send [17:28:06]OFD Sender: No OFD packet to send [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:11]OFD Sender: No OFD packet to send [17:29:16]OFD Sender: No OFD packet to send [17:29:21]OFD Sender: No OFD packet to send [17:29:26]OFD Sender: No OFD packet to send [17:29:31]OFD Sender: No OFD packet to send [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]OFD Sender: No OFD packet to send [17:29:51]OFD Sender: No OFD packet to send [17:29:56]OFD Sender: No OFD packet to send [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:26]OFD Sender: No OFD packet to send [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:54]accept exits with 10 [17:30:54]New connection [17:30:54]New thread 3066613092 created [17:30:54]Thread 3066469732 joined [17:30:54]Waiting for new connection... [17:30:54] Sock 10.Parse request [17:30:54]Sock 10.Check first char [17:30:54]Sock 10.First char is OK [17:30:54]request: POST /json_proto HTTP/1.0 [17:30:54]Method: POST [17:30:54]URL: /json_proto [17:30:54]Method is POST - this is cgi request [17:30:54]url: /json_proto [17:30:54]query_string will be loaded in cgi processing [17:30:54]execute_cgi json_proto POST (null) [17:30:54]execute_cgi path=json_proto method=POST [17:30:54]POST find Content-Length [17:30:54]Host: 172.17.46.196:8080 [17:30:54]Content-Length: 1122 [17:30:54]Content-Type: application/json [17:30:54] [17:30:54]POST finish read [17:30:54]Found Content-Length = 1122 [17:30:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190161", "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 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:54]execute_script... [17:30: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)190161", "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 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:54]POST & json_proto [17:30:54]process_json_proto [17:30:54]json parsed OK: [17:30:54]protocol is kg_v1.0 [17:30:54]action value=close_receipt [17:30:54]process_action close_receipt [17:30:54]cmd_close_receipt [17:30:54]MH_GetDate [17:30:54]Write to MH i2c: F0 00 00 9A 0A 93 [17:30:54]Write i2c OK [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: F0 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: F0 09 00 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: F0 09 00 9A 0A 00 4F 81 C3 66 C4 85 C2 66 06 [17:30:54]GetLastDocTimeStamp 1724088419 [17:30:54]current date 1724088655 [17:30:54]FM_GetShiftState [17:30:54]SAM_PROTO_GetShiftState [17:30:54]wFMCommunicate request_size=4 [17:30:54]MH_SAM_APDU [17:30:54]CAPDU: 80 13 01 00 [17:30:54]Write to MH i2c: E2 08 00 9B 0A 80 13 01 00 00 00 00 00 22 [17:30:54]Write i2c OK [17:30:54]MH_I2C_Read... [17:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:54]Read from MH i2c: E2 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: E2 0E 00 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: E2 0E 00 9B 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 DC [17:30:54]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:30:54]wFMCommunicate OK [17:30:54]SAM_PROTO_GetShiftState done [17:30:54]FM_GetShiftState done [17:30:54]opened in 1724026361 [17:30:54]opened+sec_in_day 1724112761 [17:30:54]quantity*price = 6500 [17:30:54]sum+1 = 6501 [17:30:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.72 НДС 12% : 20.70 Наличными: 0.00 Безнал.: 195.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 140 19.08.2024 17:30 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 50033 ФПД: 279543617726711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T173055&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50033&fm=279543617726711&tin=02508201610067®Number=0000000000092546&sum=19500 0 [17:30:55]StoreToDocumentArchive [17:30:55]shift 467 fd 50033 [17:30:55]save to /storage/0467/doc_00050033 [17:30:55]save last doc name /storage/0467/doc_00050033 to /storage/kkm_last_doc_name [17:30:55]save OK [17:30:55]Clear old archive folders... [17:30:55]ProcessDocumentItem done err = 0, tmpTLVsize=405 [17:30:55]tlvbuf is 011F9DE0 [17:30:55]SAM_PROTO_ClearQueue [17:30:55]wFMCommunicate request_size=4 [17:30:55]MH_SAM_APDU [17:30:55]CAPDU: 80 09 00 00 [17:30:55]Write to MH i2c: E2 08 00 A8 0A 80 09 00 00 00 00 00 00 24 [17:30:55]Write i2c OK [17:30:55]MH_I2C_Read... [17:30:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:55]Read from MH i2c: E2 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 03 00 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 03 00 A8 0A 00 90 00 26 [17:30:55]RAPDU: 90 00 [17:30:55]wFMCommunicate OK [17:30:55]SAM_PROTO_ClearQueue done [17:30:55]KKMCreateOFDPacket [17:30:55]OFDProtocolAddRootSTLVToBuf [17:30:55]FM_MakeSignedData [17:30:55]FM_MakeSignedData [17:30:55]SAM_PROTO_SignData [17:30:55]wFMCommunicate request_size=4 [17:30:55]MH_SAM_APDU [17:30:55]CAPDU: 80 0D 01 02 [17:30:55]Write to MH i2c: E2 08 00 A9 0A 80 0D 01 02 00 00 00 00 2C [17:30:55]Write i2c OK [17:30:55]MH_I2C_Read... [17:30:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:55]Read from MH i2c: E2 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 03 00 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 03 00 A9 0A 00 90 00 27 [17:30:55]RAPDU: 90 00 [17:30:55]wFMCommunicate OK [17:30:55]wFMCommunicate request_size=255 [17:30:55]MH_SAM_APDU [17:30:55]CAPDU: 80 0D 02 02 FA 03 00 95 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 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C [17:30:55]Write to MH i2c: E2 02 01 AA 0A 80 0D 02 02 FA 00 03 00 95 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 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 41 [17:30:55]Write i2c OK [17:30:55]MH_I2C_Read... [17:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:56]Read from MH i2c: E2 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 AA 0A 00 90 00 28 [17:30:56]RAPDU: 90 00 [17:30:56]wFMCommunicate OK [17:30:56]wFMCommunicate request_size=164 [17:30:56]MH_SAM_APDU [17:30:56]CAPDU: 80 0D 02 02 9F 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 16 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 4F 81 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 71 C3 00 00 35 04 06 00 FE 3E 52 08 A8 F7 [17:30:56]Write to MH i2c: E2 A7 00 AB 0A 80 0D 02 02 9F 00 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 16 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 4F 81 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 71 C3 00 00 35 04 06 00 FE 3E 52 08 A8 F7 00 00 A7 [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:56]Read from MH i2c: E2 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 03 00 AB 0A 00 90 00 29 [17:30:56]RAPDU: 90 00 [17:30:56]wFMCommunicate OK [17:30:56]wFMCommunicate request_size=4 [17:30:56]MH_SAM_APDU [17:30:56]CAPDU: 80 0D 03 02 [17:30:56]Write to MH i2c: E2 08 00 AC 0A 80 0D 03 02 00 00 00 00 31 [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:56]Read from MH i2c: E2 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 0B 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 0B 00 AC 0A 00 2D B0 01 37 CA B9 0B CD 90 00 A2 [17:30:56]RAPDU: 2D B0 01 37 CA B9 0B CD 90 00 [17:30:56]wFMCommunicate OK [17:30:56]SAM_PROTO_SignData done [17:30:56]FM_MakeSignedData done [17:30:56]CreateOFDProtocolMessage [17:30:56]wFMCommunicate request_size=4 [17:30:56]MH_SAM_APDU [17:30:56]CAPDU: 80 11 00 00 [17:30:56]Write to MH i2c: E2 08 00 AD 0A 80 11 00 00 00 00 00 00 31 [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:56]Read from MH i2c: E2 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 17 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 17 00 AD 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7C [17:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:30:56]wFMCommunicate OK [17:30:56]CreateOFDProtocolMessage done [17:30:56]OFDSenderStorePacket 50033 [17:30:56]StoreOFDPacket docnum=50033 [17:30:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A9 01 00 00 60 66 A1 01 4C 4F 5A 03 01 00 03 00 95 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 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 16 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 4F 81 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 71 C3 00 00 35 04 06 00 FE 3E 52 08 A8 F7 2D B0 01 37 CA B9 0B CD [17:30:56]CheckFolder [17:30:56]dirname=/storage/ofd_packets [17:30:56]CheckFolder done [17:30:56]ProducePacketName [17:30:56]name=ofd_packets/00050033 [17:30:56]NVStorageSaveData ofd_packets/00050033 [17:30:56]File name is /storage/ofd_packets/00050033 [17:30:56]Write 455 bytes [17:30:56]NVStorageSaveData done [17:30:56]OFDSenderStorePacket done [17:30:56]KKMCreateOFDPacket done [17:30:56]NVStorageSaveData kkm_last_timestamp [17:30:56]File name is /storage/kkm_last_timestamp [17:30:56]Write 4 bytes [17:30:56]NVStorageSaveData done [17:30:56]ExternCall_PrintAddStr [17:30:56]wPrintStart [17:30:56]Write to MH i2c: 01 00 00 AE 0A B8 [17:30:56]OFD Sender: Processing packet 50033 [packets to send 21, broken 20] [17:30:56]ProducePacketName [17:30:56]name=ofd_packets/00050033 [17:30:56]OFD Sender: To server: pG, [17:30:56]CommunicateWithHost lk.salyk.kg:30040 [17:30:56]ConnectInit lk.salyk.kg [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: 01 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: 01 07 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: 01 07 00 AE 0A 00 00 00 00 00 FF 0F CD [17:30:56]RasterBufferAndPrint [17:30:56]line Счет N : (3)190161 [17:30:56]line ИНН: 02508201610067 [17:30:56]line Контрольно-Кассовый Чек [17:30:56]line ПРОДАЖА [17:30:56]line Товар: 4870002328404 [17:30:56]line Вода ASU пит н.газ мята ПЭТ 0,5л [17:30:56]line 1.000 * 65.00 [17:30:56]line = 65.00 [17:30:56]line НДС 12% НСП 1% [17:30:56]line > о реализуемом товаре [17:30:56]line Товар: 2000036220012 [17:30:56]line Кофе Капучино XL(GABB TRADE) [17:30:56]line 1.000 * 130.00 [17:30:56]line = 130.00 [17:30:56]line НДС 12% НСП 1% [17:30:56]line > о реализуемом товаре [17:30:56]line ИТОГО: 195.00 [17:30:56]line НСП 1% : 1.72 [17:30:56]line НДС 12% : 20.70 [17:30:56]line Наличными: 0.00 [17:30:56]line Безнал.: 195.00 [17:30:56]line Место: АЗС № 95 "Партнер Нефть" [17:30:56]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:30:56]line СНО: Общий режим [17:30:56]line Чек 140 19.08.2024 17:30 [17:30:56]line Смена: 467 ФФД: 1.0 [17:30:56]line ЗНМ: 0300000078 [17:30:56]line РНМ: 0000000000092546 [17:30:56]line Версия ККМ: 001 [17:30:56]line Платежная система: Бакай Банк [17:30:56]line ФМ: 0000000000871800 [17:30:56]line ФД: 50033 [17:30:56]line ФПД: 279543617726711 [17:30:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T173055&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50033&fm=279543617726711&tin=02508201610067®Number=0000000000092546&sum=19500 [17:30:56]line 0 [17:30:56]written 0, free lines is 4095 [17:30:56]Connected sock=9 [17:30:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A9 01 00 00 60 66 A1 01 4C 4F 5A 03 01 00 03 00 95 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 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 16 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 4F 81 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 71 C3 00 00 35 04 06 00 FE 3E 52 08 A8 F7 2D B0 01 37 CA B9 0B CD [17:30:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 70 BA 47 00 03 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 71 C3 00 00 F4 03 04 00 BC 2B C3 66 B6 04 01 00 00 C4 2B 73 50 D0 34 08 37 [17:30:57]CommunicateWithHost err = 0 [17:30:57]CheckOFDResponse [17:30:57]1017 (14) - 77093643461234 [17:30:57]1041 (16) - 0000000000871800 [17:30:57]1040 (4) - 50033 [17:30:57]1012 (4) - 19.08.2024 11:25 [17:30:57]1206 (1) - 0 [17:30:57]OFD Sender: Remove packet 50033 [17:30:57]ProducePacketName [17:30:57]name=ofd_packets/00050033 [17:30:57]NVStorageDeleteData [17:30:57]Write to MH i2c: 01 00 00 E0 0A EA [17:30:57]Write i2c OK [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: 01 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: 01 07 00 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: 01 07 00 E0 0A 00 00 00 00 00 5B 0C 58 [17:30:57]RasterBufferAndPrint [17:30:57]line [17:30:57]line [17:30:57]line [17:30:57]line [17:30:57]line [17:30:57]written 0, free lines is 3169 [17:30:57]MH_Cut [17:30:57]Write to MH i2c: D1 01 00 E7 0A 01 C3 [17:30:57]Write i2c OK [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: D1 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: D1 01 00 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: D1 01 00 E7 0A 00 C2 [17:30:57]Write to MH i2c: 01 00 00 E8 0A F2 [17:30:57]Write i2c OK [17:30:57]MH_I2C_Read... [17:30:57]OFD Sender: No OFD packet to send [17:30:58]*** Cut start [17:30:58]*** Purtial cut [17:30:58]*** CUTSNS_PIN = 0 [17:30:58]*** Stage 1: CUTSNS_PIN = 1 [17:31:00]Read from MH i2c: 01 [17:31:00]MH_I2C_Read... [17:31:00]*** Stop cut motor [17:31:00]*** Cut end [17:31:00]Read from MH i2c: 01 07 00 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: 01 07 00 E8 0A 00 00 00 00 00 FF 0F 07 [17:31:00]process_action close_receipt done [17:31:00]requested_data is exist [17:31:00]produce_requested_data [17:31:00]requested_item fm.sn is exist - process it [17:31:00]wFMCommunicate request_size=4 [17:31:00]MH_SAM_APDU [17:31:00]CAPDU: 80 11 00 00 [17:31:00]Write to MH i2c: E2 08 00 E9 0A 80 11 00 00 00 00 00 00 6D [17:31:00]Write i2c OK [17:31:00]MH_I2C_Read... [17:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:00]Read from MH i2c: E2 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: E2 17 00 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: E2 17 00 E9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B8 [17:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:31:00]wFMCommunicate OK [17:31:00]requested_item fd.num is exist - process it [17:31:00]SAM_PROTO_GetFieldsCounters [17:31:00]wFMCommunicate request_size=4 [17:31:00]MH_SAM_APDU [17:31:00]CAPDU: 80 13 00 00 [17:31:00]Write to MH i2c: E2 08 00 EA 0A 80 13 00 00 00 00 00 00 70 [17:31:00]Write i2c OK [17:31:00]MH_I2C_Read... [17:31:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:00]Read from MH i2c: E2 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: E2 62 00 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: E2 62 00 EA 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 71 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [17:31:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 71 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:00]wFMCommunicate OK [17:31:00]SAM_PROTO_GetFieldsCounters done [17:31:00]requested_item shift.num is exist - process it [17:31:00]requested_item shift.opened is exist - process it [17:31:00]req_shift_opened [17:31:00]FM_GetShiftState [17:31:00]SAM_PROTO_GetShiftState [17:31:00]wFMCommunicate request_size=4 [17:31:00]MH_SAM_APDU [17:31:00]CAPDU: 80 13 01 00 [17:31:00]Write to MH i2c: E2 08 00 EB 0A 80 13 01 00 00 00 00 00 72 [17:31:00]Write i2c OK [17:31:00]MH_I2C_Read... [17:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:00]Read from MH i2c: E2 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: E2 0E 00 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: E2 0E 00 EB 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 2C [17:31:00]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:31:00]wFMCommunicate OK [17:31:00]SAM_PROTO_GetShiftState done [17:31:00]FM_GetShiftState done [17:31:00]req_shift_opened done [17:31:00]requested_item shift.open_date is exist - process it [17:31:00]req_shift_open_date [17:31:00]req_shift_open_date done [17:31:00]produce_requested_data done [17:31:00]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50033,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [17:31:00]process_action_free close_receipt [17:31:00]json_value_free [17:31:00]json_value_free done [17:31:00]process_json_proto returns [17:31:00]Send response to host [17:31:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50033,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [17:31:00]free response buf [17:31:00]execute_script done [17:31:00]execute_script returns [17:31:00]free content buf [17:31:00]Sock 10.Close socket [17:31:00]Sock 10.Thread stoped [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:07]OFD Sender: No OFD packet to send [17:36:12]OFD Sender: No OFD packet to send [17:36:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:23]OFD Sender: No OFD packet to send [17:39:28]OFD Sender: No OFD packet to send [17:39:33]OFD Sender: No OFD packet to send [17:39:38]OFD Sender: No OFD packet to send [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:53]OFD Sender: No OFD packet to send [17:39:58]OFD Sender: No OFD packet to send [17:40:03]OFD Sender: No OFD packet to send [17:40:08]OFD Sender: No OFD packet to send [17:40:13]OFD Sender: No OFD packet to send [17:40:18]OFD Sender: No OFD packet to send [17:40:23]OFD Sender: No OFD packet to send [17:40:28]OFD Sender: No OFD packet to send [17:40:33]OFD Sender: No OFD packet to send [17:40:38]OFD Sender: No OFD packet to send [17:40:43]OFD Sender: No OFD packet to send [17:40:48]OFD Sender: No OFD packet to send [17:40:53]OFD Sender: No OFD packet to send [17:40:58]OFD Sender: No OFD packet to send [17:41:03]OFD Sender: No OFD packet to send [17:41:08]OFD Sender: No OFD packet to send [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:16]accept exits with 7 [17:44:16]New connection [17:44:16]New thread 3066469732 created [17:44:16]Thread 3066613092 joined [17:44:16]Waiting for new connection... [17:44:16] Sock 7.Parse request [17:44:16]Sock 7.Check first char [17:44:16]Sock 7.First char is OK [17:44:16]request: POST /json_proto HTTP/1.0 [17:44:16]Method: POST [17:44:16]URL: /json_proto [17:44:16]Method is POST - this is cgi request [17:44:16]url: /json_proto [17:44:16]query_string will be loaded in cgi processing [17:44:16]execute_cgi json_proto POST (null) [17:44:16]execute_cgi path=json_proto method=POST [17:44:16]POST find Content-Length [17:44:16]Host: 172.17.46.196:8080 [17:44:16]Content-Length: 675 [17:44:16]Content-Type: application/json [17:44:16] [17:44:16]POST finish read [17:44:16]Found Content-Length = 675 [17:44:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190162", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 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" ] } } [17:44:16]execute_script... [17:44:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190162", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 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" ] } } [17:44:16]POST & json_proto [17:44:16]process_json_proto [17:44:16]json parsed OK: [17:44:16]protocol is kg_v1.0 [17:44:16]action value=close_receipt [17:44:16]process_action close_receipt [17:44:16]cmd_close_receipt [17:44:16]MH_GetDate [17:44:16]Write to MH i2c: F0 00 00 EC 0A E5 [17:44:16]Write i2c OK [17:44:16]MH_I2C_Read... [17:44:16]Read from MH i2c: F0 [17:44:16]MH_I2C_Read... [17:44:16]Read from MH i2c: F0 09 00 [17:44:16]MH_I2C_Read... [17:44:16]Read from MH i2c: F0 09 00 EC 0A 00 70 84 C3 66 C4 85 C2 66 7C [17:44:16]GetLastDocTimeStamp 1724088655 [17:44:16]current date 1724089456 [17:44:16]FM_GetShiftState [17:44:16]SAM_PROTO_GetShiftState [17:44:16]wFMCommunicate request_size=4 [17:44:16]MH_SAM_APDU [17:44:16]CAPDU: 80 13 01 00 [17:44:16]Write to MH i2c: E2 08 00 ED 0A 80 13 01 00 00 00 00 00 74 [17:44:16]Write i2c OK [17:44:16]MH_I2C_Read... [17:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:16]Read from MH i2c: E2 [17:44:16]MH_I2C_Read... [17:44:16]Read from MH i2c: E2 0E 00 [17:44:16]MH_I2C_Read... [17:44:16]Read from MH i2c: E2 0E 00 ED 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 2E [17:44:16]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:44:16]wFMCommunicate OK [17:44:16]SAM_PROTO_GetShiftState done [17:44:16]FM_GetShiftState done [17:44:16]opened in 1724026361 [17:44:16]opened+sec_in_day 1724112761 [17:44:16]quantity*price = 9000 [17:44:16]sum+1 = 9001 [17:44:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 141 19.08.2024 17:44 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50034 ФПД: 3695878296742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T174417&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50034&fm=3695878296742&tin=02508201610067®Number=0000000000092546&sum=9000 0 [17:44:17]StoreToDocumentArchive [17:44:17]shift 467 fd 50034 [17:44:17]save to /storage/0467/doc_00050034 [17:44:17]save last doc name /storage/0467/doc_00050034 to /storage/kkm_last_doc_name [17:44:17]save OK [17:44:17]Clear old archive folders... [17:44:17]ProcessDocumentItem done err = 0, tmpTLVsize=294 [17:44:17]tlvbuf is 011E14B0 [17:44:17]SAM_PROTO_ClearQueue [17:44:17]wFMCommunicate request_size=4 [17:44:17]MH_SAM_APDU [17:44:17]CAPDU: 80 09 00 00 [17:44:17]Write to MH i2c: E2 08 00 FA 0A 80 09 00 00 00 00 00 00 76 [17:44:17]Write i2c OK [17:44:17]MH_I2C_Read... [17:44:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:17]Read from MH i2c: E2 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 03 00 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 03 00 FA 0A 00 90 00 78 [17:44:17]RAPDU: 90 00 [17:44:17]wFMCommunicate OK [17:44:17]SAM_PROTO_ClearQueue done [17:44:17]KKMCreateOFDPacket [17:44:17]OFDProtocolAddRootSTLVToBuf [17:44:17]FM_MakeSignedData [17:44:17]FM_MakeSignedData [17:44:17]SAM_PROTO_SignData [17:44:17]wFMCommunicate request_size=4 [17:44:17]MH_SAM_APDU [17:44:17]CAPDU: 80 0D 01 02 [17:44:17]Write to MH i2c: E2 08 00 FB 0A 80 0D 01 02 00 00 00 00 7E [17:44:17]Write i2c OK [17:44:17]MH_I2C_Read... [17:44:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:17]Read from MH i2c: E2 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 03 00 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 03 00 FB 0A 00 90 00 79 [17:44:17]RAPDU: 90 00 [17:44:17]wFMCommunicate OK [17:44:17]wFMCommunicate request_size=255 [17:44:17]MH_SAM_APDU [17:44:17]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 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 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 8D 00 00 00 F4 03 04 00 71 84 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [17:44:17]Write to MH i2c: E2 02 01 FC 0A 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 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 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 8D 00 00 00 F4 03 04 00 71 84 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 9B [17:44:17]Write i2c OK [17:44:17]MH_I2C_Read... [17:44:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:17]Read from MH i2c: E2 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 03 00 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 03 00 FC 0A 00 90 00 7A [17:44:17]RAPDU: 90 00 [17:44:17]wFMCommunicate OK [17:44:17]wFMCommunicate request_size=53 [17:44:17]MH_SAM_APDU [17:44:17]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 72 C3 00 00 35 04 06 00 03 5C 83 83 54 A6 [17:44:17]Write to MH i2c: E2 38 00 FD 0A 80 0D 02 02 30 00 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 72 C3 00 00 35 04 06 00 03 5C 83 83 54 A6 00 00 03 [17:44:17]Write i2c OK [17:44:17]MH_I2C_Read... [17:44:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:17]Read from MH i2c: E2 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 03 00 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 03 00 FD 0A 00 90 00 7B [17:44:17]RAPDU: 90 00 [17:44:17]wFMCommunicate OK [17:44:17]wFMCommunicate request_size=4 [17:44:17]MH_SAM_APDU [17:44:17]CAPDU: 80 0D 03 02 [17:44:17]Write to MH i2c: E2 08 00 FE 0A 80 0D 03 02 00 00 00 00 83 [17:44:17]Write i2c OK [17:44:17]MH_I2C_Read... [17:44:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:17]Read from MH i2c: E2 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 0B 00 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 0B 00 FE 0A 00 5F 2C 00 FE 8B A2 85 F3 90 00 B2 [17:44:17]RAPDU: 5F 2C 00 FE 8B A2 85 F3 90 00 [17:44:17]wFMCommunicate OK [17:44:17]SAM_PROTO_SignData done [17:44:17]FM_MakeSignedData done [17:44:17]CreateOFDProtocolMessage [17:44:17]wFMCommunicate request_size=4 [17:44:17]MH_SAM_APDU [17:44:17]CAPDU: 80 11 00 00 [17:44:17]Write to MH i2c: E2 08 00 FF 0A 80 11 00 00 00 00 00 00 83 [17:44:17]Write i2c OK [17:44:17]MH_I2C_Read... [17:44:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:17]Read from MH i2c: E2 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 17 00 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: E2 17 00 FF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CE [17:44:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:44:17]wFMCommunicate OK [17:44:17]CreateOFDProtocolMessage done [17:44:17]OFDSenderStorePacket 50034 [17:44:17]StoreOFDPacket docnum=50034 [17:44:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 B5 C4 32 01 20 A9 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 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 8D 00 00 00 F4 03 04 00 71 84 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 72 C3 00 00 35 04 06 00 03 5C 83 83 54 A6 5F 2C 00 FE 8B A2 85 F3 [17:44:17]CheckFolder [17:44:17]dirname=/storage/ofd_packets [17:44:17]CheckFolder done [17:44:17]ProducePacketName [17:44:17]name=ofd_packets/00050034 [17:44:17]NVStorageSaveData ofd_packets/00050034 [17:44:17]File name is /storage/ofd_packets/00050034 [17:44:17]Write 344 bytes [17:44:17]NVStorageSaveData done [17:44:17]OFDSenderStorePacket done [17:44:17]KKMCreateOFDPacket done [17:44:17]NVStorageSaveData kkm_last_timestamp [17:44:17]File name is /storage/kkm_last_timestamp [17:44:17]Write 4 bytes [17:44:17]NVStorageSaveData done [17:44:17]ExternCall_PrintAddStr [17:44:17]wPrintStart [17:44:17]Write to MH i2c: 01 00 00 00 0B 0B [17:44:17]Write i2c OK [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: 01 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: 01 07 00 [17:44:17]MH_I2C_Read... [17:44:17]Read from MH i2c: 01 07 00 00 0B 00 00 00 00 00 FF 0F 20 [17:44:17]RasterBufferAndPrint [17:44:17]line Счет N : (3)190162 [17:44:17]line ИНН: 02508201610067 [17:44:17]line Контрольно-Кассовый Чек [17:44:17]line ПРОДАЖА [17:44:17]line Товар: 4650243871828 [17:44:17]line Gorilla эн нап манго-кокос 0,45 ж/б [17:44:17]line 1.000 * 90.00 [17:44:17]line = 90.00 [17:44:17]line НДС 12% НСП 1% [17:44:17]line > о реализуемом товаре [17:44:17]line ИТОГО: 90.00 [17:44:17]line НСП 1% : 0.80 [17:44:17]line НДС 12% : 9.56 [17:44:17]line Наличными: 90.00 [17:44:17]line Безнал.: 0.00 [17:44:17]line Место: АЗС № 95 "Партнер Нефть" [17:44:17]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:44:17]line СНО: Общий режим [17:44:17]line Чек 141 19.08.2024 17:44 [17:44:17]line Смена: 467 ФФД: 1.0 [17:44:17]line ЗНМ: 0300000078 [17:44:17]line РНМ: 0000000000092546 [17:44:17]line Версия ККМ: 001 [17:44:17]line ФМ: 0000000000871800 [17:44:17]line ФД: 50034 [17:44:17]line ФПД: 3695878296742 [17:44:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T174417&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50034&fm=3695878296742&tin=02508201610067®Number=0000000000092546&sum=9000 [17:44:18]line 0 [17:44:18]OFD Sender: Processing packet 50034 [packets to send 21, broken 20] [17:44:18]ProducePacketName [17:44:18]name=ofd_packets/00050034 [17:44:18]OFD Sender: To server: pG, [17:44:18]CommunicateWithHost lk.salyk.kg:30040 [17:44:18]ConnectInit lk.salyk.kg [17:44:18]written 0, free lines is 4095 [17:44:18]Write to MH i2c: 01 00 00 29 0B 34 [17:44:18]Write i2c OK [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: 01 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: 01 07 00 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: 01 07 00 29 0B 00 00 00 00 00 D9 0C 20 [17:44:18]RasterBufferAndPrint [17:44:18]line [17:44:18]line [17:44:18]line [17:44:18]line [17:44:18]line [17:44:18]written 0, free lines is 3295 [17:44:18]Connected sock=11 [17:44:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 B5 C4 32 01 20 A9 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 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 8D 00 00 00 F4 03 04 00 71 84 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 72 C3 00 00 35 04 06 00 03 5C 83 83 54 A6 5F 2C 00 FE 8B A2 85 F3 [17:44:18]MH_Cut [17:44:18]Write to MH i2c: D1 01 00 30 0B 01 0D [17:44:18]Write i2c OK [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: D1 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: D1 01 00 [17:44:18]MH_I2C_Read... [17:44:18]Read from MH i2c: D1 01 00 30 0B 00 0C [17:44:18]Write to MH i2c: 01 00 00 31 0B 3C [17:44:18]Write i2c OK [17:44:18]MH_I2C_Read... [17:44:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 70 D5 47 00 72 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 72 C3 00 00 F4 03 04 00 DD 2E C3 66 B6 04 01 00 00 A9 66 0C D0 40 88 17 75 [17:44:18]CommunicateWithHost err = 0 [17:44:18]CheckOFDResponse [17:44:18]1017 (14) - 77093643461234 [17:44:18]1041 (16) - 0000000000871800 [17:44:18]1040 (4) - 50034 [17:44:18]1012 (4) - 19.08.2024 11:39 [17:44:18]1206 (1) - 0 [17:44:18]OFD Sender: Remove packet 50034 [17:44:18]ProducePacketName [17:44:18]name=ofd_packets/00050034 [17:44:18]NVStorageDeleteData [17:44:19]OFD Sender: No OFD packet to send [17:44:19]*** Cut start [17:44:19]*** Purtial cut [17:44:19]*** Stage 1: CUTSNS_PIN = 1 [17:44:19]Read from MH i2c: 01 [17:44:19]MH_I2C_Read... [17:44:19]*** Stop cut motor [17:44:19]*** Cut end [17:44:19]Read from MH i2c: 01 07 00 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: 01 07 00 31 0B 00 00 00 00 00 FF 0F 51 [17:44:19]process_action close_receipt done [17:44:19]requested_data is exist [17:44:19]produce_requested_data [17:44:19]requested_item fm.sn is exist - process it [17:44:19]wFMCommunicate request_size=4 [17:44:19]MH_SAM_APDU [17:44:19]CAPDU: 80 11 00 00 [17:44:19]Write to MH i2c: E2 08 00 32 0B 80 11 00 00 00 00 00 00 B7 [17:44:19]Write i2c OK [17:44:19]MH_I2C_Read... [17:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:19]Read from MH i2c: E2 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 17 00 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 17 00 32 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 02 [17:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:44:19]wFMCommunicate OK [17:44:19]requested_item fd.num is exist - process it [17:44:19]SAM_PROTO_GetFieldsCounters [17:44:19]wFMCommunicate request_size=4 [17:44:19]MH_SAM_APDU [17:44:19]CAPDU: 80 13 00 00 [17:44:19]Write to MH i2c: E2 08 00 33 0B 80 13 00 00 00 00 00 00 BA [17:44:19]Write i2c OK [17:44:19]MH_I2C_Read... [17:44:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:19]Read from MH i2c: E2 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 62 00 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 62 00 33 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 72 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [17:44:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 72 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:44:19]wFMCommunicate OK [17:44:19]SAM_PROTO_GetFieldsCounters done [17:44:19]requested_item shift.num is exist - process it [17:44:19]requested_item shift.opened is exist - process it [17:44:19]req_shift_opened [17:44:19]FM_GetShiftState [17:44:19]SAM_PROTO_GetShiftState [17:44:19]wFMCommunicate request_size=4 [17:44:19]MH_SAM_APDU [17:44:19]CAPDU: 80 13 01 00 [17:44:19]Write to MH i2c: E2 08 00 34 0B 80 13 01 00 00 00 00 00 BC [17:44:19]Write i2c OK [17:44:19]MH_I2C_Read... [17:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:19]Read from MH i2c: E2 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 0E 00 [17:44:19]MH_I2C_Read... [17:44:19]Read from MH i2c: E2 0E 00 34 0B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 76 [17:44:19]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:44:19]wFMCommunicate OK [17:44:19]SAM_PROTO_GetShiftState done [17:44:19]FM_GetShiftState done [17:44:19]req_shift_opened done [17:44:19]requested_item shift.open_date is exist - process it [17:44:19]req_shift_open_date [17:44:19]req_shift_open_date done [17:44:19]produce_requested_data done [17:44:19]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50034,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [17:44:19]process_action_free close_receipt [17:44:19]json_value_free [17:44:19]json_value_free done [17:44:19]process_json_proto returns [17:44:19]Send response to host [17:44:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50034,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [17:44:19]free response buf [17:44:19]execute_script done [17:44:19]execute_script returns [17:44:19]free content buf [17:44:19]Sock 7.Close socket [17:44:19]Sock 7.Thread stoped [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:45]accept exits with 9 [17:49:45]New connection [17:49:45]New thread 3066613092 created [17:49:45]Thread 3066469732 joined [17:49:45]Waiting for new connection... [17:49:45] Sock 9.Parse request [17:49:45]Sock 9.Check first char [17:49:45]Sock 9.First char is OK [17:49:45]request: POST /json_proto HTTP/1.0 [17:49:45]Method: POST [17:49:45]URL: /json_proto [17:49:45]Method is POST - this is cgi request [17:49:45]url: /json_proto [17:49:45]query_string will be loaded in cgi processing [17:49:45]execute_cgi json_proto POST (null) [17:49:45]execute_cgi path=json_proto method=POST [17:49:45]POST find Content-Length [17:49:45]Host: 172.17.46.196:8080 [17:49:45]Content-Length: 756 [17:49:45]Content-Type: application/json [17:49:45] [17:49:45]POST finish read [17:49:45]Found Content-Length = 756 [17:49:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11328026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115697", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:45]execute_script... [17:49:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11328026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115697", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:45]POST & json_proto [17:49:45]process_json_proto [17:49:45]json parsed OK: [17:49:45]protocol is kg_v1.0 [17:49:45]action value=close_receipt [17:49:45]process_action close_receipt [17:49:45]cmd_close_receipt [17:49:45]MH_GetDate [17:49:45]Write to MH i2c: F0 00 00 35 0B 2F [17:49:45]Write i2c OK [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: F0 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: F0 09 00 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: F0 09 00 35 0B 00 BA 85 C3 66 C4 85 C2 66 11 [17:49:45]GetLastDocTimeStamp 1724089457 [17:49:45]current date 1724089786 [17:49:45]FM_GetShiftState [17:49:45]SAM_PROTO_GetShiftState [17:49:45]wFMCommunicate request_size=4 [17:49:45]MH_SAM_APDU [17:49:45]CAPDU: 80 13 01 00 [17:49:45]Write to MH i2c: E2 08 00 36 0B 80 13 01 00 00 00 00 00 BE [17:49:45]Write i2c OK [17:49:45]MH_I2C_Read... [17:49:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:45]Read from MH i2c: E2 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 0E 00 [17:49:45]MH_I2C_Read... [17:49:45]Read from MH i2c: E2 0E 00 36 0B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 78 [17:49:45]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:49:45]wFMCommunicate OK [17:49:45]SAM_PROTO_GetShiftState done [17:49:45]FM_GetShiftState done [17:49:45]opened in 1724026361 [17:49:45]opened+sec_in_day 1724112761 [17:49:45]quantity*price = 0 [17:49:45]sum+1 = 1 [17:49:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 142 19.08.2024 17:49 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30115697 ФМ: 0000000000871800 ФД: 50035 ФПД: 20474929311797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T174946&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50035&fm=20474929311797&tin=02508201610067®Number=0000000000092546&sum=0 [17:49:46]StoreToDocumentArchive [17:49:46]shift 467 fd 50035 [17:49:46]save to /storage/0467/doc_00050035 [17:49:46]save last doc name /storage/0467/doc_00050035 to /storage/kkm_last_doc_name [17:49:46]save OK [17:49:46]Clear old archive folders... [17:49:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:49:46]tlvbuf is 011F8E50 [17:49:46]SAM_PROTO_ClearQueue [17:49:46]wFMCommunicate request_size=4 [17:49:46]MH_SAM_APDU [17:49:46]CAPDU: 80 09 00 00 [17:49:46]Write to MH i2c: E2 08 00 43 0B 80 09 00 00 00 00 00 00 C0 [17:49:46]Write i2c OK [17:49:46]MH_I2C_Read... [17:49:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:46]Read from MH i2c: E2 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: E2 03 00 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: E2 03 00 43 0B 00 90 00 C2 [17:49:46]RAPDU: 90 00 [17:49:46]wFMCommunicate OK [17:49:46]SAM_PROTO_ClearQueue done [17:49:46]KKMCreateOFDPacket [17:49:46]OFDProtocolAddRootSTLVToBuf [17:49:46]FM_MakeSignedData [17:49:46]FM_MakeSignedData [17:49:46]SAM_PROTO_SignData [17:49:46]wFMCommunicate request_size=4 [17:49:46]MH_SAM_APDU [17:49:46]CAPDU: 80 0D 01 02 [17:49:46]Write to MH i2c: E2 08 00 44 0B 80 0D 01 02 00 00 00 00 C8 [17:49:46]Write i2c OK [17:49:46]MH_I2C_Read... [17:49:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:46]Read from MH i2c: E2 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: E2 03 00 [17:49:46]MH_I2C_Read... [17:49:46]Read from MH i2c: E2 03 00 44 0B 00 90 00 C3 [17:49:46]RAPDU: 90 00 [17:49:46]wFMCommunicate OK [17:49:46]wFMCommunicate request_size=255 [17:49:46]MH_SAM_APDU [17:49:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 BA 85 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 73 C3 00 00 35 04 06 00 12 [17:49:46]Write to MH i2c: E2 02 01 45 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 BA 85 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 73 C3 00 00 35 04 06 00 12 00 00 4A [17:49:46]Write i2c OK [17:49:46]MH_I2C_Read... [17:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:47]Read from MH i2c: E2 [17:49:47]MH_I2C_Read... [17:49:47]Read from MH i2c: E2 03 00 [17:49:47]MH_I2C_Read... [17:49:47]Read from MH i2c: E2 03 00 45 0B 00 90 00 C4 [17:49:47]RAPDU: 90 00 [17:49:47]wFMCommunicate OK [17:49:47]wFMCommunicate request_size=10 [17:49:47]MH_SAM_APDU [17:49:47]CAPDU: 80 0D 02 02 05 9F 30 E3 70 35 [17:49:47]Write to MH i2c: E2 0D 00 46 0B 80 0D 02 02 05 00 9F 30 E3 70 35 00 00 2C [17:49:47]Write i2c OK [17:49:47]MH_I2C_Read... [17:49:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:47]Read from MH i2c: E2 [17:49:47]MH_I2C_Read... [17:49:47]Read from MH i2c: E2 03 00 [17:49:47]MH_I2C_Read... [17:49:47]Read from MH i2c: E2 03 00 46 0B 00 90 00 C5 [17:49:47]RAPDU: 90 00 [17:49:47]wFMCommunicate OK [17:49:47]wFMCommunicate request_size=4 [17:49:47]MH_SAM_APDU [17:49:47]CAPDU: 80 0D 03 02 [17:49:47]Write to MH i2c: E2 08 00 47 0B 80 0D 03 02 00 00 00 00 CD [17:49:47]Write i2c OK [17:49:47]MH_I2C_Read... [17:49:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:47]Read from MH i2c: E2 [17:49:47]MH_I2C_Read... [17:49:47]Read from MH i2c: E2 0B 00 [17:49:47]MH_I2C_Read... [17:49:47]Read from MH i2c: E2 0B 00 47 0B 00 98 18 8B 45 96 12 67 8A 90 00 E7 [17:49:47]RAPDU: 98 18 8B 45 96 12 67 8A 90 00 [17:49:47]wFMCommunicate OK [17:49:47]SAM_PROTO_SignData done [17:49:47]FM_MakeSignedData done [17:49:47]CreateOFDProtocolMessage [17:49:47]wFMCommunicate request_size=4 [17:49:47]MH_SAM_APDU [17:49:47]CAPDU: 80 11 00 00 [17:49:47]Write to MH i2c: E2 08 00 48 0B 80 11 00 00 00 00 00 00 CD [17:49:47]Write i2c OK [17:49:47]MH_I2C_Read... [17:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:47]Read from MH i2c: E2 [17:49:47]MH_I2C_Read... [17:49:47]Read from MH i2c: E2 17 00 [17:49:47]MH_I2C_Read... [17:49:47]Read from MH i2c: E2 17 00 48 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 18 [17:49:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:49:47]wFMCommunicate OK [17:49:47]CreateOFDProtocolMessage done [17:49:47]OFDSenderStorePacket 50035 [17:49:47]StoreOFDPacket docnum=50035 [17:49:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 13 34 07 01 42 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 BA 85 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 73 C3 00 00 35 04 06 00 12 9F 30 E3 70 35 98 18 8B 45 96 12 67 8A [17:49:47]CheckFolder [17:49:47]dirname=/storage/ofd_packets [17:49:47]CheckFolder done [17:49:47]ProducePacketName [17:49:47]name=ofd_packets/00050035 [17:49:47]NVStorageSaveData ofd_packets/00050035 [17:49:47]File name is /storage/ofd_packets/00050035 [17:49:47]Write 301 bytes [17:49:47]NVStorageSaveData done [17:49:47]OFDSenderStorePacket done [17:49:47]KKMCreateOFDPacket done [17:49:47]NVStorageSaveData kkm_last_timestamp [17:49:47]File name is /storage/kkm_last_timestamp [17:49:47]Write 4 bytes [17:49:47]NVStorageSaveData done [17:49:47]ExternCall_PrintAddStr [17:49:47]wPrintStart [17:49:47]Write to MH i2c: 01 00 00 49 0B 54 [17:49:47]OFD Sender: Processing packet 50035 [packets to send 21, broken 20] [17:49:47]ProducePacketName [17:49:47]name=ofd_packets/00050035 [17:49:47]OFD Sender: To server: pG, [17:49:47]CommunicateWithHost lk.salyk.kg:30040 [17:49:47]ConnectInit lk.salyk.kg [17:49:47]Write i2c OK [17:49:47]MH_I2C_Read... [17:49:47]Read from MH i2c: 01 [17:49:47]MH_I2C_Read... [17:49:47]Read from MH i2c: 01 07 00 [17:49:47]MH_I2C_Read... [17:49:47]Read from MH i2c: 01 07 00 49 0B 00 00 00 00 00 FF 0F 69 [17:49:47]RasterBufferAndPrint [17:49:47]line Счет N : (1)11328026 [17:49:47]line ИНН: 02508201610067 [17:49:47]line Контрольно-Кассовый Чек [17:49:47]line ПРОДАЖА [17:49:47]line ТРК (МРК, ГНК) : 12 [17:49:47]line Товар: 2710124130 [17:49:47]line Аи-92-К-4 [17:49:47]line 20.000 * 0.00 [17:49:47]line = 0.00 [17:49:47]line НДС 12% НСП 1% [17:49:47]line > о реализуемом товаре [17:49:47]line ИТОГО: 0.00 [17:49:47]line НСП 1% : 0.00 [17:49:47]line НДС 12% : 0.00 [17:49:47]line Наличными: 0.00 [17:49:47]line Безнал.: 0.00 [17:49:47]line Место: АЗС № 95 "Партнер Нефть" [17:49:47]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:49:47]line СНО: Общий режим [17:49:47]line Чек 142 19.08.2024 17:49 [17:49:47]line Смена: 467 ФФД: 1.0 [17:49:47]line ЗНМ: 0300000078 [17:49:47]line РНМ: 0000000000092546 [17:49:47]line Версия ККМ: 001 [17:49:47]line Талоны: ТК ГПНА Online [17:49:47]line 30115697 [17:49:47]line ФМ: 0000000000871800 [17:49:47]line ФД: 50035 [17:49:47]line ФПД: 20474929311797 [17:49:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T174946&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50035&fm=20474929311797&tin=02508201610067®Number=0000000000092546&sum=0 [17:49:47]written 0, free lines is 4095 [17:49:47]Connected sock=10 [17:49:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 13 34 07 01 42 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 BA 85 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 73 C3 00 00 35 04 06 00 12 9F 30 E3 70 35 98 18 8B 45 96 12 67 8A [17:49:48]Write to MH i2c: 01 00 00 73 0B 7E [17:49:48]Write i2c OK [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: 01 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: 01 07 00 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: 01 07 00 73 0B 00 00 00 00 00 DD 0C 6E [17:49:48]RasterBufferAndPrint [17:49:48]line [17:49:48]line [17:49:48]line [17:49:48]line [17:49:48]line [17:49:48]written 0, free lines is 3299 [17:49:48]MH_Cut [17:49:48]Write to MH i2c: D1 01 00 7A 0B 01 57 [17:49:48]Write i2c OK [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: D1 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: D1 01 00 [17:49:48]MH_I2C_Read... [17:49:48]Read from MH i2c: D1 01 00 7A 0B 00 56 [17:49:48]Write to MH i2c: 01 00 00 7B 0B 86 [17:49:48]Write i2c OK [17:49:48]MH_I2C_Read... [17:49:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C1 BF 47 00 28 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 31 38 30 30 10 04 04 00 73 C3 00 00 F4 03 04 00 27 30 C3 66 B6 04 01 00 00 77 6E 0A 27 86 B9 F6 64 [17:49:48]CommunicateWithHost err = 0 [17:49:48]CheckOFDResponse [17:49:48]1017 (14) - 77093643461234 [17:49:48]1041 (16) - 0000000000871800 [17:49:48]1040 (4) - 50035 [17:49:48]1012 (4) - 19.08.2024 11:44 [17:49:48]1206 (1) - 0 [17:49:48]OFD Sender: Remove packet 50035 [17:49:48]ProducePacketName [17:49:48]name=ofd_packets/00050035 [17:49:48]NVStorageDeleteData [17:49:48]OFD Sender: No OFD packet to send [17:49:48]*** Cut start [17:49:48]*** Purtial cut [17:49:48]*** CUTSNS_PIN = 0 [17:49:49]*** Stage 1: CUTSNS_PIN = 1 [17:49:50]Read from MH i2c: 01 [17:49:50]MH_I2C_Read... [17:49:50]*** Stop cut motor [17:49:50]*** Cut end [17:49:50]Read from MH i2c: 01 07 00 [17:49:50]MH_I2C_Read... [17:49:50]Read from MH i2c: 01 07 00 7B 0B 00 00 00 00 00 FF 0F 9B [17:49:50]process_action close_receipt done [17:49:50]requested_data is exist [17:49:50]produce_requested_data [17:49:50]requested_item fm.sn is exist - process it [17:49:50]wFMCommunicate request_size=4 [17:49:50]MH_SAM_APDU [17:49:50]CAPDU: 80 11 00 00 [17:49:50]Write to MH i2c: E2 08 00 7C 0B 80 11 00 00 00 00 00 00 01 [17:49:50]Write i2c OK [17:49:50]MH_I2C_Read... [17:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:51]Read from MH i2c: E2 [17:49:51]MH_I2C_Read... [17:49:51]Read from MH i2c: E2 17 00 [17:49:51]MH_I2C_Read... [17:49:51]Read from MH i2c: E2 17 00 7C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4C [17:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:49:51]wFMCommunicate OK [17:49:51]requested_item fd.num is exist - process it [17:49:51]SAM_PROTO_GetFieldsCounters [17:49:51]wFMCommunicate request_size=4 [17:49:51]MH_SAM_APDU [17:49:51]CAPDU: 80 13 00 00 [17:49:51]Write to MH i2c: E2 08 00 7D 0B 80 13 00 00 00 00 00 00 04 [17:49:51]Write i2c OK [17:49:51]MH_I2C_Read... [17:49:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:51]Read from MH i2c: E2 [17:49:51]MH_I2C_Read... [17:49:51]Read from MH i2c: E2 62 00 [17:49:51]MH_I2C_Read... [17:49:51]Read from MH i2c: E2 62 00 7D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 73 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [17:49:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 73 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:51]wFMCommunicate OK [17:49:51]SAM_PROTO_GetFieldsCounters done [17:49:51]requested_item shift.num is exist - process it [17:49:51]requested_item shift.opened is exist - process it [17:49:51]req_shift_opened [17:49:51]FM_GetShiftState [17:49:51]SAM_PROTO_GetShiftState [17:49:51]wFMCommunicate request_size=4 [17:49:51]MH_SAM_APDU [17:49:51]CAPDU: 80 13 01 00 [17:49:51]Write to MH i2c: E2 08 00 7E 0B 80 13 01 00 00 00 00 00 06 [17:49:51]Write i2c OK [17:49:51]MH_I2C_Read... [17:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:51]Read from MH i2c: E2 [17:49:51]MH_I2C_Read... [17:49:51]Read from MH i2c: E2 0E 00 [17:49:51]MH_I2C_Read... [17:49:51]Read from MH i2c: E2 0E 00 7E 0B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 C0 [17:49:51]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:49:51]wFMCommunicate OK [17:49:51]SAM_PROTO_GetShiftState done [17:49:51]FM_GetShiftState done [17:49:51]req_shift_opened done [17:49:51]requested_item shift.open_date is exist - process it [17:49:51]req_shift_open_date [17:49:51]req_shift_open_date done [17:49:51]produce_requested_data done [17:49:51]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50035,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [17:49:51]process_action_free close_receipt [17:49:51]json_value_free [17:49:51]json_value_free done [17:49:51]process_json_proto returns [17:49:51]Send response to host [17:49:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50035,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [17:49:51]free response buf [17:49:51]execute_script done [17:49:51]execute_script returns [17:49:51]free content buf [17:49:51]Sock 9.Close socket [17:49:51]Sock 9.Thread stoped [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:31]accept exits with 7 [17:53:31]New connection [17:53:31]New thread 3066469732 created [17:53:31]Thread 3066613092 joined [17:53:31]Waiting for new connection... [17:53:31] Sock 7.Parse request [17:53:31]Sock 7.Check first char [17:53:31]Sock 7.First char is OK [17:53:31]request: POST /json_proto HTTP/1.0 [17:53:31]Method: POST [17:53:31]URL: /json_proto [17:53:31]Method is POST - this is cgi request [17:53:31]url: /json_proto [17:53:31]query_string will be loaded in cgi processing [17:53:31]execute_cgi json_proto POST (null) [17:53:31]execute_cgi path=json_proto method=POST [17:53:31]POST find Content-Length [17:53:31]Host: 172.17.46.196:8080 [17:53:31]Content-Length: 1018 [17:53:31]Content-Type: application/json [17:53:31] [17:53:31]POST finish read [17:53:31]Found Content-Length = 1018 [17:53:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190163", "tax_sys" : 0, "items" : [ { "code": "4870209743574", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0412\u044F\u043B\u0435\u043D\u0430\u044F \u043A\u043E\u043D\u0438\u043D\u0430 50 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700321005031", "name": "\u0424\u0438\u0441\u0442\u0430\u0448\u043A\u0438 Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0435 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 50\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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:31]execute_script... [17:53:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190163", "tax_sys" : 0, "items" : [ { "code": "4870209743574", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0412\u044F\u043B\u0435\u043D\u0430\u044F \u043A\u043E\u043D\u0438\u043D\u0430 50 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700321005031", "name": "\u0424\u0438\u0441\u0442\u0430\u0448\u043A\u0438 Mike \u0436\u0430\u0440\u0435\u043D\u044B\u0435 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 50\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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:31]POST & json_proto [17:53:31]process_json_proto [17:53:31]json parsed OK: [17:53:31]protocol is kg_v1.0 [17:53:31]action value=close_receipt [17:53:31]process_action close_receipt [17:53:31]cmd_close_receipt [17:53:31]MH_GetDate [17:53:31]Write to MH i2c: F0 00 00 7F 0B 79 [17:53:31]Write i2c OK [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: F0 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: F0 09 00 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: F0 09 00 7F 0B 00 9C 86 C3 66 C4 85 C2 66 3E [17:53:31]GetLastDocTimeStamp 1724089786 [17:53:31]current date 1724090012 [17:53:31]FM_GetShiftState [17:53:31]SAM_PROTO_GetShiftState [17:53:31]wFMCommunicate request_size=4 [17:53:31]MH_SAM_APDU [17:53:31]CAPDU: 80 13 01 00 [17:53:31]Write to MH i2c: E2 08 00 80 0B 80 13 01 00 00 00 00 00 08 [17:53:31]Write i2c OK [17:53:31]MH_I2C_Read... [17:53:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:31]Read from MH i2c: E2 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: E2 0E 00 [17:53:31]MH_I2C_Read... [17:53:31]Read from MH i2c: E2 0E 00 80 0B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 C2 [17:53:31]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:53:31]wFMCommunicate OK [17:53:31]SAM_PROTO_GetShiftState done [17:53:31]FM_GetShiftState done [17:53:31]opened in 1724026361 [17:53:31]opened+sec_in_day 1724112761 [17:53:31]quantity*price = 6000 [17:53:31]sum+1 = 6001 [17:53:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700321005031 Фисташки Mike жареные соленые 50г 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.17 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 143 19.08.2024 17:53 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50036 ФПД: 251228182321392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T175332&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50036&fm=251228182321392&tin=02508201610067®Number=0000000000092546&sum=19000 0 [17:53:32]StoreToDocumentArchive [17:53:32]shift 467 fd 50036 [17:53:32]save to /storage/0467/doc_00050036 [17:53:32]save last doc name /storage/0467/doc_00050036 to /storage/kkm_last_doc_name [17:53:32]save OK [17:53:32]Clear old archive folders... [17:53:32]ProcessDocumentItem done err = 0, tmpTLVsize=426 [17:53:32]tlvbuf is 011F8C00 [17:53:32]SAM_PROTO_ClearQueue [17:53:32]wFMCommunicate request_size=4 [17:53:32]MH_SAM_APDU [17:53:32]CAPDU: 80 09 00 00 [17:53:32]Write to MH i2c: E2 08 00 8D 0B 80 09 00 00 00 00 00 00 0A [17:53:32]Write i2c OK [17:53:32]MH_I2C_Read... [17:53:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:32]Read from MH i2c: E2 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: E2 03 00 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: E2 03 00 8D 0B 00 90 00 0C [17:53:32]RAPDU: 90 00 [17:53:32]wFMCommunicate OK [17:53:32]SAM_PROTO_ClearQueue done [17:53:32]KKMCreateOFDPacket [17:53:32]OFDProtocolAddRootSTLVToBuf [17:53:32]FM_MakeSignedData [17:53:32]FM_MakeSignedData [17:53:32]SAM_PROTO_SignData [17:53:32]wFMCommunicate request_size=4 [17:53:32]MH_SAM_APDU [17:53:32]CAPDU: 80 0D 01 02 [17:53:32]Write to MH i2c: E2 08 00 8E 0B 80 0D 01 02 00 00 00 00 12 [17:53:32]Write i2c OK [17:53:32]MH_I2C_Read... [17:53:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:32]Read from MH i2c: E2 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: E2 03 00 [17:53:32]MH_I2C_Read... [17:53:32]Read from MH i2c: E2 03 00 8E 0B 00 90 00 0D [17:53:32]RAPDU: 90 00 [17:53:32]wFMCommunicate OK [17:53:32]wFMCommunicate request_size=255 [17:53:32]MH_SAM_APDU [17:53:32]CAPDU: 80 0D 02 02 FA 03 00 AA 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 33 35 37 34 06 04 38 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 92 D1 8F D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 BA D0 BE D0 BD D0 B8 D0 BD D0 B0 20 35 30 20 D0 B3 D1 80 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 7C 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 33 31 06 04 38 00 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B8 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B5 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 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 [17:53:32]Write to MH i2c: E2 02 01 8F 0B 80 0D 02 02 FA 00 03 00 AA 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 33 35 37 34 06 04 38 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 92 D1 8F D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 BA D0 BE D0 BD D0 B8 D0 BD D0 B0 20 35 30 20 D0 B3 D1 80 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 7C 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 33 31 06 04 38 00 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B8 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B5 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 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 00 00 0D [17:53:33]Write i2c OK [17:53:33]MH_I2C_Read... [17:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:33]Read from MH i2c: E2 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 03 00 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [17:53:33]RAPDU: 90 00 [17:53:33]wFMCommunicate OK [17:53:33]wFMCommunicate request_size=185 [17:53:33]MH_SAM_APDU [17:53:33]CAPDU: 80 0D 02 02 B4 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 9C 86 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 74 C3 00 00 35 04 06 00 E4 7D 9E 90 98 F0 [17:53:33]Write to MH i2c: E2 BC 00 90 0B 80 0D 02 02 B4 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 9C 86 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 74 C3 00 00 35 04 06 00 E4 7D 9E 90 98 F0 00 00 FC [17:53:33]Write i2c OK [17:53:33]MH_I2C_Read... [17:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:33]Read from MH i2c: E2 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 03 00 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 03 00 90 0B 00 90 00 0F [17:53:33]RAPDU: 90 00 [17:53:33]wFMCommunicate OK [17:53:33]wFMCommunicate request_size=4 [17:53:33]MH_SAM_APDU [17:53:33]CAPDU: 80 0D 03 02 [17:53:33]Write to MH i2c: E2 08 00 91 0B 80 0D 03 02 00 00 00 00 17 [17:53:33]Write i2c OK [17:53:33]MH_I2C_Read... [17:53:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:33]Read from MH i2c: E2 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 0B 00 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 0B 00 91 0B 00 E0 FF 3B 50 DA EF 32 1D 90 00 9A [17:53:33]RAPDU: E0 FF 3B 50 DA EF 32 1D 90 00 [17:53:33]wFMCommunicate OK [17:53:33]SAM_PROTO_SignData done [17:53:33]FM_MakeSignedData done [17:53:33]CreateOFDProtocolMessage [17:53:33]wFMCommunicate request_size=4 [17:53:33]MH_SAM_APDU [17:53:33]CAPDU: 80 11 00 00 [17:53:33]Write to MH i2c: E2 08 00 92 0B 80 11 00 00 00 00 00 00 17 [17:53:33]Write i2c OK [17:53:33]MH_I2C_Read... [17:53:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:33]Read from MH i2c: E2 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 17 00 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: E2 17 00 92 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 62 [17:53:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:53:33]wFMCommunicate OK [17:53:33]CreateOFDProtocolMessage done [17:53:33]OFDSenderStorePacket 50036 [17:53:33]StoreOFDPacket docnum=50036 [17:53:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 BE 01 00 00 F8 4C B6 01 D8 13 5A 03 01 00 03 00 AA 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 33 35 37 34 06 04 38 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 92 D1 8F D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 BA D0 BE D0 BD D0 B8 D0 BD D0 B0 20 35 30 20 D0 B3 D1 80 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 7C 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 33 31 06 04 38 00 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B8 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B5 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 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 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 9C 86 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 74 C3 00 00 35 04 06 00 E4 7D 9E 90 98 F0 E0 FF 3B 50 DA EF 32 1D [17:53:33]CheckFolder [17:53:33]dirname=/storage/ofd_packets [17:53:33]CheckFolder done [17:53:33]ProducePacketName [17:53:33]name=ofd_packets/00050036 [17:53:33]NVStorageSaveData ofd_packets/00050036 [17:53:33]File name is /storage/ofd_packets/00050036 [17:53:33]Write 476 bytes [17:53:33]NVStorageSaveData done [17:53:33]OFDSenderStorePacket done [17:53:33]KKMCreateOFDPacket done [17:53:33]NVStorageSaveData kkm_last_timestamp [17:53:33]File name is /storage/kkm_last_timestamp [17:53:33]Write 4 bytes [17:53:33]NVStorageSaveData done [17:53:33]ExternCall_PrintAddStr [17:53:33]wPrintStart [17:53:33]Write to MH i2c: 01 00 00 93 0B 9E [17:53:33]Write i2c OK [17:53:33]MH_I2C_Read... [17:53:33]OFD Sender: Processing packet 50036 [packets to send 21, broken 20] [17:53:33]ProducePacketName [17:53:33]name=ofd_packets/00050036 [17:53:33]OFD Sender: To server: pG, [17:53:33]CommunicateWithHost lk.salyk.kg:30040 [17:53:33]ConnectInit lk.salyk.kg [17:53:33]Read from MH i2c: 01 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: 01 07 00 [17:53:33]MH_I2C_Read... [17:53:33]Read from MH i2c: 01 07 00 93 0B 00 00 00 00 00 FF 0F B3 [17:53:33]RasterBufferAndPrint [17:53:33]line Счет N : (3)190163 [17:53:33]line ИНН: 02508201610067 [17:53:33]line Контрольно-Кассовый Чек [17:53:33]line ПРОДАЖА [17:53:33]line Товар: 4870209743574 [17:53:33]line Арахис BIG BOB Вяленая конина 50 гр [17:53:33]line 1.000 * 60.00 [17:53:33]line = 60.00 [17:53:33]line НДС 12% НСП 1% [17:53:33]line > о реализуемом товаре [17:53:33]line Товар: 4700321005031 [17:53:33]line Фисташки Mike жареные соленые 50г [17:53:33]line 1.000 * 130.00 [17:53:33]line = 130.00 [17:53:33]line НДС 12% НСП 1% [17:53:33]line > о реализуемом товаре [17:53:33]line ИТОГО: 190.00 [17:53:33]line НСП 1% : 1.68 [17:53:33]line НДС 12% : 20.17 [17:53:33]line Наличными: 190.00 [17:53:33]line Безнал.: 0.00 [17:53:33]line Место: АЗС № 95 "Партнер Нефть" [17:53:33]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:53:33]line СНО: Общий режим [17:53:33]line Чек 143 19.08.2024 17:53 [17:53:33]line Смена: 467 ФФД: 1.0 [17:53:33]line ЗНМ: 0300000078 [17:53:33]line РНМ: 0000000000092546 [17:53:33]line Версия ККМ: 001 [17:53:33]line ФМ: 0000000000871800 [17:53:33]line ФД: 50036 [17:53:33]line ФПД: 251228182321392 [17:53:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T175332&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50036&fm=251228182321392&tin=02508201610067®Number=0000000000092546&sum=19000 [17:53:33]line 0 [17:53:33]written 0, free lines is 4095 [17:53:34]Connected sock=10 [17:53:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 BE 01 00 00 F8 4C B6 01 D8 13 5A 03 01 00 03 00 AA 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 33 35 37 34 06 04 38 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 92 D1 8F D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 BA D0 BE D0 BD D0 B8 D0 BD D0 B0 20 35 30 20 D0 B3 D1 80 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 7C 00 8A 04 0D 00 34 37 30 30 33 32 31 30 30 35 30 33 31 06 04 38 00 D0 A4 D0 B8 D1 81 D1 82 D0 B0 D1 88 D0 BA D0 B8 20 4D 69 6B 65 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD D1 8B D0 B5 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 35 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 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 9C 86 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 74 C3 00 00 35 04 06 00 E4 7D 9E 90 98 F0 E0 FF 3B 50 DA EF 32 1D [17:53:34]Write to MH i2c: 01 00 00 C3 0B CE [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: 01 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: 01 07 00 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: 01 07 00 C3 0B 00 00 00 00 00 5C 0C 3D [17:53:34]RasterBufferAndPrint [17:53:34]line [17:53:34]line [17:53:34]line [17:53:34]line [17:53:34]line [17:53:34]written 0, free lines is 3173 [17:53:34]MH_Cut [17:53:34]Write to MH i2c: D1 01 00 CA 0B 01 A7 [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: D1 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: D1 01 00 [17:53:34]MH_I2C_Read... [17:53:34]Read from MH i2c: D1 01 00 CA 0B 00 A6 [17:53:34]Write to MH i2c: 01 00 00 CB 0B D6 [17:53:34]Write i2c OK [17:53:34]MH_I2C_Read... [17:53:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A2 73 47 00 DC EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 74 C3 00 00 F4 03 04 00 09 31 C3 66 B6 04 01 00 00 3D B9 9E 08 3D 83 15 8C [17:53:34]CommunicateWithHost err = 0 [17:53:34]CheckOFDResponse [17:53:34]1017 (14) - 77093643461234 [17:53:34]1041 (16) - 0000000000871800 [17:53:34]1040 (4) - 50036 [17:53:34]1012 (4) - 19.08.2024 11:48 [17:53:34]1206 (1) - 0 [17:53:34]OFD Sender: Remove packet 50036 [17:53:34]ProducePacketName [17:53:34]name=ofd_packets/00050036 [17:53:34]NVStorageDeleteData [17:53:35]OFD Sender: No OFD packet to send [17:53:35]*** Cut start [17:53:35]*** Purtial cut [17:53:35]*** Stage 1: CUTSNS_PIN = 1 [17:53:35]Read from MH i2c: 01 [17:53:35]MH_I2C_Read... [17:53:35]*** Stop cut motor [17:53:35]*** Cut end [17:53:35]Read from MH i2c: 01 07 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: 01 07 00 CB 0B 00 00 00 00 00 FF 0F EB [17:53:35]process_action close_receipt done [17:53:35]requested_data is exist [17:53:35]produce_requested_data [17:53:35]requested_item fm.sn is exist - process it [17:53:35]wFMCommunicate request_size=4 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 11 00 00 [17:53:35]Write to MH i2c: E2 08 00 CC 0B 80 11 00 00 00 00 00 00 51 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 17 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 17 00 CC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9C [17:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:53:35]wFMCommunicate OK [17:53:35]requested_item fd.num is exist - process it [17:53:35]SAM_PROTO_GetFieldsCounters [17:53:35]wFMCommunicate request_size=4 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 13 00 00 [17:53:35]Write to MH i2c: E2 08 00 CD 0B 80 13 00 00 00 00 00 00 54 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 62 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 62 00 CD 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 74 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [17:53:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 74 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:35]wFMCommunicate OK [17:53:35]SAM_PROTO_GetFieldsCounters done [17:53:35]requested_item shift.num is exist - process it [17:53:35]requested_item shift.opened is exist - process it [17:53:35]req_shift_opened [17:53:35]FM_GetShiftState [17:53:35]SAM_PROTO_GetShiftState [17:53:35]wFMCommunicate request_size=4 [17:53:35]MH_SAM_APDU [17:53:35]CAPDU: 80 13 01 00 [17:53:35]Write to MH i2c: E2 08 00 CE 0B 80 13 01 00 00 00 00 00 56 [17:53:35]Write i2c OK [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 [17:53:35]MH_I2C_Read... [17:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:35]Read from MH i2c: E2 0E 00 [17:53:35]MH_I2C_Read... [17:53:35]Read from MH i2c: E2 0E 00 CE 0B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 10 [17:53:35]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:53:35]wFMCommunicate OK [17:53:35]SAM_PROTO_GetShiftState done [17:53:35]FM_GetShiftState done [17:53:35]req_shift_opened done [17:53:35]requested_item shift.open_date is exist - process it [17:53:35]req_shift_open_date [17:53:35]req_shift_open_date done [17:53:35]produce_requested_data done [17:53:35]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50036,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [17:53:35]process_action_free close_receipt [17:53:35]json_value_free [17:53:35]json_value_free done [17:53:35]process_json_proto returns [17:53:35]Send response to host [17:53:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50036,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [17:53:35]free response buf [17:53:35]execute_script done [17:53:35]execute_script returns [17:53:35]free content buf [17:53:35]Sock 7.Close socket [17:53:35]Sock 7.Thread stoped [17:53:40]OFD Sender: No OFD packet to send [17:53:45]OFD Sender: No OFD packet to send [17:53:50]OFD Sender: No OFD packet to send [17:53:55]OFD Sender: No OFD packet to send [17:54:00]OFD Sender: No OFD packet to send [17:54:05]OFD Sender: No OFD packet to send [17:54:10]OFD Sender: No OFD packet to send [17:54:15]OFD Sender: No OFD packet to send [17:54:20]OFD Sender: No OFD packet to send [17:54:25]OFD Sender: No OFD packet to send [17:54:30]OFD Sender: No OFD packet to send [17:54:35]OFD Sender: No OFD packet to send [17:54:40]OFD Sender: No OFD packet to send [17:54:45]OFD Sender: No OFD packet to send [17:54:50]OFD Sender: No OFD packet to send [17:54:55]OFD Sender: No OFD packet to send [17:55:00]OFD Sender: No OFD packet to send [17:55:05]OFD Sender: No OFD packet to send [17:55:10]OFD Sender: No OFD packet to send [17:55:15]OFD Sender: No OFD packet to send [17:55:20]OFD Sender: No OFD packet to send [17:55:25]OFD Sender: No OFD packet to send [17:55:30]OFD Sender: No OFD packet to send [17:55:35]OFD Sender: No OFD packet to send [17:55:40]OFD Sender: No OFD packet to send [17:55:41]accept exits with 9 [17:55:41]New connection [17:55:41]New thread 3066613092 created [17:55:41]Thread 3066469732 joined [17:55:41]Waiting for new connection... [17:55:41] Sock 9.Parse request [17:55:41]Sock 9.Check first char [17:55:41]Sock 9.First char is OK [17:55:41]request: POST /json_proto HTTP/1.0 [17:55:41]Method: POST [17:55:41]URL: /json_proto [17:55:41]Method is POST - this is cgi request [17:55:41]url: /json_proto [17:55:41]query_string will be loaded in cgi processing [17:55:41]execute_cgi json_proto POST (null) [17:55:41]execute_cgi path=json_proto method=POST [17:55:41]POST find Content-Length [17:55:41]Host: 172.17.46.196:8080 [17:55:41]Content-Length: 756 [17:55:41]Content-Type: application/json [17:55:41] [17:55:41]POST finish read [17:55:41]Found Content-Length = 756 [17:55:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11328031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116562", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:41]execute_script... [17:55:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11328031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116562", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:41]POST & json_proto [17:55:41]process_json_proto [17:55:41]json parsed OK: [17:55:41]protocol is kg_v1.0 [17:55:41]action value=close_receipt [17:55:41]process_action close_receipt [17:55:41]cmd_close_receipt [17:55:41]MH_GetDate [17:55:41]Write to MH i2c: F0 00 00 CF 0B C9 [17:55:41]Write i2c OK [17:55:41]MH_I2C_Read... [17:55:41]Read from MH i2c: F0 [17:55:41]MH_I2C_Read... [17:55:41]Read from MH i2c: F0 09 00 [17:55:41]MH_I2C_Read... [17:55:41]Read from MH i2c: F0 09 00 CF 0B 00 1E 87 C3 66 C4 85 C2 66 11 [17:55:41]GetLastDocTimeStamp 1724090012 [17:55:41]current date 1724090142 [17:55:41]FM_GetShiftState [17:55:41]SAM_PROTO_GetShiftState [17:55:41]wFMCommunicate request_size=4 [17:55:41]MH_SAM_APDU [17:55:41]CAPDU: 80 13 01 00 [17:55:41]Write to MH i2c: E2 08 00 D0 0B 80 13 01 00 00 00 00 00 58 [17:55:41]Write i2c OK [17:55:41]MH_I2C_Read... [17:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:42]Read from MH i2c: E2 [17:55:42]MH_I2C_Read... [17:55:42]Read from MH i2c: E2 0E 00 [17:55:42]MH_I2C_Read... [17:55:42]Read from MH i2c: E2 0E 00 D0 0B 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 12 [17:55:42]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:55:42]wFMCommunicate OK [17:55:42]SAM_PROTO_GetShiftState done [17:55:42]FM_GetShiftState done [17:55:42]opened in 1724026361 [17:55:42]opened+sec_in_day 1724112761 [17:55:42]quantity*price = 0 [17:55:42]sum+1 = 1 [17:55:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 144 19.08.2024 17:55 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116562 ФМ: 0000000000871800 ФД: 50037 ФПД: 58075895220062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T175542&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50037&fm=58075895220062&tin=02508201610067®Number=0000000000092546&sum=0 [17:55:43]StoreToDocumentArchive [17:55:43]shift 467 fd 50037 [17:55:43]save to /storage/0467/doc_00050037 [17:55:43]save last doc name /storage/0467/doc_00050037 to /storage/kkm_last_doc_name [17:55:43]save OK [17:55:43]Clear old archive folders... [17:55:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:43]tlvbuf is 011C7AC0 [17:55:43]SAM_PROTO_ClearQueue [17:55:43]wFMCommunicate request_size=4 [17:55:43]MH_SAM_APDU [17:55:43]CAPDU: 80 09 00 00 [17:55:43]Write to MH i2c: E2 08 00 DD 0B 80 09 00 00 00 00 00 00 5A [17:55:43]Write i2c OK [17:55:43]MH_I2C_Read... [17:55:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:43]Read from MH i2c: E2 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 03 00 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 03 00 DD 0B 00 90 00 5C [17:55:43]RAPDU: 90 00 [17:55:43]wFMCommunicate OK [17:55:43]SAM_PROTO_ClearQueue done [17:55:43]KKMCreateOFDPacket [17:55:43]OFDProtocolAddRootSTLVToBuf [17:55:43]FM_MakeSignedData [17:55:43]FM_MakeSignedData [17:55:43]SAM_PROTO_SignData [17:55:43]wFMCommunicate request_size=4 [17:55:43]MH_SAM_APDU [17:55:43]CAPDU: 80 0D 01 02 [17:55:43]Write to MH i2c: E2 08 00 DE 0B 80 0D 01 02 00 00 00 00 62 [17:55:43]Write i2c OK [17:55:43]MH_I2C_Read... [17:55:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:43]Read from MH i2c: E2 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 03 00 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 03 00 DE 0B 00 90 00 5D [17:55:43]RAPDU: 90 00 [17:55:43]wFMCommunicate OK [17:55:43]wFMCommunicate request_size=255 [17:55:43]MH_SAM_APDU [17:55:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 1E 87 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 75 C3 00 00 35 04 06 00 34 [17:55:43]Write to MH i2c: E2 02 01 DF 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 1E 87 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 75 C3 00 00 35 04 06 00 34 00 00 A7 [17:55:43]Write i2c OK [17:55:43]MH_I2C_Read... [17:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:43]Read from MH i2c: E2 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 03 00 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 03 00 DF 0B 00 90 00 5E [17:55:43]RAPDU: 90 00 [17:55:43]wFMCommunicate OK [17:55:43]wFMCommunicate request_size=10 [17:55:43]MH_SAM_APDU [17:55:43]CAPDU: 80 0D 02 02 05 D1 D9 1A C7 5E [17:55:43]Write to MH i2c: E2 0D 00 E0 0B 80 0D 02 02 05 00 D1 D9 1A C7 5E 00 00 58 [17:55:43]Write i2c OK [17:55:43]MH_I2C_Read... [17:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:43]Read from MH i2c: E2 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 03 00 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 03 00 E0 0B 00 90 00 5F [17:55:43]RAPDU: 90 00 [17:55:43]wFMCommunicate OK [17:55:43]wFMCommunicate request_size=4 [17:55:43]MH_SAM_APDU [17:55:43]CAPDU: 80 0D 03 02 [17:55:43]Write to MH i2c: E2 08 00 E1 0B 80 0D 03 02 00 00 00 00 67 [17:55:43]Write i2c OK [17:55:43]MH_I2C_Read... [17:55:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:43]Read from MH i2c: E2 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 0B 00 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 0B 00 E1 0B 00 55 3E C3 19 91 10 CE D1 90 00 17 [17:55:43]RAPDU: 55 3E C3 19 91 10 CE D1 90 00 [17:55:43]wFMCommunicate OK [17:55:43]SAM_PROTO_SignData done [17:55:43]FM_MakeSignedData done [17:55:43]CreateOFDProtocolMessage [17:55:43]wFMCommunicate request_size=4 [17:55:43]MH_SAM_APDU [17:55:43]CAPDU: 80 11 00 00 [17:55:43]Write to MH i2c: E2 08 00 E2 0B 80 11 00 00 00 00 00 00 67 [17:55:43]Write i2c OK [17:55:43]MH_I2C_Read... [17:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:43]Read from MH i2c: E2 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 17 00 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 17 00 E2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B2 [17:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:55:43]wFMCommunicate OK [17:55:43]CreateOFDProtocolMessage done [17:55:43]OFDSenderStorePacket 50037 [17:55:43]StoreOFDPacket docnum=50037 [17:55:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 7F D6 07 01 95 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 1E 87 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 75 C3 00 00 35 04 06 00 34 D1 D9 1A C7 5E 55 3E C3 19 91 10 CE D1 [17:55:43]CheckFolder [17:55:43]dirname=/storage/ofd_packets [17:55:43]CheckFolder done [17:55:43]ProducePacketName [17:55:43]name=ofd_packets/00050037 [17:55:43]NVStorageSaveData ofd_packets/00050037 [17:55:43]File name is /storage/ofd_packets/00050037 [17:55:43]Write 301 bytes [17:55:43]NVStorageSaveData done [17:55:43]OFDSenderStorePacket done [17:55:43]KKMCreateOFDPacket done [17:55:43]NVStorageSaveData kkm_last_timestamp [17:55:43]File name is /storage/kkm_last_timestamp [17:55:43]Write 4 bytes [17:55:43]NVStorageSaveData done [17:55:43]ExternCall_PrintAddStr [17:55:43]wPrintStart [17:55:43]Write to MH i2c: 01 00 00 E3 0B EE [17:55:43]Write i2c OK [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: 01 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: 01 07 00 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: 01 07 00 E3 0B 00 00 00 00 00 FF 0F 03 [17:55:43]RasterBufferAndPrint [17:55:43]line Счет N : (1)11328031 [17:55:43]line ИНН: 02508201610067 [17:55:43]line Контрольно-Кассовый Чек [17:55:43]line ПРОДАЖА [17:55:43]line ТРК (МРК, ГНК) : 12 [17:55:43]line Товар: 2710124130 [17:55:43]line Аи-92-К-4 [17:55:43]line 30.000 * 0.00 [17:55:43]line = 0.00 [17:55:43]line НДС 12% НСП 1% [17:55:43]line > о реализуемом товаре [17:55:43]line ИТОГО: 0.00 [17:55:43]line НСП 1% : 0.00 [17:55:43]line НДС 12% : 0.00 [17:55:43]line Наличными: 0.00 [17:55:43]line Безнал.: 0.00 [17:55:43]line Место: АЗС № 95 "Партнер Нефть" [17:55:43]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:55:43]line СНО: Общий режим [17:55:43]line Чек 144 19.08.2024 17:55 [17:55:43]line Смена: 467 ФФД: 1.0 [17:55:43]line ЗНМ: 0300000078 [17:55:43]line РНМ: 0000000000092546 [17:55:43]line Версия ККМ: 001 [17:55:43]line Талоны: ТК ГПНА Online [17:55:43]line 30116562 [17:55:43]line ФМ: 0000000000871800 [17:55:43]line ФД: 50037 [17:55:43]line ФПД: 58075895220062 [17:55:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T175542&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50037&fm=58075895220062&tin=02508201610067®Number=0000000000092546&sum=0 [17:55:44]written 0, free lines is 4095 [17:55:44]OFD Sender: Processing packet 50037 [packets to send 21, broken 20] [17:55:44]ProducePacketName [17:55:44]name=ofd_packets/00050037 [17:55:44]OFD Sender: To server: pG, [17:55:44]CommunicateWithHost lk.salyk.kg:30040 [17:55:44]ConnectInit lk.salyk.kg [17:55:44]Connected sock=10 [17:55:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 7F D6 07 01 95 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 1E 87 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 75 C3 00 00 35 04 06 00 34 D1 D9 1A C7 5E 55 3E C3 19 91 10 CE D1 [17:55:44]Write to MH i2c: 01 00 00 0D 0C 19 [17:55:44]Write i2c OK [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: 01 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: 01 07 00 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: 01 07 00 0D 0C 00 00 00 00 00 DF 0C 0B [17:55:44]RasterBufferAndPrint [17:55:44]line [17:55:44]line [17:55:44]line [17:55:44]line [17:55:44]line [17:55:44]written 0, free lines is 3304 [17:55:44]MH_Cut [17:55:44]Write to MH i2c: D1 01 00 14 0C 01 F2 [17:55:44]Write i2c OK [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: D1 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: D1 01 00 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: D1 01 00 14 0C 00 F1 [17:55:44]Write to MH i2c: 01 00 00 15 0C 21 [17:55:44]Write i2c OK [17:55:44]MH_I2C_Read... [17:55:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 1E 0A 47 00 A4 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 75 C3 00 00 F4 03 04 00 8B 31 C3 66 B6 04 01 00 00 DB 15 16 52 39 E7 0D 6A [17:55:44]CommunicateWithHost err = 0 [17:55:44]CheckOFDResponse [17:55:44]1017 (14) - 77093643461234 [17:55:44]1041 (16) - 0000000000871800 [17:55:44]1040 (4) - 50037 [17:55:44]1012 (4) - 19.08.2024 11:50 [17:55:44]1206 (1) - 0 [17:55:44]OFD Sender: Remove packet 50037 [17:55:44]ProducePacketName [17:55:44]name=ofd_packets/00050037 [17:55:44]NVStorageDeleteData [17:55:44]OFD Sender: No OFD packet to send [17:55:45]*** Cut start [17:55:45]*** Purtial cut [17:55:45]*** CUTSNS_PIN = 0 [17:55:45]*** Stage 1: CUTSNS_PIN = 1 [17:55:47]Read from MH i2c: 01 [17:55:47]MH_I2C_Read... [17:55:47]*** Stop cut motor [17:55:47]*** Cut end [17:55:47]Read from MH i2c: 01 07 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: 01 07 00 15 0C 00 00 00 00 00 FF 0F 36 [17:55:47]process_action close_receipt done [17:55:47]requested_data is exist [17:55:47]produce_requested_data [17:55:47]requested_item fm.sn is exist - process it [17:55:47]wFMCommunicate request_size=4 [17:55:47]MH_SAM_APDU [17:55:47]CAPDU: 80 11 00 00 [17:55:47]Write to MH i2c: E2 08 00 16 0C 80 11 00 00 00 00 00 00 9C [17:55:47]Write i2c OK [17:55:47]MH_I2C_Read... [17:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:47]Read from MH i2c: E2 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 17 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 17 00 16 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E7 [17:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:55:47]wFMCommunicate OK [17:55:47]requested_item fd.num is exist - process it [17:55:47]SAM_PROTO_GetFieldsCounters [17:55:47]wFMCommunicate request_size=4 [17:55:47]MH_SAM_APDU [17:55:47]CAPDU: 80 13 00 00 [17:55:47]Write to MH i2c: E2 08 00 17 0C 80 13 00 00 00 00 00 00 9F [17:55:47]Write i2c OK [17:55:47]MH_I2C_Read... [17:55:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:47]Read from MH i2c: E2 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 62 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 62 00 17 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 75 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [17:55:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 75 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:55:47]wFMCommunicate OK [17:55:47]SAM_PROTO_GetFieldsCounters done [17:55:47]requested_item shift.num is exist - process it [17:55:47]requested_item shift.opened is exist - process it [17:55:47]req_shift_opened [17:55:47]FM_GetShiftState [17:55:47]SAM_PROTO_GetShiftState [17:55:47]wFMCommunicate request_size=4 [17:55:47]MH_SAM_APDU [17:55:47]CAPDU: 80 13 01 00 [17:55:47]Write to MH i2c: E2 08 00 18 0C 80 13 01 00 00 00 00 00 A1 [17:55:47]Write i2c OK [17:55:47]MH_I2C_Read... [17:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:47]Read from MH i2c: E2 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 0E 00 [17:55:47]MH_I2C_Read... [17:55:47]Read from MH i2c: E2 0E 00 18 0C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 5B [17:55:47]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:55:47]wFMCommunicate OK [17:55:47]SAM_PROTO_GetShiftState done [17:55:47]FM_GetShiftState done [17:55:47]req_shift_opened done [17:55:47]requested_item shift.open_date is exist - process it [17:55:47]req_shift_open_date [17:55:47]req_shift_open_date done [17:55:47]produce_requested_data done [17:55:47]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50037,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [17:55:47]process_action_free close_receipt [17:55:47]json_value_free [17:55:47]json_value_free done [17:55:47]process_json_proto returns [17:55:47]Send response to host [17:55:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50037,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [17:55:47]free response buf [17:55:47]execute_script done [17:55:47]execute_script returns [17:55:47]free content buf [17:55:47]Sock 9.Close socket [17:55:47]Sock 9.Thread stoped [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:56]accept exits with 7 [17:55:56]New connection [17:55:56]New thread 3066469732 created [17:55:56]Thread 3066613092 joined [17:55:56]Waiting for new connection... [17:55:56] Sock 7.Parse request [17:55:56]Sock 7.Check first char [17:55:56]Sock 7.First char is OK [17:55:56]request: POST /json_proto HTTP/1.0 [17:55:56]Method: POST [17:55:56]URL: /json_proto [17:55:56]Method is POST - this is cgi request [17:55:56]url: /json_proto [17:55:56]query_string will be loaded in cgi processing [17:55:56]execute_cgi json_proto POST (null) [17:55:56]execute_cgi path=json_proto method=POST [17:55:56]POST find Content-Length [17:55:56]Host: 172.17.46.196:8080 [17:55:56]Content-Length: 1202 [17:55:56]Content-Type: application/json [17:55:56] [17:55:56]POST finish read [17:55:56]Found Content-Length = 1202 [17:55:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190164", "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": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 3.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 385.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:56]execute_script... [17:55:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190164", "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": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 3.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 385.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:56]POST & json_proto [17:55:56]process_json_proto [17:55:56]json parsed OK: [17:55:56]protocol is kg_v1.0 [17:55:56]action value=close_receipt [17:55:56]process_action close_receipt [17:55:56]cmd_close_receipt [17:55:56]MH_GetDate [17:55:56]Write to MH i2c: F0 00 00 19 0C 14 [17:55:56]Write i2c OK [17:55:56]MH_I2C_Read... [17:55:56]Read from MH i2c: F0 [17:55:56]MH_I2C_Read... [17:55:56]Read from MH i2c: F0 09 00 [17:55:56]MH_I2C_Read... [17:55:56]Read from MH i2c: F0 09 00 19 0C 00 2D 87 C3 66 C4 85 C2 66 6B [17:55:56]GetLastDocTimeStamp 1724090142 [17:55:56]current date 1724090157 [17:55:56]FM_GetShiftState [17:55:56]SAM_PROTO_GetShiftState [17:55:56]wFMCommunicate request_size=4 [17:55:56]MH_SAM_APDU [17:55:56]CAPDU: 80 13 01 00 [17:55:56]Write to MH i2c: E2 08 00 1A 0C 80 13 01 00 00 00 00 00 A3 [17:55:56]Write i2c OK [17:55:56]MH_I2C_Read... [17:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:56]Read from MH i2c: E2 [17:55:56]MH_I2C_Read... [17:55:56]Read from MH i2c: E2 0E 00 [17:55:56]MH_I2C_Read... [17:55:56]Read from MH i2c: E2 0E 00 1A 0C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 5D [17:55:56]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:55:56]wFMCommunicate OK [17:55:56]SAM_PROTO_GetShiftState done [17:55:56]FM_GetShiftState done [17:55:56]opened in 1724026361 [17:55:56]opened+sec_in_day 1724112761 [17:55:56]quantity*price = 4000 [17:55:56]sum+1 = 4001 [17:55:56]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4650243871828 Gorilla эн нап манго-кокос 0,45 ж/б 3.000 * 90.00 = 270.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001154059 Напиток Lipton IceTea 0,5л зел чай 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 385.00 НСП 1% : 3.40 НДС 12% : 40.88 Наличными: 385.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 145 19.08.2024 17:55 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50038 ФПД: 269032805883493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T175557&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50038&fm=269032805883493&tin=02508201610067®Number=0000000000092546&sum=38500 0 [17:55:57]StoreToDocumentArchive [17:55:57]shift 467 fd 50038 [17:55:57]save to /storage/0467/doc_00050038 [17:55:57]save last doc name /storage/0467/doc_00050038 to /storage/kkm_last_doc_name [17:55:57]save OK [17:55:57]Clear old archive folders... [17:55:57]ProcessDocumentItem done err = 0, tmpTLVsize=515 [17:55:57]tlvbuf is 01255D10 [17:55:57]SAM_PROTO_ClearQueue [17:55:57]wFMCommunicate request_size=4 [17:55:57]MH_SAM_APDU [17:55:57]CAPDU: 80 09 00 00 [17:55:57]Write to MH i2c: E2 08 00 27 0C 80 09 00 00 00 00 00 00 A5 [17:55:57]Write i2c OK [17:55:57]MH_I2C_Read... [17:55:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:57]Read from MH i2c: E2 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 03 00 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 03 00 27 0C 00 90 00 A7 [17:55:57]RAPDU: 90 00 [17:55:57]wFMCommunicate OK [17:55:57]SAM_PROTO_ClearQueue done [17:55:57]KKMCreateOFDPacket [17:55:57]OFDProtocolAddRootSTLVToBuf [17:55:57]FM_MakeSignedData [17:55:57]FM_MakeSignedData [17:55:57]SAM_PROTO_SignData [17:55:57]wFMCommunicate request_size=4 [17:55:57]MH_SAM_APDU [17:55:57]CAPDU: 80 0D 01 02 [17:55:57]Write to MH i2c: E2 08 00 28 0C 80 0D 01 02 00 00 00 00 AD [17:55:57]Write i2c OK [17:55:57]MH_I2C_Read... [17:55:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:57]Read from MH i2c: E2 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 03 00 [17:55:57]MH_I2C_Read... [17:55:57]Read from MH i2c: E2 03 00 28 0C 00 90 00 A8 [17:55:57]RAPDU: 90 00 [17:55:57]wFMCommunicate OK [17:55:57]wFMCommunicate request_size=255 [17:55:57]MH_SAM_APDU [17:55:57]CAPDU: 80 0D 02 02 FA 03 00 03 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 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 [17:55:58]Write to MH i2c: E2 02 01 29 0C 80 0D 02 02 FA 00 03 00 03 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 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 00 00 21 [17:55:58]Write i2c OK [17:55:58]MH_I2C_Read... [17:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:58]Read from MH i2c: E2 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: E2 03 00 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: E2 03 00 29 0C 00 90 00 A9 [17:55:58]RAPDU: 90 00 [17:55:58]wFMCommunicate OK [17:55:58]wFMCommunicate request_size=255 [17:55:58]MH_SAM_APDU [17:55:58]CAPDU: 80 0D 02 02 FA 35 34 30 35 39 06 04 30 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 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 64 96 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 2D 87 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 [17:55:58]Write to MH i2c: E2 02 01 2A 0C 80 0D 02 02 FA 00 35 34 30 35 39 06 04 30 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 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 64 96 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 2D 87 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 00 00 CC [17:55:58]Write i2c OK [17:55:58]MH_I2C_Read... [17:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:58]Read from MH i2c: E2 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: E2 03 00 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: E2 03 00 2A 0C 00 90 00 AA [17:55:58]RAPDU: 90 00 [17:55:58]wFMCommunicate OK [17:55:58]wFMCommunicate request_size=24 [17:55:58]MH_SAM_APDU [17:55:58]CAPDU: 80 0D 02 02 13 30 10 04 04 00 76 C3 00 00 35 04 06 00 F4 AF 14 D3 DE 65 [17:55:58]Write to MH i2c: E2 1B 00 2B 0C 80 0D 02 02 13 00 30 10 04 04 00 76 C3 00 00 35 04 06 00 F4 AF 14 D3 DE 65 00 00 64 [17:55:58]Write i2c OK [17:55:58]MH_I2C_Read... [17:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:58]Read from MH i2c: E2 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: E2 03 00 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: E2 03 00 2B 0C 00 90 00 AB [17:55:58]RAPDU: 90 00 [17:55:58]wFMCommunicate OK [17:55:58]wFMCommunicate request_size=4 [17:55:58]MH_SAM_APDU [17:55:58]CAPDU: 80 0D 03 02 [17:55:58]Write to MH i2c: E2 08 00 2C 0C 80 0D 03 02 00 00 00 00 B3 [17:55:58]Write i2c OK [17:55:58]MH_I2C_Read... [17:55:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:58]Read from MH i2c: E2 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: E2 0B 00 [17:55:58]MH_I2C_Read... [17:55:58]Read from MH i2c: E2 0B 00 2C 0C 00 B5 F3 5E A3 89 C1 30 01 90 00 D8 [17:55:58]RAPDU: B5 F3 5E A3 89 C1 30 01 90 00 [17:55:58]wFMCommunicate OK [17:55:58]SAM_PROTO_SignData done [17:55:58]FM_MakeSignedData done [17:55:58]CreateOFDProtocolMessage [17:55:58]wFMCommunicate request_size=4 [17:55:58]MH_SAM_APDU [17:55:58]CAPDU: 80 11 00 00 [17:55:58]Write to MH i2c: E2 08 00 2D 0C 80 11 00 00 00 00 00 00 B3 [17:55:58]Write i2c OK [17:55:58]MH_I2C_Read... [17:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:59]Read from MH i2c: E2 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 17 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: E2 17 00 2D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FE [17:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:55:59]wFMCommunicate OK [17:55:59]CreateOFDProtocolMessage done [17:55:59]OFDSenderStorePacket 50038 [17:55:59]StoreOFDPacket docnum=50038 [17:55:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 17 02 00 00 16 BC 0F 02 FE 66 5A 03 01 00 03 00 03 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 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 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 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 64 96 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 2D 87 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 76 C3 00 00 35 04 06 00 F4 AF 14 D3 DE 65 B5 F3 5E A3 89 C1 30 01 [17:55:59]CheckFolder [17:55:59]dirname=/storage/ofd_packets [17:55:59]CheckFolder done [17:55:59]ProducePacketName [17:55:59]name=ofd_packets/00050038 [17:55:59]NVStorageSaveData ofd_packets/00050038 [17:55:59]File name is /storage/ofd_packets/00050038 [17:55:59]Write 565 bytes [17:55:59]NVStorageSaveData done [17:55:59]OFDSenderStorePacket done [17:55:59]KKMCreateOFDPacket done [17:55:59]NVStorageSaveData kkm_last_timestamp [17:55:59]File name is /storage/kkm_last_timestamp [17:55:59]Write 4 bytes [17:55:59]NVStorageSaveData done [17:55:59]ExternCall_PrintAddStr [17:55:59]wPrintStart [17:55:59]Write to MH i2c: 01 00 00 2E 0C 3A [17:55:59]OFD Sender: Processing packet 50038 [packets to send 21, broken 20] [17:55:59]ProducePacketName [17:55:59]name=ofd_packets/00050038 [17:55:59]OFD Sender: To server: pG, [17:55:59]CommunicateWithHost lk.salyk.kg:30040 [17:55:59]ConnectInit lk.salyk.kg [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: 01 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: 01 07 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: 01 07 00 2E 0C 00 00 00 00 00 FF 0F 4F [17:55:59]RasterBufferAndPrint [17:55:59]line Счет N : (3)190164 [17:55:59]line ИНН: 02508201610067 [17:55:59]line Контрольно-Кассовый Чек [17:55:59]line ПРОДАЖА [17:55:59]line Товар: 4700000160211 [17:55:59]line Вода Легенда 0,5л [17:55:59]line 1.000 * 40.00 [17:55:59]line = 40.00 [17:55:59]line НДС 12% НСП 1% [17:55:59]line > о реализуемом товаре [17:55:59]line Товар: 4650243871828 [17:55:59]line Gorilla эн нап манго-кокос 0,45 ж/б [17:55:59]line 3.000 * 90.00 [17:55:59]line = 270.00 [17:55:59]line НДС 12% НСП 1% [17:55:59]line > о реализуемом товаре [17:55:59]line Товар: 4870001154059 [17:55:59]line Напиток Lipton IceTea 0,5л зел чай [17:55:59]line 1.000 * 75.00 [17:55:59]line = 75.00 [17:55:59]line НДС 12% НСП 1% [17:55:59]line > о реализуемом товаре [17:55:59]line ИТОГО: 385.00 [17:55:59]line НСП 1% : 3.40 [17:55:59]line НДС 12% : 40.88 [17:55:59]line Наличными: 385.00 [17:55:59]line Безнал.: 0.00 [17:55:59]line Место: АЗС № 95 "Партнер Нефть" [17:55:59]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:55:59]line СНО: Общий режим [17:55:59]line Чек 145 19.08.2024 17:55 [17:55:59]line Смена: 467 ФФД: 1.0 [17:55:59]line ЗНМ: 0300000078 [17:55:59]line РНМ: 0000000000092546 [17:55:59]line Версия ККМ: 001 [17:55:59]line ФМ: 0000000000871800 [17:55:59]line ФД: 50038 [17:55:59]line ФПД: 269032805883493 [17:55:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T175557&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50038&fm=269032805883493&tin=02508201610067®Number=0000000000092546&sum=38500 [17:55:59]line 0 [17:55:59]written 0, free lines is 4095 [17:55:59]Connected sock=9 [17:55:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 17 02 00 00 16 BC 0F 02 FE 66 5A 03 01 00 03 00 03 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 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 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 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 64 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 0F 00 00 00 00 07 04 06 00 64 96 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 2D 87 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 76 C3 00 00 35 04 06 00 F4 AF 14 D3 DE 65 B5 F3 5E A3 89 C1 30 01 [17:55:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 8C 7F 47 00 5D 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 76 C3 00 00 F4 03 04 00 9A 31 C3 66 B6 04 01 00 00 90 27 8E 09 8A 67 59 B7 [17:55:59]CommunicateWithHost err = 0 [17:55:59]CheckOFDResponse [17:55:59]1017 (14) - 77093643461234 [17:55:59]1041 (16) - 0000000000871800 [17:55:59]1040 (4) - 50038 [17:55:59]1012 (4) - 19.08.2024 11:50 [17:55:59]1206 (1) - 0 [17:55:59]OFD Sender: Remove packet 50038 [17:55:59]ProducePacketName [17:55:59]name=ofd_packets/00050038 [17:55:59]NVStorageDeleteData [17:55:59]Write to MH i2c: 01 00 00 64 0C 70 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: 01 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: 01 07 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: 01 07 00 64 0C 00 00 00 00 00 15 0C 98 [17:55:59]RasterBufferAndPrint [17:55:59]line [17:55:59]line [17:55:59]line [17:55:59]line [17:55:59]line [17:55:59]written 0, free lines is 3098 [17:55:59]MH_Cut [17:55:59]Write to MH i2c: D1 01 00 6B 0C 01 49 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: D1 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: D1 01 00 [17:55:59]MH_I2C_Read... [17:55:59]Read from MH i2c: D1 01 00 6B 0C 00 48 [17:55:59]Write to MH i2c: 01 00 00 6C 0C 78 [17:55:59]Write i2c OK [17:55:59]MH_I2C_Read... [17:56:00]OFD Sender: No OFD packet to send [17:56:00]*** Cut start [17:56:00]*** Purtial cut [17:56:00]*** Stage 1: CUTSNS_PIN = 1 [17:56:01]Read from MH i2c: 01 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: 01 07 00 [17:56:01]MH_I2C_Read... [17:56:01]*** Stop cut motor [17:56:01]Read from MH i2c: 01 07 00 6C 0C 00 00 00 00 00 FF 0F 8D [17:56:01]process_action close_receipt done [17:56:01]requested_data is exist [17:56:01]produce_requested_data [17:56:01]requested_item fm.sn is exist - process it [17:56:01]wFMCommunicate request_size=4 [17:56:01]MH_SAM_APDU [17:56:01]CAPDU: 80 11 00 00 [17:56:01]Write to MH i2c: E2 08 00 6D 0C 80 11 00 00 00 00 00 00 F3 [17:56:01]*** Cut end [17:56:01]Write i2c OK [17:56:01]MH_I2C_Read... [17:56:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:01]Read from MH i2c: E2 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 17 00 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 17 00 6D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3E [17:56:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:56:01]wFMCommunicate OK [17:56:01]requested_item fd.num is exist - process it [17:56:01]SAM_PROTO_GetFieldsCounters [17:56:01]wFMCommunicate request_size=4 [17:56:01]MH_SAM_APDU [17:56:01]CAPDU: 80 13 00 00 [17:56:01]Write to MH i2c: E2 08 00 6E 0C 80 13 00 00 00 00 00 00 F6 [17:56:01]Write i2c OK [17:56:01]MH_I2C_Read... [17:56:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:01]Read from MH i2c: E2 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 62 00 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 62 00 6E 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 76 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [17:56:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 76 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:01]wFMCommunicate OK [17:56:01]SAM_PROTO_GetFieldsCounters done [17:56:01]requested_item shift.num is exist - process it [17:56:01]requested_item shift.opened is exist - process it [17:56:01]req_shift_opened [17:56:01]FM_GetShiftState [17:56:01]SAM_PROTO_GetShiftState [17:56:01]wFMCommunicate request_size=4 [17:56:01]MH_SAM_APDU [17:56:01]CAPDU: 80 13 01 00 [17:56:01]Write to MH i2c: E2 08 00 6F 0C 80 13 01 00 00 00 00 00 F8 [17:56:01]Write i2c OK [17:56:01]MH_I2C_Read... [17:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:01]Read from MH i2c: E2 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 0E 00 [17:56:01]MH_I2C_Read... [17:56:01]Read from MH i2c: E2 0E 00 6F 0C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B2 [17:56:01]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [17:56:01]wFMCommunicate OK [17:56:01]SAM_PROTO_GetShiftState done [17:56:01]FM_GetShiftState done [17:56:01]req_shift_opened done [17:56:01]requested_item shift.open_date is exist - process it [17:56:01]req_shift_open_date [17:56:01]req_shift_open_date done [17:56:01]produce_requested_data done [17:56:01]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50038,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [17:56:01]process_action_free close_receipt [17:56:01]json_value_free [17:56:01]json_value_free done [17:56:01]process_json_proto returns [17:56:01]Send response to host [17:56:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50038,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [17:56:01]free response buf [17:56:01]execute_script done [17:56:01]execute_script returns [17:56:01]free content buf [17:56:01]Sock 7.Close socket [17:56:01]Sock 7.Thread stoped [17:56:05]OFD Sender: No OFD packet to send [17:56:10]OFD Sender: No OFD packet to send [17:56:15]OFD Sender: No OFD packet to send [17:56:20]OFD Sender: No OFD packet to send [17:56:25]OFD Sender: No OFD packet to send [17:56:30]OFD Sender: No OFD packet to send [17:56:35]OFD Sender: No OFD packet to send [17:56:40]OFD Sender: No OFD packet to send [17:56:45]OFD Sender: No OFD packet to send [17:56:50]OFD Sender: No OFD packet to send [17:56:55]OFD Sender: No OFD packet to send [17:57:00]OFD Sender: No OFD packet to send [17:57:05]OFD Sender: No OFD packet to send [17:57:10]OFD Sender: No OFD packet to send [17:57:15]OFD Sender: No OFD packet to send [17:57:20]OFD Sender: No OFD packet to send [17:57:25]OFD Sender: No OFD packet to send [17:57:30]OFD Sender: No OFD packet to send [17:57:35]OFD Sender: No OFD packet to send [17:57:40]OFD Sender: No OFD packet to send [17:57:45]OFD Sender: No OFD packet to send [17:57:50]OFD Sender: No OFD packet to send [17:57:55]OFD Sender: No OFD packet to send [17:58:00]OFD Sender: No OFD packet to send [17:58:05]OFD Sender: No OFD packet to send [17:58:10]OFD Sender: No OFD packet to send [17:58:15]OFD Sender: No OFD packet to send [17:58:20]OFD Sender: No OFD packet to send [17:58:25]OFD Sender: No OFD packet to send [17:58:30]OFD Sender: No OFD packet to send [17:58:35]OFD Sender: No OFD packet to send [17:58:40]OFD Sender: No OFD packet to send [17:58:45]OFD Sender: No OFD packet to send [17:58:50]OFD Sender: No OFD packet to send [17:58:55]OFD Sender: No OFD packet to send [17:59:00]OFD Sender: No OFD packet to send [17:59:05]OFD Sender: No OFD packet to send [17:59:10]OFD Sender: No OFD packet to send [17:59:15]OFD Sender: No OFD packet to send [17:59:20]OFD Sender: No OFD packet to send [17:59:25]OFD Sender: No OFD packet to send [17:59:30]OFD Sender: No OFD packet to send [17:59:35]OFD Sender: No OFD packet to send [17:59:40]OFD Sender: No OFD packet to send [17:59:45]OFD Sender: No OFD packet to send [17:59:50]OFD Sender: No OFD packet to send [17:59:55]OFD Sender: No OFD packet to send [18:00:00]OFD Sender: No OFD packet to send [18:00:05]OFD Sender: No OFD packet to send [18:00:10]OFD Sender: No OFD packet to send [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]OFD Sender: No OFD packet to send [18:05:35]OFD Sender: No OFD packet to send [18:05:40]OFD Sender: No OFD packet to send [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:55]OFD Sender: No OFD packet to send [18:06:00]OFD Sender: No OFD packet to send [18:06:05]OFD Sender: No OFD packet to send [18:06:10]OFD Sender: No OFD packet to send [18:06:15]OFD Sender: No OFD packet to send [18:06:20]OFD Sender: No OFD packet to send [18:06:25]OFD Sender: No OFD packet to send [18:06:30]OFD Sender: No OFD packet to send [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:25]OFD Sender: No OFD packet to send [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:05]OFD Sender: No OFD packet to send [18:10:10]OFD Sender: No OFD packet to send [18:10:15]OFD Sender: No OFD packet to send [18:10:16]accept exits with 10 [18:10:16]New connection [18:10:16]New thread 3066613092 created [18:10:16]Thread 3066469732 joined [18:10:16]Waiting for new connection... [18:10:16] Sock 10.Parse request [18:10:16]Sock 10.Check first char [18:10:16]Sock 10.First char is OK [18:10:16]request: POST /json_proto HTTP/1.0 [18:10:16]Method: POST [18:10:16]URL: /json_proto [18:10:16]Method is POST - this is cgi request [18:10:16]url: /json_proto [18:10:16]query_string will be loaded in cgi processing [18:10:16]execute_cgi json_proto POST (null) [18:10:16]execute_cgi path=json_proto method=POST [18:10:16]POST find Content-Length [18:10:16]Host: 172.17.46.196:8080 [18:10:16]Content-Length: 624 [18:10:16]Content-Type: application/json [18:10:16] [18:10:16]POST finish read [18:10:16]Found Content-Length = 624 [18:10:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190165", "tax_sys" : 0, "items" : [ { "code": "46227751", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 54\u0433", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:16]execute_script... [18:10:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190165", "tax_sys" : 0, "items" : [ { "code": "46227751", "name": "\u0420/\u0436 mentos pure fresh \u0430\u0440\u0431\u0443\u0437 54\u0433", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:16]POST & json_proto [18:10:16]process_json_proto [18:10:16]json parsed OK: [18:10:16]protocol is kg_v1.0 [18:10:16]action value=close_receipt [18:10:16]process_action close_receipt [18:10:16]cmd_close_receipt [18:10:16]MH_GetDate [18:10:16]Write to MH i2c: F0 00 00 70 0C 6B [18:10:16]Write i2c OK [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: F0 [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: F0 09 00 [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: F0 09 00 70 0C 00 89 8A C3 66 C4 85 C2 66 21 [18:10:16]GetLastDocTimeStamp 1724090157 [18:10:16]current date 1724091017 [18:10:16]FM_GetShiftState [18:10:16]SAM_PROTO_GetShiftState [18:10:16]wFMCommunicate request_size=4 [18:10:16]MH_SAM_APDU [18:10:16]CAPDU: 80 13 01 00 [18:10:16]Write to MH i2c: E2 08 00 71 0C 80 13 01 00 00 00 00 00 FA [18:10:16]Write i2c OK [18:10:16]MH_I2C_Read... [18:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:16]Read from MH i2c: E2 [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: E2 0E 00 [18:10:16]MH_I2C_Read... [18:10:16]Read from MH i2c: E2 0E 00 71 0C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B4 [18:10:16]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:10:16]wFMCommunicate OK [18:10:16]SAM_PROTO_GetShiftState done [18:10:16]FM_GetShiftState done [18:10:16]opened in 1724026361 [18:10:16]opened+sec_in_day 1724112761 [18:10:16]quantity*price = 20500 [18:10:16]sum+1 = 20501 [18:10:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 146 19.08.2024 18:10 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50039 ФПД: 36763351712738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181017&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50039&fm=36763351712738&tin=02508201610067®Number=0000000000092546&sum=20500 0 [18:10:17]StoreToDocumentArchive [18:10:17]shift 467 fd 50039 [18:10:17]save to /storage/0467/doc_00050039 [18:10:17]save last doc name /storage/0467/doc_00050039 to /storage/kkm_last_doc_name [18:10:17]save OK [18:10:17]Clear old archive folders... [18:10:17]ProcessDocumentItem done err = 0, tmpTLVsize=276 [18:10:17]tlvbuf is 011EA110 [18:10:17]SAM_PROTO_ClearQueue [18:10:17]wFMCommunicate request_size=4 [18:10:17]MH_SAM_APDU [18:10:17]CAPDU: 80 09 00 00 [18:10:17]Write to MH i2c: E2 08 00 7E 0C 80 09 00 00 00 00 00 00 FC [18:10:17]Write i2c OK [18:10:17]MH_I2C_Read... [18:10:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:17]Read from MH i2c: E2 [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: E2 03 00 [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: E2 03 00 7E 0C 00 90 00 FE [18:10:17]RAPDU: 90 00 [18:10:17]wFMCommunicate OK [18:10:17]SAM_PROTO_ClearQueue done [18:10:17]KKMCreateOFDPacket [18:10:17]OFDProtocolAddRootSTLVToBuf [18:10:17]FM_MakeSignedData [18:10:17]FM_MakeSignedData [18:10:17]SAM_PROTO_SignData [18:10:17]wFMCommunicate request_size=4 [18:10:17]MH_SAM_APDU [18:10:17]CAPDU: 80 0D 01 02 [18:10:17]Write to MH i2c: E2 08 00 7F 0C 80 0D 01 02 00 00 00 00 04 [18:10:17]Write i2c OK [18:10:17]MH_I2C_Read... [18:10:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:17]Read from MH i2c: E2 [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: E2 03 00 [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: E2 03 00 7F 0C 00 90 00 FF [18:10:17]RAPDU: 90 00 [18:10:17]wFMCommunicate OK [18:10:17]wFMCommunicate request_size=255 [18:10:17]MH_SAM_APDU [18:10:17]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 32 32 37 37 35 31 06 04 27 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 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 89 8A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [18:10:17]Write to MH i2c: E2 02 01 80 0C 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 32 32 37 37 35 31 06 04 27 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 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 89 8A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 7B [18:10:17]Write i2c OK [18:10:17]MH_I2C_Read... [18:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:17]Read from MH i2c: E2 [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: E2 03 00 [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: E2 03 00 80 0C 00 90 00 00 [18:10:17]RAPDU: 90 00 [18:10:17]wFMCommunicate OK [18:10:17]wFMCommunicate request_size=35 [18:10:17]MH_SAM_APDU [18:10:17]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 77 C3 00 00 35 04 06 00 21 6F A2 85 03 E2 [18:10:17]Write to MH i2c: E2 26 00 81 0C 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 77 C3 00 00 35 04 06 00 21 6F A2 85 03 E2 00 00 C8 [18:10:17]Write i2c OK [18:10:17]MH_I2C_Read... [18:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:17]Read from MH i2c: E2 [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: E2 03 00 [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: E2 03 00 81 0C 00 90 00 01 [18:10:17]RAPDU: 90 00 [18:10:17]wFMCommunicate OK [18:10:17]wFMCommunicate request_size=4 [18:10:17]MH_SAM_APDU [18:10:17]CAPDU: 80 0D 03 02 [18:10:17]Write to MH i2c: E2 08 00 82 0C 80 0D 03 02 00 00 00 00 09 [18:10:17]Write i2c OK [18:10:17]MH_I2C_Read... [18:10:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:17]Read from MH i2c: E2 [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: E2 0B 00 [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: E2 0B 00 82 0C 00 86 0C 45 F4 2B 40 A9 C8 90 00 B1 [18:10:17]RAPDU: 86 0C 45 F4 2B 40 A9 C8 90 00 [18:10:17]wFMCommunicate OK [18:10:17]SAM_PROTO_SignData done [18:10:17]FM_MakeSignedData done [18:10:17]CreateOFDProtocolMessage [18:10:17]wFMCommunicate request_size=4 [18:10:17]MH_SAM_APDU [18:10:17]CAPDU: 80 11 00 00 [18:10:17]Write to MH i2c: E2 08 00 83 0C 80 11 00 00 00 00 00 00 09 [18:10:17]Write i2c OK [18:10:17]MH_I2C_Read... [18:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:17]Read from MH i2c: E2 [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: E2 17 00 [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: E2 17 00 83 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 54 [18:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:10:17]wFMCommunicate OK [18:10:17]CreateOFDProtocolMessage done [18:10:17]OFDSenderStorePacket 50039 [18:10:17]StoreOFDPacket docnum=50039 [18:10:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 6A EB 20 01 58 63 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 32 32 37 37 35 31 06 04 27 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 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 89 8A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 77 C3 00 00 35 04 06 00 21 6F A2 85 03 E2 86 0C 45 F4 2B 40 A9 C8 [18:10:17]CheckFolder [18:10:17]dirname=/storage/ofd_packets [18:10:17]CheckFolder done [18:10:17]ProducePacketName [18:10:17]name=ofd_packets/00050039 [18:10:17]NVStorageSaveData ofd_packets/00050039 [18:10:17]File name is /storage/ofd_packets/00050039 [18:10:17]Write 326 bytes [18:10:17]NVStorageSaveData done [18:10:17]OFDSenderStorePacket done [18:10:17]KKMCreateOFDPacket done [18:10:17]NVStorageSaveData kkm_last_timestamp [18:10:17]File name is /storage/kkm_last_timestamp [18:10:17]Write 4 bytes [18:10:17]NVStorageSaveData done [18:10:17]ExternCall_PrintAddStr [18:10:17]wPrintStart [18:10:17]Write to MH i2c: 01 00 00 84 0C 90 [18:10:17]Write i2c OK [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: 01 [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: 01 07 00 [18:10:17]MH_I2C_Read... [18:10:17]Read from MH i2c: 01 07 00 84 0C 00 00 00 00 00 FF 0F A5 [18:10:17]RasterBufferAndPrint [18:10:17]line Счет N : (3)190165 [18:10:17]line ИНН: 02508201610067 [18:10:17]line Контрольно-Кассовый Чек [18:10:17]line ПРОДАЖА [18:10:17]line Товар: 46227751 [18:10:17]line Р/ж mentos pure fresh арбуз 54г [18:10:17]line 1.000 * 205.00 [18:10:17]line = 205.00 [18:10:17]line НДС 12% НСП 1% [18:10:17]line > о реализуемом товаре [18:10:17]line ИТОГО: 205.00 [18:10:17]line НСП 1% : 1.81 [18:10:17]line НДС 12% : 21.77 [18:10:17]line Наличными: 205.00 [18:10:17]line Безнал.: 0.00 [18:10:17]line Место: АЗС № 95 "Партнер Нефть" [18:10:17]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:10:17]line СНО: Общий режим [18:10:17]line Чек 146 19.08.2024 18:10 [18:10:17]line Смена: 467 ФФД: 1.0 [18:10:17]line ЗНМ: 0300000078 [18:10:17]line РНМ: 0000000000092546 [18:10:17]line Версия ККМ: 001 [18:10:17]line ФМ: 0000000000871800 [18:10:17]line ФД: 50039 [18:10:17]line ФПД: 36763351712738 [18:10:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181017&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50039&fm=36763351712738&tin=02508201610067®Number=0000000000092546&sum=20500 [18:10:18]line 0 [18:10:18]OFD Sender: Processing packet 50039 [packets to send 21, broken 20] [18:10:18]ProducePacketName [18:10:18]name=ofd_packets/00050039 [18:10:18]OFD Sender: To server: pG, [18:10:18]CommunicateWithHost lk.salyk.kg:30040 [18:10:18]ConnectInit lk.salyk.kg [18:10:18]written 0, free lines is 4095 [18:10:18]Connected sock=9 [18:10:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 6A EB 20 01 58 63 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 32 32 37 37 35 31 06 04 27 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 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 89 8A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 77 C3 00 00 35 04 06 00 21 6F A2 85 03 E2 86 0C 45 F4 2B 40 A9 C8 [18:10:18]Write to MH i2c: 01 00 00 AD 0C B9 [18:10:18]Write i2c OK [18:10:18]MH_I2C_Read... [18:10:18]Read from MH i2c: 01 [18:10:18]MH_I2C_Read... [18:10:18]Read from MH i2c: 01 07 00 [18:10:18]MH_I2C_Read... [18:10:18]Read from MH i2c: 01 07 00 AD 0C 00 00 00 00 00 D3 0C 9F [18:10:18]RasterBufferAndPrint [18:10:18]line [18:10:18]line [18:10:18]line [18:10:18]line [18:10:18]line [18:10:18]written 0, free lines is 3288 [18:10:18]MH_Cut [18:10:18]Write to MH i2c: D1 01 00 B4 0C 01 92 [18:10:18]Write i2c OK [18:10:18]MH_I2C_Read... [18:10:18]Read from MH i2c: D1 [18:10:18]MH_I2C_Read... [18:10:18]Read from MH i2c: D1 01 00 [18:10:18]MH_I2C_Read... [18:10:18]Read from MH i2c: D1 01 00 B4 0C 00 91 [18:10:18]Write to MH i2c: 01 00 00 B5 0C C1 [18:10:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 32 2C 47 00 7A 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 31 38 30 30 10 04 04 00 77 C3 00 00 F4 03 04 00 F5 34 C3 66 B6 04 01 00 00 65 7C FD E2 E4 55 7B A6 [18:10:18]CommunicateWithHost err = 0 [18:10:18]CheckOFDResponse [18:10:18]1017 (14) - 77093643461234 [18:10:18]1041 (16) - 0000000000871800 [18:10:18]1040 (4) - 50039 [18:10:18]1012 (4) - 19.08.2024 12:05 [18:10:18]1206 (1) - 0 [18:10:18]OFD Sender: Remove packet 50039 [18:10:18]ProducePacketName [18:10:18]name=ofd_packets/00050039 [18:10:18]NVStorageDeleteData [18:10:18]Write i2c OK [18:10:18]MH_I2C_Read... [18:10:19]OFD Sender: No OFD packet to send [18:10:19]*** Cut start [18:10:19]*** Purtial cut [18:10:19]*** CUTSNS_PIN = 0 [18:10:19]*** Stage 1: CUTSNS_PIN = 1 [18:10:21]Read from MH i2c: 01 [18:10:21]MH_I2C_Read... [18:10:21]*** Stop cut motor [18:10:21]*** Cut end [18:10:21]Read from MH i2c: 01 07 00 [18:10:21]MH_I2C_Read... [18:10:21]Read from MH i2c: 01 07 00 B5 0C 00 00 00 00 00 FF 0F D6 [18:10:21]process_action close_receipt done [18:10:21]requested_data is exist [18:10:21]produce_requested_data [18:10:21]requested_item fm.sn is exist - process it [18:10:21]wFMCommunicate request_size=4 [18:10:21]MH_SAM_APDU [18:10:21]CAPDU: 80 11 00 00 [18:10:21]Write to MH i2c: E2 08 00 B6 0C 80 11 00 00 00 00 00 00 3C [18:10:21]Write i2c OK [18:10:21]MH_I2C_Read... [18:10:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:21]Read from MH i2c: E2 [18:10:21]MH_I2C_Read... [18:10:21]Read from MH i2c: E2 17 00 [18:10:21]MH_I2C_Read... [18:10:21]Read from MH i2c: E2 17 00 B6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 87 [18:10:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:10:21]wFMCommunicate OK [18:10:21]requested_item fd.num is exist - process it [18:10:21]SAM_PROTO_GetFieldsCounters [18:10:21]wFMCommunicate request_size=4 [18:10:21]MH_SAM_APDU [18:10:21]CAPDU: 80 13 00 00 [18:10:21]Write to MH i2c: E2 08 00 B7 0C 80 13 00 00 00 00 00 00 3F [18:10:21]Write i2c OK [18:10:21]MH_I2C_Read... [18:10:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:21]Read from MH i2c: E2 [18:10:21]MH_I2C_Read... [18:10:21]Read from MH i2c: E2 62 00 [18:10:21]MH_I2C_Read... [18:10:21]Read from MH i2c: E2 62 00 B7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 77 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [18:10:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 77 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:21]wFMCommunicate OK [18:10:21]SAM_PROTO_GetFieldsCounters done [18:10:21]requested_item shift.num is exist - process it [18:10:21]requested_item shift.opened is exist - process it [18:10:21]req_shift_opened [18:10:21]FM_GetShiftState [18:10:21]SAM_PROTO_GetShiftState [18:10:21]wFMCommunicate request_size=4 [18:10:21]MH_SAM_APDU [18:10:21]CAPDU: 80 13 01 00 [18:10:21]Write to MH i2c: E2 08 00 B8 0C 80 13 01 00 00 00 00 00 41 [18:10:21]Write i2c OK [18:10:21]MH_I2C_Read... [18:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:21]Read from MH i2c: E2 [18:10:21]MH_I2C_Read... [18:10:21]Read from MH i2c: E2 0E 00 [18:10:21]MH_I2C_Read... [18:10:21]Read from MH i2c: E2 0E 00 B8 0C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 FB [18:10:21]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:10:21]wFMCommunicate OK [18:10:21]SAM_PROTO_GetShiftState done [18:10:21]FM_GetShiftState done [18:10:21]req_shift_opened done [18:10:21]requested_item shift.open_date is exist - process it [18:10:21]req_shift_open_date [18:10:21]req_shift_open_date done [18:10:21]produce_requested_data done [18:10:21]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50039,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [18:10:21]process_action_free close_receipt [18:10:21]json_value_free [18:10:21]json_value_free done [18:10:21]process_json_proto returns [18:10:21]Send response to host [18:10:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50039,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [18:10:21]free response buf [18:10:21]execute_script done [18:10:21]execute_script returns [18:10:21]free content buf [18:10:21]Sock 10.Close socket [18:10:21]Sock 10.Thread stoped [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:10:59]accept exits with 7 [18:10:59]New connection [18:10:59]New thread 3066469732 created [18:10:59]Thread 3066613092 joined [18:10:59]Waiting for new connection... [18:10:59] Sock 7.Parse request [18:10:59]Sock 7.Check first char [18:10:59]Sock 7.First char is OK [18:10:59]request: POST /json_proto HTTP/1.0 [18:10:59]Method: POST [18:10:59]URL: /json_proto [18:10:59]Method is POST - this is cgi request [18:10:59]url: /json_proto [18:10:59]query_string will be loaded in cgi processing [18:10:59]execute_cgi json_proto POST (null) [18:10:59]execute_cgi path=json_proto method=POST [18:10:59]POST find Content-Length [18:10:59]Host: 172.17.46.196:8080 [18:10:59]Content-Length: 622 [18:10:59]Content-Type: application/json [18:10:59] [18:10:59]POST finish read [18:10:59]Found Content-Length = 622 [18:10:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190166", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:59]execute_script... [18:10: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)190166", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:59]POST & json_proto [18:10:59]process_json_proto [18:10:59]json parsed OK: [18:10:59]protocol is kg_v1.0 [18:10:59]action value=close_receipt [18:10:59]process_action close_receipt [18:10:59]cmd_close_receipt [18:10:59]MH_GetDate [18:10:59]Write to MH i2c: F0 00 00 B9 0C B4 [18:10:59]Write i2c OK [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: F0 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: F0 09 00 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: F0 09 00 B9 0C 00 B4 8A C3 66 C4 85 C2 66 95 [18:10:59]GetLastDocTimeStamp 1724091017 [18:10:59]current date 1724091060 [18:10:59]FM_GetShiftState [18:10:59]SAM_PROTO_GetShiftState [18:10:59]wFMCommunicate request_size=4 [18:10:59]MH_SAM_APDU [18:10:59]CAPDU: 80 13 01 00 [18:10:59]Write to MH i2c: E2 08 00 BA 0C 80 13 01 00 00 00 00 00 43 [18:10:59]Write i2c OK [18:10:59]MH_I2C_Read... [18:10:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:59]Read from MH i2c: E2 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: E2 0E 00 [18:10:59]MH_I2C_Read... [18:10:59]Read from MH i2c: E2 0E 00 BA 0C 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 FD [18:10:59]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:10:59]wFMCommunicate OK [18:10:59]SAM_PROTO_GetShiftState done [18:10:59]FM_GetShiftState done [18:10:59]opened in 1724026361 [18:10:59]opened+sec_in_day 1724112761 [18:10:59]quantity*price = 15100 [18:10:59]sum+1 = 15101 [18:10:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 147 19.08.2024 18:11 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50040 ФПД: 66009413516576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181100&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50040&fm=66009413516576&tin=02508201610067®Number=0000000000092546&sum=15100 0 [18:11:00]StoreToDocumentArchive [18:11:00]shift 467 fd 50040 [18:11:00]save to /storage/0467/doc_00050040 [18:11:00]save last doc name /storage/0467/doc_00050040 to /storage/kkm_last_doc_name [18:11:00]save OK [18:11:00]Clear old archive folders... [18:11:00]ProcessDocumentItem done err = 0, tmpTLVsize=274 [18:11:00]tlvbuf is 011ECBF0 [18:11:00]SAM_PROTO_ClearQueue [18:11:00]wFMCommunicate request_size=4 [18:11:00]MH_SAM_APDU [18:11:00]CAPDU: 80 09 00 00 [18:11:00]Write to MH i2c: E2 08 00 C7 0C 80 09 00 00 00 00 00 00 45 [18:11:00]Write i2c OK [18:11:00]MH_I2C_Read... [18:11:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:00]Read from MH i2c: E2 [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: E2 03 00 [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [18:11:00]RAPDU: 90 00 [18:11:00]wFMCommunicate OK [18:11:00]SAM_PROTO_ClearQueue done [18:11:00]KKMCreateOFDPacket [18:11:00]OFDProtocolAddRootSTLVToBuf [18:11:00]FM_MakeSignedData [18:11:00]FM_MakeSignedData [18:11:00]SAM_PROTO_SignData [18:11:00]wFMCommunicate request_size=4 [18:11:00]MH_SAM_APDU [18:11:00]CAPDU: 80 0D 01 02 [18:11:00]Write to MH i2c: E2 08 00 C8 0C 80 0D 01 02 00 00 00 00 4D [18:11:00]Write i2c OK [18:11:00]MH_I2C_Read... [18:11:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:00]Read from MH i2c: E2 [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: E2 03 00 [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: E2 03 00 C8 0C 00 90 00 48 [18:11:00]RAPDU: 90 00 [18:11:00]wFMCommunicate OK [18:11:00]wFMCommunicate request_size=255 [18:11:00]MH_SAM_APDU [18:11:00]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 B4 8A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 [18:11:00]Write to MH i2c: E2 02 01 C9 0C 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 B4 8A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 00 00 E5 [18:11:00]Write i2c OK [18:11:00]MH_I2C_Read... [18:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:00]Read from MH i2c: E2 [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: E2 03 00 [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: E2 03 00 C9 0C 00 90 00 49 [18:11:00]RAPDU: 90 00 [18:11:00]wFMCommunicate OK [18:11:00]wFMCommunicate request_size=33 [18:11:00]MH_SAM_APDU [18:11:00]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 30 30 10 04 04 00 78 C3 00 00 35 04 06 00 3C 09 03 A4 FD 20 [18:11:00]Write to MH i2c: E2 24 00 CA 0C 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 30 30 10 04 04 00 78 C3 00 00 35 04 06 00 3C 09 03 A4 FD 20 00 00 1B [18:11:00]Write i2c OK [18:11:00]MH_I2C_Read... [18:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:00]Read from MH i2c: E2 [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: E2 03 00 [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: E2 03 00 CA 0C 00 90 00 4A [18:11:00]RAPDU: 90 00 [18:11:00]wFMCommunicate OK [18:11:00]wFMCommunicate request_size=4 [18:11:00]MH_SAM_APDU [18:11:00]CAPDU: 80 0D 03 02 [18:11:00]Write to MH i2c: E2 08 00 CB 0C 80 0D 03 02 00 00 00 00 52 [18:11:00]Write i2c OK [18:11:00]MH_I2C_Read... [18:11:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:00]Read from MH i2c: E2 [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: E2 0B 00 [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: E2 0B 00 CB 0C 00 A8 26 3F A2 2F 40 9C 07 90 00 14 [18:11:00]RAPDU: A8 26 3F A2 2F 40 9C 07 90 00 [18:11:00]wFMCommunicate OK [18:11:00]SAM_PROTO_SignData done [18:11:00]FM_MakeSignedData done [18:11:00]CreateOFDProtocolMessage [18:11:00]wFMCommunicate request_size=4 [18:11:00]MH_SAM_APDU [18:11:00]CAPDU: 80 11 00 00 [18:11:00]Write to MH i2c: E2 08 00 CC 0C 80 11 00 00 00 00 00 00 52 [18:11:00]Write i2c OK [18:11:00]MH_I2C_Read... [18:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:00]Read from MH i2c: E2 [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: E2 17 00 [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: E2 17 00 CC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9D [18:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:11:00]wFMCommunicate OK [18:11:00]CreateOFDProtocolMessage done [18:11:00]OFDSenderStorePacket 50040 [18:11:00]StoreOFDPacket docnum=50040 [18:11:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 15 82 1E 01 08 B1 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 B4 8A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 78 C3 00 00 35 04 06 00 3C 09 03 A4 FD 20 A8 26 3F A2 2F 40 9C 07 [18:11:00]CheckFolder [18:11:00]dirname=/storage/ofd_packets [18:11:00]CheckFolder done [18:11:00]ProducePacketName [18:11:00]name=ofd_packets/00050040 [18:11:00]NVStorageSaveData ofd_packets/00050040 [18:11:00]File name is /storage/ofd_packets/00050040 [18:11:00]Write 324 bytes [18:11:00]NVStorageSaveData done [18:11:00]OFDSenderStorePacket done [18:11:00]KKMCreateOFDPacket done [18:11:00]NVStorageSaveData kkm_last_timestamp [18:11:00]File name is /storage/kkm_last_timestamp [18:11:00]Write 4 bytes [18:11:00]NVStorageSaveData done [18:11:00]ExternCall_PrintAddStr [18:11:00]wPrintStart [18:11:00]Write to MH i2c: 01 00 00 CD 0C D9 [18:11:00]Write i2c OK [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: 01 [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: 01 07 00 [18:11:00]MH_I2C_Read... [18:11:00]Read from MH i2c: 01 07 00 CD 0C 00 00 00 00 00 FF 0F EE [18:11:00]RasterBufferAndPrint [18:11:00]line Счет N : (3)190166 [18:11:00]line ИНН: 02508201610067 [18:11:00]line Контрольно-Кассовый Чек [18:11:00]line ПРОДАЖА [18:11:00]line Товар: 48741958 [18:11:00]line Сигареты Parliament Aqua Blue [18:11:00]line 1.000 * 151.00 [18:11:00]line = 151.00 [18:11:00]line НДС 12% НСП 1% [18:11:00]line > о реализуемом товаре [18:11:00]line ИТОГО: 151.00 [18:11:00]line НСП 1% : 1.34 [18:11:00]line НДС 12% : 16.03 [18:11:00]line Наличными: 151.00 [18:11:00]line Безнал.: 0.00 [18:11:00]line Место: АЗС № 95 "Партнер Нефть" [18:11:00]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:11:00]line СНО: Общий режим [18:11:00]line Чек 147 19.08.2024 18:11 [18:11:00]line Смена: 467 ФФД: 1.0 [18:11:00]line ЗНМ: 0300000078 [18:11:00]line РНМ: 0000000000092546 [18:11:00]line Версия ККМ: 001 [18:11:00]line ФМ: 0000000000871800 [18:11:00]line ФД: 50040 [18:11:00]line ФПД: 66009413516576 [18:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181100&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50040&fm=66009413516576&tin=02508201610067®Number=0000000000092546&sum=15100 [18:11:01]OFD Sender: Processing packet 50040 [packets to send 21, broken 20] [18:11:01]ProducePacketName [18:11:01]name=ofd_packets/00050040 [18:11:01]OFD Sender: To server: pG, [18:11:01]CommunicateWithHost lk.salyk.kg:30040 [18:11:01]ConnectInit lk.salyk.kg [18:11:01]line 0 [18:11:01]written 0, free lines is 4095 [18:11:01]Connected sock=10 [18:11:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 15 82 1E 01 08 B1 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 B4 8A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 78 C3 00 00 35 04 06 00 3C 09 03 A4 FD 20 A8 26 3F A2 2F 40 9C 07 [18:11:01]Write to MH i2c: 01 00 00 F6 0C 02 [18:11:01]Write i2c OK [18:11:01]MH_I2C_Read... [18:11:01]Read from MH i2c: 01 [18:11:01]MH_I2C_Read... [18:11:01]Read from MH i2c: 01 07 00 [18:11:01]MH_I2C_Read... [18:11:01]Read from MH i2c: 01 07 00 F6 0C 00 00 00 00 00 C2 0C D7 [18:11:01]RasterBufferAndPrint [18:11:01]line [18:11:01]line [18:11:01]line [18:11:01]line [18:11:01]line [18:11:01]written 0, free lines is 3272 [18:11:01]MH_Cut [18:11:01]Write to MH i2c: D1 01 00 FD 0C 01 DB [18:11:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F2 E9 47 00 8E 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 78 C3 00 00 F4 03 04 00 20 35 C3 66 B6 04 01 00 00 F8 C4 D6 F1 F3 69 E7 F9 [18:11:01]CommunicateWithHost err = 0 [18:11:01]CheckOFDResponse [18:11:01]1017 (14) - 77093643461234 [18:11:01]1041 (16) - 0000000000871800 [18:11:01]1040 (4) - 50040 [18:11:01]1012 (4) - 19.08.2024 12:05 [18:11:01]1206 (1) - 0 [18:11:01]OFD Sender: Remove packet 50040 [18:11:01]ProducePacketName [18:11:01]name=ofd_packets/00050040 [18:11:01]NVStorageDeleteData [18:11:01]Write i2c OK [18:11:01]MH_I2C_Read... [18:11:01]Read from MH i2c: D1 [18:11:01]MH_I2C_Read... [18:11:01]Read from MH i2c: D1 01 00 [18:11:01]MH_I2C_Read... [18:11:01]Read from MH i2c: D1 01 00 FD 0C 00 DA [18:11:01]Write to MH i2c: 01 00 00 FE 0C 0A [18:11:01]Write i2c OK [18:11:01]MH_I2C_Read... [18:11:02]OFD Sender: No OFD packet to send [18:11:02]*** Cut start [18:11:02]*** Purtial cut [18:11:02]*** Stage 1: CUTSNS_PIN = 1 [18:11:02]Read from MH i2c: 01 [18:11:02]MH_I2C_Read... [18:11:02]*** Stop cut motor [18:11:02]*** Cut end [18:11:02]Read from MH i2c: 01 07 00 [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: 01 07 00 FE 0C 00 00 00 00 00 FF 0F 1F [18:11:02]process_action close_receipt done [18:11:02]requested_data is exist [18:11:02]produce_requested_data [18:11:02]requested_item fm.sn is exist - process it [18:11:02]wFMCommunicate request_size=4 [18:11:02]MH_SAM_APDU [18:11:02]CAPDU: 80 11 00 00 [18:11:02]Write to MH i2c: E2 08 00 FF 0C 80 11 00 00 00 00 00 00 85 [18:11:02]Write i2c OK [18:11:02]MH_I2C_Read... [18:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:02]Read from MH i2c: E2 [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: E2 17 00 [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: E2 17 00 FF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D0 [18:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:11:02]wFMCommunicate OK [18:11:02]requested_item fd.num is exist - process it [18:11:02]SAM_PROTO_GetFieldsCounters [18:11:02]wFMCommunicate request_size=4 [18:11:02]MH_SAM_APDU [18:11:02]CAPDU: 80 13 00 00 [18:11:02]Write to MH i2c: E2 08 00 00 0D 80 13 00 00 00 00 00 00 89 [18:11:02]Write i2c OK [18:11:02]MH_I2C_Read... [18:11:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:02]Read from MH i2c: E2 [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: E2 62 00 [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: E2 62 00 00 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 78 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [18:11:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 78 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:02]wFMCommunicate OK [18:11:02]SAM_PROTO_GetFieldsCounters done [18:11:02]requested_item shift.num is exist - process it [18:11:02]requested_item shift.opened is exist - process it [18:11:02]req_shift_opened [18:11:02]FM_GetShiftState [18:11:02]SAM_PROTO_GetShiftState [18:11:02]wFMCommunicate request_size=4 [18:11:02]MH_SAM_APDU [18:11:02]CAPDU: 80 13 01 00 [18:11:02]Write to MH i2c: E2 08 00 01 0D 80 13 01 00 00 00 00 00 8B [18:11:02]Write i2c OK [18:11:02]MH_I2C_Read... [18:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:02]Read from MH i2c: E2 [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: E2 0E 00 [18:11:02]MH_I2C_Read... [18:11:02]Read from MH i2c: E2 0E 00 01 0D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 45 [18:11:02]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:11:02]wFMCommunicate OK [18:11:02]SAM_PROTO_GetShiftState done [18:11:02]FM_GetShiftState done [18:11:02]req_shift_opened done [18:11:02]requested_item shift.open_date is exist - process it [18:11:02]req_shift_open_date [18:11:02]req_shift_open_date done [18:11:02]produce_requested_data done [18:11:02]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50040,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [18:11:02]process_action_free close_receipt [18:11:02]json_value_free [18:11:02]json_value_free done [18:11:02]process_json_proto returns [18:11:02]Send response to host [18:11:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50040,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [18:11:02]free response buf [18:11:02]execute_script done [18:11:02]execute_script returns [18:11:02]free content buf [18:11:02]Sock 7.Close socket [18:11:02]Sock 7.Thread stoped [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]accept exits with 9 [18:12:02]New connection [18:12:02]New thread 3066613092 created [18:12:02]Thread 3066469732 joined [18:12:02]Waiting for new connection... [18:12:02] Sock 9.Parse request [18:12:02]Sock 9.Check first char [18:12:02]Sock 9.First char is OK [18:12:02]request: POST /json_proto HTTP/1.0 [18:12:02]Method: POST [18:12:02]URL: /json_proto [18:12:02]Method is POST - this is cgi request [18:12:02]url: /json_proto [18:12:02]query_string will be loaded in cgi processing [18:12:02]execute_cgi json_proto POST (null) [18:12:02]execute_cgi path=json_proto method=POST [18:12:02]POST find Content-Length [18:12:02]Host: 172.17.46.196:8080 [18:12:02]Content-Length: 675 [18:12:02]Content-Type: application/json [18:12:02] [18:12:02]POST finish read [18:12:02]Found Content-Length = 675 [18:12:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190167", "tax_sys" : 0, "items" : [ { "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "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" ] } } [18:12:02]execute_script... [18:12: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)190167", "tax_sys" : 0, "items" : [ { "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "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" ] } } [18:12:02]POST & json_proto [18:12:02]process_json_proto [18:12:02]json parsed OK: [18:12:02]protocol is kg_v1.0 [18:12:02]action value=close_receipt [18:12:02]process_action close_receipt [18:12:02]cmd_close_receipt [18:12:02]MH_GetDate [18:12:02]Write to MH i2c: F0 00 00 02 0D FE [18:12:02]Write i2c OK [18:12:02]MH_I2C_Read... [18:12:02]Read from MH i2c: F0 [18:12:02]MH_I2C_Read... [18:12:02]Read from MH i2c: F0 09 00 [18:12:02]MH_I2C_Read... [18:12:02]Read from MH i2c: F0 09 00 02 0D 00 F3 8A C3 66 C4 85 C2 66 1E [18:12:02]GetLastDocTimeStamp 1724091060 [18:12:02]current date 1724091123 [18:12:02]FM_GetShiftState [18:12:02]SAM_PROTO_GetShiftState [18:12:02]wFMCommunicate request_size=4 [18:12:02]MH_SAM_APDU [18:12:02]CAPDU: 80 13 01 00 [18:12:02]Write to MH i2c: E2 08 00 03 0D 80 13 01 00 00 00 00 00 8D [18:12:02]Write i2c OK [18:12:02]MH_I2C_Read... [18:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:02]Read from MH i2c: E2 [18:12:02]MH_I2C_Read... [18:12:02]Read from MH i2c: E2 0E 00 [18:12:02]MH_I2C_Read... [18:12:02]Read from MH i2c: E2 0E 00 03 0D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 47 [18:12:02]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:12:02]wFMCommunicate OK [18:12:02]SAM_PROTO_GetShiftState done [18:12:02]FM_GetShiftState done [18:12:02]opened in 1724026361 [18:12:02]opened+sec_in_day 1724112761 [18:12:02]quantity*price = 9500 [18:12:02]sum+1 = 9501 [18:12:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 148 19.08.2024 18:12 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50041 ФПД: 94415717611488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181203&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50041&fm=94415717611488&tin=02508201610067®Number=0000000000092546&sum=9500 0 [18:12:03]StoreToDocumentArchive [18:12:03]shift 467 fd 50041 [18:12:03]save to /storage/0467/doc_00050041 [18:12:03]save last doc name /storage/0467/doc_00050041 to /storage/kkm_last_doc_name [18:12:03]save OK [18:12:03]Clear old archive folders... [18:12:03]ProcessDocumentItem done err = 0, tmpTLVsize=290 [18:12:03]tlvbuf is 011C8430 [18:12:03]SAM_PROTO_ClearQueue [18:12:03]wFMCommunicate request_size=4 [18:12:03]MH_SAM_APDU [18:12:03]CAPDU: 80 09 00 00 [18:12:03]Write to MH i2c: E2 08 00 10 0D 80 09 00 00 00 00 00 00 8F [18:12:03]Write i2c OK [18:12:03]MH_I2C_Read... [18:12:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:03]Read from MH i2c: E2 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 03 00 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 03 00 10 0D 00 90 00 91 [18:12:03]RAPDU: 90 00 [18:12:03]wFMCommunicate OK [18:12:03]SAM_PROTO_ClearQueue done [18:12:03]KKMCreateOFDPacket [18:12:03]OFDProtocolAddRootSTLVToBuf [18:12:03]FM_MakeSignedData [18:12:03]FM_MakeSignedData [18:12:03]SAM_PROTO_SignData [18:12:03]wFMCommunicate request_size=4 [18:12:03]MH_SAM_APDU [18:12:03]CAPDU: 80 0D 01 02 [18:12:03]Write to MH i2c: E2 08 00 11 0D 80 0D 01 02 00 00 00 00 97 [18:12:03]Write i2c OK [18:12:03]MH_I2C_Read... [18:12:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:03]Read from MH i2c: E2 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 03 00 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 03 00 11 0D 00 90 00 92 [18:12:03]RAPDU: 90 00 [18:12:03]wFMCommunicate OK [18:12:03]wFMCommunicate request_size=255 [18:12:03]MH_SAM_APDU [18:12:03]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 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 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 94 00 00 00 F4 03 04 00 F3 8A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [18:12:03]Write to MH i2c: E2 02 01 12 0D 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 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 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 94 00 00 00 F4 03 04 00 F3 8A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 E1 [18:12:03]Write i2c OK [18:12:03]MH_I2C_Read... [18:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:03]Read from MH i2c: E2 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 03 00 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 03 00 12 0D 00 90 00 93 [18:12:03]RAPDU: 90 00 [18:12:03]wFMCommunicate OK [18:12:03]wFMCommunicate request_size=49 [18:12:03]MH_SAM_APDU [18:12:03]CAPDU: 80 0D 02 02 2C 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 79 C3 00 00 35 04 06 00 55 DE DF 4F 37 E0 [18:12:03]Write to MH i2c: E2 34 00 13 0D 80 0D 02 02 2C 00 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 79 C3 00 00 35 04 06 00 55 DE DF 4F 37 E0 00 00 74 [18:12:03]Write i2c OK [18:12:03]MH_I2C_Read... [18:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:03]Read from MH i2c: E2 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 03 00 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 03 00 13 0D 00 90 00 94 [18:12:03]RAPDU: 90 00 [18:12:03]wFMCommunicate OK [18:12:03]wFMCommunicate request_size=4 [18:12:03]MH_SAM_APDU [18:12:03]CAPDU: 80 0D 03 02 [18:12:03]Write to MH i2c: E2 08 00 14 0D 80 0D 03 02 00 00 00 00 9C [18:12:03]Write i2c OK [18:12:03]MH_I2C_Read... [18:12:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:03]Read from MH i2c: E2 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 0B 00 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 0B 00 14 0D 00 3C D9 49 B7 37 E4 A9 0D 90 00 83 [18:12:03]RAPDU: 3C D9 49 B7 37 E4 A9 0D 90 00 [18:12:03]wFMCommunicate OK [18:12:03]SAM_PROTO_SignData done [18:12:03]FM_MakeSignedData done [18:12:03]CreateOFDProtocolMessage [18:12:03]wFMCommunicate request_size=4 [18:12:03]MH_SAM_APDU [18:12:03]CAPDU: 80 11 00 00 [18:12:03]Write to MH i2c: E2 08 00 15 0D 80 11 00 00 00 00 00 00 9C [18:12:03]Write i2c OK [18:12:03]MH_I2C_Read... [18:12:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:03]Read from MH i2c: E2 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 17 00 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: E2 17 00 15 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E7 [18:12:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:12:03]wFMCommunicate OK [18:12:03]CreateOFDProtocolMessage done [18:12:03]OFDSenderStorePacket 50041 [18:12:03]StoreOFDPacket docnum=50041 [18:12:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 36 01 00 00 1A 70 2E 01 34 21 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 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 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 94 00 00 00 F4 03 04 00 F3 8A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 79 C3 00 00 35 04 06 00 55 DE DF 4F 37 E0 3C D9 49 B7 37 E4 A9 0D [18:12:03]CheckFolder [18:12:03]dirname=/storage/ofd_packets [18:12:03]CheckFolder done [18:12:03]ProducePacketName [18:12:03]name=ofd_packets/00050041 [18:12:03]NVStorageSaveData ofd_packets/00050041 [18:12:03]File name is /storage/ofd_packets/00050041 [18:12:03]Write 340 bytes [18:12:03]NVStorageSaveData done [18:12:03]OFDSenderStorePacket done [18:12:03]KKMCreateOFDPacket done [18:12:03]NVStorageSaveData kkm_last_timestamp [18:12:03]File name is /storage/kkm_last_timestamp [18:12:03]Write 4 bytes [18:12:03]NVStorageSaveData done [18:12:03]ExternCall_PrintAddStr [18:12:03]wPrintStart [18:12:03]Write to MH i2c: 01 00 00 16 0D 23 [18:12:03]OFD Sender: Processing packet 50041 [packets to send 21, broken 20] [18:12:03]ProducePacketName [18:12:03]name=ofd_packets/00050041 [18:12:03]OFD Sender: To server: pG, [18:12:03]CommunicateWithHost lk.salyk.kg:30040 [18:12:03]ConnectInit lk.salyk.kg [18:12:03]Write i2c OK [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: 01 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: 01 07 00 [18:12:03]MH_I2C_Read... [18:12:03]Read from MH i2c: 01 07 00 16 0D 00 00 00 00 00 FF 0F 38 [18:12:03]RasterBufferAndPrint [18:12:03]line Счет N : (3)190167 [18:12:03]line ИНН: 02508201610067 [18:12:03]line Контрольно-Кассовый Чек [18:12:03]line ПРОДАЖА [18:12:03]line Товар: 4870235681376 [18:12:03]line ЧИПСЫ SLANG СО ВКУСОМ КРАБ 60Г [18:12:03]line 1.000 * 95.00 [18:12:03]line = 95.00 [18:12:03]line НДС 12% НСП 1% [18:12:03]line > о реализуемом товаре [18:12:03]line ИТОГО: 95.00 [18:12:03]line НСП 1% : 0.84 [18:12:03]line НДС 12% : 10.09 [18:12:03]line Наличными: 95.00 [18:12:03]line Безнал.: 0.00 [18:12:03]line Место: АЗС № 95 "Партнер Нефть" [18:12:03]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:12:03]line СНО: Общий режим [18:12:03]line Чек 148 19.08.2024 18:12 [18:12:03]line Смена: 467 ФФД: 1.0 [18:12:03]line ЗНМ: 0300000078 [18:12:03]line РНМ: 0000000000092546 [18:12:03]line Версия ККМ: 001 [18:12:03]line ФМ: 0000000000871800 [18:12:03]line ФД: 50041 [18:12:03]line ФПД: 94415717611488 [18:12:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181203&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50041&fm=94415717611488&tin=02508201610067®Number=0000000000092546&sum=9500 [18:12:04]Connected sock=7 [18:12:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 36 01 00 00 1A 70 2E 01 34 21 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 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 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 94 00 00 00 F4 03 04 00 F3 8A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 79 C3 00 00 35 04 06 00 55 DE DF 4F 37 E0 3C D9 49 B7 37 E4 A9 0D [18:12:04]line 0 [18:12:04]written 0, free lines is 4095 [18:12:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 44 E4 47 00 BF EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 79 C3 00 00 F4 03 04 00 5F 35 C3 66 B6 04 01 00 00 37 B9 05 6E BF FE 35 70 [18:12:04]CommunicateWithHost err = 0 [18:12:04]CheckOFDResponse [18:12:04]1017 (14) - 77093643461234 [18:12:04]1041 (16) - 0000000000871800 [18:12:04]1040 (4) - 50041 [18:12:04]1012 (4) - 19.08.2024 12:06 [18:12:04]1206 (1) - 0 [18:12:04]OFD Sender: Remove packet 50041 [18:12:04]ProducePacketName [18:12:04]name=ofd_packets/00050041 [18:12:04]NVStorageDeleteData [18:12:04]Write to MH i2c: 01 00 00 3F 0D 4C [18:12:04]Write i2c OK [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: 01 [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: 01 07 00 [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: 01 07 00 3F 0D 00 00 00 00 00 CF 0C 2E [18:12:04]RasterBufferAndPrint [18:12:04]line [18:12:04]line [18:12:04]line [18:12:04]line [18:12:04]line [18:12:04]written 0, free lines is 3285 [18:12:04]MH_Cut [18:12:04]Write to MH i2c: D1 01 00 46 0D 01 25 [18:12:04]Write i2c OK [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: D1 [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: D1 01 00 [18:12:04]MH_I2C_Read... [18:12:04]Read from MH i2c: D1 01 00 46 0D 00 24 [18:12:04]Write to MH i2c: 01 00 00 47 0D 54 [18:12:04]Write i2c OK [18:12:04]MH_I2C_Read... [18:12:04]OFD Sender: No OFD packet to send [18:12:05]*** Cut start [18:12:05]*** Purtial cut [18:12:05]*** CUTSNS_PIN = 0 [18:12:05]*** Stage 1: CUTSNS_PIN = 1 [18:12:07]Read from MH i2c: 01 [18:12:07]MH_I2C_Read... [18:12:07]*** Stop cut motor [18:12:07]*** Cut end [18:12:07]Read from MH i2c: 01 07 00 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: 01 07 00 47 0D 00 00 00 00 00 FF 0F 69 [18:12:07]process_action close_receipt done [18:12:07]requested_data is exist [18:12:07]produce_requested_data [18:12:07]requested_item fm.sn is exist - process it [18:12:07]wFMCommunicate request_size=4 [18:12:07]MH_SAM_APDU [18:12:07]CAPDU: 80 11 00 00 [18:12:07]Write to MH i2c: E2 08 00 48 0D 80 11 00 00 00 00 00 00 CF [18:12:07]Write i2c OK [18:12:07]MH_I2C_Read... [18:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:07]Read from MH i2c: E2 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 17 00 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 17 00 48 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1A [18:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:12:07]wFMCommunicate OK [18:12:07]requested_item fd.num is exist - process it [18:12:07]SAM_PROTO_GetFieldsCounters [18:12:07]wFMCommunicate request_size=4 [18:12:07]MH_SAM_APDU [18:12:07]CAPDU: 80 13 00 00 [18:12:07]Write to MH i2c: E2 08 00 49 0D 80 13 00 00 00 00 00 00 D2 [18:12:07]Write i2c OK [18:12:07]MH_I2C_Read... [18:12:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:07]Read from MH i2c: E2 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 62 00 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 62 00 49 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 79 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [18:12:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 79 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:07]wFMCommunicate OK [18:12:07]SAM_PROTO_GetFieldsCounters done [18:12:07]requested_item shift.num is exist - process it [18:12:07]requested_item shift.opened is exist - process it [18:12:07]req_shift_opened [18:12:07]FM_GetShiftState [18:12:07]SAM_PROTO_GetShiftState [18:12:07]wFMCommunicate request_size=4 [18:12:07]MH_SAM_APDU [18:12:07]CAPDU: 80 13 01 00 [18:12:07]Write to MH i2c: E2 08 00 4A 0D 80 13 01 00 00 00 00 00 D4 [18:12:07]Write i2c OK [18:12:07]MH_I2C_Read... [18:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:07]Read from MH i2c: E2 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 0E 00 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 0E 00 4A 0D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 8E [18:12:07]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:12:07]wFMCommunicate OK [18:12:07]SAM_PROTO_GetShiftState done [18:12:07]FM_GetShiftState done [18:12:07]req_shift_opened done [18:12:07]requested_item shift.open_date is exist - process it [18:12:07]req_shift_open_date [18:12:07]req_shift_open_date done [18:12:07]produce_requested_data done [18:12:07]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50041,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [18:12:07]process_action_free close_receipt [18:12:07]json_value_free [18:12:07]json_value_free done [18:12:07]process_json_proto returns [18:12:07]Send response to host [18:12:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50041,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [18:12:07]free response buf [18:12:07]execute_script done [18:12:07]execute_script returns [18:12:07]free content buf [18:12:07]Sock 9.Close socket [18:12:07]Sock 9.Thread stoped [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:25]OFD Sender: No OFD packet to send [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:40]OFD Sender: No OFD packet to send [18:12:45]OFD Sender: No OFD packet to send [18:12:50]OFD Sender: No OFD packet to send [18:12:55]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:40]OFD Sender: No OFD packet to send [18:13:45]OFD Sender: No OFD packet to send [18:13:50]OFD Sender: No OFD packet to send [18:13:55]OFD Sender: No OFD packet to send [18:14:00]OFD Sender: No OFD packet to send [18:14:05]OFD Sender: No OFD packet to send [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:08]accept exits with 10 [18:15:08]New connection [18:15:08]New thread 3066469732 created [18:15:08]Thread 3066613092 joined [18:15:08]Waiting for new connection... [18:15:08] Sock 10.Parse request [18:15:08]Sock 10.Check first char [18:15:08]Sock 10.First char is OK [18:15:08]request: POST /json_proto HTTP/1.0 [18:15:08]Method: POST [18:15:08]URL: /json_proto [18:15:08]Method is POST - this is cgi request [18:15:08]url: /json_proto [18:15:08]query_string will be loaded in cgi processing [18:15:08]execute_cgi json_proto POST (null) [18:15:08]execute_cgi path=json_proto method=POST [18:15:08]POST find Content-Length [18:15:08]Host: 172.17.46.196:8080 [18:15:08]Content-Length: 626 [18:15:08]Content-Type: application/json [18:15:08] [18:15:08]POST finish read [18:15:08]Found Content-Length = 626 [18:15:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190168", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:08]execute_script... [18:15:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190168", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:08]POST & json_proto [18:15:08]process_json_proto [18:15:08]json parsed OK: [18:15:08]protocol is kg_v1.0 [18:15:08]action value=close_receipt [18:15:08]process_action close_receipt [18:15:08]cmd_close_receipt [18:15:08]MH_GetDate [18:15:08]Write to MH i2c: F0 00 00 4B 0D 47 [18:15:08]Write i2c OK [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: F0 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: F0 09 00 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: F0 09 00 4B 0D 00 AD 8B C3 66 C4 85 C2 66 22 [18:15:08]GetLastDocTimeStamp 1724091123 [18:15:08]current date 1724091309 [18:15:08]FM_GetShiftState [18:15:08]SAM_PROTO_GetShiftState [18:15:08]wFMCommunicate request_size=4 [18:15:08]MH_SAM_APDU [18:15:08]CAPDU: 80 13 01 00 [18:15:08]Write to MH i2c: E2 08 00 4C 0D 80 13 01 00 00 00 00 00 D6 [18:15:08]Write i2c OK [18:15:08]MH_I2C_Read... [18:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:08]Read from MH i2c: E2 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: E2 0E 00 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: E2 0E 00 4C 0D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 90 [18:15:08]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:15:08]wFMCommunicate OK [18:15:08]SAM_PROTO_GetShiftState done [18:15:08]FM_GetShiftState done [18:15:08]opened in 1724026361 [18:15:08]opened+sec_in_day 1724112761 [18:15:08]quantity*price = 11500 [18:15:08]sum+1 = 11501 [18:15:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 149 19.08.2024 18:15 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50042 ФПД: 251012493449336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181509&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50042&fm=251012493449336&tin=02508201610067®Number=0000000000092546&sum=11500 0 [18:15:09]StoreToDocumentArchive [18:15:09]shift 467 fd 50042 [18:15:09]save to /storage/0467/doc_00050042 [18:15:09]save last doc name /storage/0467/doc_00050042 to /storage/kkm_last_doc_name [18:15:09]save OK [18:15:09]Clear old archive folders... [18:15:09]ProcessDocumentItem done err = 0, tmpTLVsize=274 [18:15:09]tlvbuf is 011C8310 [18:15:09]SAM_PROTO_ClearQueue [18:15:09]wFMCommunicate request_size=4 [18:15:09]MH_SAM_APDU [18:15:09]CAPDU: 80 09 00 00 [18:15:09]Write to MH i2c: E2 08 00 59 0D 80 09 00 00 00 00 00 00 D8 [18:15:09]Write i2c OK [18:15:09]MH_I2C_Read... [18:15:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:09]Read from MH i2c: E2 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 03 00 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 03 00 59 0D 00 90 00 DA [18:15:09]RAPDU: 90 00 [18:15:09]wFMCommunicate OK [18:15:09]SAM_PROTO_ClearQueue done [18:15:09]KKMCreateOFDPacket [18:15:09]OFDProtocolAddRootSTLVToBuf [18:15:09]FM_MakeSignedData [18:15:09]FM_MakeSignedData [18:15:09]SAM_PROTO_SignData [18:15:09]wFMCommunicate request_size=4 [18:15:09]MH_SAM_APDU [18:15:09]CAPDU: 80 0D 01 02 [18:15:09]Write to MH i2c: E2 08 00 5A 0D 80 0D 01 02 00 00 00 00 E0 [18:15:09]Write i2c OK [18:15:09]MH_I2C_Read... [18:15:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:09]Read from MH i2c: E2 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 03 00 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 03 00 5A 0D 00 90 00 DB [18:15:09]RAPDU: 90 00 [18:15:09]wFMCommunicate OK [18:15:09]wFMCommunicate request_size=255 [18:15:09]MH_SAM_APDU [18:15:09]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 AD 8B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 [18:15:09]Write to MH i2c: E2 02 01 5B 0D 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 AD 8B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 00 00 47 [18:15:09]Write i2c OK [18:15:09]MH_I2C_Read... [18:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:09]Read from MH i2c: E2 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 03 00 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 03 00 5B 0D 00 90 00 DC [18:15:09]RAPDU: 90 00 [18:15:09]wFMCommunicate OK [18:15:09]wFMCommunicate request_size=33 [18:15:09]MH_SAM_APDU [18:15:09]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7A C3 00 00 35 04 06 00 E4 4B 66 81 98 78 [18:15:09]Write to MH i2c: E2 24 00 5C 0D 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7A C3 00 00 35 04 06 00 E4 4B 66 81 98 78 00 00 CD [18:15:09]Write i2c OK [18:15:09]MH_I2C_Read... [18:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:09]Read from MH i2c: E2 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 03 00 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 03 00 5C 0D 00 90 00 DD [18:15:09]RAPDU: 90 00 [18:15:09]wFMCommunicate OK [18:15:09]wFMCommunicate request_size=4 [18:15:09]MH_SAM_APDU [18:15:09]CAPDU: 80 0D 03 02 [18:15:09]Write to MH i2c: E2 08 00 5D 0D 80 0D 03 02 00 00 00 00 E5 [18:15:09]Write i2c OK [18:15:09]MH_I2C_Read... [18:15:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:09]Read from MH i2c: E2 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 0B 00 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 0B 00 5D 0D 00 00 2E D7 AE A8 EC 88 2E 90 00 E3 [18:15:09]RAPDU: 00 2E D7 AE A8 EC 88 2E 90 00 [18:15:09]wFMCommunicate OK [18:15:09]SAM_PROTO_SignData done [18:15:09]FM_MakeSignedData done [18:15:09]CreateOFDProtocolMessage [18:15:09]wFMCommunicate request_size=4 [18:15:09]MH_SAM_APDU [18:15:09]CAPDU: 80 11 00 00 [18:15:09]Write to MH i2c: E2 08 00 5E 0D 80 11 00 00 00 00 00 00 E5 [18:15:09]Write i2c OK [18:15:09]MH_I2C_Read... [18:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:09]Read from MH i2c: E2 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 17 00 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 17 00 5E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 30 [18:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:15:09]wFMCommunicate OK [18:15:09]CreateOFDProtocolMessage done [18:15:09]OFDSenderStorePacket 50042 [18:15:09]StoreOFDPacket docnum=50042 [18:15:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 9A E9 1E 01 19 4B 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 AD 8B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7A C3 00 00 35 04 06 00 E4 4B 66 81 98 78 00 2E D7 AE A8 EC 88 2E [18:15:09]CheckFolder [18:15:09]dirname=/storage/ofd_packets [18:15:09]CheckFolder done [18:15:09]ProducePacketName [18:15:09]name=ofd_packets/00050042 [18:15:09]NVStorageSaveData ofd_packets/00050042 [18:15:09]File name is /storage/ofd_packets/00050042 [18:15:09]Write 324 bytes [18:15:09]NVStorageSaveData done [18:15:09]OFDSenderStorePacket done [18:15:09]KKMCreateOFDPacket done [18:15:09]NVStorageSaveData kkm_last_timestamp [18:15:09]File name is /storage/kkm_last_timestamp [18:15:09]Write 4 bytes [18:15:09]NVStorageSaveData done [18:15:09]ExternCall_PrintAddStr [18:15:09]wPrintStart [18:15:09]Write to MH i2c: 01 00 00 5F 0D 6C [18:15:09]Write i2c OK [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: 01 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: 01 07 00 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: 01 07 00 5F 0D 00 00 00 00 00 FF 0F 81 [18:15:09]RasterBufferAndPrint [18:15:09]line Счет N : (3)190168 [18:15:09]line ИНН: 02508201610067 [18:15:09]line Контрольно-Кассовый Чек [18:15:09]line ПРОДАЖА [18:15:09]line Товар: 2000036240010 [18:15:09]line Кофе Латте (GABB TRADE) [18:15:09]line 1.000 * 115.00 [18:15:09]line = 115.00 [18:15:09]line НДС 12% НСП 1% [18:15:09]line > о реализуемом товаре [18:15:09]line ИТОГО: 115.00 [18:15:09]line НСП 1% : 1.02 [18:15:09]line НДС 12% : 12.21 [18:15:09]line Наличными: 115.00 [18:15:09]line Безнал.: 0.00 [18:15:09]line Место: АЗС № 95 "Партнер Нефть" [18:15:09]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:15:09]line СНО: Общий режим [18:15:09]line Чек 149 19.08.2024 18:15 [18:15:09]line Смена: 467 ФФД: 1.0 [18:15:09]line ЗНМ: 0300000078 [18:15:09]line РНМ: 0000000000092546 [18:15:09]line Версия ККМ: 001 [18:15:09]line ФМ: 0000000000871800 [18:15:09]line ФД: 50042 [18:15:09]line ФПД: 251012493449336 [18:15:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181509&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50042&fm=251012493449336&tin=02508201610067®Number=0000000000092546&sum=11500 [18:15:10]OFD Sender: Processing packet 50042 [packets to send 21, broken 20] [18:15:10]ProducePacketName [18:15:10]name=ofd_packets/00050042 [18:15:10]OFD Sender: To server: pG, [18:15:10]CommunicateWithHost lk.salyk.kg:30040 [18:15:10]ConnectInit lk.salyk.kg [18:15:10]line 0 [18:15:10]written 0, free lines is 4095 [18:15:10]Connected sock=9 [18:15:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 9A E9 1E 01 19 4B 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 AD 8B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7A C3 00 00 35 04 06 00 E4 4B 66 81 98 78 00 2E D7 AE A8 EC 88 2E [18:15:10]Write to MH i2c: 01 00 00 87 0D 94 [18:15:10]Write i2c OK [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: 01 [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: 01 07 00 [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: 01 07 00 87 0D 00 00 00 00 00 E5 0C 8C [18:15:10]RasterBufferAndPrint [18:15:10]line [18:15:10]line [18:15:10]line [18:15:10]line [18:15:10]line [18:15:10]written 0, free lines is 3306 [18:15:10]MH_Cut [18:15:10]Write to MH i2c: D1 01 00 8E 0D 01 6D [18:15:10]Write i2c OK [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: D1 [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: D1 01 00 [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: D1 01 00 8E 0D 00 6C [18:15:10]Write to MH i2c: 01 00 00 8F 0D 9C [18:15:10]Write i2c OK [18:15:10]MH_I2C_Read... [18:15:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 86 C2 47 00 E5 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7A C3 00 00 F4 03 04 00 19 36 C3 66 B6 04 01 00 00 CF 0B 5A 45 3B 8E 17 E3 [18:15:10]CommunicateWithHost err = 0 [18:15:10]CheckOFDResponse [18:15:10]1017 (14) - 77093643461234 [18:15:10]1041 (16) - 0000000000871800 [18:15:10]1040 (4) - 50042 [18:15:10]1012 (4) - 19.08.2024 12:10 [18:15:10]1206 (1) - 0 [18:15:10]OFD Sender: Remove packet 50042 [18:15:10]ProducePacketName [18:15:10]name=ofd_packets/00050042 [18:15:10]NVStorageDeleteData [18:15:11]OFD Sender: No OFD packet to send [18:15:11]*** Cut start [18:15:11]*** Purtial cut [18:15:11]*** Stage 1: CUTSNS_PIN = 1 [18:15:11]Read from MH i2c: 01 [18:15:11]MH_I2C_Read... [18:15:11]*** Stop cut motor [18:15:11]*** Cut end [18:15:11]Read from MH i2c: 01 07 00 [18:15:11]MH_I2C_Read... [18:15:11]Read from MH i2c: 01 07 00 8F 0D 00 00 00 00 00 FF 0F B1 [18:15:11]process_action close_receipt done [18:15:11]requested_data is exist [18:15:11]produce_requested_data [18:15:11]requested_item fm.sn is exist - process it [18:15:11]wFMCommunicate request_size=4 [18:15:11]MH_SAM_APDU [18:15:11]CAPDU: 80 11 00 00 [18:15:11]Write to MH i2c: E2 08 00 90 0D 80 11 00 00 00 00 00 00 17 [18:15:11]Write i2c OK [18:15:11]MH_I2C_Read... [18:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:11]Read from MH i2c: E2 [18:15:11]MH_I2C_Read... [18:15:11]Read from MH i2c: E2 17 00 [18:15:11]MH_I2C_Read... [18:15:11]Read from MH i2c: E2 17 00 90 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 62 [18:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:15:11]wFMCommunicate OK [18:15:11]requested_item fd.num is exist - process it [18:15:11]SAM_PROTO_GetFieldsCounters [18:15:11]wFMCommunicate request_size=4 [18:15:11]MH_SAM_APDU [18:15:11]CAPDU: 80 13 00 00 [18:15:11]Write to MH i2c: E2 08 00 91 0D 80 13 00 00 00 00 00 00 1A [18:15:11]Write i2c OK [18:15:11]MH_I2C_Read... [18:15:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:11]Read from MH i2c: E2 [18:15:11]MH_I2C_Read... [18:15:11]Read from MH i2c: E2 62 00 [18:15:11]MH_I2C_Read... [18:15:11]Read from MH i2c: E2 62 00 91 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7A C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [18:15:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7A C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:11]wFMCommunicate OK [18:15:11]SAM_PROTO_GetFieldsCounters done [18:15:11]requested_item shift.num is exist - process it [18:15:11]requested_item shift.opened is exist - process it [18:15:11]req_shift_opened [18:15:11]FM_GetShiftState [18:15:11]SAM_PROTO_GetShiftState [18:15:11]wFMCommunicate request_size=4 [18:15:11]MH_SAM_APDU [18:15:11]CAPDU: 80 13 01 00 [18:15:11]Write to MH i2c: E2 08 00 92 0D 80 13 01 00 00 00 00 00 1C [18:15:12]Write i2c OK [18:15:12]MH_I2C_Read... [18:15:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:12]Read from MH i2c: E2 [18:15:12]MH_I2C_Read... [18:15:12]Read from MH i2c: E2 0E 00 [18:15:12]MH_I2C_Read... [18:15:12]Read from MH i2c: E2 0E 00 92 0D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 D6 [18:15:12]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:15:12]wFMCommunicate OK [18:15:12]SAM_PROTO_GetShiftState done [18:15:12]FM_GetShiftState done [18:15:12]req_shift_opened done [18:15:12]requested_item shift.open_date is exist - process it [18:15:12]req_shift_open_date [18:15:12]req_shift_open_date done [18:15:12]produce_requested_data done [18:15:12]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50042,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [18:15:12]process_action_free close_receipt [18:15:12]json_value_free [18:15:12]json_value_free done [18:15:12]process_json_proto returns [18:15:12]Send response to host [18:15:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50042,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [18:15:12]free response buf [18:15:12]execute_script done [18:15:12]execute_script returns [18:15:12]free content buf [18:15:12]Sock 10.Close socket [18:15:12]Sock 10.Thread stoped [18:15:15]accept exits with 7 [18:15:15]New connection [18:15:15]New thread 3066613092 created [18:15:15]Thread 3066469732 joined [18:15:15]Waiting for new connection... [18:15:15] Sock 7.Parse request [18:15:15]Sock 7.Check first char [18:15:15]Sock 7.First char is OK [18:15:15]request: POST /json_proto HTTP/1.0 [18:15:15]Method: POST [18:15:15]URL: /json_proto [18:15:15]Method is POST - this is cgi request [18:15:15]url: /json_proto [18:15:15]query_string will be loaded in cgi processing [18:15:15]execute_cgi json_proto POST (null) [18:15:15]execute_cgi path=json_proto method=POST [18:15:15]POST find Content-Length [18:15:15]Host: 172.17.46.196:8080 [18:15:15]Content-Length: 614 [18:15:15]Content-Type: application/json [18:15:15] [18:15:15]POST finish read [18:15:15]Found Content-Length = 614 [18:15:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190169", "tax_sys" : 0, "items" : [ { "code": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "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" ] } } [18:15:15]execute_script... [18:15: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)190169", "tax_sys" : 0, "items" : [ { "code": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "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" ] } } [18:15:15]POST & json_proto [18:15:15]process_json_proto [18:15:15]json parsed OK: [18:15:15]protocol is kg_v1.0 [18:15:15]action value=close_receipt [18:15:15]process_action close_receipt [18:15:15]cmd_close_receipt [18:15:15]MH_GetDate [18:15:15]Write to MH i2c: F0 00 00 93 0D 8F [18:15:15]Write i2c OK [18:15:15]MH_I2C_Read... [18:15:15]Read from MH i2c: F0 [18:15:15]MH_I2C_Read... [18:15:15]Read from MH i2c: F0 09 00 [18:15:15]MH_I2C_Read... [18:15:15]Read from MH i2c: F0 09 00 93 0D 00 B4 8B C3 66 C4 85 C2 66 71 [18:15:15]GetLastDocTimeStamp 1724091309 [18:15:15]current date 1724091316 [18:15:15]FM_GetShiftState [18:15:15]SAM_PROTO_GetShiftState [18:15:15]wFMCommunicate request_size=4 [18:15:15]MH_SAM_APDU [18:15:15]CAPDU: 80 13 01 00 [18:15:15]Write to MH i2c: E2 08 00 94 0D 80 13 01 00 00 00 00 00 1E [18:15:15]Write i2c OK [18:15:15]MH_I2C_Read... [18:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:15]Read from MH i2c: E2 [18:15:15]MH_I2C_Read... [18:15:15]Read from MH i2c: E2 0E 00 [18:15:15]MH_I2C_Read... [18:15:15]Read from MH i2c: E2 0E 00 94 0D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 D8 [18:15:15]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:15:15]wFMCommunicate OK [18:15:15]SAM_PROTO_GetShiftState done [18:15:15]FM_GetShiftState done [18:15:15]opened in 1724026361 [18:15:15]opened+sec_in_day 1724112761 [18:15:15]quantity*price = 15000 [18:15:15]sum+1 = 15001 [18:15:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 150 19.08.2024 18:15 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50043 ФПД: 157571963551450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181516&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50043&fm=157571963551450&tin=02508201610067®Number=0000000000092546&sum=15000 0 [18:15:16]StoreToDocumentArchive [18:15:16]shift 467 fd 50043 [18:15:16]save to /storage/0467/doc_00050043 [18:15:16]save last doc name /storage/0467/doc_00050043 to /storage/kkm_last_doc_name [18:15:16]save OK [18:15:16]Clear old archive folders... [18:15:16]ProcessDocumentItem done err = 0, tmpTLVsize=266 [18:15:16]tlvbuf is B6E555E0 [18:15:16]SAM_PROTO_ClearQueue [18:15:16]wFMCommunicate request_size=4 [18:15:16]MH_SAM_APDU [18:15:16]CAPDU: 80 09 00 00 [18:15:16]Write to MH i2c: E2 08 00 A1 0D 80 09 00 00 00 00 00 00 20 [18:15:16]Write i2c OK [18:15:16]MH_I2C_Read... [18:15:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:16]Read from MH i2c: E2 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: E2 03 00 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: E2 03 00 A1 0D 00 90 00 22 [18:15:16]RAPDU: 90 00 [18:15:16]wFMCommunicate OK [18:15:16]SAM_PROTO_ClearQueue done [18:15:16]KKMCreateOFDPacket [18:15:16]OFDProtocolAddRootSTLVToBuf [18:15:16]FM_MakeSignedData [18:15:16]FM_MakeSignedData [18:15:16]SAM_PROTO_SignData [18:15:16]wFMCommunicate request_size=4 [18:15:16]MH_SAM_APDU [18:15:16]CAPDU: 80 0D 01 02 [18:15:16]Write to MH i2c: E2 08 00 A2 0D 80 0D 01 02 00 00 00 00 28 [18:15:16]Write i2c OK [18:15:16]MH_I2C_Read... [18:15:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:16]Read from MH i2c: E2 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: E2 03 00 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: E2 03 00 A2 0D 00 90 00 23 [18:15:16]RAPDU: 90 00 [18:15:16]wFMCommunicate OK [18:15:16]wFMCommunicate request_size=255 [18:15:16]MH_SAM_APDU [18:15:16]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 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 96 00 00 00 F4 03 04 00 B4 8B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [18:15:16]Write to MH i2c: E2 02 01 A3 0D 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 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 96 00 00 00 F4 03 04 00 B4 8B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 C2 [18:15:16]Write i2c OK [18:15:16]MH_I2C_Read... [18:15:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:16]Read from MH i2c: E2 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: E2 03 00 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: E2 03 00 A3 0D 00 90 00 24 [18:15:16]RAPDU: 90 00 [18:15:16]wFMCommunicate OK [18:15:16]wFMCommunicate request_size=25 [18:15:16]MH_SAM_APDU [18:15:16]CAPDU: 80 0D 02 02 14 30 30 10 04 04 00 7B C3 00 00 35 04 06 00 8F 4F 94 E9 FE DA [18:15:16]Write to MH i2c: E2 1C 00 A4 0D 80 0D 02 02 14 00 30 30 10 04 04 00 7B C3 00 00 35 04 06 00 8F 4F 94 E9 FE DA 00 00 7B [18:15:16]Write i2c OK [18:15:16]MH_I2C_Read... [18:15:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:16]Read from MH i2c: E2 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: E2 03 00 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: E2 03 00 A4 0D 00 90 00 25 [18:15:16]RAPDU: 90 00 [18:15:16]wFMCommunicate OK [18:15:16]wFMCommunicate request_size=4 [18:15:16]MH_SAM_APDU [18:15:16]CAPDU: 80 0D 03 02 [18:15:16]Write to MH i2c: E2 08 00 A5 0D 80 0D 03 02 00 00 00 00 2D [18:15:16]Write i2c OK [18:15:16]MH_I2C_Read... [18:15:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:16]Read from MH i2c: E2 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: E2 0B 00 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: E2 0B 00 A5 0D 00 E2 97 4C 16 FD 33 32 55 90 00 C0 [18:15:16]RAPDU: E2 97 4C 16 FD 33 32 55 90 00 [18:15:16]wFMCommunicate OK [18:15:16]SAM_PROTO_SignData done [18:15:16]FM_MakeSignedData done [18:15:16]CreateOFDProtocolMessage [18:15:16]wFMCommunicate request_size=4 [18:15:16]MH_SAM_APDU [18:15:16]CAPDU: 80 11 00 00 [18:15:16]Write to MH i2c: E2 08 00 A6 0D 80 11 00 00 00 00 00 00 2D [18:15:16]Write i2c OK [18:15:16]MH_I2C_Read... [18:15:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:16]Read from MH i2c: E2 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: E2 17 00 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: E2 17 00 A6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 78 [18:15:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:15:16]wFMCommunicate OK [18:15:16]CreateOFDProtocolMessage done [18:15:16]OFDSenderStorePacket 50043 [18:15:16]StoreOFDPacket docnum=50043 [18:15:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 9E 02 16 01 79 F2 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 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 96 00 00 00 F4 03 04 00 B4 8B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7B C3 00 00 35 04 06 00 8F 4F 94 E9 FE DA E2 97 4C 16 FD 33 32 55 [18:15:16]CheckFolder [18:15:16]dirname=/storage/ofd_packets [18:15:16]CheckFolder done [18:15:16]ProducePacketName [18:15:16]name=ofd_packets/00050043 [18:15:16]NVStorageSaveData ofd_packets/00050043 [18:15:16]File name is /storage/ofd_packets/00050043 [18:15:16]Write 316 bytes [18:15:16]NVStorageSaveData done [18:15:16]OFDSenderStorePacket done [18:15:16]KKMCreateOFDPacket done [18:15:16]NVStorageSaveData kkm_last_timestamp [18:15:16]File name is /storage/kkm_last_timestamp [18:15:16]Write 4 bytes [18:15:16]NVStorageSaveData done [18:15:16]ExternCall_PrintAddStr [18:15:16]wPrintStart [18:15:16]Write to MH i2c: 01 00 00 A7 0D B4 [18:15:16]Write i2c OK [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: 01 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: 01 07 00 [18:15:16]MH_I2C_Read... [18:15:16]Read from MH i2c: 01 07 00 A7 0D 00 00 00 00 00 FF 0F C9 [18:15:16]RasterBufferAndPrint [18:15:16]line Счет N : (3)190169 [18:15:16]line ИНН: 02508201610067 [18:15:16]line Контрольно-Кассовый Чек [18:15:16]line ПРОДАЖА [18:15:16]line Товар: 48744317 [18:15:16]line Сигареты Camel Yellow [18:15:16]line 1.000 * 150.00 [18:15:16]line = 150.00 [18:15:16]line НДС 12% НСП 1% [18:15:16]line > о реализуемом товаре [18:15:16]line ИТОГО: 150.00 [18:15:16]line НСП 1% : 1.33 [18:15:16]line НДС 12% : 15.93 [18:15:16]line Наличными: 150.00 [18:15:16]line Безнал.: 0.00 [18:15:16]line Место: АЗС № 95 "Партнер Нефть" [18:15:16]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:15:16]line СНО: Общий режим [18:15:16]line Чек 150 19.08.2024 18:15 [18:15:16]line Смена: 467 ФФД: 1.0 [18:15:16]line ЗНМ: 0300000078 [18:15:16]line РНМ: 0000000000092546 [18:15:16]line Версия ККМ: 001 [18:15:16]line ФМ: 0000000000871800 [18:15:16]line ФД: 50043 [18:15:16]line ФПД: 157571963551450 [18:15:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181516&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50043&fm=157571963551450&tin=02508201610067®Number=0000000000092546&sum=15000 [18:15:16]line 0 [18:15:16]written 0, free lines is 4095 [18:15:17]OFD Sender: Processing packet 50043 [packets to send 21, broken 20] [18:15:17]ProducePacketName [18:15:17]name=ofd_packets/00050043 [18:15:17]OFD Sender: To server: pG, [18:15:17]CommunicateWithHost lk.salyk.kg:30040 [18:15:17]ConnectInit lk.salyk.kg [18:15:17]Connected sock=10 [18:15:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 9E 02 16 01 79 F2 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 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 96 00 00 00 F4 03 04 00 B4 8B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7B C3 00 00 35 04 06 00 8F 4F 94 E9 FE DA E2 97 4C 16 FD 33 32 55 [18:15:17]Write to MH i2c: 01 00 00 CF 0D DC [18:15:17]Write i2c OK [18:15:17]MH_I2C_Read... [18:15:17]Read from MH i2c: 01 [18:15:17]MH_I2C_Read... [18:15:17]Read from MH i2c: 01 07 00 [18:15:17]MH_I2C_Read... [18:15:17]Read from MH i2c: 01 07 00 CF 0D 00 00 00 00 00 E2 0C D1 [18:15:17]RasterBufferAndPrint [18:15:17]line [18:15:17]line [18:15:17]line [18:15:17]line [18:15:17]line [18:15:17]written 0, free lines is 3306 [18:15:17]MH_Cut [18:15:17]Write to MH i2c: D1 01 00 D6 0D 01 B5 [18:15:17]Write i2c OK [18:15:17]MH_I2C_Read... [18:15:17]Read from MH i2c: D1 [18:15:17]MH_I2C_Read... [18:15:17]Read from MH i2c: D1 01 00 [18:15:17]MH_I2C_Read... [18:15:17]Read from MH i2c: D1 01 00 D6 0D 00 B4 [18:15:17]Write to MH i2c: 01 00 00 D7 0D E4 [18:15:17]Write i2c OK [18:15:17]MH_I2C_Read... [18:15:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 8C AE 47 00 9A 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7B C3 00 00 F4 03 04 00 20 36 C3 66 B6 04 01 00 00 D6 56 7C 1D A4 66 22 22 [18:15:17]CommunicateWithHost err = 0 [18:15:17]CheckOFDResponse [18:15:17]1017 (14) - 77093643461234 [18:15:17]1041 (16) - 0000000000871800 [18:15:17]1040 (4) - 50043 [18:15:17]1012 (4) - 19.08.2024 12:10 [18:15:17]1206 (1) - 0 [18:15:17]OFD Sender: Remove packet 50043 [18:15:17]ProducePacketName [18:15:17]name=ofd_packets/00050043 [18:15:17]NVStorageDeleteData [18:15:17]OFD Sender: No OFD packet to send [18:15:18]*** Cut start [18:15:18]*** Purtial cut [18:15:18]*** CUTSNS_PIN = 0 [18:15:18]*** Stage 1: CUTSNS_PIN = 1 [18:15:20]Read from MH i2c: 01 [18:15:20]MH_I2C_Read... [18:15:20]*** Stop cut motor [18:15:20]*** Cut end [18:15:20]Read from MH i2c: 01 07 00 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: 01 07 00 D7 0D 00 00 00 00 00 FF 0F F9 [18:15:20]process_action close_receipt done [18:15:20]requested_data is exist [18:15:20]produce_requested_data [18:15:20]requested_item fm.sn is exist - process it [18:15:20]wFMCommunicate request_size=4 [18:15:20]MH_SAM_APDU [18:15:20]CAPDU: 80 11 00 00 [18:15:20]Write to MH i2c: E2 08 00 D8 0D 80 11 00 00 00 00 00 00 5F [18:15:20]Write i2c OK [18:15:20]MH_I2C_Read... [18:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:20]Read from MH i2c: E2 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 17 00 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 17 00 D8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AA [18:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:15:20]wFMCommunicate OK [18:15:20]requested_item fd.num is exist - process it [18:15:20]SAM_PROTO_GetFieldsCounters [18:15:20]wFMCommunicate request_size=4 [18:15:20]MH_SAM_APDU [18:15:20]CAPDU: 80 13 00 00 [18:15:20]Write to MH i2c: E2 08 00 D9 0D 80 13 00 00 00 00 00 00 62 [18:15:20]Write i2c OK [18:15:20]MH_I2C_Read... [18:15:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:20]Read from MH i2c: E2 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 62 00 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 62 00 D9 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7B C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [18:15:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7B C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:20]wFMCommunicate OK [18:15:20]SAM_PROTO_GetFieldsCounters done [18:15:20]requested_item shift.num is exist - process it [18:15:20]requested_item shift.opened is exist - process it [18:15:20]req_shift_opened [18:15:20]FM_GetShiftState [18:15:20]SAM_PROTO_GetShiftState [18:15:20]wFMCommunicate request_size=4 [18:15:20]MH_SAM_APDU [18:15:20]CAPDU: 80 13 01 00 [18:15:20]Write to MH i2c: E2 08 00 DA 0D 80 13 01 00 00 00 00 00 64 [18:15:20]Write i2c OK [18:15:20]MH_I2C_Read... [18:15:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:20]Read from MH i2c: E2 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 0E 00 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 0E 00 DA 0D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 1E [18:15:20]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:15:20]wFMCommunicate OK [18:15:20]SAM_PROTO_GetShiftState done [18:15:20]FM_GetShiftState done [18:15:20]req_shift_opened done [18:15:20]requested_item shift.open_date is exist - process it [18:15:20]req_shift_open_date [18:15:20]req_shift_open_date done [18:15:20]produce_requested_data done [18:15:20]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50043,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [18:15:20]process_action_free close_receipt [18:15:20]json_value_free [18:15:20]json_value_free done [18:15:20]process_json_proto returns [18:15:20]Send response to host [18:15:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50043,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [18:15:20]free response buf [18:15:20]execute_script done [18:15:20]execute_script returns [18:15:20]free content buf [18:15:20]Sock 7.Close socket [18:15:20]Sock 7.Thread stoped [18:15:22]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:41]accept exits with 9 [18:15:41]New connection [18:15:41]New thread 3066469732 created [18:15:41]Thread 3066613092 joined [18:15:41]Waiting for new connection... [18:15:41] Sock 9.Parse request [18:15:41]Sock 9.Check first char [18:15:41]Sock 9.First char is OK [18:15:41]request: POST /json_proto HTTP/1.0 [18:15:41]Method: POST [18:15:41]URL: /json_proto [18:15:41]Method is POST - this is cgi request [18:15:41]url: /json_proto [18:15:41]query_string will be loaded in cgi processing [18:15:41]execute_cgi json_proto POST (null) [18:15:41]execute_cgi path=json_proto method=POST [18:15:41]POST find Content-Length [18:15:41]Host: 172.17.46.196:8080 [18:15:41]Content-Length: 621 [18:15:41]Content-Type: application/json [18:15:41] [18:15:41]POST finish read [18:15:41]Found Content-Length = 621 [18:15:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190170", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "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" ] } } [18:15:41]execute_script... [18:15: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)190170", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "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" ] } } [18:15:41]POST & json_proto [18:15:41]process_json_proto [18:15:41]json parsed OK: [18:15:41]protocol is kg_v1.0 [18:15:41]action value=close_receipt [18:15:41]process_action close_receipt [18:15:41]cmd_close_receipt [18:15:41]MH_GetDate [18:15:41]Write to MH i2c: F0 00 00 DB 0D D7 [18:15:41]Write i2c OK [18:15:41]MH_I2C_Read... [18:15:41]Read from MH i2c: F0 [18:15:41]MH_I2C_Read... [18:15:41]Read from MH i2c: F0 09 00 [18:15:41]MH_I2C_Read... [18:15:41]Read from MH i2c: F0 09 00 DB 0D 00 CE 8B C3 66 C4 85 C2 66 D3 [18:15:41]GetLastDocTimeStamp 1724091316 [18:15:41]current date 1724091342 [18:15:41]FM_GetShiftState [18:15:41]SAM_PROTO_GetShiftState [18:15:41]wFMCommunicate request_size=4 [18:15:41]MH_SAM_APDU [18:15:41]CAPDU: 80 13 01 00 [18:15:41]Write to MH i2c: E2 08 00 DC 0D 80 13 01 00 00 00 00 00 66 [18:15:41]Write i2c OK [18:15:41]MH_I2C_Read... [18:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:41]Read from MH i2c: E2 [18:15:41]MH_I2C_Read... [18:15:41]Read from MH i2c: E2 0E 00 [18:15:41]MH_I2C_Read... [18:15:41]Read from MH i2c: E2 0E 00 DC 0D 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 20 [18:15:41]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:15:41]wFMCommunicate OK [18:15:41]SAM_PROTO_GetShiftState done [18:15:41]FM_GetShiftState done [18:15:41]opened in 1724026361 [18:15:41]opened+sec_in_day 1724112761 [18:15:41]quantity*price = 13000 [18:15:41]sum+1 = 13001 [18:15:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 151 19.08.2024 18:15 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50044 ФПД: 172346242405130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181542&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50044&fm=172346242405130&tin=02508201610067®Number=0000000000092546&sum=13000 0 [18:15:42]StoreToDocumentArchive [18:15:42]shift 467 fd 50044 [18:15:42]save to /storage/0467/doc_00050044 [18:15:42]save last doc name /storage/0467/doc_00050044 to /storage/kkm_last_doc_name [18:15:42]save OK [18:15:42]Clear old archive folders... [18:15:42]ProcessDocumentItem done err = 0, tmpTLVsize=273 [18:15:42]tlvbuf is 011ECCB0 [18:15:42]SAM_PROTO_ClearQueue [18:15:42]wFMCommunicate request_size=4 [18:15:42]MH_SAM_APDU [18:15:42]CAPDU: 80 09 00 00 [18:15:42]Write to MH i2c: E2 08 00 E9 0D 80 09 00 00 00 00 00 00 68 [18:15:42]Write i2c OK [18:15:42]MH_I2C_Read... [18:15:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:42]Read from MH i2c: E2 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 03 00 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 03 00 E9 0D 00 90 00 6A [18:15:42]RAPDU: 90 00 [18:15:42]wFMCommunicate OK [18:15:42]SAM_PROTO_ClearQueue done [18:15:42]KKMCreateOFDPacket [18:15:42]OFDProtocolAddRootSTLVToBuf [18:15:42]FM_MakeSignedData [18:15:42]FM_MakeSignedData [18:15:42]SAM_PROTO_SignData [18:15:42]wFMCommunicate request_size=4 [18:15:42]MH_SAM_APDU [18:15:42]CAPDU: 80 0D 01 02 [18:15:42]Write to MH i2c: E2 08 00 EA 0D 80 0D 01 02 00 00 00 00 70 [18:15:42]Write i2c OK [18:15:42]MH_I2C_Read... [18:15:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:42]Read from MH i2c: E2 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 03 00 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 03 00 EA 0D 00 90 00 6B [18:15:42]RAPDU: 90 00 [18:15:42]wFMCommunicate OK [18:15:42]wFMCommunicate request_size=255 [18:15:42]MH_SAM_APDU [18:15:42]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 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 CE 8B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [18:15:42]Write to MH i2c: E2 02 01 EB 0D 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 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 CE 8B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 58 [18:15:42]Write i2c OK [18:15:42]MH_I2C_Read... [18:15:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:42]Read from MH i2c: E2 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 03 00 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 03 00 EB 0D 00 90 00 6C [18:15:42]RAPDU: 90 00 [18:15:42]wFMCommunicate OK [18:15:42]wFMCommunicate request_size=32 [18:15:42]MH_SAM_APDU [18:15:42]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 7C C3 00 00 35 04 06 00 9C BF 7C 8E 93 0A [18:15:42]Write to MH i2c: E2 23 00 EC 0D 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 7C C3 00 00 35 04 06 00 9C BF 7C 8E 93 0A 00 00 09 [18:15:42]Write i2c OK [18:15:42]MH_I2C_Read... [18:15:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:42]Read from MH i2c: E2 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 03 00 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 03 00 EC 0D 00 90 00 6D [18:15:42]RAPDU: 90 00 [18:15:42]wFMCommunicate OK [18:15:42]wFMCommunicate request_size=4 [18:15:42]MH_SAM_APDU [18:15:42]CAPDU: 80 0D 03 02 [18:15:42]Write to MH i2c: E2 08 00 ED 0D 80 0D 03 02 00 00 00 00 75 [18:15:42]Write i2c OK [18:15:42]MH_I2C_Read... [18:15:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:42]Read from MH i2c: E2 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 0B 00 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 0B 00 ED 0D 00 BD 83 4B 54 3D 1C 85 93 90 00 C6 [18:15:42]RAPDU: BD 83 4B 54 3D 1C 85 93 90 00 [18:15:42]wFMCommunicate OK [18:15:42]SAM_PROTO_SignData done [18:15:42]FM_MakeSignedData done [18:15:42]CreateOFDProtocolMessage [18:15:42]wFMCommunicate request_size=4 [18:15:42]MH_SAM_APDU [18:15:42]CAPDU: 80 11 00 00 [18:15:42]Write to MH i2c: E2 08 00 EE 0D 80 11 00 00 00 00 00 00 75 [18:15:42]Write i2c OK [18:15:42]MH_I2C_Read... [18:15:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:42]Read from MH i2c: E2 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 17 00 [18:15:42]MH_I2C_Read... [18:15:42]Read from MH i2c: E2 17 00 EE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C0 [18:15:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:15:42]wFMCommunicate OK [18:15:42]CreateOFDProtocolMessage done [18:15:42]OFDSenderStorePacket 50044 [18:15:42]StoreOFDPacket docnum=50044 [18:15:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 9B 82 1D 01 60 72 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 CE 8B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7C C3 00 00 35 04 06 00 9C BF 7C 8E 93 0A BD 83 4B 54 3D 1C 85 93 [18:15:42]CheckFolder [18:15:42]dirname=/storage/ofd_packets [18:15:42]CheckFolder done [18:15:42]ProducePacketName [18:15:42]name=ofd_packets/00050044 [18:15:42]NVStorageSaveData ofd_packets/00050044 [18:15:42]File name is /storage/ofd_packets/00050044 [18:15:42]Write 323 bytes [18:15:42]NVStorageSaveData done [18:15:42]OFDSenderStorePacket done [18:15:42]KKMCreateOFDPacket done [18:15:42]NVStorageSaveData kkm_last_timestamp [18:15:42]File name is /storage/kkm_last_timestamp [18:15:42]Write 4 bytes [18:15:42]NVStorageSaveData done [18:15:42]ExternCall_PrintAddStr [18:15:42]wPrintStart [18:15:42]Write to MH i2c: 01 00 00 EF 0D FC [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 EF 0D 00 00 00 00 00 FF 0F 11 [18:15:42]RasterBufferAndPrint [18:15:42]line Счет N : (3)190170 [18:15:42]line ИНН: 02508201610067 [18:15:42]line Контрольно-Кассовый Чек [18:15:42]line ПРОДАЖА [18:15:42]line Товар: 4780014240406 [18:15:42]line Сигареты Sovereign Blue [18:15:42]line 1.000 * 130.00 [18:15:42]line = 130.00 [18:15:42]line НДС 12% НСП 1% [18:15:42]line > о реализуемом товаре [18:15:42]line ИТОГО: 130.00 [18:15:42]line НСП 1% : 1.15 [18:15:42]line НДС 12% : 13.80 [18:15:42]line Наличными: 130.00 [18:15:42]line Безнал.: 0.00 [18:15:42]line Место: АЗС № 95 "Партнер Нефть" [18:15:42]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:15:42]line СНО: Общий режим [18:15:42]line Чек 151 19.08.2024 18:15 [18:15:42]line Смена: 467 ФФД: 1.0 [18:15:42]line ЗНМ: 0300000078 [18:15:42]line РНМ: 0000000000092546 [18:15:42]line Версия ККМ: 001 [18:15:42]line ФМ: 0000000000871800 [18:15:42]line ФД: 50044 [18:15:42]line ФПД: 172346242405130 [18:15:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181542&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50044&fm=172346242405130&tin=02508201610067®Number=0000000000092546&sum=13000 [18:15:43]OFD Sender: Processing packet 50044 [packets to send 21, broken 20] [18:15:43]ProducePacketName [18:15:43]name=ofd_packets/00050044 [18:15:43]OFD Sender: To server: pG, [18:15:43]CommunicateWithHost lk.salyk.kg:30040 [18:15:43]ConnectInit lk.salyk.kg [18:15:43]line 0 [18:15:43]written 0, free lines is 4095 [18:15:43]Connected sock=10 [18:15:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 9B 82 1D 01 60 72 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 CE 8B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7C C3 00 00 35 04 06 00 9C BF 7C 8E 93 0A BD 83 4B 54 3D 1C 85 93 [18:15:43]Write to MH i2c: 01 00 00 17 0E 25 [18:15:43]Write i2c OK [18:15:43]MH_I2C_Read... [18:15:43]Read from MH i2c: 01 [18:15:43]MH_I2C_Read... [18:15:43]Read from MH i2c: 01 07 00 [18:15:43]MH_I2C_Read... [18:15:43]Read from MH i2c: 01 07 00 17 0E 00 00 00 00 00 E1 0C 19 [18:15:43]RasterBufferAndPrint [18:15:43]line [18:15:43]line [18:15:43]line [18:15:43]line [18:15:43]line [18:15:43]written 0, free lines is 3303 [18:15:43]MH_Cut [18:15:43]Write to MH i2c: D1 01 00 1E 0E 01 FE [18:15:43]Write i2c OK [18:15:43]MH_I2C_Read... [18:15:43]Read from MH i2c: D1 [18:15:43]MH_I2C_Read... [18:15:43]Read from MH i2c: D1 01 00 [18:15:43]MH_I2C_Read... [18:15:43]Read from MH i2c: D1 01 00 1E 0E 00 FD [18:15:43]Write to MH i2c: 01 00 00 1F 0E 2D [18:15:43]Write i2c OK [18:15:43]MH_I2C_Read... [18:15:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 51 CB 47 00 45 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7C C3 00 00 F4 03 04 00 3A 36 C3 66 B6 04 01 00 00 04 FF D9 6E 38 DE 36 79 [18:15:43]CommunicateWithHost err = 0 [18:15:43]CheckOFDResponse [18:15:43]1017 (14) - 77093643461234 [18:15:43]1041 (16) - 0000000000871800 [18:15:43]1040 (4) - 50044 [18:15:43]1012 (4) - 19.08.2024 12:10 [18:15:43]1206 (1) - 0 [18:15:43]OFD Sender: Remove packet 50044 [18:15:43]ProducePacketName [18:15:43]name=ofd_packets/00050044 [18:15:43]NVStorageDeleteData [18:15:44]OFD Sender: No OFD packet to send [18:15:44]*** Cut start [18:15:44]*** Purtial cut [18:15:44]*** Stage 1: CUTSNS_PIN = 1 [18:15:44]Read from MH i2c: 01 [18:15:44]MH_I2C_Read... [18:15:44]*** Stop cut motor [18:15:44]*** Cut end [18:15:44]Read from MH i2c: 01 07 00 [18:15:44]MH_I2C_Read... [18:15:44]Read from MH i2c: 01 07 00 1F 0E 00 00 00 00 00 FF 0F 42 [18:15:44]process_action close_receipt done [18:15:44]requested_data is exist [18:15:44]produce_requested_data [18:15:44]requested_item fm.sn is exist - process it [18:15:44]wFMCommunicate request_size=4 [18:15:44]MH_SAM_APDU [18:15:44]CAPDU: 80 11 00 00 [18:15:44]Write to MH i2c: E2 08 00 20 0E 80 11 00 00 00 00 00 00 A8 [18:15:44]Write i2c OK [18:15:44]MH_I2C_Read... [18:15:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:44]Read from MH i2c: E2 [18:15:44]MH_I2C_Read... [18:15:44]Read from MH i2c: E2 17 00 [18:15:44]MH_I2C_Read... [18:15:44]Read from MH i2c: E2 17 00 20 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F3 [18:15:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:15:44]wFMCommunicate OK [18:15:44]requested_item fd.num is exist - process it [18:15:44]SAM_PROTO_GetFieldsCounters [18:15:44]wFMCommunicate request_size=4 [18:15:44]MH_SAM_APDU [18:15:44]CAPDU: 80 13 00 00 [18:15:44]Write to MH i2c: E2 08 00 21 0E 80 13 00 00 00 00 00 00 AB [18:15:44]Write i2c OK [18:15:44]MH_I2C_Read... [18:15:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:44]Read from MH i2c: E2 [18:15:44]MH_I2C_Read... [18:15:44]Read from MH i2c: E2 62 00 [18:15:44]MH_I2C_Read... [18:15:44]Read from MH i2c: E2 62 00 21 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7C C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [18:15:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7C C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:44]wFMCommunicate OK [18:15:44]SAM_PROTO_GetFieldsCounters done [18:15:44]requested_item shift.num is exist - process it [18:15:44]requested_item shift.opened is exist - process it [18:15:44]req_shift_opened [18:15:44]FM_GetShiftState [18:15:44]SAM_PROTO_GetShiftState [18:15:44]wFMCommunicate request_size=4 [18:15:44]MH_SAM_APDU [18:15:44]CAPDU: 80 13 01 00 [18:15:44]Write to MH i2c: E2 08 00 22 0E 80 13 01 00 00 00 00 00 AD [18:15:44]Write i2c OK [18:15:44]MH_I2C_Read... [18:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:45]Read from MH i2c: E2 [18:15:45]MH_I2C_Read... [18:15:45]Read from MH i2c: E2 0E 00 [18:15:45]MH_I2C_Read... [18:15:45]Read from MH i2c: E2 0E 00 22 0E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 67 [18:15:45]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:15:45]wFMCommunicate OK [18:15:45]SAM_PROTO_GetShiftState done [18:15:45]FM_GetShiftState done [18:15:45]req_shift_opened done [18:15:45]requested_item shift.open_date is exist - process it [18:15:45]req_shift_open_date [18:15:45]req_shift_open_date done [18:15:45]produce_requested_data done [18:15:45]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50044,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [18:15:45]process_action_free close_receipt [18:15:45]json_value_free [18:15:45]json_value_free done [18:15:45]process_json_proto returns [18:15:45]Send response to host [18:15:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50044,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [18:15:45]free response buf [18:15:45]execute_script done [18:15:45]execute_script returns [18:15:45]free content buf [18:15:45]Sock 9.Close socket [18:15:45]Sock 9.Thread stoped [18:15:49]OFD Sender: No OFD packet to send [18:15:54]OFD Sender: No OFD packet to send [18:15:59]OFD Sender: No OFD packet to send [18:16:04]OFD Sender: No OFD packet to send [18:16:09]OFD Sender: No OFD packet to send [18:16:14]OFD Sender: No OFD packet to send [18:16:15]accept exits with 7 [18:16:15]New connection [18:16:15]New thread 3066613092 created [18:16:15]Thread 3066469732 joined [18:16:15]Waiting for new connection... [18:16:15] Sock 7.Parse request [18:16:15]Sock 7.Check first char [18:16:15]Sock 7.First char is OK [18:16:15]request: POST /json_proto HTTP/1.0 [18:16:15]Method: POST [18:16:15]URL: /json_proto [18:16:15]Method is POST - this is cgi request [18:16:15]url: /json_proto [18:16:15]query_string will be loaded in cgi processing [18:16:15]execute_cgi json_proto POST (null) [18:16:15]execute_cgi path=json_proto method=POST [18:16:15]POST find Content-Length [18:16:15]Host: 172.17.46.196:8080 [18:16:15]Content-Length: 621 [18:16:15]Content-Type: application/json [18:16:15] [18:16:15]POST finish read [18:16:15]Found Content-Length = 621 [18:16:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190171", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "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" ] } } [18:16:15]execute_script... [18:16: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)190171", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "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" ] } } [18:16:15]POST & json_proto [18:16:15]process_json_proto [18:16:15]json parsed OK: [18:16:15]protocol is kg_v1.0 [18:16:15]action value=close_receipt [18:16:15]process_action close_receipt [18:16:15]cmd_close_receipt [18:16:15]MH_GetDate [18:16:15]Write to MH i2c: F0 00 00 23 0E 20 [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: F0 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: F0 09 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: F0 09 00 23 0E 00 F0 8B C3 66 C4 85 C2 66 3E [18:16:15]GetLastDocTimeStamp 1724091342 [18:16:15]current date 1724091376 [18:16:15]FM_GetShiftState [18:16:15]SAM_PROTO_GetShiftState [18:16:15]wFMCommunicate request_size=4 [18:16:15]MH_SAM_APDU [18:16:15]CAPDU: 80 13 01 00 [18:16:15]Write to MH i2c: E2 08 00 24 0E 80 13 01 00 00 00 00 00 AF [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:15]Read from MH i2c: E2 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 0E 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: E2 0E 00 24 0E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 69 [18:16:15]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:16:15]wFMCommunicate OK [18:16:15]SAM_PROTO_GetShiftState done [18:16:15]FM_GetShiftState done [18:16:15]opened in 1724026361 [18:16:15]opened+sec_in_day 1724112761 [18:16:15]quantity*price = 13000 [18:16:15]sum+1 = 13001 [18:16:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 152 19.08.2024 18:16 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50045 ФПД: 58848474745250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181616&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50045&fm=58848474745250&tin=02508201610067®Number=0000000000092546&sum=13000 0 [18:16:16]StoreToDocumentArchive [18:16:16]shift 467 fd 50045 [18:16:16]save to /storage/0467/doc_00050045 [18:16:16]save last doc name /storage/0467/doc_00050045 to /storage/kkm_last_doc_name [18:16:16]save OK [18:16:16]Clear old archive folders... [18:16:16]ProcessDocumentItem done err = 0, tmpTLVsize=273 [18:16:16]tlvbuf is 011ECAD0 [18:16:16]SAM_PROTO_ClearQueue [18:16:16]wFMCommunicate request_size=4 [18:16:16]MH_SAM_APDU [18:16:16]CAPDU: 80 09 00 00 [18:16:16]Write to MH i2c: E2 08 00 31 0E 80 09 00 00 00 00 00 00 B1 [18:16:16]Write i2c OK [18:16:16]MH_I2C_Read... [18:16:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:16]Read from MH i2c: E2 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 03 00 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 03 00 31 0E 00 90 00 B3 [18:16:16]RAPDU: 90 00 [18:16:16]wFMCommunicate OK [18:16:16]SAM_PROTO_ClearQueue done [18:16:16]KKMCreateOFDPacket [18:16:16]OFDProtocolAddRootSTLVToBuf [18:16:16]FM_MakeSignedData [18:16:16]FM_MakeSignedData [18:16:16]SAM_PROTO_SignData [18:16:16]wFMCommunicate request_size=4 [18:16:16]MH_SAM_APDU [18:16:16]CAPDU: 80 0D 01 02 [18:16:16]Write to MH i2c: E2 08 00 32 0E 80 0D 01 02 00 00 00 00 B9 [18:16:16]Write i2c OK [18:16:16]MH_I2C_Read... [18:16:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:16]Read from MH i2c: E2 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 03 00 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 03 00 32 0E 00 90 00 B4 [18:16:16]RAPDU: 90 00 [18:16:16]wFMCommunicate OK [18:16:16]wFMCommunicate request_size=255 [18:16:16]MH_SAM_APDU [18:16:16]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 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F0 8B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [18:16:16]Write to MH i2c: E2 02 01 33 0E 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 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F0 8B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 C4 [18:16:16]Write i2c OK [18:16:16]MH_I2C_Read... [18:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:16]Read from MH i2c: E2 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 03 00 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 03 00 33 0E 00 90 00 B5 [18:16:16]RAPDU: 90 00 [18:16:16]wFMCommunicate OK [18:16:16]wFMCommunicate request_size=32 [18:16:16]MH_SAM_APDU [18:16:16]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 7D C3 00 00 35 04 06 00 35 85 BA 6E C9 A2 [18:16:16]Write to MH i2c: E2 23 00 34 0E 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 7D C3 00 00 35 04 06 00 35 85 BA 6E C9 A2 00 00 9E [18:16:16]Write i2c OK [18:16:16]MH_I2C_Read... [18:16:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:16]Read from MH i2c: E2 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 03 00 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 03 00 34 0E 00 90 00 B6 [18:16:16]RAPDU: 90 00 [18:16:16]wFMCommunicate OK [18:16:16]wFMCommunicate request_size=4 [18:16:16]MH_SAM_APDU [18:16:16]CAPDU: 80 0D 03 02 [18:16:16]Write to MH i2c: E2 08 00 35 0E 80 0D 03 02 00 00 00 00 BE [18:16:16]Write i2c OK [18:16:16]MH_I2C_Read... [18:16:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:16]Read from MH i2c: E2 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 0B 00 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 0B 00 35 0E 00 3D 6E 87 54 72 58 2F 88 90 00 C6 [18:16:16]RAPDU: 3D 6E 87 54 72 58 2F 88 90 00 [18:16:16]wFMCommunicate OK [18:16:16]SAM_PROTO_SignData done [18:16:16]FM_MakeSignedData done [18:16:16]CreateOFDProtocolMessage [18:16:16]wFMCommunicate request_size=4 [18:16:16]MH_SAM_APDU [18:16:16]CAPDU: 80 11 00 00 [18:16:16]Write to MH i2c: E2 08 00 36 0E 80 11 00 00 00 00 00 00 BE [18:16:16]Write i2c OK [18:16:16]MH_I2C_Read... [18:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:16]Read from MH i2c: E2 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 17 00 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 17 00 36 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 09 [18:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:16:16]wFMCommunicate OK [18:16:16]CreateOFDProtocolMessage done [18:16:16]OFDSenderStorePacket 50045 [18:16:16]StoreOFDPacket docnum=50045 [18:16:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 45 4B 1D 01 98 FB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F0 8B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7D C3 00 00 35 04 06 00 35 85 BA 6E C9 A2 3D 6E 87 54 72 58 2F 88 [18:16:16]CheckFolder [18:16:16]dirname=/storage/ofd_packets [18:16:16]CheckFolder done [18:16:16]ProducePacketName [18:16:16]name=ofd_packets/00050045 [18:16:16]NVStorageSaveData ofd_packets/00050045 [18:16:16]File name is /storage/ofd_packets/00050045 [18:16:16]Write 323 bytes [18:16:16]NVStorageSaveData done [18:16:16]OFDSenderStorePacket done [18:16:16]KKMCreateOFDPacket done [18:16:16]NVStorageSaveData kkm_last_timestamp [18:16:16]File name is /storage/kkm_last_timestamp [18:16:16]Write 4 bytes [18:16:16]NVStorageSaveData done [18:16:16]ExternCall_PrintAddStr [18:16:16]wPrintStart [18:16:16]Write to MH i2c: 01 00 00 37 0E 45 [18:16:16]Write i2c OK [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: 01 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: 01 07 00 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: 01 07 00 37 0E 00 00 00 00 00 FF 0F 5A [18:16:16]RasterBufferAndPrint [18:16:16]line Счет N : (3)190171 [18:16:16]line ИНН: 02508201610067 [18:16:16]line Контрольно-Кассовый Чек [18:16:16]line ПРОДАЖА [18:16:16]line Товар: 4780014240406 [18:16:16]line Сигареты Sovereign Blue [18:16:16]line 1.000 * 130.00 [18:16:16]line = 130.00 [18:16:16]line НДС 12% НСП 1% [18:16:16]line > о реализуемом товаре [18:16:16]line ИТОГО: 130.00 [18:16:16]line НСП 1% : 1.15 [18:16:16]line НДС 12% : 13.80 [18:16:16]line Наличными: 130.00 [18:16:16]line Безнал.: 0.00 [18:16:16]line Место: АЗС № 95 "Партнер Нефть" [18:16:16]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:16:16]line СНО: Общий режим [18:16:16]line Чек 152 19.08.2024 18:16 [18:16:16]line Смена: 467 ФФД: 1.0 [18:16:16]line ЗНМ: 0300000078 [18:16:16]line РНМ: 0000000000092546 [18:16:16]line Версия ККМ: 001 [18:16:16]line ФМ: 0000000000871800 [18:16:16]line ФД: 50045 [18:16:16]line ФПД: 58848474745250 [18:16:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T181616&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50045&fm=58848474745250&tin=02508201610067®Number=0000000000092546&sum=13000 [18:16:17]OFD Sender: Processing packet 50045 [packets to send 21, broken 20] [18:16:17]ProducePacketName [18:16:17]name=ofd_packets/00050045 [18:16:17]OFD Sender: To server: pG, [18:16:17]CommunicateWithHost lk.salyk.kg:30040 [18:16:17]ConnectInit lk.salyk.kg [18:16:17]line 0 [18:16:17]written 0, free lines is 4095 [18:16:17]Connected sock=11 [18:16:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 45 4B 1D 01 98 FB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F0 8B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7D C3 00 00 35 04 06 00 35 85 BA 6E C9 A2 3D 6E 87 54 72 58 2F 88 [18:16:17]Write to MH i2c: 01 00 00 5F 0E 6D [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 5F 0E 00 00 00 00 00 EE 0C 6E [18:16:17]RasterBufferAndPrint [18:16:17]line [18:16:17]line [18:16:17]line [18:16:17]line [18:16:17]line [18:16:17]written 0, free lines is 3316 [18:16:17]MH_Cut [18:16:17]Write to MH i2c: D1 01 00 66 0E 01 46 [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: D1 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: D1 01 00 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: D1 01 00 66 0E 00 45 [18:16:17]Write to MH i2c: 01 00 00 67 0E 75 [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F6 50 47 00 4A A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7D C3 00 00 F4 03 04 00 5C 36 C3 66 B6 04 01 00 00 0F D3 3F 28 30 B0 76 A6 [18:16:17]CommunicateWithHost err = 0 [18:16:17]CheckOFDResponse [18:16:17]1017 (14) - 77093643461234 [18:16:17]1041 (16) - 0000000000871800 [18:16:17]1040 (4) - 50045 [18:16:17]1012 (4) - 19.08.2024 12:11 [18:16:17]1206 (1) - 0 [18:16:17]OFD Sender: Remove packet 50045 [18:16:17]ProducePacketName [18:16:17]name=ofd_packets/00050045 [18:16:17]NVStorageDeleteData [18:16:18]OFD Sender: No OFD packet to send [18:16:18]*** Cut start [18:16:18]*** Purtial cut [18:16:18]*** CUTSNS_PIN = 0 [18:16:18]*** Stage 1: CUTSNS_PIN = 1 [18:16:20]Read from MH i2c: 01 [18:16:20]MH_I2C_Read... [18:16:20]*** Stop cut motor [18:16:20]*** Cut end [18:16:20]Read from MH i2c: 01 07 00 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: 01 07 00 67 0E 00 00 00 00 00 FF 0F 8A [18:16:20]process_action close_receipt done [18:16:20]requested_data is exist [18:16:20]produce_requested_data [18:16:20]requested_item fm.sn is exist - process it [18:16:20]wFMCommunicate request_size=4 [18:16:20]MH_SAM_APDU [18:16:20]CAPDU: 80 11 00 00 [18:16:20]Write to MH i2c: E2 08 00 68 0E 80 11 00 00 00 00 00 00 F0 [18:16:20]Write i2c OK [18:16:20]MH_I2C_Read... [18:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:20]Read from MH i2c: E2 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 17 00 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 17 00 68 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3B [18:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:16:20]wFMCommunicate OK [18:16:20]requested_item fd.num is exist - process it [18:16:20]SAM_PROTO_GetFieldsCounters [18:16:20]wFMCommunicate request_size=4 [18:16:20]MH_SAM_APDU [18:16:20]CAPDU: 80 13 00 00 [18:16:20]Write to MH i2c: E2 08 00 69 0E 80 13 00 00 00 00 00 00 F3 [18:16:20]Write i2c OK [18:16:20]MH_I2C_Read... [18:16:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:20]Read from MH i2c: E2 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 62 00 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 62 00 69 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7D C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [18:16:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7D C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:20]wFMCommunicate OK [18:16:20]SAM_PROTO_GetFieldsCounters done [18:16:20]requested_item shift.num is exist - process it [18:16:20]requested_item shift.opened is exist - process it [18:16:20]req_shift_opened [18:16:20]FM_GetShiftState [18:16:20]SAM_PROTO_GetShiftState [18:16:20]wFMCommunicate request_size=4 [18:16:20]MH_SAM_APDU [18:16:20]CAPDU: 80 13 01 00 [18:16:20]Write to MH i2c: E2 08 00 6A 0E 80 13 01 00 00 00 00 00 F5 [18:16:20]Write i2c OK [18:16:20]MH_I2C_Read... [18:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:20]Read from MH i2c: E2 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 0E 00 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 0E 00 6A 0E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 AF [18:16:20]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:16:20]wFMCommunicate OK [18:16:20]SAM_PROTO_GetShiftState done [18:16:20]FM_GetShiftState done [18:16:20]req_shift_opened done [18:16:20]requested_item shift.open_date is exist - process it [18:16:20]req_shift_open_date [18:16:20]req_shift_open_date done [18:16:20]produce_requested_data done [18:16:20]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50045,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [18:16:20]process_action_free close_receipt [18:16:20]json_value_free [18:16:20]json_value_free done [18:16:20]process_json_proto returns [18:16:20]Send response to host [18:16:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50045,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [18:16:20]free response buf [18:16:20]execute_script done [18:16:20]execute_script returns [18:16:20]free content buf [18:16:20]Sock 7.Close socket [18:16:20]Sock 7.Thread stoped [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:58]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:23]OFD Sender: No OFD packet to send [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:48]OFD Sender: No OFD packet to send [18:27:53]OFD Sender: No OFD packet to send [18:27:58]OFD Sender: No OFD packet to send [18:28:03]OFD Sender: No OFD packet to send [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:14]accept exits with 9 [18:30:14]New connection [18:30:14]New thread 3066469732 created [18:30:14] Sock 9.Parse request [18:30:14]Thread 3066613092 joined [18:30:14]Sock 9.Check first char [18:30:14]Waiting for new connection... [18:30:14]Sock 9.First char is OK [18:30:14]request: POST /json_proto HTTP/1.0 [18:30:14]Method: POST [18:30:14]URL: /json_proto [18:30:14]Method is POST - this is cgi request [18:30:14]url: /json_proto [18:30:14]query_string will be loaded in cgi processing [18:30:14]execute_cgi json_proto POST (null) [18:30:14]execute_cgi path=json_proto method=POST [18:30:14]POST find Content-Length [18:30:14]Host: 172.17.46.196:8080 [18:30:14]Content-Length: 646 [18:30:14]Content-Type: application/json [18:30:14] [18:30:14]POST finish read [18:30:14]Found Content-Length = 646 [18:30:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190172", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 152.00, "quantity" : 1.000, "sum" : 152.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 152.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:14]execute_script... [18:30: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)190172", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 152.00, "quantity" : 1.000, "sum" : 152.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 152.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:14]POST & json_proto [18:30:14]process_json_proto [18:30:14]json parsed OK: [18:30:14]protocol is kg_v1.0 [18:30:14]action value=close_receipt [18:30:14]process_action close_receipt [18:30:14]cmd_close_receipt [18:30:14]MH_GetDate [18:30:14]Write to MH i2c: F0 00 00 6B 0E 68 [18:30:14]Write i2c OK [18:30:14]MH_I2C_Read... [18:30:14]Read from MH i2c: F0 [18:30:14]MH_I2C_Read... [18:30:14]Read from MH i2c: F0 09 00 [18:30:14]MH_I2C_Read... [18:30:14]Read from MH i2c: F0 09 00 6B 0E 00 37 8F C3 66 C4 85 C2 66 D1 [18:30:14]GetLastDocTimeStamp 1724091376 [18:30:14]current date 1724092215 [18:30:14]FM_GetShiftState [18:30:14]SAM_PROTO_GetShiftState [18:30:14]wFMCommunicate request_size=4 [18:30:14]MH_SAM_APDU [18:30:14]CAPDU: 80 13 01 00 [18:30:14]Write to MH i2c: E2 08 00 6C 0E 80 13 01 00 00 00 00 00 F7 [18:30:14]Write i2c OK [18:30:14]MH_I2C_Read... [18:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:14]Read from MH i2c: E2 [18:30:14]MH_I2C_Read... [18:30:14]Read from MH i2c: E2 0E 00 [18:30:14]MH_I2C_Read... [18:30:14]Read from MH i2c: E2 0E 00 6C 0E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B1 [18:30:14]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:30:14]wFMCommunicate OK [18:30:14]SAM_PROTO_GetShiftState done [18:30:14]FM_GetShiftState done [18:30:14]opened in 1724026361 [18:30:14]opened+sec_in_day 1724112761 [18:30:14]quantity*price = 15200 [18:30:14]sum+1 = 15201 [18:30:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 152.00 НСП 1% : 1.34 НДС 12% : 16.14 Наличными: 152.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 153 19.08.2024 18:30 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50046 ФПД: 163289330660050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T183015&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50046&fm=163289330660050&tin=02508201610067®Number=0000000000092546&sum=15200 0 [18:30:15]StoreToDocumentArchive [18:30:15]shift 467 fd 50046 [18:30:15]save to /storage/0467/doc_00050046 [18:30:15]save last doc name /storage/0467/doc_00050046 to /storage/kkm_last_doc_name [18:30:15]save OK [18:30:15]Clear old archive folders... [18:30:15]ProcessDocumentItem done err = 0, tmpTLVsize=278 [18:30:15]tlvbuf is 011ED850 [18:30:15]SAM_PROTO_ClearQueue [18:30:15]wFMCommunicate request_size=4 [18:30:15]MH_SAM_APDU [18:30:15]CAPDU: 80 09 00 00 [18:30:15]Write to MH i2c: E2 08 00 79 0E 80 09 00 00 00 00 00 00 F9 [18:30:15]Write i2c OK [18:30:15]MH_I2C_Read... [18:30:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:15]Read from MH i2c: E2 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: E2 03 00 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: E2 03 00 79 0E 00 90 00 FB [18:30:15]RAPDU: 90 00 [18:30:15]wFMCommunicate OK [18:30:15]SAM_PROTO_ClearQueue done [18:30:15]KKMCreateOFDPacket [18:30:15]OFDProtocolAddRootSTLVToBuf [18:30:15]FM_MakeSignedData [18:30:15]FM_MakeSignedData [18:30:15]SAM_PROTO_SignData [18:30:15]wFMCommunicate request_size=4 [18:30:15]MH_SAM_APDU [18:30:15]CAPDU: 80 0D 01 02 [18:30:15]Write to MH i2c: E2 08 00 7A 0E 80 0D 01 02 00 00 00 00 01 [18:30:15]Write i2c OK [18:30:15]MH_I2C_Read... [18:30:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:15]Read from MH i2c: E2 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: E2 03 00 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: E2 03 00 7A 0E 00 90 00 FC [18:30:15]RAPDU: 90 00 [18:30:15]wFMCommunicate OK [18:30:15]wFMCommunicate request_size=255 [18:30:15]MH_SAM_APDU [18:30:15]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 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 60 3B 00 00 00 00 13 04 06 00 60 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 37 8F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 [18:30:15]Write to MH i2c: E2 02 01 7B 0E 80 0D 02 02 FA 00 03 00 16 01 1E 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 60 3B 00 00 00 00 13 04 06 00 60 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 37 8F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 00 00 8A [18:30:15]Write i2c OK [18:30:15]MH_I2C_Read... [18:30:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:15]Read from MH i2c: E2 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: E2 03 00 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: E2 03 00 7B 0E 00 90 00 FD [18:30:15]RAPDU: 90 00 [18:30:15]wFMCommunicate OK [18:30:15]wFMCommunicate request_size=37 [18:30:15]MH_SAM_APDU [18:30:15]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7E C3 00 00 35 04 06 00 94 82 C2 8C B2 D2 [18:30:15]Write to MH i2c: E2 28 00 7C 0E 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7E C3 00 00 35 04 06 00 94 82 C2 8C B2 D2 00 00 7C [18:30:15]Write i2c OK [18:30:15]MH_I2C_Read... [18:30:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:15]Read from MH i2c: E2 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: E2 03 00 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: E2 03 00 7C 0E 00 90 00 FE [18:30:15]RAPDU: 90 00 [18:30:15]wFMCommunicate OK [18:30:15]wFMCommunicate request_size=4 [18:30:15]MH_SAM_APDU [18:30:15]CAPDU: 80 0D 03 02 [18:30:15]Write to MH i2c: E2 08 00 7D 0E 80 0D 03 02 00 00 00 00 06 [18:30:15]Write i2c OK [18:30:15]MH_I2C_Read... [18:30:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:15]Read from MH i2c: E2 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: E2 0B 00 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: E2 0B 00 7D 0E 00 AA C7 BF 4A D3 EE FA 6B 90 00 A7 [18:30:15]RAPDU: AA C7 BF 4A D3 EE FA 6B 90 00 [18:30:15]wFMCommunicate OK [18:30:15]SAM_PROTO_SignData done [18:30:15]FM_MakeSignedData done [18:30:15]CreateOFDProtocolMessage [18:30:15]wFMCommunicate request_size=4 [18:30:15]MH_SAM_APDU [18:30:15]CAPDU: 80 11 00 00 [18:30:15]Write to MH i2c: E2 08 00 7E 0E 80 11 00 00 00 00 00 00 06 [18:30:15]Write i2c OK [18:30:15]MH_I2C_Read... [18:30:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:15]Read from MH i2c: E2 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: E2 17 00 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: E2 17 00 7E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 51 [18:30:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:30:15]wFMCommunicate OK [18:30:15]CreateOFDProtocolMessage done [18:30:15]OFDSenderStorePacket 50046 [18:30:15]StoreOFDPacket docnum=50046 [18:30:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 0A 7A 22 01 99 71 5A 03 01 00 03 00 16 01 1E 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 60 3B 00 00 00 00 13 04 06 00 60 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 37 8F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7E C3 00 00 35 04 06 00 94 82 C2 8C B2 D2 AA C7 BF 4A D3 EE FA 6B [18:30:15]CheckFolder [18:30:15]dirname=/storage/ofd_packets [18:30:15]CheckFolder done [18:30:15]ProducePacketName [18:30:15]name=ofd_packets/00050046 [18:30:15]NVStorageSaveData ofd_packets/00050046 [18:30:15]File name is /storage/ofd_packets/00050046 [18:30:15]Write 328 bytes [18:30:15]NVStorageSaveData done [18:30:15]OFDSenderStorePacket done [18:30:15]KKMCreateOFDPacket done [18:30:15]NVStorageSaveData kkm_last_timestamp [18:30:15]File name is /storage/kkm_last_timestamp [18:30:15]Write 4 bytes [18:30:15]NVStorageSaveData done [18:30:15]ExternCall_PrintAddStr [18:30:15]wPrintStart [18:30:15]Write to MH i2c: 01 00 00 7F 0E 8D [18:30:15]Write i2c OK [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: 01 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: 01 07 00 [18:30:15]MH_I2C_Read... [18:30:15]Read from MH i2c: 01 07 00 7F 0E 00 00 00 00 00 FF 0F A2 [18:30:15]RasterBufferAndPrint [18:30:15]line Счет N : (3)190172 [18:30:15]line ИНН: 02508201610067 [18:30:15]line Контрольно-Кассовый Чек [18:30:15]line ПРОДАЖА [18:30:15]line Товар: 90162602 [18:30:15]line Энерг напиток Red bull 0,25л [18:30:15]line 1.000 * 152.00 [18:30:15]line = 152.00 [18:30:15]line НДС 12% НСП 1% [18:30:15]line > о реализуемом товаре [18:30:15]line ИТОГО: 152.00 [18:30:15]line НСП 1% : 1.34 [18:30:15]line НДС 12% : 16.14 [18:30:15]line Наличными: 152.00 [18:30:15]line Безнал.: 0.00 [18:30:15]line Место: АЗС № 95 "Партнер Нефть" [18:30:15]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:30:15]line СНО: Общий режим [18:30:15]line Чек 153 19.08.2024 18:30 [18:30:15]line Смена: 467 ФФД: 1.0 [18:30:15]line ЗНМ: 0300000078 [18:30:15]line РНМ: 0000000000092546 [18:30:15]line Версия ККМ: 001 [18:30:15]line ФМ: 0000000000871800 [18:30:15]line ФД: 50046 [18:30:15]line ФПД: 163289330660050 [18:30:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T183015&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50046&fm=163289330660050&tin=02508201610067®Number=0000000000092546&sum=15200 [18:30:16]OFD Sender: Processing packet 50046 [packets to send 21, broken 20] [18:30:16]ProducePacketName [18:30:16]name=ofd_packets/00050046 [18:30:16]OFD Sender: To server: pG, [18:30:16]CommunicateWithHost lk.salyk.kg:30040 [18:30:16]ConnectInit lk.salyk.kg [18:30:16]line 0 [18:30:16]written 0, free lines is 4095 [18:30:16]Connected sock=7 [18:30:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 0A 7A 22 01 99 71 5A 03 01 00 03 00 16 01 1E 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 60 3B 00 00 00 00 13 04 06 00 60 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 37 8F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7E C3 00 00 35 04 06 00 94 82 C2 8C B2 D2 AA C7 BF 4A D3 EE FA 6B [18:30:16]Write to MH i2c: 01 00 00 A7 0E B5 [18:30:16]Write i2c OK [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: 01 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: 01 07 00 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: 01 07 00 A7 0E 00 00 00 00 00 F7 0C BF [18:30:16]RasterBufferAndPrint [18:30:16]line [18:30:16]line [18:30:16]line [18:30:16]line [18:30:16]line [18:30:16]written 0, free lines is 3328 [18:30:16]MH_Cut [18:30:16]Write to MH i2c: D1 01 00 AE 0E 01 8E [18:30:16]Write i2c OK [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: D1 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: D1 01 00 [18:30:16]MH_I2C_Read... [18:30:16]Read from MH i2c: D1 01 00 AE 0E 00 8D [18:30:16]Write to MH i2c: 01 00 00 AF 0E BD [18:30:16]Write i2c OK [18:30:16]MH_I2C_Read... [18:30:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 45 FD 47 00 9A BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7E C3 00 00 F4 03 04 00 A3 39 C3 66 B6 04 01 00 00 D7 0C 43 38 0B 0D AA 8C [18:30:16]CommunicateWithHost err = 0 [18:30:16]CheckOFDResponse [18:30:16]1017 (14) - 77093643461234 [18:30:16]1041 (16) - 0000000000871800 [18:30:16]1040 (4) - 50046 [18:30:16]1012 (4) - 19.08.2024 12:25 [18:30:16]1206 (1) - 0 [18:30:16]OFD Sender: Remove packet 50046 [18:30:16]ProducePacketName [18:30:16]name=ofd_packets/00050046 [18:30:16]NVStorageDeleteData [18:30:17]OFD Sender: No OFD packet to send [18:30:17]*** Cut start [18:30:17]*** Purtial cut [18:30:17]*** Stage 1: CUTSNS_PIN = 1 [18:30:17]Read from MH i2c: 01 [18:30:17]MH_I2C_Read... [18:30:17]*** Stop cut motor [18:30:17]*** Cut end [18:30:17]Read from MH i2c: 01 07 00 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: 01 07 00 AF 0E 00 00 00 00 00 FF 0F D2 [18:30:17]process_action close_receipt done [18:30:17]requested_data is exist [18:30:17]produce_requested_data [18:30:17]requested_item fm.sn is exist - process it [18:30:17]wFMCommunicate request_size=4 [18:30:17]MH_SAM_APDU [18:30:17]CAPDU: 80 11 00 00 [18:30:17]Write to MH i2c: E2 08 00 B0 0E 80 11 00 00 00 00 00 00 38 [18:30:17]Write i2c OK [18:30:17]MH_I2C_Read... [18:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:17]Read from MH i2c: E2 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: E2 17 00 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: E2 17 00 B0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 83 [18:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:30:17]wFMCommunicate OK [18:30:17]requested_item fd.num is exist - process it [18:30:17]SAM_PROTO_GetFieldsCounters [18:30:17]wFMCommunicate request_size=4 [18:30:17]MH_SAM_APDU [18:30:17]CAPDU: 80 13 00 00 [18:30:17]Write to MH i2c: E2 08 00 B1 0E 80 13 00 00 00 00 00 00 3B [18:30:17]Write i2c OK [18:30:17]MH_I2C_Read... [18:30:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:17]Read from MH i2c: E2 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: E2 62 00 [18:30:17]MH_I2C_Read... [18:30:17]Read from MH i2c: E2 62 00 B1 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7E C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [18:30:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7E C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:17]wFMCommunicate OK [18:30:17]SAM_PROTO_GetFieldsCounters done [18:30:17]requested_item shift.num is exist - process it [18:30:17]requested_item shift.opened is exist - process it [18:30:17]req_shift_opened [18:30:17]FM_GetShiftState [18:30:17]SAM_PROTO_GetShiftState [18:30:17]wFMCommunicate request_size=4 [18:30:17]MH_SAM_APDU [18:30:17]CAPDU: 80 13 01 00 [18:30:17]Write to MH i2c: E2 08 00 B2 0E 80 13 01 00 00 00 00 00 3D [18:30:17]Write i2c OK [18:30:17]MH_I2C_Read... [18:30:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:18]Read from MH i2c: E2 [18:30:18]MH_I2C_Read... [18:30:18]Read from MH i2c: E2 0E 00 [18:30:18]MH_I2C_Read... [18:30:18]Read from MH i2c: E2 0E 00 B2 0E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 F7 [18:30:18]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:30:18]wFMCommunicate OK [18:30:18]SAM_PROTO_GetShiftState done [18:30:18]FM_GetShiftState done [18:30:18]req_shift_opened done [18:30:18]requested_item shift.open_date is exist - process it [18:30:18]req_shift_open_date [18:30:18]req_shift_open_date done [18:30:18]produce_requested_data done [18:30:18]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50046,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [18:30:18]process_action_free close_receipt [18:30:18]json_value_free [18:30:18]json_value_free done [18:30:18]process_json_proto returns [18:30:18]Send response to host [18:30:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50046,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [18:30:18]free response buf [18:30:18]execute_script done [18:30:18]execute_script returns [18:30:18]free content buf [18:30:18]Sock 9.Close socket [18:30:18]Sock 9.Thread stoped [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:42]OFD Sender: No OFD packet to send [18:30:47]OFD Sender: No OFD packet to send [18:30:52]OFD Sender: No OFD packet to send [18:30:57]OFD Sender: No OFD packet to send [18:31:02]OFD Sender: No OFD packet to send [18:31:07]OFD Sender: No OFD packet to send [18:31:12]OFD Sender: No OFD packet to send [18:31:17]OFD Sender: No OFD packet to send [18:31:22]OFD Sender: No OFD packet to send [18:31:27]OFD Sender: No OFD packet to send [18:31:32]OFD Sender: No OFD packet to send [18:31:37]OFD Sender: No OFD packet to send [18:31:42]OFD Sender: No OFD packet to send [18:31:45]accept exits with 10 [18:31:45]New connection [18:31:45]New thread 3066613092 created [18:31:45]Thread 3066469732 joined [18:31:45]Waiting for new connection... [18:31:45] Sock 10.Parse request [18:31:45]Sock 10.Check first char [18:31:45]Sock 10.First char is OK [18:31:45]request: POST /json_proto HTTP/1.0 [18:31:45]Method: POST [18:31:45]URL: /json_proto [18:31:45]Method is POST - this is cgi request [18:31:45]url: /json_proto [18:31:45]query_string will be loaded in cgi processing [18:31:45]execute_cgi json_proto POST (null) [18:31:45]execute_cgi path=json_proto method=POST [18:31:45]POST find Content-Length [18:31:45]Host: 172.17.46.196:8080 [18:31:45]Content-Length: 623 [18:31:45]Content-Type: application/json [18:31:45] [18:31:45]POST finish read [18:31:45]Found Content-Length = 623 [18:31:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190173", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:45]execute_script... [18:31:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190173", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:45]POST & json_proto [18:31:45]process_json_proto [18:31:45]json parsed OK: [18:31:45]protocol is kg_v1.0 [18:31:45]action value=close_receipt [18:31:45]process_action close_receipt [18:31:45]cmd_close_receipt [18:31:45]MH_GetDate [18:31:45]Write to MH i2c: F0 00 00 B3 0E B0 [18:31:45]Write i2c OK [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: F0 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: F0 09 00 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: F0 09 00 B3 0E 00 92 8F C3 66 C4 85 C2 66 74 [18:31:45]GetLastDocTimeStamp 1724092215 [18:31:45]current date 1724092306 [18:31:45]FM_GetShiftState [18:31:45]SAM_PROTO_GetShiftState [18:31:45]wFMCommunicate request_size=4 [18:31:45]MH_SAM_APDU [18:31:45]CAPDU: 80 13 01 00 [18:31:45]Write to MH i2c: E2 08 00 B4 0E 80 13 01 00 00 00 00 00 3F [18:31:45]Write i2c OK [18:31:45]MH_I2C_Read... [18:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:45]Read from MH i2c: E2 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: E2 0E 00 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: E2 0E 00 B4 0E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 F9 [18:31:45]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:31:45]wFMCommunicate OK [18:31:45]SAM_PROTO_GetShiftState done [18:31:45]FM_GetShiftState done [18:31:45]opened in 1724026361 [18:31:45]opened+sec_in_day 1724112761 [18:31:45]quantity*price = 14000 [18:31:45]sum+1 = 14001 [18:31:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 154 19.08.2024 18:31 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50047 ФПД: 74141102245565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T183146&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50047&fm=74141102245565&tin=02508201610067®Number=0000000000092546&sum=14000 0 [18:31:46]StoreToDocumentArchive [18:31:46]shift 467 fd 50047 [18:31:46]save to /storage/0467/doc_00050047 [18:31:46]save last doc name /storage/0467/doc_00050047 to /storage/kkm_last_doc_name [18:31:46]save OK [18:31:46]Clear old archive folders... [18:31:46]ProcessDocumentItem done err = 0, tmpTLVsize=275 [18:31:46]tlvbuf is 011ED800 [18:31:46]SAM_PROTO_ClearQueue [18:31:46]wFMCommunicate request_size=4 [18:31:46]MH_SAM_APDU [18:31:46]CAPDU: 80 09 00 00 [18:31:46]Write to MH i2c: E2 08 00 C1 0E 80 09 00 00 00 00 00 00 41 [18:31:46]Write i2c OK [18:31:46]MH_I2C_Read... [18:31:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:46]Read from MH i2c: E2 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: E2 03 00 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: E2 03 00 C1 0E 00 90 00 43 [18:31:46]RAPDU: 90 00 [18:31:46]wFMCommunicate OK [18:31:46]SAM_PROTO_ClearQueue done [18:31:46]KKMCreateOFDPacket [18:31:46]OFDProtocolAddRootSTLVToBuf [18:31:46]FM_MakeSignedData [18:31:46]FM_MakeSignedData [18:31:46]SAM_PROTO_SignData [18:31:46]wFMCommunicate request_size=4 [18:31:46]MH_SAM_APDU [18:31:46]CAPDU: 80 0D 01 02 [18:31:46]Write to MH i2c: E2 08 00 C2 0E 80 0D 01 02 00 00 00 00 49 [18:31:46]Write i2c OK [18:31:46]MH_I2C_Read... [18:31:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:46]Read from MH i2c: E2 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: E2 03 00 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: E2 03 00 C2 0E 00 90 00 44 [18:31:46]RAPDU: 90 00 [18:31:46]wFMCommunicate OK [18:31:46]wFMCommunicate request_size=255 [18:31:46]MH_SAM_APDU [18:31:46]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 92 8F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [18:31:46]Write to MH i2c: E2 02 01 C3 0E 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 92 8F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 92 [18:31:46]Write i2c OK [18:31:46]MH_I2C_Read... [18:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:46]Read from MH i2c: E2 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: E2 03 00 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: E2 03 00 C3 0E 00 90 00 45 [18:31:46]RAPDU: 90 00 [18:31:46]wFMCommunicate OK [18:31:46]wFMCommunicate request_size=34 [18:31:46]MH_SAM_APDU [18:31:46]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7F C3 00 00 35 04 06 00 43 6E 52 10 06 BD [18:31:46]Write to MH i2c: E2 25 00 C4 0E 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7F C3 00 00 35 04 06 00 43 6E 52 10 06 BD 00 00 1D [18:31:46]Write i2c OK [18:31:46]MH_I2C_Read... [18:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:46]Read from MH i2c: E2 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: E2 03 00 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: E2 03 00 C4 0E 00 90 00 46 [18:31:46]RAPDU: 90 00 [18:31:46]wFMCommunicate OK [18:31:46]wFMCommunicate request_size=4 [18:31:46]MH_SAM_APDU [18:31:46]CAPDU: 80 0D 03 02 [18:31:46]Write to MH i2c: E2 08 00 C5 0E 80 0D 03 02 00 00 00 00 4E [18:31:46]Write i2c OK [18:31:46]MH_I2C_Read... [18:31:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:46]Read from MH i2c: E2 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: E2 0B 00 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: E2 0B 00 C5 0E 00 17 39 B2 C7 90 E8 9C 8C 90 00 B8 [18:31:46]RAPDU: 17 39 B2 C7 90 E8 9C 8C 90 00 [18:31:46]wFMCommunicate OK [18:31:46]SAM_PROTO_SignData done [18:31:46]FM_MakeSignedData done [18:31:46]CreateOFDProtocolMessage [18:31:46]wFMCommunicate request_size=4 [18:31:46]MH_SAM_APDU [18:31:46]CAPDU: 80 11 00 00 [18:31:46]Write to MH i2c: E2 08 00 C6 0E 80 11 00 00 00 00 00 00 4E [18:31:46]Write i2c OK [18:31:46]MH_I2C_Read... [18:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:46]Read from MH i2c: E2 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: E2 17 00 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: E2 17 00 C6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 99 [18:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:31:46]wFMCommunicate OK [18:31:46]CreateOFDProtocolMessage done [18:31:46]OFDSenderStorePacket 50047 [18:31:46]StoreOFDPacket docnum=50047 [18:31:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 BB 5C 1F 01 BE 11 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 92 8F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7F C3 00 00 35 04 06 00 43 6E 52 10 06 BD 17 39 B2 C7 90 E8 9C 8C [18:31:46]CheckFolder [18:31:46]dirname=/storage/ofd_packets [18:31:46]CheckFolder done [18:31:46]ProducePacketName [18:31:46]name=ofd_packets/00050047 [18:31:46]NVStorageSaveData ofd_packets/00050047 [18:31:46]File name is /storage/ofd_packets/00050047 [18:31:46]Write 325 bytes [18:31:46]NVStorageSaveData done [18:31:46]OFDSenderStorePacket done [18:31:46]KKMCreateOFDPacket done [18:31:46]NVStorageSaveData kkm_last_timestamp [18:31:46]File name is /storage/kkm_last_timestamp [18:31:46]Write 4 bytes [18:31:46]NVStorageSaveData done [18:31:46]ExternCall_PrintAddStr [18:31:46]wPrintStart [18:31:46]Write to MH i2c: 01 00 00 C7 0E D5 [18:31:46]Write i2c OK [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: 01 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: 01 07 00 [18:31:46]MH_I2C_Read... [18:31:46]Read from MH i2c: 01 07 00 C7 0E 00 00 00 00 00 FF 0F EA [18:31:46]RasterBufferAndPrint [18:31:46]line Счет N : (3)190173 [18:31:46]line ИНН: 02508201610067 [18:31:46]line Контрольно-Кассовый Чек [18:31:46]line ПРОДАЖА [18:31:46]line Товар: 48743587 [18:31:46]line Сигареты Winston XStyle Silver [18:31:46]line 1.000 * 140.00 [18:31:46]line = 140.00 [18:31:46]line НДС 12% НСП 1% [18:31:46]line > о реализуемом товаре [18:31:46]line ИТОГО: 140.00 [18:31:46]line НСП 1% : 1.24 [18:31:46]line НДС 12% : 14.87 [18:31:46]line Наличными: 140.00 [18:31:46]line Безнал.: 0.00 [18:31:46]line Место: АЗС № 95 "Партнер Нефть" [18:31:46]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:31:46]line СНО: Общий режим [18:31:46]line Чек 154 19.08.2024 18:31 [18:31:46]line Смена: 467 ФФД: 1.0 [18:31:46]line ЗНМ: 0300000078 [18:31:46]line РНМ: 0000000000092546 [18:31:46]line Версия ККМ: 001 [18:31:46]line ФМ: 0000000000871800 [18:31:46]line ФД: 50047 [18:31:46]line ФПД: 74141102245565 [18:31:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T183146&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50047&fm=74141102245565&tin=02508201610067®Number=0000000000092546&sum=14000 [18:31:47]OFD Sender: Processing packet 50047 [packets to send 21, broken 20] [18:31:47]ProducePacketName [18:31:47]name=ofd_packets/00050047 [18:31:47]OFD Sender: To server: pG, [18:31:47]CommunicateWithHost lk.salyk.kg:30040 [18:31:47]ConnectInit lk.salyk.kg [18:31:47]line 0 [18:31:47]written 0, free lines is 4095 [18:31:47]Connected sock=9 [18:31:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 BB 5C 1F 01 BE 11 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 92 8F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7F C3 00 00 35 04 06 00 43 6E 52 10 06 BD 17 39 B2 C7 90 E8 9C 8C [18:31:47]Write to MH i2c: 01 00 00 F0 0E FE [18:31:47]Write i2c OK [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: 01 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: 01 07 00 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: 01 07 00 F0 0E 00 00 00 00 00 CA 0C DB [18:31:47]RasterBufferAndPrint [18:31:47]line [18:31:47]line [18:31:47]line [18:31:47]line [18:31:47]line [18:31:47]written 0, free lines is 3281 [18:31:47]MH_Cut [18:31:47]Write to MH i2c: D1 01 00 F7 0E 01 D7 [18:31:47]Write i2c OK [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: D1 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: D1 01 00 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: D1 01 00 F7 0E 00 D6 [18:31:47]Write to MH i2c: 01 00 00 F8 0E 06 [18:31:47]Write i2c OK [18:31:47]MH_I2C_Read... [18:31:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F5 F6 47 00 4D A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7F C3 00 00 F4 03 04 00 FE 39 C3 66 B6 04 01 00 00 B7 BD 02 95 D7 70 52 7C [18:31:47]CommunicateWithHost err = 0 [18:31:47]CheckOFDResponse [18:31:47]1017 (14) - 77093643461234 [18:31:47]1041 (16) - 0000000000871800 [18:31:47]1040 (4) - 50047 [18:31:47]1012 (4) - 19.08.2024 12:26 [18:31:47]1206 (1) - 0 [18:31:47]OFD Sender: Remove packet 50047 [18:31:47]ProducePacketName [18:31:47]name=ofd_packets/00050047 [18:31:47]NVStorageDeleteData [18:31:48]OFD Sender: No OFD packet to send [18:31:48]*** Cut start [18:31:48]*** Purtial cut [18:31:48]*** CUTSNS_PIN = 0 [18:31:48]*** Stage 1: CUTSNS_PIN = 1 [18:31:50]Read from MH i2c: 01 [18:31:50]MH_I2C_Read... [18:31:50]*** Stop cut motor [18:31:50]*** Cut end [18:31:50]Read from MH i2c: 01 07 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: 01 07 00 F8 0E 00 00 00 00 00 FF 0F 1B [18:31:50]process_action close_receipt done [18:31:50]requested_data is exist [18:31:50]produce_requested_data [18:31:50]requested_item fm.sn is exist - process it [18:31:50]wFMCommunicate request_size=4 [18:31:50]MH_SAM_APDU [18:31:50]CAPDU: 80 11 00 00 [18:31:50]Write to MH i2c: E2 08 00 F9 0E 80 11 00 00 00 00 00 00 81 [18:31:50]Write i2c OK [18:31:50]MH_I2C_Read... [18:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:50]Read from MH i2c: E2 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 17 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 17 00 F9 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CC [18:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:31:50]wFMCommunicate OK [18:31:50]requested_item fd.num is exist - process it [18:31:50]SAM_PROTO_GetFieldsCounters [18:31:50]wFMCommunicate request_size=4 [18:31:50]MH_SAM_APDU [18:31:50]CAPDU: 80 13 00 00 [18:31:50]Write to MH i2c: E2 08 00 FA 0E 80 13 00 00 00 00 00 00 84 [18:31:50]Write i2c OK [18:31:50]MH_I2C_Read... [18:31:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:50]Read from MH i2c: E2 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 62 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 62 00 FA 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7F C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [18:31:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 7F C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:50]wFMCommunicate OK [18:31:50]SAM_PROTO_GetFieldsCounters done [18:31:50]requested_item shift.num is exist - process it [18:31:50]requested_item shift.opened is exist - process it [18:31:50]req_shift_opened [18:31:50]FM_GetShiftState [18:31:50]SAM_PROTO_GetShiftState [18:31:50]wFMCommunicate request_size=4 [18:31:50]MH_SAM_APDU [18:31:50]CAPDU: 80 13 01 00 [18:31:50]Write to MH i2c: E2 08 00 FB 0E 80 13 01 00 00 00 00 00 86 [18:31:50]Write i2c OK [18:31:50]MH_I2C_Read... [18:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:50]Read from MH i2c: E2 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 0E 00 [18:31:50]MH_I2C_Read... [18:31:50]Read from MH i2c: E2 0E 00 FB 0E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 40 [18:31:50]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:31:50]wFMCommunicate OK [18:31:50]SAM_PROTO_GetShiftState done [18:31:50]FM_GetShiftState done [18:31:50]req_shift_opened done [18:31:50]requested_item shift.open_date is exist - process it [18:31:50]req_shift_open_date [18:31:50]req_shift_open_date done [18:31:50]produce_requested_data done [18:31:50]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50047,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [18:31:50]process_action_free close_receipt [18:31:50]json_value_free [18:31:50]json_value_free done [18:31:50]process_json_proto returns [18:31:50]Send response to host [18:31:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50047,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [18:31:50]free response buf [18:31:50]execute_script done [18:31:50]execute_script returns [18:31:50]free content buf [18:31:50]Sock 10.Close socket [18:31:50]Sock 10.Thread stoped [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:48]OFD Sender: No OFD packet to send [18:33:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:13]OFD Sender: No OFD packet to send [18:34:18]OFD Sender: No OFD packet to send [18:34:23]OFD Sender: No OFD packet to send [18:34:28]OFD Sender: No OFD packet to send [18:34:33]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]OFD Sender: No OFD packet to send [18:34:48]OFD Sender: No OFD packet to send [18:34:53]OFD Sender: No OFD packet to send [18:34:58]OFD Sender: No OFD packet to send [18:35:03]OFD Sender: No OFD packet to send [18:35:08]OFD Sender: No OFD packet to send [18:35:13]OFD Sender: No OFD packet to send [18:35:18]OFD Sender: No OFD packet to send [18:35:23]OFD Sender: No OFD packet to send [18:35:28]OFD Sender: No OFD packet to send [18:35:33]OFD Sender: No OFD packet to send [18:35:38]OFD Sender: No OFD packet to send [18:35:43]OFD Sender: No OFD packet to send [18:35:48]OFD Sender: No OFD packet to send [18:35:53]OFD Sender: No OFD packet to send [18:35:58]OFD Sender: No OFD packet to send [18:36:03]OFD Sender: No OFD packet to send [18:36:08]OFD Sender: No OFD packet to send [18:36:13]OFD Sender: No OFD packet to send [18:36:18]OFD Sender: No OFD packet to send [18:36:23]OFD Sender: No OFD packet to send [18:36:28]OFD Sender: No OFD packet to send [18:36:33]OFD Sender: No OFD packet to send [18:36:38]OFD Sender: No OFD packet to send [18:36:43]OFD Sender: No OFD packet to send [18:36:46]accept exits with 7 [18:36:46]New connection [18:36:46]New thread 3066469732 created [18:36:46]Thread 3066613092 joined [18:36:46]Waiting for new connection... [18:36:46] Sock 7.Parse request [18:36:46]Sock 7.Check first char [18:36:46]Sock 7.First char is OK [18:36:46]request: POST /json_proto HTTP/1.0 [18:36:46]Method: POST [18:36:46]URL: /json_proto [18:36:46]Method is POST - this is cgi request [18:36:46]url: /json_proto [18:36:46]query_string will be loaded in cgi processing [18:36:46]execute_cgi json_proto POST (null) [18:36:46]execute_cgi path=json_proto method=POST [18:36:46]POST find Content-Length [18:36:46]Host: 172.17.46.196:8080 [18:36:46]Content-Length: 626 [18:36:46]Content-Type: application/json [18:36:46] [18:36:46]POST finish read [18:36:46]Found Content-Length = 626 [18:36:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190174", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims 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" ] } } [18:36:46]execute_script... [18:36:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190174", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims 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" ] } } [18:36:46]POST & json_proto [18:36:46]process_json_proto [18:36:46]json parsed OK: [18:36:46]protocol is kg_v1.0 [18:36:46]action value=close_receipt [18:36:46]process_action close_receipt [18:36:46]cmd_close_receipt [18:36:46]MH_GetDate [18:36:46]Write to MH i2c: F0 00 00 FC 0E F9 [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: F0 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: F0 09 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: F0 09 00 FC 0E 00 BF 90 C3 66 C4 85 C2 66 EB [18:36:46]GetLastDocTimeStamp 1724092306 [18:36:46]current date 1724092607 [18:36:46]FM_GetShiftState [18:36:46]SAM_PROTO_GetShiftState [18:36:46]wFMCommunicate request_size=4 [18:36:46]MH_SAM_APDU [18:36:46]CAPDU: 80 13 01 00 [18:36:46]Write to MH i2c: E2 08 00 FD 0E 80 13 01 00 00 00 00 00 88 [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:46]Read from MH i2c: E2 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 0E 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 0E 00 FD 0E 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 42 [18:36:46]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:36:46]wFMCommunicate OK [18:36:46]SAM_PROTO_GetShiftState done [18:36:46]FM_GetShiftState done [18:36:46]opened in 1724026361 [18:36:46]opened+sec_in_day 1724112761 [18:36:46]quantity*price = 13500 [18:36:46]sum+1 = 13501 [18:36:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 155 19.08.2024 18:36 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50048 ФПД: 217692714892939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T183647&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50048&fm=217692714892939&tin=02508201610067®Number=0000000000092546&sum=13500 0 [18:36:47]StoreToDocumentArchive [18:36:47]shift 467 fd 50048 [18:36:47]save to /storage/0467/doc_00050048 [18:36:47]save last doc name /storage/0467/doc_00050048 to /storage/kkm_last_doc_name [18:36:47]save OK [18:36:47]Clear old archive folders... [18:36:47]ProcessDocumentItem done err = 0, tmpTLVsize=278 [18:36:47]tlvbuf is 011E9760 [18:36:47]SAM_PROTO_ClearQueue [18:36:47]wFMCommunicate request_size=4 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 09 00 00 [18:36:47]Write to MH i2c: E2 08 00 0A 0F 80 09 00 00 00 00 00 00 8B [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 0A 0F 00 90 00 8D [18:36:47]RAPDU: 90 00 [18:36:47]wFMCommunicate OK [18:36:47]SAM_PROTO_ClearQueue done [18:36:47]KKMCreateOFDPacket [18:36:47]OFDProtocolAddRootSTLVToBuf [18:36:47]FM_MakeSignedData [18:36:47]FM_MakeSignedData [18:36:47]SAM_PROTO_SignData [18:36:47]wFMCommunicate request_size=4 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 0D 01 02 [18:36:47]Write to MH i2c: E2 08 00 0B 0F 80 0D 01 02 00 00 00 00 93 [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 0B 0F 00 90 00 8E [18:36:47]RAPDU: 90 00 [18:36:47]wFMCommunicate OK [18:36:47]wFMCommunicate request_size=255 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 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 9B 00 00 00 F4 03 04 00 BF 90 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 [18:36:47]Write to MH i2c: E2 02 01 0C 0F 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 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 9B 00 00 00 F4 03 04 00 BF 90 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 00 00 45 [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 0C 0F 00 90 00 8F [18:36:47]RAPDU: 90 00 [18:36:47]wFMCommunicate OK [18:36:47]wFMCommunicate request_size=37 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 80 C3 00 00 35 04 06 00 C5 FD 88 F0 FE 8B [18:36:47]Write to MH i2c: E2 28 00 0D 0F 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 80 C3 00 00 35 04 06 00 C5 FD 88 F0 FE 8B 00 00 EB [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 0D 0F 00 90 00 90 [18:36:47]RAPDU: 90 00 [18:36:47]wFMCommunicate OK [18:36:47]wFMCommunicate request_size=4 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 0D 03 02 [18:36:47]Write to MH i2c: E2 08 00 0E 0F 80 0D 03 02 00 00 00 00 98 [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 0B 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 0B 00 0E 0F 00 E4 0C 5B 60 1E 21 15 B1 90 00 49 [18:36:47]RAPDU: E4 0C 5B 60 1E 21 15 B1 90 00 [18:36:47]wFMCommunicate OK [18:36:47]SAM_PROTO_SignData done [18:36:47]FM_MakeSignedData done [18:36:47]CreateOFDProtocolMessage [18:36:47]wFMCommunicate request_size=4 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 11 00 00 [18:36:47]Write to MH i2c: E2 08 00 0F 0F 80 11 00 00 00 00 00 00 98 [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 17 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 17 00 0F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E3 [18:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:36:47]wFMCommunicate OK [18:36:47]CreateOFDProtocolMessage done [18:36:47]OFDSenderStorePacket 50048 [18:36:47]StoreOFDPacket docnum=50048 [18:36:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 93 FD 22 01 2E B1 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 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 9B 00 00 00 F4 03 04 00 BF 90 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 80 C3 00 00 35 04 06 00 C5 FD 88 F0 FE 8B E4 0C 5B 60 1E 21 15 B1 [18:36:47]CheckFolder [18:36:47]dirname=/storage/ofd_packets [18:36:47]CheckFolder done [18:36:47]ProducePacketName [18:36:47]name=ofd_packets/00050048 [18:36:47]NVStorageSaveData ofd_packets/00050048 [18:36:47]File name is /storage/ofd_packets/00050048 [18:36:47]Write 328 bytes [18:36:47]NVStorageSaveData done [18:36:47]OFDSenderStorePacket done [18:36:47]KKMCreateOFDPacket done [18:36:47]NVStorageSaveData kkm_last_timestamp [18:36:47]File name is /storage/kkm_last_timestamp [18:36:47]Write 4 bytes [18:36:47]NVStorageSaveData done [18:36:47]ExternCall_PrintAddStr [18:36:47]wPrintStart [18:36:47]Write to MH i2c: 01 00 00 10 0F 1F [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: 01 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: 01 07 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: 01 07 00 10 0F 00 00 00 00 00 FF 0F 34 [18:36:47]RasterBufferAndPrint [18:36:47]line Счет N : (3)190174 [18:36:47]line ИНН: 02508201610067 [18:36:47]line Контрольно-Кассовый Чек [18:36:47]line ПРОДАЖА [18:36:47]line Товар: 48741224 [18:36:47]line Сигареты Winston Super Slims Blue [18:36:47]line 1.000 * 135.00 [18:36:47]line = 135.00 [18:36:47]line НДС 12% НСП 1% [18:36:47]line > о реализуемом товаре [18:36:47]line ИТОГО: 135.00 [18:36:47]line НСП 1% : 1.19 [18:36:47]line НДС 12% : 14.34 [18:36:47]line Наличными: 135.00 [18:36:47]line Безнал.: 0.00 [18:36:47]line Место: АЗС № 95 "Партнер Нефть" [18:36:47]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:36:47]line СНО: Общий режим [18:36:47]line Чек 155 19.08.2024 18:36 [18:36:47]line Смена: 467 ФФД: 1.0 [18:36:47]line ЗНМ: 0300000078 [18:36:47]line РНМ: 0000000000092546 [18:36:47]line Версия ККМ: 001 [18:36:47]line ФМ: 0000000000871800 [18:36:47]line ФД: 50048 [18:36:47]line ФПД: 217692714892939 [18:36:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T183647&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50048&fm=217692714892939&tin=02508201610067®Number=0000000000092546&sum=13500 [18:36:48]line 0 [18:36:48]OFD Sender: Processing packet 50048 [packets to send 21, broken 20] [18:36:48]ProducePacketName [18:36:48]name=ofd_packets/00050048 [18:36:48]OFD Sender: To server: pG, [18:36:48]CommunicateWithHost lk.salyk.kg:30040 [18:36:48]ConnectInit lk.salyk.kg [18:36:48]written 0, free lines is 4095 [18:36:48]Connected sock=10 [18:36:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 93 FD 22 01 2E B1 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 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 9B 00 00 00 F4 03 04 00 BF 90 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 80 C3 00 00 35 04 06 00 C5 FD 88 F0 FE 8B E4 0C 5B 60 1E 21 15 B1 [18:36:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 82 48 47 00 DC A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 80 C3 00 00 F4 03 04 00 2B 3B C3 66 B6 04 01 00 00 C7 97 4F 40 D2 4C A3 9D [18:36:48]CommunicateWithHost err = 0 [18:36:48]CheckOFDResponse [18:36:48]1017 (14) - 77093643461234 [18:36:48]1041 (16) - 0000000000871800 [18:36:48]1040 (4) - 50048 [18:36:48]1012 (4) - 19.08.2024 12:31 [18:36:48]1206 (1) - 0 [18:36:48]OFD Sender: Remove packet 50048 [18:36:48]ProducePacketName [18:36:48]name=ofd_packets/00050048 [18:36:48]NVStorageDeleteData [18:36:48]Write to MH i2c: 01 00 00 39 0F 48 [18:36:48]Write i2c OK [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: 01 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: 01 07 00 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: 01 07 00 39 0F 00 00 00 00 00 C3 0C 1E [18:36:48]RasterBufferAndPrint [18:36:48]line [18:36:48]line [18:36:48]line [18:36:48]line [18:36:48]line [18:36:48]written 0, free lines is 3272 [18:36:48]MH_Cut [18:36:48]Write to MH i2c: D1 01 00 40 0F 01 21 [18:36:48]Write i2c OK [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: D1 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: D1 01 00 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: D1 01 00 40 0F 00 20 [18:36:48]Write to MH i2c: 01 00 00 41 0F 50 [18:36:48]Write i2c OK [18:36:48]MH_I2C_Read... [18:36:49]OFD Sender: No OFD packet to send [18:36:49]*** Cut start [18:36:49]*** Purtial cut [18:36:49]*** Stage 1: CUTSNS_PIN = 1 [18:36:49]Read from MH i2c: 01 [18:36:49]MH_I2C_Read... [18:36:49]*** Stop cut motor [18:36:49]*** Cut end [18:36:49]Read from MH i2c: 01 07 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: 01 07 00 41 0F 00 00 00 00 00 FF 0F 65 [18:36:49]process_action close_receipt done [18:36:49]requested_data is exist [18:36:49]produce_requested_data [18:36:49]requested_item fm.sn is exist - process it [18:36:49]wFMCommunicate request_size=4 [18:36:49]MH_SAM_APDU [18:36:49]CAPDU: 80 11 00 00 [18:36:49]Write to MH i2c: E2 08 00 42 0F 80 11 00 00 00 00 00 00 CB [18:36:49]Write i2c OK [18:36:49]MH_I2C_Read... [18:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:49]Read from MH i2c: E2 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 17 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 17 00 42 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 16 [18:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:36:49]wFMCommunicate OK [18:36:49]requested_item fd.num is exist - process it [18:36:49]SAM_PROTO_GetFieldsCounters [18:36:49]wFMCommunicate request_size=4 [18:36:49]MH_SAM_APDU [18:36:49]CAPDU: 80 13 00 00 [18:36:49]Write to MH i2c: E2 08 00 43 0F 80 13 00 00 00 00 00 00 CE [18:36:49]Write i2c OK [18:36:49]MH_I2C_Read... [18:36:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:49]Read from MH i2c: E2 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 62 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 62 00 43 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 80 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [18:36:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 80 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:49]wFMCommunicate OK [18:36:49]SAM_PROTO_GetFieldsCounters done [18:36:49]requested_item shift.num is exist - process it [18:36:49]requested_item shift.opened is exist - process it [18:36:49]req_shift_opened [18:36:49]FM_GetShiftState [18:36:49]SAM_PROTO_GetShiftState [18:36:49]wFMCommunicate request_size=4 [18:36:49]MH_SAM_APDU [18:36:49]CAPDU: 80 13 01 00 [18:36:49]Write to MH i2c: E2 08 00 44 0F 80 13 01 00 00 00 00 00 D0 [18:36:49]Write i2c OK [18:36:49]MH_I2C_Read... [18:36:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:49]Read from MH i2c: E2 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 0E 00 [18:36:49]MH_I2C_Read... [18:36:49]Read from MH i2c: E2 0E 00 44 0F 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 8A [18:36:49]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:36:49]wFMCommunicate OK [18:36:49]SAM_PROTO_GetShiftState done [18:36:49]FM_GetShiftState done [18:36:49]req_shift_opened done [18:36:49]requested_item shift.open_date is exist - process it [18:36:49]req_shift_open_date [18:36:49]req_shift_open_date done [18:36:49]produce_requested_data done [18:36:49]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50048,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [18:36:49]process_action_free close_receipt [18:36:49]json_value_free [18:36:49]json_value_free done [18:36:49]process_json_proto returns [18:36:49]Send response to host [18:36:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50048,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [18:36:49]free response buf [18:36:49]execute_script done [18:36:49]execute_script returns [18:36:49]free content buf [18:36:49]Sock 7.Close socket [18:36:49]Sock 7.Thread stoped [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:39]OFD Sender: No OFD packet to send [18:38:44]OFD Sender: No OFD packet to send [18:38:49]OFD Sender: No OFD packet to send [18:38:54]OFD Sender: No OFD packet to send [18:38:59]OFD Sender: No OFD packet to send [18:39:04]OFD Sender: No OFD packet to send [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:29]OFD Sender: No OFD packet to send [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:39:59]OFD Sender: No OFD packet to send [18:40:04]OFD Sender: No OFD packet to send [18:40:09]OFD Sender: No OFD packet to send [18:40:14]OFD Sender: No OFD packet to send [18:40:19]OFD Sender: No OFD packet to send [18:40:24]OFD Sender: No OFD packet to send [18:40:29]OFD Sender: No OFD packet to send [18:40:34]OFD Sender: No OFD packet to send [18:40:35]accept exits with 9 [18:40:35]New connection [18:40:35]New thread 3066613092 created [18:40:35]Thread 3066469732 joined [18:40:35]Waiting for new connection... [18:40:35] Sock 9.Parse request [18:40:35]Sock 9.Check first char [18:40:35]Sock 9.First char is OK [18:40:35]request: POST /json_proto HTTP/1.0 [18:40:35]Method: POST [18:40:35]URL: /json_proto [18:40:35]Method is POST - this is cgi request [18:40:35]url: /json_proto [18:40:35]query_string will be loaded in cgi processing [18:40:35]execute_cgi json_proto POST (null) [18:40:35]execute_cgi path=json_proto method=POST [18:40:35]POST find Content-Length [18:40:35]Host: 172.17.46.196:8080 [18:40:35]Content-Length: 947 [18:40:35]Content-Type: application/json [18:40:35] [18:40:35]POST finish read [18:40:35]Found Content-Length = 947 [18:40:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190175", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:35]execute_script... [18:40: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)190175", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42203100", "name": "\u0416\u0435\u0432 Orbit \u0431\u0430\u043D\u0430\u043D-\u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:35]POST & json_proto [18:40:35]process_json_proto [18:40:35]json parsed OK: [18:40:35]protocol is kg_v1.0 [18:40:35]action value=close_receipt [18:40:35]process_action close_receipt [18:40:35]cmd_close_receipt [18:40:35]MH_GetDate [18:40:35]Write to MH i2c: F0 00 00 45 0F 43 [18:40:35]Write i2c OK [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: F0 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: F0 09 00 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: F0 09 00 45 0F 00 A4 91 C3 66 C4 85 C2 66 1B [18:40:35]GetLastDocTimeStamp 1724092607 [18:40:35]current date 1724092836 [18:40:35]FM_GetShiftState [18:40:35]SAM_PROTO_GetShiftState [18:40:35]wFMCommunicate request_size=4 [18:40:35]MH_SAM_APDU [18:40:35]CAPDU: 80 13 01 00 [18:40:35]Write to MH i2c: E2 08 00 46 0F 80 13 01 00 00 00 00 00 D2 [18:40:35]Write i2c OK [18:40:35]MH_I2C_Read... [18:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:35]Read from MH i2c: E2 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 0E 00 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 0E 00 46 0F 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 8C [18:40:35]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:40:35]wFMCommunicate OK [18:40:35]SAM_PROTO_GetShiftState done [18:40:35]FM_GetShiftState done [18:40:35]opened in 1724026361 [18:40:35]opened+sec_in_day 1724112761 [18:40:35]quantity*price = 6500 [18:40:35]sum+1 = 6501 [18:40:35]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42203100 Жев Orbit банан-клубника 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 156 19.08.2024 18:40 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50049 ФПД: 56777991094595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T184036&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50049&fm=56777991094595&tin=02508201610067®Number=0000000000092546&sum=11000 0 [18:40:36]StoreToDocumentArchive [18:40:36]shift 467 fd 50049 [18:40:36]save to /storage/0467/doc_00050049 [18:40:36]save last doc name /storage/0467/doc_00050049 to /storage/kkm_last_doc_name [18:40:36]save OK [18:40:36]Clear old archive folders... [18:40:36]ProcessDocumentItem done err = 0, tmpTLVsize=393 [18:40:36]tlvbuf is 011EC3A0 [18:40:36]SAM_PROTO_ClearQueue [18:40:36]wFMCommunicate request_size=4 [18:40:36]MH_SAM_APDU [18:40:36]CAPDU: 80 09 00 00 [18:40:36]Write to MH i2c: E2 08 00 53 0F 80 09 00 00 00 00 00 00 D4 [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:36]Read from MH i2c: E2 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 03 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 03 00 53 0F 00 90 00 D6 [18:40:36]RAPDU: 90 00 [18:40:36]wFMCommunicate OK [18:40:36]SAM_PROTO_ClearQueue done [18:40:36]KKMCreateOFDPacket [18:40:36]OFDProtocolAddRootSTLVToBuf [18:40:36]FM_MakeSignedData [18:40:36]FM_MakeSignedData [18:40:36]SAM_PROTO_SignData [18:40:36]wFMCommunicate request_size=4 [18:40:36]MH_SAM_APDU [18:40:36]CAPDU: 80 0D 01 02 [18:40:36]Write to MH i2c: E2 08 00 54 0F 80 0D 01 02 00 00 00 00 DC [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:36]Read from MH i2c: E2 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 03 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 03 00 54 0F 00 90 00 D7 [18:40:36]RAPDU: 90 00 [18:40:36]wFMCommunicate OK [18:40:36]wFMCommunicate request_size=255 [18:40:36]MH_SAM_APDU [18:40:36]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 [18:40:36]Write to MH i2c: E2 02 01 55 0F 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 DA [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:36]Read from MH i2c: E2 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 03 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 03 00 55 0F 00 90 00 D8 [18:40:36]RAPDU: 90 00 [18:40:36]wFMCommunicate OK [18:40:36]wFMCommunicate request_size=152 [18:40:36]MH_SAM_APDU [18:40:36]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 A4 91 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 81 C3 00 00 35 04 06 00 33 A3 A7 FD 81 43 [18:40:36]Write to MH i2c: E2 9B 00 56 0F 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 A4 91 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 81 C3 00 00 35 04 06 00 33 A3 A7 FD 81 43 00 00 8D [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:36]Read from MH i2c: E2 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 03 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 03 00 56 0F 00 90 00 D9 [18:40:36]RAPDU: 90 00 [18:40:36]wFMCommunicate OK [18:40:36]wFMCommunicate request_size=4 [18:40:36]MH_SAM_APDU [18:40:36]CAPDU: 80 0D 03 02 [18:40:36]Write to MH i2c: E2 08 00 57 0F 80 0D 03 02 00 00 00 00 E1 [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:36]Read from MH i2c: E2 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 0B 00 [18:40:36]MH_I2C_Read... [18:40:36]Read from MH i2c: E2 0B 00 57 0F 00 A2 E7 97 34 48 C8 A8 66 90 00 54 [18:40:36]RAPDU: A2 E7 97 34 48 C8 A8 66 90 00 [18:40:36]wFMCommunicate OK [18:40:36]SAM_PROTO_SignData done [18:40:36]FM_MakeSignedData done [18:40:36]CreateOFDProtocolMessage [18:40:36]wFMCommunicate request_size=4 [18:40:36]MH_SAM_APDU [18:40:36]CAPDU: 80 11 00 00 [18:40:36]Write to MH i2c: E2 08 00 58 0F 80 11 00 00 00 00 00 00 E1 [18:40:36]Write i2c OK [18:40:36]MH_I2C_Read... [18:40:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:37]Read from MH i2c: E2 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: E2 17 00 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: E2 17 00 58 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2C [18:40:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:40:37]wFMCommunicate OK [18:40:37]CreateOFDProtocolMessage done [18:40:37]OFDSenderStorePacket 50049 [18:40:37]StoreOFDPacket docnum=50049 [18:40:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9D 01 00 00 DF 1B 95 01 29 FC 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 A4 91 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 81 C3 00 00 35 04 06 00 33 A3 A7 FD 81 43 A2 E7 97 34 48 C8 A8 66 [18:40:37]CheckFolder [18:40:37]dirname=/storage/ofd_packets [18:40:37]CheckFolder done [18:40:37]ProducePacketName [18:40:37]name=ofd_packets/00050049 [18:40:37]NVStorageSaveData ofd_packets/00050049 [18:40:37]File name is /storage/ofd_packets/00050049 [18:40:37]Write 443 bytes [18:40:37]NVStorageSaveData done [18:40:37]OFDSenderStorePacket done [18:40:37]KKMCreateOFDPacket done [18:40:37]NVStorageSaveData kkm_last_timestamp [18:40:37]File name is /storage/kkm_last_timestamp [18:40:37]Write 4 bytes [18:40:37]NVStorageSaveData done [18:40:37]ExternCall_PrintAddStr [18:40:37]wPrintStart [18:40:37]Write to MH i2c: 01 00 00 59 0F 68 [18:40:37]Write i2c OK [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: 01 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: 01 07 00 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: 01 07 00 59 0F 00 00 00 00 00 FF 0F 7D [18:40:37]RasterBufferAndPrint [18:40:37]line Счет N : (3)190175 [18:40:37]line ИНН: 02508201610067 [18:40:37]line Контрольно-Кассовый Чек [18:40:37]line ПРОДАЖА [18:40:37]line Товар: 4700040114120 [18:40:37]line Султан чай 1л. чер персик [18:40:37]line 1.000 * 65.00 [18:40:37]line = 65.00 [18:40:37]line НДС 12% НСП 1% [18:40:37]line > о реализуемом товаре [18:40:37]line Товар: 42203100 [18:40:37]line Жев Orbit банан-клубника [18:40:37]line 1.000 * 45.00 [18:40:37]line = 45.00 [18:40:37]line НДС 12% НСП 1% [18:40:37]line > о реализуемом товаре [18:40:37]line ИТОГО: 110.00 [18:40:37]line НСП 1% : 0.97 [18:40:37]line НДС 12% : 11.68 [18:40:37]line Наличными: 110.00 [18:40:37]line Безнал.: 0.00 [18:40:37]line Место: АЗС № 95 "Партнер Нефть" [18:40:37]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:40:37]line СНО: Общий режим [18:40:37]line Чек 156 19.08.2024 18:40 [18:40:37]line Смена: 467 ФФД: 1.0 [18:40:37]line ЗНМ: 0300000078 [18:40:37]line РНМ: 0000000000092546 [18:40:37]line Версия ККМ: 001 [18:40:37]line ФМ: 0000000000871800 [18:40:37]line ФД: 50049 [18:40:37]line ФПД: 56777991094595 [18:40:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T184036&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50049&fm=56777991094595&tin=02508201610067®Number=0000000000092546&sum=11000 [18:40:37]line 0 [18:40:37]OFD Sender: Processing packet 50049 [packets to send 21, broken 20] [18:40:37]ProducePacketName [18:40:37]name=ofd_packets/00050049 [18:40:37]OFD Sender: To server: pG, [18:40:37]CommunicateWithHost lk.salyk.kg:30040 [18:40:37]ConnectInit lk.salyk.kg [18:40:37]written 0, free lines is 4095 [18:40:37]Connected sock=10 [18:40:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9D 01 00 00 DF 1B 95 01 29 FC 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 A4 91 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 81 C3 00 00 35 04 06 00 33 A3 A7 FD 81 43 A2 E7 97 34 48 C8 A8 66 [18:40:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 FF 9A 47 00 74 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 81 C3 00 00 F4 03 04 00 11 3C C3 66 B6 04 01 00 00 20 BE 3D 02 9A 36 BB 22 [18:40:37]CommunicateWithHost err = 0 [18:40:37]CheckOFDResponse [18:40:37]1017 (14) - 77093643461234 [18:40:37]1041 (16) - 0000000000871800 [18:40:37]1040 (4) - 50049 [18:40:37]1012 (4) - 19.08.2024 12:35 [18:40:37]1206 (1) - 0 [18:40:37]OFD Sender: Remove packet 50049 [18:40:37]ProducePacketName [18:40:37]name=ofd_packets/00050049 [18:40:37]NVStorageDeleteData [18:40:37]Write to MH i2c: 01 00 00 87 0F 96 [18:40:37]Write i2c OK [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: 01 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: 01 07 00 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: 01 07 00 87 0F 00 00 00 00 00 93 0C 3C [18:40:37]RasterBufferAndPrint [18:40:37]line [18:40:37]line [18:40:37]line [18:40:37]line [18:40:37]line [18:40:37]written 0, free lines is 3225 [18:40:37]MH_Cut [18:40:37]Write to MH i2c: D1 01 00 8E 0F 01 6F [18:40:37]Write i2c OK [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: D1 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: D1 01 00 [18:40:37]MH_I2C_Read... [18:40:37]Read from MH i2c: D1 01 00 8E 0F 00 6E [18:40:37]Write to MH i2c: 01 00 00 8F 0F 9E [18:40:37]Write i2c OK [18:40:37]MH_I2C_Read... [18:40:38]OFD Sender: No OFD packet to send [18:40:38]*** Cut start [18:40:38]*** Purtial cut [18:40:38]*** CUTSNS_PIN = 0 [18:40:38]*** Stage 1: CUTSNS_PIN = 1 [18:40:40]Read from MH i2c: 01 [18:40:40]MH_I2C_Read... [18:40:40]*** Stop cut motor [18:40:40]*** Cut end [18:40:40]Read from MH i2c: 01 07 00 [18:40:40]MH_I2C_Read... [18:40:40]Read from MH i2c: 01 07 00 8F 0F 00 00 00 00 00 FF 0F B3 [18:40:40]process_action close_receipt done [18:40:40]requested_data is exist [18:40:40]produce_requested_data [18:40:40]requested_item fm.sn is exist - process it [18:40:40]wFMCommunicate request_size=4 [18:40:40]MH_SAM_APDU [18:40:40]CAPDU: 80 11 00 00 [18:40:40]Write to MH i2c: E2 08 00 90 0F 80 11 00 00 00 00 00 00 19 [18:40:40]Write i2c OK [18:40:40]MH_I2C_Read... [18:40:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:40]Read from MH i2c: E2 [18:40:40]MH_I2C_Read... [18:40:40]Read from MH i2c: E2 17 00 [18:40:40]MH_I2C_Read... [18:40:40]Read from MH i2c: E2 17 00 90 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 64 [18:40:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:40:40]wFMCommunicate OK [18:40:40]requested_item fd.num is exist - process it [18:40:40]SAM_PROTO_GetFieldsCounters [18:40:40]wFMCommunicate request_size=4 [18:40:40]MH_SAM_APDU [18:40:40]CAPDU: 80 13 00 00 [18:40:40]Write to MH i2c: E2 08 00 91 0F 80 13 00 00 00 00 00 00 1C [18:40:40]Write i2c OK [18:40:40]MH_I2C_Read... [18:40:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:40]Read from MH i2c: E2 [18:40:40]MH_I2C_Read... [18:40:40]Read from MH i2c: E2 62 00 [18:40:40]MH_I2C_Read... [18:40:40]Read from MH i2c: E2 62 00 91 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 81 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [18:40:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 81 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:40]wFMCommunicate OK [18:40:40]SAM_PROTO_GetFieldsCounters done [18:40:40]requested_item shift.num is exist - process it [18:40:40]requested_item shift.opened is exist - process it [18:40:40]req_shift_opened [18:40:40]FM_GetShiftState [18:40:40]SAM_PROTO_GetShiftState [18:40:40]wFMCommunicate request_size=4 [18:40:40]MH_SAM_APDU [18:40:40]CAPDU: 80 13 01 00 [18:40:40]Write to MH i2c: E2 08 00 92 0F 80 13 01 00 00 00 00 00 1E [18:40:40]Write i2c OK [18:40:40]MH_I2C_Read... [18:40:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:41]Read from MH i2c: E2 [18:40:41]MH_I2C_Read... [18:40:41]Read from MH i2c: E2 0E 00 [18:40:41]MH_I2C_Read... [18:40:41]Read from MH i2c: E2 0E 00 92 0F 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 D8 [18:40:41]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:40:41]wFMCommunicate OK [18:40:41]SAM_PROTO_GetShiftState done [18:40:41]FM_GetShiftState done [18:40:41]req_shift_opened done [18:40:41]requested_item shift.open_date is exist - process it [18:40:41]req_shift_open_date [18:40:41]req_shift_open_date done [18:40:41]produce_requested_data done [18:40:41]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50049,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [18:40:41]process_action_free close_receipt [18:40:41]json_value_free [18:40:41]json_value_free done [18:40:41]process_json_proto returns [18:40:41]Send response to host [18:40:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50049,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [18:40:41]free response buf [18:40:41]execute_script done [18:40:41]execute_script returns [18:40:41]free content buf [18:40:41]Sock 9.Close socket [18:40:41]Sock 9.Thread stoped [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 D4 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 10 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 54000000005725D4 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 68793+1724024260=1724093053 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0xff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 D4 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 11 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30515 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 7D 92 C3 66 C4 85 C2 66 A8 [18:44:13]Current date/time: 19.08.2024 18:44 [18:44:13]FM_Init [18:44:13]wFMConnect [18:44:13]MH_SAM_On [18:44:13]Write to MH i2c: E0 00 00 08 00 E7 [18:44:13]Write i2c OK [18:44:13]MH_I2C_Read... [18:44:13]*** iso7816_init finished! [18:44:13]*** atr: [18:44:13]*** 0F 3B D5 18 FF 81 91 FE [18:44:13]*** 1F C3 80 73 C8 21 10 0A [18:44:13]*** 00 00 00 00 00 00 00 00 [18:44:13]*** 00 00 00 00 00 00 00 00 [18:44:13]*** 00 00 00 00 00 00 00 00 [18:44:13]*** 00 00 00 00 00 00 00 00 [18:44:13]*** 00 00 00 00 00 00 00 00 [18:44:13]*** 00 00 00 00 00 00 00 00 [18:44:13]Read from MH i2c: E0 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: E0 10 00 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [18:44:13]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:44:13]wFMCommunicate request_size=10 [18:44:13]MH_SAM_APDU [18:44:13]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:44:13]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [18:44:13]Write i2c OK [18:44:13]MH_I2C_Read... [18:44:13]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [18:44:13]Read from MH i2c: E2 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: E2 03 00 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [18:44:13]RAPDU: 90 00 [18:44:13]wFMCommunicate OK [18:44:13]wFMCommunicate request_size=4 [18:44:13]MH_SAM_APDU [18:44:13]CAPDU: 80 11 00 00 [18:44:13]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [18:44:13]Write i2c OK [18:44:13]MH_I2C_Read... [18:44:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:13]Read from MH i2c: E2 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: E2 17 00 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CF [18:44:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:44:13]wFMCommunicate OK [18:44:13]Detected FM SN is 0000000000871800 [18:44:13]Stored FM SN is 0000000000871800 [18:44:13]wFMCommunicate request_size=9 [18:44:13]MH_SAM_APDU [18:44:13]CAPDU: 80 16 00 00 04 FC 74 01 00 [18:44:13]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 FC 74 01 00 00 00 03 [18:44:13]Write i2c OK [18:44:13]MH_I2C_Read... [18:44:13]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [18:44:13]Read from MH i2c: E2 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: E2 03 00 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [18:44:13]RAPDU: 90 00 [18:44:13]wFMCommunicate OK [18:44:13]FM PIN OK [18:44:13]wFMCommunicate request_size=8 [18:44:13]MH_SAM_APDU [18:44:13]CAPDU: 80 14 04 00 03 02 00 01 [18:44:13]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [18:44:13]Write i2c OK [18:44:13]MH_I2C_Read... [18:44:13]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [18:44:13]Read from MH i2c: E2 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: E2 03 00 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [18:44:13]RAPDU: 90 00 [18:44:13]wFMCommunicate OK [18:44:13]wFMCommunicate request_size=13 [18:44:13]MH_SAM_APDU [18:44:13]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [18:44:13]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [18:44:13]Write i2c OK [18:44:13]MH_I2C_Read... [18:44:13]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [18:44:13]Read from MH i2c: E2 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: E2 03 00 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [18:44:13]RAPDU: 90 00 [18:44:13]wFMCommunicate OK [18:44:13]wFMCommunicate request_size=4 [18:44:13]MH_SAM_APDU [18:44:13]CAPDU: 80 11 00 00 [18:44:13]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [18:44:13]Write i2c OK [18:44:13]MH_I2C_Read... [18:44:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:13]Read from MH i2c: E2 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: E2 17 00 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D3 [18:44:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:44:13]wFMCommunicate OK [18:44:13]DocumentArchiveInit [18:44:13]Start Httpd... [18:44:13]Httpd thread 3067186532 created [18:44:13]Write to MH i2c: 01 00 00 0F 00 0F [18:44:13]Write i2c OK [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: 01 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: 01 07 00 [18:44:13]MH_I2C_Read... [18:44:13]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [18:44:13]MH Int Process started [18:44:13]Allocated Socket 6 [18:44:13]Bind OK [18:44:13]Listen OK [18:44:13]httpd running on port 8080 [18:44:13]Waiting for new connection... [18:44:13]OFD Sender: No OFD packet to send [18:44:18]OFD Sender: No OFD packet to send [18:44:23]OFD Sender: No OFD packet to send [18:44:28]OFD Sender: No OFD packet to send [18:44:33]OFD Sender: No OFD packet to send [18:44:38]OFD Sender: No OFD packet to send [18:44:43]OFD Sender: No OFD packet to send [18:44:48]OFD Sender: No OFD packet to send [18:44:53]OFD Sender: No OFD packet to send [18:44:58]OFD Sender: No OFD packet to send [18:45:03]OFD Sender: No OFD packet to send [18:45:08]OFD Sender: No OFD packet to send [18:45:13]OFD Sender: No OFD packet to send [18:45:18]OFD Sender: No OFD packet to send [18:45:23]OFD Sender: No OFD packet to send [18:45:28]OFD Sender: No OFD packet to send [18:45:33]OFD Sender: No OFD packet to send [18:45:38]OFD Sender: No OFD packet to send [18:45:43]OFD Sender: No OFD packet to send [18:45:48]OFD Sender: No OFD packet to send [18:45:53]OFD Sender: No OFD packet to send [18:45:58]OFD Sender: No OFD packet to send [18:46:03]OFD Sender: No OFD packet to send [18:46:08]OFD Sender: No OFD packet to send [18:46:13]OFD Sender: No OFD packet to send [18:46:18]OFD Sender: No OFD packet to send [18:46:23]OFD Sender: No OFD packet to send [18:46:28]OFD Sender: No OFD packet to send [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:37]accept exits with 8 [18:48:37]New connection [18:48:37]New thread 3066899812 created [18:48:37]Waiting for new connection... [18:48:37] Sock 8.Parse request [18:48:37]Sock 8.Check first char [18:48:37]Sock 8.First char is OK [18:48:37]request: POST /json_proto HTTP/1.0 [18:48:37]Method: POST [18:48:37]URL: /json_proto [18:48:37]Method is POST - this is cgi request [18:48:37]url: /json_proto [18:48:37]query_string will be loaded in cgi processing [18:48:37]execute_cgi json_proto POST (null) [18:48:37]execute_cgi path=json_proto method=POST [18:48:37]POST find Content-Length [18:48:37]Host: 172.17.46.196:8080 [18:48:37]Content-Length: 810 [18:48:37]Content-Type: application/json [18:48:37] [18:48:37]POST finish read [18:48:37]Found Content-Length = 810 [18:48:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190176", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:37]execute_script... [18:48: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)190176", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:37]POST & json_proto [18:48:37]process_json_proto [18:48:37]json parsed OK: [18:48:37]protocol is kg_v1.0 [18:48:37]action value=close_receipt [18:48:37]process_action close_receipt [18:48:37]cmd_close_receipt [18:48:37]MH_GetDate [18:48:37]Write to MH i2c: F0 00 00 10 00 FF [18:48:37]Write i2c OK [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: F0 [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: F0 09 00 [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: F0 09 00 10 00 00 86 93 C3 66 C4 85 C2 66 BB [18:48:37]GetLastDocTimeStamp 1724092836 [18:48:37]current date 1724093318 [18:48:37]FM_GetShiftState [18:48:37]SAM_PROTO_GetShiftState [18:48:37]wFMCommunicate request_size=4 [18:48:37]MH_SAM_APDU [18:48:37]CAPDU: 80 13 01 00 [18:48:37]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [18:48:37]Write i2c OK [18:48:37]MH_I2C_Read... [18:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:37]Read from MH i2c: E2 [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: E2 0E 00 [18:48:37]MH_I2C_Read... [18:48:37]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 48 [18:48:37]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:48:37]wFMCommunicate OK [18:48:37]SAM_PROTO_GetShiftState done [18:48:37]FM_GetShiftState done [18:48:37]opened in 1724026361 [18:48:37]opened+sec_in_day 1724112761 [18:48:37]quantity*price = 17000 [18:48:37]sum+1 = 17001 [18:48:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 0.00 Безнал.: 170.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 157 19.08.2024 18:48 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 50050 ФПД: 243641468779211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T184838&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50050&fm=243641468779211&tin=02508201610067®Number=0000000000092546&sum=17000 0 [18:48:38]StoreToDocumentArchive [18:48:38]shift 467 fd 50050 [18:48:38]save to /storage/0467/doc_00050050 [18:48:38]save last doc name /storage/0467/doc_00050050 to /storage/kkm_last_doc_name [18:48:38]save OK [18:48:38]Clear old archive folders... [18:48:38]ProcessDocumentItem done err = 0, tmpTLVsize=277 [18:48:38]tlvbuf is 0195FBA0 [18:48:38]SAM_PROTO_ClearQueue [18:48:38]wFMCommunicate request_size=4 [18:48:38]MH_SAM_APDU [18:48:38]CAPDU: 80 09 00 00 [18:48:38]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [18:48:38]Write i2c OK [18:48:38]MH_I2C_Read... [18:48:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:38]Read from MH i2c: E2 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 03 00 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [18:48:38]RAPDU: 90 00 [18:48:38]wFMCommunicate OK [18:48:38]SAM_PROTO_ClearQueue done [18:48:38]KKMCreateOFDPacket [18:48:38]OFDProtocolAddRootSTLVToBuf [18:48:38]FM_MakeSignedData [18:48:38]FM_MakeSignedData [18:48:38]SAM_PROTO_SignData [18:48:38]wFMCommunicate request_size=4 [18:48:38]MH_SAM_APDU [18:48:38]CAPDU: 80 0D 01 02 [18:48:38]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [18:48:38]Write i2c OK [18:48:38]MH_I2C_Read... [18:48:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:38]Read from MH i2c: E2 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 03 00 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [18:48:38]RAPDU: 90 00 [18:48:38]wFMCommunicate OK [18:48:38]wFMCommunicate request_size=255 [18:48:38]MH_SAM_APDU [18:48:38]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 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 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 86 93 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 [18:48:38]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 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 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 86 93 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 00 00 7B [18:48:38]Write i2c OK [18:48:38]MH_I2C_Read... [18:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:38]Read from MH i2c: E2 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 03 00 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [18:48:38]RAPDU: 90 00 [18:48:38]wFMCommunicate OK [18:48:38]wFMCommunicate request_size=36 [18:48:38]MH_SAM_APDU [18:48:38]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 82 C3 00 00 35 04 06 00 DD 97 33 32 FA CB [18:48:38]Write to MH i2c: E2 27 00 21 00 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 82 C3 00 00 35 04 06 00 DD 97 33 32 FA CB 00 00 9B [18:48:38]Write i2c OK [18:48:38]MH_I2C_Read... [18:48:38]OFD Sender: No OFD packet to send [18:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:38]Read from MH i2c: E2 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 03 00 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [18:48:38]RAPDU: 90 00 [18:48:38]wFMCommunicate OK [18:48:38]wFMCommunicate request_size=4 [18:48:38]MH_SAM_APDU [18:48:38]CAPDU: 80 0D 03 02 [18:48:38]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [18:48:38]Write i2c OK [18:48:38]MH_I2C_Read... [18:48:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:38]Read from MH i2c: E2 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 0B 00 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 0B 00 22 00 00 A3 11 CA 96 D2 EB 46 67 90 00 1C [18:48:38]RAPDU: A3 11 CA 96 D2 EB 46 67 90 00 [18:48:38]wFMCommunicate OK [18:48:38]SAM_PROTO_SignData done [18:48:38]FM_MakeSignedData done [18:48:38]CreateOFDProtocolMessage [18:48:38]wFMCommunicate request_size=4 [18:48:38]MH_SAM_APDU [18:48:38]CAPDU: 80 11 00 00 [18:48:38]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [18:48:38]Write i2c OK [18:48:38]MH_I2C_Read... [18:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:38]Read from MH i2c: E2 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 17 00 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E8 [18:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:48:38]wFMCommunicate OK [18:48:38]CreateOFDProtocolMessage done [18:48:38]OFDSenderStorePacket 50050 [18:48:38]StoreOFDPacket docnum=50050 [18:48:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 29 01 00 00 E2 38 21 01 14 C2 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 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 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 86 93 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 82 C3 00 00 35 04 06 00 DD 97 33 32 FA CB A3 11 CA 96 D2 EB 46 67 [18:48:38]CheckFolder [18:48:38]dirname=/storage/ofd_packets [18:48:38]CheckFolder done [18:48:38]ProducePacketName [18:48:38]name=ofd_packets/00050050 [18:48:38]NVStorageSaveData ofd_packets/00050050 [18:48:38]File name is /storage/ofd_packets/00050050 [18:48:38]Write 327 bytes [18:48:38]NVStorageSaveData done [18:48:38]OFDSenderStorePacket done [18:48:38]KKMCreateOFDPacket done [18:48:38]NVStorageSaveData kkm_last_timestamp [18:48:38]File name is /storage/kkm_last_timestamp [18:48:38]Write 4 bytes [18:48:38]NVStorageSaveData done [18:48:38]ExternCall_PrintAddStr [18:48:38]wPrintStart [18:48:38]Write to MH i2c: 01 00 00 24 00 24 [18:48:38]Write i2c OK [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: 01 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: 01 07 00 [18:48:38]MH_I2C_Read... [18:48:38]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [18:48:38]RasterBufferAndPrint [18:48:38]line Счет N : (3)190176 [18:48:38]line ИНН: 02508201610067 [18:48:38]line Контрольно-Кассовый Чек [18:48:38]line ПРОДАЖА [18:48:38]line Товар: 8901086040008 [18:48:38]line Жид/ст ПН летняя 4,5л [18:48:38]line 1.000 * 170.00 [18:48:38]line = 170.00 [18:48:38]line НДС 12% НСП 1% [18:48:38]line > о реализуемом товаре [18:48:38]line ИТОГО: 170.00 [18:48:38]line НСП 1% : 1.50 [18:48:38]line НДС 12% : 18.05 [18:48:38]line Наличными: 0.00 [18:48:38]line Безнал.: 170.00 [18:48:38]line Место: АЗС № 95 "Партнер Нефть" [18:48:38]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:48:38]line СНО: Общий режим [18:48:38]line Чек 157 19.08.2024 18:48 [18:48:38]line Смена: 467 ФФД: 1.0 [18:48:38]line ЗНМ: 0300000078 [18:48:38]line РНМ: 0000000000092546 [18:48:38]line Версия ККМ: 001 [18:48:38]line Платежная система: O! деньги [18:48:38]line ФМ: 0000000000871800 [18:48:38]line ФД: 50050 [18:48:38]line ФПД: 243641468779211 [18:48:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T184838&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50050&fm=243641468779211&tin=02508201610067®Number=0000000000092546&sum=17000 [18:48:39]OFD Sender: Processing packet 50050 [packets to send 21, broken 20] [18:48:39]ProducePacketName [18:48:39]name=ofd_packets/00050050 [18:48:39]OFD Sender: To server: pG, [18:48:39]CommunicateWithHost lk.salyk.kg:30040 [18:48:39]ConnectInit lk.salyk.kg [18:48:39]line 0 [18:48:39]written 0, free lines is 4095 [18:48:39]Connected sock=10 [18:48:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 29 01 00 00 E2 38 21 01 14 C2 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 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 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 86 93 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 82 C3 00 00 35 04 06 00 DD 97 33 32 FA CB A3 11 CA 96 D2 EB 46 67 [18:48:39]Write to MH i2c: 01 00 00 4E 00 4E [18:48:39]Write i2c OK [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: 01 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: 01 07 00 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 D8 0C 39 [18:48:39]RasterBufferAndPrint [18:48:39]line [18:48:39]line [18:48:39]line [18:48:39]line [18:48:39]line [18:48:39]written 0, free lines is 3294 [18:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 03 8E 47 00 ED C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 82 C3 00 00 F4 03 04 00 F2 3D C3 66 B6 04 01 00 00 45 3F FB DF F8 49 C7 2B [18:48:39]CommunicateWithHost err = 0 [18:48:39]CheckOFDResponse [18:48:39]1017 (14) - 77093643461234 [18:48:39]1041 (16) - 0000000000871800 [18:48:39]1040 (4) - 50050 [18:48:39]1012 (4) - 19.08.2024 12:43 [18:48:39]1206 (1) - 0 [18:48:39]OFD Sender: Remove packet 50050 [18:48:39]ProducePacketName [18:48:39]name=ofd_packets/00050050 [18:48:39]NVStorageDeleteData [18:48:39]MH_Cut [18:48:39]Write to MH i2c: D1 01 00 55 00 01 27 [18:48:39]Write i2c OK [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: D1 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: D1 01 00 [18:48:39]MH_I2C_Read... [18:48:39]Read from MH i2c: D1 01 00 55 00 00 26 [18:48:39]Write to MH i2c: 01 00 00 56 00 56 [18:48:39]Write i2c OK [18:48:39]MH_I2C_Read... [18:48:40]OFD Sender: No OFD packet to send [18:48:40]*** Cut start [18:48:40]*** Purtial cut [18:48:40]*** Stage 1: CUTSNS_PIN = 1 [18:48:40]Read from MH i2c: 01 [18:48:40]MH_I2C_Read... [18:48:40]*** Stop cut motor [18:48:40]*** Cut end [18:48:40]Read from MH i2c: 01 07 00 [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: 01 07 00 56 00 00 00 00 00 00 FF 0F 6B [18:48:40]process_action close_receipt done [18:48:40]requested_data is exist [18:48:40]produce_requested_data [18:48:40]requested_item fm.sn is exist - process it [18:48:40]wFMCommunicate request_size=4 [18:48:40]MH_SAM_APDU [18:48:40]CAPDU: 80 11 00 00 [18:48:40]Write to MH i2c: E2 08 00 57 00 80 11 00 00 00 00 00 00 D1 [18:48:40]Write i2c OK [18:48:40]MH_I2C_Read... [18:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:40]Read from MH i2c: E2 [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: E2 17 00 [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: E2 17 00 57 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1C [18:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:48:40]wFMCommunicate OK [18:48:40]requested_item fd.num is exist - process it [18:48:40]SAM_PROTO_GetFieldsCounters [18:48:40]wFMCommunicate request_size=4 [18:48:40]MH_SAM_APDU [18:48:40]CAPDU: 80 13 00 00 [18:48:40]Write to MH i2c: E2 08 00 58 00 80 13 00 00 00 00 00 00 D4 [18:48:40]Write i2c OK [18:48:40]MH_I2C_Read... [18:48:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:40]Read from MH i2c: E2 [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: E2 62 00 [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: E2 62 00 58 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 82 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [18:48:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 82 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:40]wFMCommunicate OK [18:48:40]SAM_PROTO_GetFieldsCounters done [18:48:40]requested_item shift.num is exist - process it [18:48:40]requested_item shift.opened is exist - process it [18:48:40]req_shift_opened [18:48:40]FM_GetShiftState [18:48:40]SAM_PROTO_GetShiftState [18:48:40]wFMCommunicate request_size=4 [18:48:40]MH_SAM_APDU [18:48:40]CAPDU: 80 13 01 00 [18:48:40]Write to MH i2c: E2 08 00 59 00 80 13 01 00 00 00 00 00 D6 [18:48:40]Write i2c OK [18:48:40]MH_I2C_Read... [18:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:41]Read from MH i2c: E2 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 0E 00 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 0E 00 59 00 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 90 [18:48:41]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:48:41]wFMCommunicate OK [18:48:41]SAM_PROTO_GetShiftState done [18:48:41]FM_GetShiftState done [18:48:41]req_shift_opened done [18:48:41]requested_item shift.open_date is exist - process it [18:48:41]req_shift_open_date [18:48:41]req_shift_open_date done [18:48:41]produce_requested_data done [18:48:41]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50050,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [18:48:41]process_action_free close_receipt [18:48:41]json_value_free [18:48:41]json_value_free done [18:48:41]process_json_proto returns [18:48:41]Send response to host [18:48:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50050,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [18:48:41]free response buf [18:48:41]execute_script done [18:48:41]execute_script returns [18:48:41]free content buf [18:48:41]Sock 8.Close socket [18:48:41]Sock 8.Thread stoped [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:19]accept exits with 9 [18:51:19]New connection [18:51:19]New thread 3066756452 created [18:51:19]Thread 3066899812 joined [18:51:19]Waiting for new connection... [18:51:19] Sock 9.Parse request [18:51:19]Sock 9.Check first char [18:51:19]Sock 9.First char is OK [18:51:19]request: POST /json_proto HTTP/1.0 [18:51:19]Method: POST [18:51:19]URL: /json_proto [18:51:19]Method is POST - this is cgi request [18:51:19]url: /json_proto [18:51:19]query_string will be loaded in cgi processing [18:51:19]execute_cgi json_proto POST (null) [18:51:19]execute_cgi path=json_proto method=POST [18:51:19]POST find Content-Length [18:51:19]Host: 172.17.46.196:8080 [18:51:19]Content-Length: 830 [18:51:19]Content-Type: application/json [18:51:19] [18:51:19]POST finish read [18:51:19]Found Content-Length = 830 [18:51:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190177", "tax_sys" : 0, "items" : [ { "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:19]execute_script... [18:51:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190177", "tax_sys" : 0, "items" : [ { "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:19]POST & json_proto [18:51:19]process_json_proto [18:51:19]json parsed OK: [18:51:19]protocol is kg_v1.0 [18:51:19]action value=close_receipt [18:51:19]process_action close_receipt [18:51:19]cmd_close_receipt [18:51:19]MH_GetDate [18:51:19]Write to MH i2c: F0 00 00 5A 00 49 [18:51:19]Write i2c OK [18:51:19]MH_I2C_Read... [18:51:19]Read from MH i2c: F0 [18:51:19]MH_I2C_Read... [18:51:19]Read from MH i2c: F0 09 00 [18:51:19]MH_I2C_Read... [18:51:19]Read from MH i2c: F0 09 00 5A 00 00 28 94 C3 66 C4 85 C2 66 A8 [18:51:19]GetLastDocTimeStamp 1724093318 [18:51:19]current date 1724093480 [18:51:19]FM_GetShiftState [18:51:19]SAM_PROTO_GetShiftState [18:51:19]wFMCommunicate request_size=4 [18:51:19]MH_SAM_APDU [18:51:19]CAPDU: 80 13 01 00 [18:51:19]Write to MH i2c: E2 08 00 5B 00 80 13 01 00 00 00 00 00 D8 [18:51:19]Write i2c OK [18:51:19]MH_I2C_Read... [18:51:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:19]Read from MH i2c: E2 [18:51:19]MH_I2C_Read... [18:51:19]Read from MH i2c: E2 0E 00 [18:51:19]MH_I2C_Read... [18:51:19]Read from MH i2c: E2 0E 00 5B 00 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 92 [18:51:19]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:51:19]wFMCommunicate OK [18:51:19]SAM_PROTO_GetShiftState done [18:51:19]FM_GetShiftState done [18:51:19]opened in 1724026361 [18:51:19]opened+sec_in_day 1724112761 [18:51:19]quantity*price = 9000 [18:51:19]sum+1 = 9001 [18:51:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 0.00 Безнал.: 90.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 158 19.08.2024 18:51 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 50051 ФПД: 40679601639057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T185120&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50051&fm=40679601639057&tin=02508201610067®Number=0000000000092546&sum=9000 0 [18:51:20]StoreToDocumentArchive [18:51:20]shift 467 fd 50051 [18:51:20]save to /storage/0467/doc_00050051 [18:51:20]save last doc name /storage/0467/doc_00050051 to /storage/kkm_last_doc_name [18:51:20]save OK [18:51:20]Clear old archive folders... [18:51:20]ProcessDocumentItem done err = 0, tmpTLVsize=276 [18:51:20]tlvbuf is B6D9B510 [18:51:20]SAM_PROTO_ClearQueue [18:51:20]wFMCommunicate request_size=4 [18:51:20]MH_SAM_APDU [18:51:20]CAPDU: 80 09 00 00 [18:51:20]Write to MH i2c: E2 08 00 68 00 80 09 00 00 00 00 00 00 DA [18:51:20]Write i2c OK [18:51:20]MH_I2C_Read... [18:51:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:20]Read from MH i2c: E2 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 03 00 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [18:51:20]RAPDU: 90 00 [18:51:20]wFMCommunicate OK [18:51:20]SAM_PROTO_ClearQueue done [18:51:20]KKMCreateOFDPacket [18:51:20]OFDProtocolAddRootSTLVToBuf [18:51:20]FM_MakeSignedData [18:51:20]FM_MakeSignedData [18:51:20]SAM_PROTO_SignData [18:51:20]wFMCommunicate request_size=4 [18:51:20]MH_SAM_APDU [18:51:20]CAPDU: 80 0D 01 02 [18:51:20]Write to MH i2c: E2 08 00 69 00 80 0D 01 02 00 00 00 00 E2 [18:51:20]Write i2c OK [18:51:20]MH_I2C_Read... [18:51:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:20]Read from MH i2c: E2 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 03 00 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [18:51:20]RAPDU: 90 00 [18:51:20]wFMCommunicate OK [18:51:20]wFMCommunicate request_size=255 [18:51:20]MH_SAM_APDU [18:51:20]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 28 94 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [18:51:20]Write to MH i2c: E2 02 01 6A 00 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 28 94 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 66 [18:51:20]Write i2c OK [18:51:20]MH_I2C_Read... [18:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:20]Read from MH i2c: E2 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 03 00 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [18:51:20]RAPDU: 90 00 [18:51:20]wFMCommunicate OK [18:51:20]wFMCommunicate request_size=35 [18:51:20]MH_SAM_APDU [18:51:20]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 83 C3 00 00 35 04 06 00 24 FF 75 34 8E 91 [18:51:20]Write to MH i2c: E2 26 00 6B 00 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 83 C3 00 00 35 04 06 00 24 FF 75 34 8E 91 00 00 01 [18:51:20]Write i2c OK [18:51:20]MH_I2C_Read... [18:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:20]Read from MH i2c: E2 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 03 00 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [18:51:20]RAPDU: 90 00 [18:51:20]wFMCommunicate OK [18:51:20]wFMCommunicate request_size=4 [18:51:20]MH_SAM_APDU [18:51:20]CAPDU: 80 0D 03 02 [18:51:20]Write to MH i2c: E2 08 00 6C 00 80 0D 03 02 00 00 00 00 E7 [18:51:20]Write i2c OK [18:51:20]MH_I2C_Read... [18:51:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:20]Read from MH i2c: E2 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 0B 00 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 0B 00 6C 00 00 7B 64 53 A8 83 F2 C8 88 90 00 87 [18:51:20]RAPDU: 7B 64 53 A8 83 F2 C8 88 90 00 [18:51:20]wFMCommunicate OK [18:51:20]SAM_PROTO_SignData done [18:51:20]FM_MakeSignedData done [18:51:20]CreateOFDProtocolMessage [18:51:20]wFMCommunicate request_size=4 [18:51:20]MH_SAM_APDU [18:51:20]CAPDU: 80 11 00 00 [18:51:20]Write to MH i2c: E2 08 00 6D 00 80 11 00 00 00 00 00 00 E7 [18:51:20]Write i2c OK [18:51:20]MH_I2C_Read... [18:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:20]Read from MH i2c: E2 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 17 00 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: E2 17 00 6D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 32 [18:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:51:20]wFMCommunicate OK [18:51:20]CreateOFDProtocolMessage done [18:51:20]OFDSenderStorePacket 50051 [18:51:20]StoreOFDPacket docnum=50051 [18:51:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 5C DB 20 01 C4 88 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 28 94 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 83 C3 00 00 35 04 06 00 24 FF 75 34 8E 91 7B 64 53 A8 83 F2 C8 88 [18:51:20]CheckFolder [18:51:20]dirname=/storage/ofd_packets [18:51:20]CheckFolder done [18:51:20]ProducePacketName [18:51:20]name=ofd_packets/00050051 [18:51:20]NVStorageSaveData ofd_packets/00050051 [18:51:20]File name is /storage/ofd_packets/00050051 [18:51:20]Write 326 bytes [18:51:20]NVStorageSaveData done [18:51:20]OFDSenderStorePacket done [18:51:20]KKMCreateOFDPacket done [18:51:20]NVStorageSaveData kkm_last_timestamp [18:51:20]File name is /storage/kkm_last_timestamp [18:51:20]Write 4 bytes [18:51:20]NVStorageSaveData done [18:51:20]ExternCall_PrintAddStr [18:51:20]wPrintStart [18:51:20]Write to MH i2c: 01 00 00 6E 00 6E [18:51:20]Write i2c OK [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: 01 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: 01 07 00 [18:51:20]MH_I2C_Read... [18:51:20]Read from MH i2c: 01 07 00 6E 00 00 00 00 00 00 FF 0F 83 [18:51:20]RasterBufferAndPrint [18:51:20]line Счет N : (3)190177 [18:51:20]line ИНН: 02508201610067 [18:51:20]line Контрольно-Кассовый Чек [18:51:20]line ПРОДАЖА [18:51:20]line Товар: 54492509 [18:51:20]line Напиток Кока-Кола 0,25л [18:51:20]line 1.000 * 90.00 [18:51:20]line = 90.00 [18:51:20]line НДС 12% НСП 1% [18:51:20]line > о реализуемом товаре [18:51:20]line ИТОГО: 90.00 [18:51:20]line НСП 1% : 0.80 [18:51:20]line НДС 12% : 9.56 [18:51:20]line Наличными: 0.00 [18:51:20]line Безнал.: 90.00 [18:51:20]line Место: АЗС № 95 "Партнер Нефть" [18:51:20]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:51:20]line СНО: Общий режим [18:51:20]line Чек 158 19.08.2024 18:51 [18:51:20]line Смена: 467 ФФД: 1.0 [18:51:21]line ЗНМ: 0300000078 [18:51:21]line РНМ: 0000000000092546 [18:51:21]line Версия ККМ: 001 [18:51:21]line Платежная система: Бакай Банк [18:51:21]line ФМ: 0000000000871800 [18:51:21]line ФД: 50051 [18:51:21]line ФПД: 40679601639057 [18:51:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T185120&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50051&fm=40679601639057&tin=02508201610067®Number=0000000000092546&sum=9000 [18:51:21]line 0 [18:51:21]OFD Sender: Processing packet 50051 [packets to send 21, broken 20] [18:51:21]ProducePacketName [18:51:21]name=ofd_packets/00050051 [18:51:21]OFD Sender: To server: pG, [18:51:21]CommunicateWithHost lk.salyk.kg:30040 [18:51:21]ConnectInit lk.salyk.kg [18:51:21]written 0, free lines is 4095 [18:51:21]Connected sock=10 [18:51:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 5C DB 20 01 C4 88 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 28 94 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 83 C3 00 00 35 04 06 00 24 FF 75 34 8E 91 7B 64 53 A8 83 F2 C8 88 [18:51:21]Write to MH i2c: 01 00 00 98 00 98 [18:51:21]Write i2c OK [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: 01 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: 01 07 00 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 C8 0C 73 [18:51:21]RasterBufferAndPrint [18:51:21]line [18:51:21]line [18:51:21]line [18:51:21]line [18:51:21]line [18:51:21]written 0, free lines is 3278 [18:51:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 12 00 47 00 80 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 83 C3 00 00 F4 03 04 00 94 3E C3 66 B6 04 01 00 00 08 86 CB 7C 19 3E 35 04 [18:51:21]CommunicateWithHost err = 0 [18:51:21]CheckOFDResponse [18:51:21]1017 (14) - 77093643461234 [18:51:21]1041 (16) - 0000000000871800 [18:51:21]1040 (4) - 50051 [18:51:21]1012 (4) - 19.08.2024 12:46 [18:51:21]1206 (1) - 0 [18:51:21]OFD Sender: Remove packet 50051 [18:51:21]ProducePacketName [18:51:21]name=ofd_packets/00050051 [18:51:21]NVStorageDeleteData [18:51:21]MH_Cut [18:51:21]Write to MH i2c: D1 01 00 9F 00 01 71 [18:51:21]Write i2c OK [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: D1 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: D1 01 00 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: D1 01 00 9F 00 00 70 [18:51:21]Write to MH i2c: 01 00 00 A0 00 A0 [18:51:21]Write i2c OK [18:51:21]MH_I2C_Read... [18:51:22]OFD Sender: No OFD packet to send [18:51:22]*** Cut start [18:51:22]*** Purtial cut [18:51:22]*** CUTSNS_PIN = 0 [18:51:22]*** Stage 1: CUTSNS_PIN = 1 [18:51:24]Read from MH i2c: 01 [18:51:24]MH_I2C_Read... [18:51:24]*** Stop cut motor [18:51:24]*** Cut end [18:51:24]Read from MH i2c: 01 07 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: 01 07 00 A0 00 00 00 00 00 00 FF 0F B5 [18:51:24]process_action close_receipt done [18:51:24]requested_data is exist [18:51:24]produce_requested_data [18:51:24]requested_item fm.sn is exist - process it [18:51:24]wFMCommunicate request_size=4 [18:51:24]MH_SAM_APDU [18:51:24]CAPDU: 80 11 00 00 [18:51:24]Write to MH i2c: E2 08 00 A1 00 80 11 00 00 00 00 00 00 1B [18:51:24]Write i2c OK [18:51:24]MH_I2C_Read... [18:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:24]Read from MH i2c: E2 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 17 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 17 00 A1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 66 [18:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:51:24]wFMCommunicate OK [18:51:24]requested_item fd.num is exist - process it [18:51:24]SAM_PROTO_GetFieldsCounters [18:51:24]wFMCommunicate request_size=4 [18:51:24]MH_SAM_APDU [18:51:24]CAPDU: 80 13 00 00 [18:51:24]Write to MH i2c: E2 08 00 A2 00 80 13 00 00 00 00 00 00 1E [18:51:24]Write i2c OK [18:51:24]MH_I2C_Read... [18:51:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:24]Read from MH i2c: E2 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 62 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 62 00 A2 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 83 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [18:51:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 83 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:24]wFMCommunicate OK [18:51:24]SAM_PROTO_GetFieldsCounters done [18:51:24]requested_item shift.num is exist - process it [18:51:24]requested_item shift.opened is exist - process it [18:51:24]req_shift_opened [18:51:24]FM_GetShiftState [18:51:24]SAM_PROTO_GetShiftState [18:51:24]wFMCommunicate request_size=4 [18:51:24]MH_SAM_APDU [18:51:24]CAPDU: 80 13 01 00 [18:51:24]Write to MH i2c: E2 08 00 A3 00 80 13 01 00 00 00 00 00 20 [18:51:24]Write i2c OK [18:51:24]MH_I2C_Read... [18:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:24]Read from MH i2c: E2 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 0E 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: E2 0E 00 A3 00 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 DA [18:51:24]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [18:51:24]wFMCommunicate OK [18:51:24]SAM_PROTO_GetShiftState done [18:51:24]FM_GetShiftState done [18:51:24]req_shift_opened done [18:51:24]requested_item shift.open_date is exist - process it [18:51:24]req_shift_open_date [18:51:24]req_shift_open_date done [18:51:24]produce_requested_data done [18:51:24]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50051,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [18:51:24]process_action_free close_receipt [18:51:24]json_value_free [18:51:24]json_value_free done [18:51:24]process_json_proto returns [18:51:24]Send response to host [18:51:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50051,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [18:51:24]free response buf [18:51:24]execute_script done [18:51:24]execute_script returns [18:51:24]free content buf [18:51:24]Sock 9.Close socket [18:51:24]Sock 9.Thread stoped [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:22]OFD Sender: No OFD packet to send [18:54:27]OFD Sender: No OFD packet to send [18:54:32]OFD Sender: No OFD packet to send [18:54:37]OFD Sender: No OFD packet to send [18:54:42]OFD Sender: No OFD packet to send [18:54:47]OFD Sender: No OFD packet to send [18:54:52]OFD Sender: No OFD packet to send [18:54:57]OFD Sender: No OFD packet to send [18:55:02]OFD Sender: No OFD packet to send [18:55:07]OFD Sender: No OFD packet to send [18:55:12]OFD Sender: No OFD packet to send [18:55:17]OFD Sender: No OFD packet to send [18:55:22]OFD Sender: No OFD packet to send [18:55:27]OFD Sender: No OFD packet to send [18:55:32]OFD Sender: No OFD packet to send [18:55:37]OFD Sender: No OFD packet to send [18:55:42]OFD Sender: No OFD packet to send [18:55:47]OFD Sender: No OFD packet to send [18:55:52]OFD Sender: No OFD packet to send [18:55:57]OFD Sender: No OFD packet to send [18:56:02]OFD Sender: No OFD packet to send [18:56:07]OFD Sender: No OFD packet to send [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:22]OFD Sender: No OFD packet to send [18:56:27]OFD Sender: No OFD packet to send [18:56:32]OFD Sender: No OFD packet to send [18:56:37]OFD Sender: No OFD packet to send [18:56:42]OFD Sender: No OFD packet to send [18:56:47]OFD Sender: No OFD packet to send [18:56:52]OFD Sender: No OFD packet to send [18:56:57]OFD Sender: No OFD packet to send [18:57:02]OFD Sender: No OFD packet to send [18:57:07]OFD Sender: No OFD packet to send [18:57:12]OFD Sender: No OFD packet to send [18:57:17]OFD Sender: No OFD packet to send [18:57:22]OFD Sender: No OFD packet to send [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:47]OFD Sender: No OFD packet to send [18:58:52]OFD Sender: No OFD packet to send [18:58:57]OFD Sender: No OFD packet to send [18:59:02]OFD Sender: No OFD packet to send [18:59:07]OFD Sender: No OFD packet to send [18:59:12]OFD Sender: No OFD packet to send [18:59:17]OFD Sender: No OFD packet to send [18:59:22]OFD Sender: No OFD packet to send [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:26]accept exits with 8 [19:01:26]New connection [19:01:26]New thread 3066899812 created [19:01:26]Thread 3066756452 joined [19:01:26]Waiting for new connection... [19:01:26] Sock 8.Parse request [19:01:26]Sock 8.Check first char [19:01:26]Sock 8.First char is OK [19:01:26]request: POST /json_proto HTTP/1.0 [19:01:26]Method: POST [19:01:26]URL: /json_proto [19:01:26]Method is POST - this is cgi request [19:01:26]url: /json_proto [19:01:26]query_string will be loaded in cgi processing [19:01:26]execute_cgi json_proto POST (null) [19:01:26]execute_cgi path=json_proto method=POST [19:01:26]POST find Content-Length [19:01:26]Host: 172.17.46.196:8080 [19:01:26]Content-Length: 699 [19:01:26]Content-Type: application/json [19:01:26] [19:01:26]POST finish read [19:01:26]Found Content-Length = 699 [19:01:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190178", "tax_sys" : 0, "items" : [ { "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:26]execute_script... [19:01: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)190178", "tax_sys" : 0, "items" : [ { "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:26]POST & json_proto [19:01:26]process_json_proto [19:01:26]json parsed OK: [19:01:26]protocol is kg_v1.0 [19:01:26]action value=close_receipt [19:01:26]process_action close_receipt [19:01:26]cmd_close_receipt [19:01:26]MH_GetDate [19:01:26]Write to MH i2c: F0 00 00 A4 00 93 [19:01:26]Write i2c OK [19:01:26]MH_I2C_Read... [19:01:26]Read from MH i2c: F0 [19:01:26]MH_I2C_Read... [19:01:26]Read from MH i2c: F0 09 00 [19:01:26]MH_I2C_Read... [19:01:26]Read from MH i2c: F0 09 00 A4 00 00 87 96 C3 66 C4 85 C2 66 53 [19:01:26]GetLastDocTimeStamp 1724093480 [19:01:26]current date 1724094087 [19:01:26]FM_GetShiftState [19:01:26]SAM_PROTO_GetShiftState [19:01:26]wFMCommunicate request_size=4 [19:01:26]MH_SAM_APDU [19:01:26]CAPDU: 80 13 01 00 [19:01:26]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [19:01:26]Write i2c OK [19:01:26]MH_I2C_Read... [19:01:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:26]Read from MH i2c: E2 [19:01:26]MH_I2C_Read... [19:01:26]Read from MH i2c: E2 0E 00 [19:01:26]MH_I2C_Read... [19:01:26]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 DC [19:01:26]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:01:26]wFMCommunicate OK [19:01:26]SAM_PROTO_GetShiftState done [19:01:26]FM_GetShiftState done [19:01:26]opened in 1724026361 [19:01:26]opened+sec_in_day 1724112761 [19:01:26]quantity*price = 8900 [19:01:26]sum+1 = 8901 [19:01:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 89.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 159 19.08.2024 19:01 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50052 ФПД: 138917033811078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T190127&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50052&fm=138917033811078&tin=02508201610067®Number=0000000000092546&sum=8900 0 [19:01:27]StoreToDocumentArchive [19:01:27]shift 467 fd 50052 [19:01:27]save to /storage/0467/doc_00050052 [19:01:27]save last doc name /storage/0467/doc_00050052 to /storage/kkm_last_doc_name [19:01:27]save OK [19:01:27]Clear old archive folders... [19:01:27]ProcessDocumentItem done err = 0, tmpTLVsize=294 [19:01:27]tlvbuf is 0194DD90 [19:01:27]SAM_PROTO_ClearQueue [19:01:27]wFMCommunicate request_size=4 [19:01:27]MH_SAM_APDU [19:01:27]CAPDU: 80 09 00 00 [19:01:27]Write to MH i2c: E2 08 00 B2 00 80 09 00 00 00 00 00 00 24 [19:01:27]Write i2c OK [19:01:27]MH_I2C_Read... [19:01:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:27]Read from MH i2c: E2 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 03 00 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [19:01:27]RAPDU: 90 00 [19:01:27]wFMCommunicate OK [19:01:27]SAM_PROTO_ClearQueue done [19:01:27]KKMCreateOFDPacket [19:01:27]OFDProtocolAddRootSTLVToBuf [19:01:27]FM_MakeSignedData [19:01:27]FM_MakeSignedData [19:01:27]SAM_PROTO_SignData [19:01:27]wFMCommunicate request_size=4 [19:01:27]MH_SAM_APDU [19:01:27]CAPDU: 80 0D 01 02 [19:01:27]Write to MH i2c: E2 08 00 B3 00 80 0D 01 02 00 00 00 00 2C [19:01:27]Write i2c OK [19:01:27]MH_I2C_Read... [19:01:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:27]Read from MH i2c: E2 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 03 00 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [19:01:27]RAPDU: 90 00 [19:01:27]wFMCommunicate OK [19:01:27]wFMCommunicate request_size=255 [19:01:27]MH_SAM_APDU [19:01:27]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 39 30 37 32 39 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 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 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 87 96 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [19:01:27]Write to MH i2c: E2 02 01 B4 00 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 39 30 37 32 39 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 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 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 87 96 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 21 [19:01:27]Write i2c OK [19:01:27]MH_I2C_Read... [19:01:27]OFD Sender: No OFD packet to send [19:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:27]Read from MH i2c: E2 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 03 00 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [19:01:27]RAPDU: 90 00 [19:01:27]wFMCommunicate OK [19:01:27]wFMCommunicate request_size=53 [19:01:27]MH_SAM_APDU [19:01:27]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 84 C3 00 00 35 04 06 00 7E 58 24 74 1C 86 [19:01:27]Write to MH i2c: E2 38 00 B5 00 80 0D 02 02 30 00 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 84 C3 00 00 35 04 06 00 7E 58 24 74 1C 86 00 00 74 [19:01:27]Write i2c OK [19:01:27]MH_I2C_Read... [19:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:28]Read from MH i2c: E2 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: E2 03 00 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [19:01:28]RAPDU: 90 00 [19:01:28]wFMCommunicate OK [19:01:28]wFMCommunicate request_size=4 [19:01:28]MH_SAM_APDU [19:01:28]CAPDU: 80 0D 03 02 [19:01:28]Write to MH i2c: E2 08 00 B6 00 80 0D 03 02 00 00 00 00 31 [19:01:28]Write i2c OK [19:01:28]MH_I2C_Read... [19:01:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:28]Read from MH i2c: E2 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: E2 0B 00 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: E2 0B 00 B6 00 00 01 77 21 86 2B EA E8 C8 90 00 16 [19:01:28]RAPDU: 01 77 21 86 2B EA E8 C8 90 00 [19:01:28]wFMCommunicate OK [19:01:28]SAM_PROTO_SignData done [19:01:28]FM_MakeSignedData done [19:01:28]CreateOFDProtocolMessage [19:01:28]wFMCommunicate request_size=4 [19:01:28]MH_SAM_APDU [19:01:28]CAPDU: 80 11 00 00 [19:01:28]Write to MH i2c: E2 08 00 B7 00 80 11 00 00 00 00 00 00 31 [19:01:28]Write i2c OK [19:01:28]MH_I2C_Read... [19:01:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:28]Read from MH i2c: E2 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: E2 17 00 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: E2 17 00 B7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7C [19:01:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:01:28]wFMCommunicate OK [19:01:28]CreateOFDProtocolMessage done [19:01:28]OFDSenderStorePacket 50052 [19:01:28]StoreOFDPacket docnum=50052 [19:01:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 EE CC 32 01 1F AD 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 39 30 37 32 39 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 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 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 87 96 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 84 C3 00 00 35 04 06 00 7E 58 24 74 1C 86 01 77 21 86 2B EA E8 C8 [19:01:28]CheckFolder [19:01:28]dirname=/storage/ofd_packets [19:01:28]CheckFolder done [19:01:28]ProducePacketName [19:01:28]name=ofd_packets/00050052 [19:01:28]NVStorageSaveData ofd_packets/00050052 [19:01:28]File name is /storage/ofd_packets/00050052 [19:01:28]Write 344 bytes [19:01:28]NVStorageSaveData done [19:01:28]OFDSenderStorePacket done [19:01:28]KKMCreateOFDPacket done [19:01:28]NVStorageSaveData kkm_last_timestamp [19:01:28]File name is /storage/kkm_last_timestamp [19:01:28]Write 4 bytes [19:01:28]NVStorageSaveData done [19:01:28]ExternCall_PrintAddStr [19:01:28]wPrintStart [19:01:28]Write to MH i2c: 01 00 00 B8 00 B8 [19:01:28]Write i2c OK [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: 01 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: 01 07 00 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: 01 07 00 B8 00 00 00 00 00 00 FF 0F CD [19:01:28]RasterBufferAndPrint [19:01:28]line Счет N : (3)190178 [19:01:28]line ИНН: 02508201610067 [19:01:28]line Контрольно-Кассовый Чек [19:01:28]line ПРОДАЖА [19:01:28]line Товар: 5000159390729 [19:01:28]line Шок Батончик Твикс Экстра 82г [19:01:28]line 1.000 * 89.00 [19:01:28]line = 89.00 [19:01:28]line НДС 12% НСП 1% [19:01:28]line > о реализуемом товаре [19:01:28]line ИТОГО: 89.00 [19:01:28]line НСП 1% : 0.79 [19:01:28]line НДС 12% : 9.45 [19:01:28]line Наличными: 89.00 [19:01:28]line Безнал.: 0.00 [19:01:28]line Место: АЗС № 95 "Партнер Нефть" [19:01:28]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:01:28]line СНО: Общий режим [19:01:28]line Чек 159 19.08.2024 19:01 [19:01:28]line Смена: 467 ФФД: 1.0 [19:01:28]line ЗНМ: 0300000078 [19:01:28]line РНМ: 0000000000092546 [19:01:28]line Версия ККМ: 001 [19:01:28]line ФМ: 0000000000871800 [19:01:28]line ФД: 50052 [19:01:28]line ФПД: 138917033811078 [19:01:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T190127&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50052&fm=138917033811078&tin=02508201610067®Number=0000000000092546&sum=8900 [19:01:28]line 0 [19:01:28]OFD Sender: Processing packet 50052 [packets to send 21, broken 20] [19:01:28]ProducePacketName [19:01:28]name=ofd_packets/00050052 [19:01:28]OFD Sender: To server: pG, [19:01:28]CommunicateWithHost lk.salyk.kg:30040 [19:01:28]ConnectInit lk.salyk.kg [19:01:28]written 0, free lines is 4095 [19:01:28]Connected sock=10 [19:01:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 EE CC 32 01 1F AD 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 39 30 37 32 39 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 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 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 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 87 96 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 84 C3 00 00 35 04 06 00 7E 58 24 74 1C 86 01 77 21 86 2B EA E8 C8 [19:01:28]Write to MH i2c: 01 00 00 E1 00 E1 [19:01:28]Write i2c OK [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: 01 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: 01 07 00 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: 01 07 00 E1 00 00 00 00 00 00 CF 0C C3 [19:01:28]RasterBufferAndPrint [19:01:28]line [19:01:28]line [19:01:28]line [19:01:28]line [19:01:28]line [19:01:28]written 0, free lines is 3283 [19:01:28]MH_Cut [19:01:28]Write to MH i2c: D1 01 00 E8 00 01 BA [19:01:28]Write i2c OK [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: D1 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: D1 01 00 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: D1 01 00 E8 00 00 B9 [19:01:28]Write to MH i2c: 01 00 00 E9 00 E9 [19:01:28]Write i2c OK [19:01:28]MH_I2C_Read... [19:01:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 4E 4E 47 00 98 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 84 C3 00 00 F4 03 04 00 F4 40 C3 66 B6 04 01 00 00 D7 AF 3D 95 F2 98 E4 55 [19:01:28]CommunicateWithHost err = 0 [19:01:28]CheckOFDResponse [19:01:28]1017 (14) - 77093643461234 [19:01:28]1041 (16) - 0000000000871800 [19:01:28]1040 (4) - 50052 [19:01:28]1012 (4) - 19.08.2024 12:56 [19:01:28]1206 (1) - 0 [19:01:28]OFD Sender: Remove packet 50052 [19:01:28]ProducePacketName [19:01:28]name=ofd_packets/00050052 [19:01:28]NVStorageDeleteData [19:01:29]OFD Sender: No OFD packet to send [19:01:29]*** Cut start [19:01:29]*** Purtial cut [19:01:29]*** Stage 1: CUTSNS_PIN = 1 [19:01:30]Read from MH i2c: 01 [19:01:30]MH_I2C_Read... [19:01:30]*** Stop cut motor [19:01:30]*** Cut end [19:01:30]Read from MH i2c: 01 07 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: 01 07 00 E9 00 00 00 00 00 00 FF 0F FE [19:01:30]process_action close_receipt done [19:01:30]requested_data is exist [19:01:30]produce_requested_data [19:01:30]requested_item fm.sn is exist - process it [19:01:30]wFMCommunicate request_size=4 [19:01:30]MH_SAM_APDU [19:01:30]CAPDU: 80 11 00 00 [19:01:30]Write to MH i2c: E2 08 00 EA 00 80 11 00 00 00 00 00 00 64 [19:01:30]Write i2c OK [19:01:30]MH_I2C_Read... [19:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:30]Read from MH i2c: E2 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 17 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 17 00 EA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AF [19:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:01:30]wFMCommunicate OK [19:01:30]requested_item fd.num is exist - process it [19:01:30]SAM_PROTO_GetFieldsCounters [19:01:30]wFMCommunicate request_size=4 [19:01:30]MH_SAM_APDU [19:01:30]CAPDU: 80 13 00 00 [19:01:30]Write to MH i2c: E2 08 00 EB 00 80 13 00 00 00 00 00 00 67 [19:01:30]Write i2c OK [19:01:30]MH_I2C_Read... [19:01:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:30]Read from MH i2c: E2 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 62 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 62 00 EB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 84 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [19:01:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 84 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:30]wFMCommunicate OK [19:01:30]SAM_PROTO_GetFieldsCounters done [19:01:30]requested_item shift.num is exist - process it [19:01:30]requested_item shift.opened is exist - process it [19:01:30]req_shift_opened [19:01:30]FM_GetShiftState [19:01:30]SAM_PROTO_GetShiftState [19:01:30]wFMCommunicate request_size=4 [19:01:30]MH_SAM_APDU [19:01:30]CAPDU: 80 13 01 00 [19:01:30]Write to MH i2c: E2 08 00 EC 00 80 13 01 00 00 00 00 00 69 [19:01:30]Write i2c OK [19:01:30]MH_I2C_Read... [19:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:30]Read from MH i2c: E2 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 0E 00 [19:01:30]MH_I2C_Read... [19:01:30]Read from MH i2c: E2 0E 00 EC 00 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 23 [19:01:30]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:01:30]wFMCommunicate OK [19:01:30]SAM_PROTO_GetShiftState done [19:01:30]FM_GetShiftState done [19:01:30]req_shift_opened done [19:01:30]requested_item shift.open_date is exist - process it [19:01:30]req_shift_open_date [19:01:30]req_shift_open_date done [19:01:30]produce_requested_data done [19:01:30]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50052,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [19:01:30]process_action_free close_receipt [19:01:30]json_value_free [19:01:30]json_value_free done [19:01:30]process_json_proto returns [19:01:30]Send response to host [19:01:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50052,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [19:01:30]free response buf [19:01:30]execute_script done [19:01:30]execute_script returns [19:01:30]free content buf [19:01:30]Sock 8.Close socket [19:01:30]Sock 8.Thread stoped [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:19]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:28]accept exits with 9 [19:05:28]New connection [19:05:28]New thread 3066756452 created [19:05:28]Thread 3066899812 joined [19:05:28]Waiting for new connection... [19:05:28] Sock 9.Parse request [19:05:28]Sock 9.Check first char [19:05:28]Sock 9.First char is OK [19:05:28]request: POST /json_proto HTTP/1.0 [19:05:28]Method: POST [19:05:28]URL: /json_proto [19:05:28]Method is POST - this is cgi request [19:05:28]url: /json_proto [19:05:28]query_string will be loaded in cgi processing [19:05:28]execute_cgi json_proto POST (null) [19:05:28]execute_cgi path=json_proto method=POST [19:05:28]POST find Content-Length [19:05:28]Host: 172.17.46.196:8080 [19:05:28]Content-Length: 1099 [19:05:28]Content-Type: application/json [19:05:28] [19:05:28]POST finish read [19:05:28]Found Content-Length = 1099 [19:05:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190179", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522695", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 0,450", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:28]execute_script... [19:05:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190179", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522695", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 \u041C\u0430\u043B\u0438\u043D\u0430 0,450", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:28]POST & json_proto [19:05:28]process_json_proto [19:05:28]json parsed OK: [19:05:28]protocol is kg_v1.0 [19:05:28]action value=close_receipt [19:05:28]process_action close_receipt [19:05:28]cmd_close_receipt [19:05:28]MH_GetDate [19:05:28]Write to MH i2c: F0 00 00 ED 00 DC [19:05:28]Write i2c OK [19:05:28]MH_I2C_Read... [19:05:28]Read from MH i2c: F0 [19:05:28]MH_I2C_Read... [19:05:28]Read from MH i2c: F0 09 00 [19:05:28]MH_I2C_Read... [19:05:28]Read from MH i2c: F0 09 00 ED 00 00 79 97 C3 66 C4 85 C2 66 8F [19:05:28]GetLastDocTimeStamp 1724094087 [19:05:28]current date 1724094329 [19:05:28]FM_GetShiftState [19:05:28]SAM_PROTO_GetShiftState [19:05:28]wFMCommunicate request_size=4 [19:05:28]MH_SAM_APDU [19:05:28]CAPDU: 80 13 01 00 [19:05:28]Write to MH i2c: E2 08 00 EE 00 80 13 01 00 00 00 00 00 6B [19:05:28]Write i2c OK [19:05:28]MH_I2C_Read... [19:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:28]Read from MH i2c: E2 [19:05:28]MH_I2C_Read... [19:05:28]Read from MH i2c: E2 0E 00 [19:05:28]MH_I2C_Read... [19:05:28]Read from MH i2c: E2 0E 00 EE 00 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 25 [19:05:28]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:05:28]wFMCommunicate OK [19:05:28]SAM_PROTO_GetShiftState done [19:05:28]FM_GetShiftState done [19:05:28]opened in 1724026361 [19:05:28]opened+sec_in_day 1724112761 [19:05:28]quantity*price = 13500 [19:05:28]sum+1 = 13501 [19:05:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202522695 Напиток Maxi Чай черный Малина 0,450 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 0.00 Безнал.: 205.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 160 19.08.2024 19:05 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 50053 ФПД: 28093110064308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T190529&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50053&fm=28093110064308&tin=02508201610067®Number=0000000000092546&sum=20500 0 [19:05:29]StoreToDocumentArchive [19:05:29]shift 467 fd 50053 [19:05:29]save to /storage/0467/doc_00050053 [19:05:29]save last doc name /storage/0467/doc_00050053 to /storage/kkm_last_doc_name [19:05:29]save OK [19:05:29]Clear old archive folders... [19:05:29]ProcessDocumentItem done err = 0, tmpTLVsize=402 [19:05:29]tlvbuf is 0193DD00 [19:05:29]SAM_PROTO_ClearQueue [19:05:29]wFMCommunicate request_size=4 [19:05:29]MH_SAM_APDU [19:05:29]CAPDU: 80 09 00 00 [19:05:29]Write to MH i2c: E2 08 00 FB 00 80 09 00 00 00 00 00 00 6D [19:05:29]Write i2c OK [19:05:29]MH_I2C_Read... [19:05:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:29]Read from MH i2c: E2 [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: E2 03 00 [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: E2 03 00 FB 00 00 90 00 6F [19:05:29]RAPDU: 90 00 [19:05:29]wFMCommunicate OK [19:05:29]SAM_PROTO_ClearQueue done [19:05:29]KKMCreateOFDPacket [19:05:29]OFDProtocolAddRootSTLVToBuf [19:05:29]FM_MakeSignedData [19:05:29]FM_MakeSignedData [19:05:29]SAM_PROTO_SignData [19:05:29]wFMCommunicate request_size=4 [19:05:29]MH_SAM_APDU [19:05:29]CAPDU: 80 0D 01 02 [19:05:29]Write to MH i2c: E2 08 00 FC 00 80 0D 01 02 00 00 00 00 75 [19:05:29]Write i2c OK [19:05:29]MH_I2C_Read... [19:05:29]OFD Sender: No OFD packet to send [19:05:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:29]Read from MH i2c: E2 [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: E2 03 00 [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: E2 03 00 FC 00 00 90 00 70 [19:05:29]RAPDU: 90 00 [19:05:29]wFMCommunicate OK [19:05:29]wFMCommunicate request_size=255 [19:05:29]MH_SAM_APDU [19:05:29]CAPDU: 80 0D 02 02 FA 03 00 92 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 [19:05:29]Write to MH i2c: E2 02 01 FD 00 80 0D 02 02 FA 00 03 00 92 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 00 B1 [19:05:29]Write i2c OK [19:05:29]MH_I2C_Read... [19:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:29]Read from MH i2c: E2 [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: E2 03 00 [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [19:05:29]RAPDU: 90 00 [19:05:29]wFMCommunicate OK [19:05:29]wFMCommunicate request_size=161 [19:05:29]MH_SAM_APDU [19:05:29]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 79 97 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 85 C3 00 00 35 04 06 00 19 8C EF D8 94 B4 [19:05:30]Write to MH i2c: E2 A4 00 FE 00 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 79 97 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 85 C3 00 00 35 04 06 00 19 8C EF D8 94 B4 00 00 31 [19:05:30]Write i2c OK [19:05:30]MH_I2C_Read... [19:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:30]Read from MH i2c: E2 [19:05:30]MH_I2C_Read... [19:05:30]Read from MH i2c: E2 03 00 [19:05:30]MH_I2C_Read... [19:05:30]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [19:05:30]RAPDU: 90 00 [19:05:30]wFMCommunicate OK [19:05:30]wFMCommunicate request_size=4 [19:05:30]MH_SAM_APDU [19:05:30]CAPDU: 80 0D 03 02 [19:05:30]Write to MH i2c: E2 08 00 FF 00 80 0D 03 02 00 00 00 00 7A [19:05:30]Write i2c OK [19:05:30]MH_I2C_Read... [19:05:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:30]Read from MH i2c: E2 [19:05:30]MH_I2C_Read... [19:05:30]Read from MH i2c: E2 0B 00 [19:05:30]MH_I2C_Read... [19:05:30]Read from MH i2c: E2 0B 00 FF 00 00 58 C0 23 1C 7C B3 25 B9 90 00 DF [19:05:30]RAPDU: 58 C0 23 1C 7C B3 25 B9 90 00 [19:05:30]wFMCommunicate OK [19:05:30]SAM_PROTO_SignData done [19:05:30]FM_MakeSignedData done [19:05:30]CreateOFDProtocolMessage [19:05:30]wFMCommunicate request_size=4 [19:05:30]MH_SAM_APDU [19:05:30]CAPDU: 80 11 00 00 [19:05:30]Write to MH i2c: E2 08 00 00 01 80 11 00 00 00 00 00 00 7B [19:05:30]Write i2c OK [19:05:30]MH_I2C_Read... [19:05:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:30]Read from MH i2c: E2 [19:05:30]MH_I2C_Read... [19:05:30]Read from MH i2c: E2 17 00 [19:05:30]MH_I2C_Read... [19:05:30]Read from MH i2c: E2 17 00 00 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C6 [19:05:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:05:30]wFMCommunicate OK [19:05:30]CreateOFDProtocolMessage done [19:05:30]OFDSenderStorePacket 50053 [19:05:30]StoreOFDPacket docnum=50053 [19:05:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A6 01 00 00 6B 76 9E 01 BE E9 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 79 97 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 85 C3 00 00 35 04 06 00 19 8C EF D8 94 B4 58 C0 23 1C 7C B3 25 B9 [19:05:30]CheckFolder [19:05:30]dirname=/storage/ofd_packets [19:05:30]CheckFolder done [19:05:30]ProducePacketName [19:05:30]name=ofd_packets/00050053 [19:05:30]NVStorageSaveData ofd_packets/00050053 [19:05:30]File name is /storage/ofd_packets/00050053 [19:05:30]Write 452 bytes [19:05:30]NVStorageSaveData done [19:05:30]OFDSenderStorePacket done [19:05:30]KKMCreateOFDPacket done [19:05:30]NVStorageSaveData kkm_last_timestamp [19:05:30]File name is /storage/kkm_last_timestamp [19:05:30]Write 4 bytes [19:05:30]NVStorageSaveData done [19:05:30]ExternCall_PrintAddStr [19:05:30]wPrintStart [19:05:30]Write to MH i2c: 01 00 00 01 01 02 [19:05:30]OFD Sender: Processing packet 50053 [packets to send 21, broken 20] [19:05:30]ProducePacketName [19:05:30]name=ofd_packets/00050053 [19:05:30]OFD Sender: To server: pG, [19:05:30]CommunicateWithHost lk.salyk.kg:30040 [19:05:30]ConnectInit lk.salyk.kg [19:05:30]Write i2c OK [19:05:30]MH_I2C_Read... [19:05:30]Read from MH i2c: 01 [19:05:30]MH_I2C_Read... [19:05:30]Read from MH i2c: 01 07 00 [19:05:30]MH_I2C_Read... [19:05:30]Read from MH i2c: 01 07 00 01 01 00 00 00 00 00 FF 0F 17 [19:05:30]RasterBufferAndPrint [19:05:30]line Счет N : (3)190179 [19:05:30]line ИНН: 02508201610067 [19:05:30]line Контрольно-Кассовый Чек [19:05:30]line ПРОДАЖА [19:05:30]line Товар: 48745000 [19:05:30]line Сигареты Winston Purple Mix [19:05:30]line 1.000 * 135.00 [19:05:30]line = 135.00 [19:05:30]line НДС 12% НСП 1% [19:05:30]line > о реализуемом товаре [19:05:30]line Товар: 4870202522695 [19:05:30]line Напиток Maxi Чай черный Малина 0,450 [19:05:30]line 1.000 * 70.00 [19:05:30]line = 70.00 [19:05:30]line НДС 12% НСП 1% [19:05:30]line > о реализуемом товаре [19:05:30]line ИТОГО: 205.00 [19:05:30]line НСП 1% : 1.81 [19:05:30]line НДС 12% : 21.77 [19:05:30]line Наличными: 0.00 [19:05:30]line Безнал.: 205.00 [19:05:30]line Место: АЗС № 95 "Партнер Нефть" [19:05:30]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:05:30]line СНО: Общий режим [19:05:30]line Чек 160 19.08.2024 19:05 [19:05:30]line Смена: 467 ФФД: 1.0 [19:05:30]line ЗНМ: 0300000078 [19:05:30]line РНМ: 0000000000092546 [19:05:30]line Версия ККМ: 001 [19:05:30]line Платежная система: O! деньги [19:05:30]line ФМ: 0000000000871800 [19:05:30]line ФД: 50053 [19:05:30]line ФПД: 28093110064308 [19:05:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T190529&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50053&fm=28093110064308&tin=02508201610067®Number=0000000000092546&sum=20500 [19:05:30]line 0 [19:05:30]written 0, free lines is 4095 [19:05:30]Connected sock=10 [19:05:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A6 01 00 00 6B 76 9E 01 BE E9 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 39 35 06 04 3A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9C D0 B0 D0 BB D0 B8 D0 BD D0 B0 20 30 2C 34 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 50 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 79 97 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 85 C3 00 00 35 04 06 00 19 8C EF D8 94 B4 58 C0 23 1C 7C B3 25 B9 [19:05:31]Write to MH i2c: 01 00 00 32 01 33 [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: 01 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: 01 07 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: 01 07 00 32 01 00 00 00 00 00 4C 0C 92 [19:05:31]RasterBufferAndPrint [19:05:31]line [19:05:31]line [19:05:31]line [19:05:31]line [19:05:31]line [19:05:31]written 0, free lines is 3153 [19:05:31]MH_Cut [19:05:31]Write to MH i2c: D1 01 00 39 01 01 0C [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: D1 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: D1 01 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: D1 01 00 39 01 00 0B [19:05:31]Write to MH i2c: 01 00 00 3A 01 3B [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 6B 1C 47 00 CE CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 85 C3 00 00 F4 03 04 00 E6 41 C3 66 B6 04 01 00 00 BA 43 BF 35 A3 C5 40 81 [19:05:31]CommunicateWithHost err = 0 [19:05:31]CheckOFDResponse [19:05:31]1017 (14) - 77093643461234 [19:05:31]1041 (16) - 0000000000871800 [19:05:31]1040 (4) - 50053 [19:05:31]1012 (4) - 19.08.2024 13:00 [19:05:31]1206 (1) - 0 [19:05:31]OFD Sender: Remove packet 50053 [19:05:31]ProducePacketName [19:05:31]name=ofd_packets/00050053 [19:05:31]NVStorageDeleteData [19:05:31]OFD Sender: No OFD packet to send [19:05:32]*** Cut start [19:05:32]*** Purtial cut [19:05:32]*** CUTSNS_PIN = 0 [19:05:32]*** Stage 1: CUTSNS_PIN = 1 [19:05:34]Read from MH i2c: 01 [19:05:34]MH_I2C_Read... [19:05:34]*** Stop cut motor [19:05:34]*** Cut end [19:05:34]Read from MH i2c: 01 07 00 [19:05:34]MH_I2C_Read... [19:05:34]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 FF 0F 50 [19:05:34]process_action close_receipt done [19:05:34]requested_data is exist [19:05:34]produce_requested_data [19:05:34]requested_item fm.sn is exist - process it [19:05:34]wFMCommunicate request_size=4 [19:05:34]MH_SAM_APDU [19:05:34]CAPDU: 80 11 00 00 [19:05:34]Write to MH i2c: E2 08 00 3B 01 80 11 00 00 00 00 00 00 B6 [19:05:34]Write i2c OK [19:05:34]MH_I2C_Read... [19:05:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:34]Read from MH i2c: E2 [19:05:34]MH_I2C_Read... [19:05:34]Read from MH i2c: E2 17 00 [19:05:34]MH_I2C_Read... [19:05:34]Read from MH i2c: E2 17 00 3B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 01 [19:05:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:05:34]wFMCommunicate OK [19:05:34]requested_item fd.num is exist - process it [19:05:34]SAM_PROTO_GetFieldsCounters [19:05:34]wFMCommunicate request_size=4 [19:05:34]MH_SAM_APDU [19:05:34]CAPDU: 80 13 00 00 [19:05:34]Write to MH i2c: E2 08 00 3C 01 80 13 00 00 00 00 00 00 B9 [19:05:34]Write i2c OK [19:05:34]MH_I2C_Read... [19:05:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:34]Read from MH i2c: E2 [19:05:34]MH_I2C_Read... [19:05:34]Read from MH i2c: E2 62 00 [19:05:34]MH_I2C_Read... [19:05:34]Read from MH i2c: E2 62 00 3C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 85 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [19:05:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 85 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:34]wFMCommunicate OK [19:05:34]SAM_PROTO_GetFieldsCounters done [19:05:34]requested_item shift.num is exist - process it [19:05:34]requested_item shift.opened is exist - process it [19:05:34]req_shift_opened [19:05:34]FM_GetShiftState [19:05:34]SAM_PROTO_GetShiftState [19:05:34]wFMCommunicate request_size=4 [19:05:34]MH_SAM_APDU [19:05:34]CAPDU: 80 13 01 00 [19:05:34]Write to MH i2c: E2 08 00 3D 01 80 13 01 00 00 00 00 00 BB [19:05:34]Write i2c OK [19:05:34]MH_I2C_Read... [19:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:34]Read from MH i2c: E2 [19:05:34]MH_I2C_Read... [19:05:34]Read from MH i2c: E2 0E 00 [19:05:34]MH_I2C_Read... [19:05:34]Read from MH i2c: E2 0E 00 3D 01 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 75 [19:05:34]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:05:34]wFMCommunicate OK [19:05:34]SAM_PROTO_GetShiftState done [19:05:34]FM_GetShiftState done [19:05:34]req_shift_opened done [19:05:34]requested_item shift.open_date is exist - process it [19:05:34]req_shift_open_date [19:05:34]req_shift_open_date done [19:05:34]produce_requested_data done [19:05:34]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50053,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [19:05:34]process_action_free close_receipt [19:05:34]json_value_free [19:05:34]json_value_free done [19:05:34]process_json_proto returns [19:05:34]Send response to host [19:05:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50053,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [19:05:34]free response buf [19:05:34]execute_script done [19:05:34]execute_script returns [19:05:34]free content buf [19:05:34]Sock 9.Close socket [19:05:34]Sock 9.Thread stoped [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]accept exits with 8 [19:05:51]New connection [19:05:51]New thread 3066899812 created [19:05:51]Thread 3066756452 joined [19:05:51]Waiting for new connection... [19:05:51] Sock 8.Parse request [19:05:51]Sock 8.Check first char [19:05:51]Sock 8.First char is OK [19:05:51]request: POST /json_proto HTTP/1.0 [19:05:51]Method: POST [19:05:51]URL: /json_proto [19:05:51]Method is POST - this is cgi request [19:05:51]url: /json_proto [19:05:51]query_string will be loaded in cgi processing [19:05:51]execute_cgi json_proto POST (null) [19:05:51]execute_cgi path=json_proto method=POST [19:05:51]POST find Content-Length [19:05:51]Host: 172.17.46.196:8080 [19:05:51]Content-Length: 632 [19:05:51]Content-Type: application/json [19:05:51] [19:05:51]POST finish read [19:05:51]Found Content-Length = 632 [19:05:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190180", "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" : 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:05:51]execute_script... [19:05: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)190180", "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" : 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:05:51]POST & json_proto [19:05:51]process_json_proto [19:05:51]json parsed OK: [19:05:51]protocol is kg_v1.0 [19:05:51]action value=close_receipt [19:05:51]process_action close_receipt [19:05:51]cmd_close_receipt [19:05:51]MH_GetDate [19:05:51]Write to MH i2c: F0 00 00 3E 01 2E [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: F0 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: F0 09 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: F0 09 00 3E 01 00 90 97 C3 66 C4 85 C2 66 F8 [19:05:51]GetLastDocTimeStamp 1724094329 [19:05:51]current date 1724094352 [19:05:51]FM_GetShiftState [19:05:51]SAM_PROTO_GetShiftState [19:05:51]wFMCommunicate request_size=4 [19:05:51]MH_SAM_APDU [19:05:51]CAPDU: 80 13 01 00 [19:05:51]Write to MH i2c: E2 08 00 3F 01 80 13 01 00 00 00 00 00 BD [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:51]Read from MH i2c: E2 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 0E 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 0E 00 3F 01 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 77 [19:05:51]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:05:51]wFMCommunicate OK [19:05:51]SAM_PROTO_GetShiftState done [19:05:51]FM_GetShiftState done [19:05:51]opened in 1724026361 [19:05:51]opened+sec_in_day 1724112761 [19:05:51]quantity*price = 8000 [19:05:51]sum+1 = 8001 [19:05:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 161 19.08.2024 19:05 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50054 ФПД: 100789864484722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T190552&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50054&fm=100789864484722&tin=02508201610067®Number=0000000000092546&sum=8000 0 [19:05:52]StoreToDocumentArchive [19:05:52]shift 467 fd 50054 [19:05:52]save to /storage/0467/doc_00050054 [19:05:52]save last doc name /storage/0467/doc_00050054 to /storage/kkm_last_doc_name [19:05:52]save OK [19:05:52]Clear old archive folders... [19:05:52]ProcessDocumentItem done err = 0, tmpTLVsize=271 [19:05:52]tlvbuf is 01955A10 [19:05:52]SAM_PROTO_ClearQueue [19:05:52]wFMCommunicate request_size=4 [19:05:52]MH_SAM_APDU [19:05:52]CAPDU: 80 09 00 00 [19:05:52]Write to MH i2c: E2 08 00 4C 01 80 09 00 00 00 00 00 00 BF [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:52]Read from MH i2c: E2 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 03 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [19:05:52]RAPDU: 90 00 [19:05:52]wFMCommunicate OK [19:05:52]SAM_PROTO_ClearQueue done [19:05:52]KKMCreateOFDPacket [19:05:52]OFDProtocolAddRootSTLVToBuf [19:05:52]FM_MakeSignedData [19:05:52]FM_MakeSignedData [19:05:52]SAM_PROTO_SignData [19:05:52]wFMCommunicate request_size=4 [19:05:52]MH_SAM_APDU [19:05:52]CAPDU: 80 0D 01 02 [19:05:52]Write to MH i2c: E2 08 00 4D 01 80 0D 01 02 00 00 00 00 C7 [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:52]Read from MH i2c: E2 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 03 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [19:05:52]RAPDU: 90 00 [19:05:52]wFMCommunicate OK [19:05:52]wFMCommunicate request_size=255 [19:05:52]MH_SAM_APDU [19:05:52]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 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 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 A1 00 00 00 F4 03 04 00 90 97 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [19:05:52]Write to MH i2c: E2 02 01 4E 01 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 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 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 A1 00 00 00 F4 03 04 00 90 97 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 3D [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:52]Read from MH i2c: E2 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 03 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 03 00 4E 01 00 90 00 C3 [19:05:52]RAPDU: 90 00 [19:05:52]wFMCommunicate OK [19:05:52]wFMCommunicate request_size=30 [19:05:52]MH_SAM_APDU [19:05:52]CAPDU: 80 0D 02 02 19 30 38 37 31 38 30 30 10 04 04 00 86 C3 00 00 35 04 06 00 5B AA F8 11 CF 72 [19:05:52]Write to MH i2c: E2 21 00 4F 01 80 0D 02 02 19 00 30 38 37 31 38 30 30 10 04 04 00 86 C3 00 00 35 04 06 00 5B AA F8 11 CF 72 00 00 53 [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:52]Read from MH i2c: E2 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 03 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [19:05:52]RAPDU: 90 00 [19:05:52]wFMCommunicate OK [19:05:52]wFMCommunicate request_size=4 [19:05:52]MH_SAM_APDU [19:05:52]CAPDU: 80 0D 03 02 [19:05:52]Write to MH i2c: E2 08 00 50 01 80 0D 03 02 00 00 00 00 CC [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:52]Read from MH i2c: E2 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 0B 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 0B 00 50 01 00 FF 38 FD DC D5 86 F8 61 90 00 91 [19:05:52]RAPDU: FF 38 FD DC D5 86 F8 61 90 00 [19:05:52]wFMCommunicate OK [19:05:52]SAM_PROTO_SignData done [19:05:52]FM_MakeSignedData done [19:05:52]CreateOFDProtocolMessage [19:05:52]wFMCommunicate request_size=4 [19:05:52]MH_SAM_APDU [19:05:52]CAPDU: 80 11 00 00 [19:05:52]Write to MH i2c: E2 08 00 51 01 80 11 00 00 00 00 00 00 CC [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:52]Read from MH i2c: E2 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 17 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 17 00 51 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 17 [19:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:05:52]wFMCommunicate OK [19:05:52]CreateOFDProtocolMessage done [19:05:52]OFDSenderStorePacket 50054 [19:05:52]StoreOFDPacket docnum=50054 [19:05:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 03 70 1B 01 91 EE 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 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 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 A1 00 00 00 F4 03 04 00 90 97 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 86 C3 00 00 35 04 06 00 5B AA F8 11 CF 72 FF 38 FD DC D5 86 F8 61 [19:05:52]CheckFolder [19:05:52]dirname=/storage/ofd_packets [19:05:52]CheckFolder done [19:05:52]ProducePacketName [19:05:52]name=ofd_packets/00050054 [19:05:52]NVStorageSaveData ofd_packets/00050054 [19:05:52]File name is /storage/ofd_packets/00050054 [19:05:52]Write 321 bytes [19:05:52]NVStorageSaveData done [19:05:52]OFDSenderStorePacket done [19:05:52]KKMCreateOFDPacket done [19:05:52]NVStorageSaveData kkm_last_timestamp [19:05:52]File name is /storage/kkm_last_timestamp [19:05:52]Write 4 bytes [19:05:52]NVStorageSaveData done [19:05:52]ExternCall_PrintAddStr [19:05:52]wPrintStart [19:05:52]Write to MH i2c: 01 00 00 52 01 53 [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: 01 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: 01 07 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: 01 07 00 52 01 00 00 00 00 00 FF 0F 68 [19:05:52]RasterBufferAndPrint [19:05:52]line Счет N : (3)190180 [19:05:52]line ИНН: 02508201610067 [19:05:52]line Контрольно-Кассовый Чек [19:05:52]line ПРОДАЖА [19:05:52]line Товар: 4700000160211 [19:05:52]line Вода Легенда 0,5л [19:05:52]line 2.000 * 40.00 [19:05:52]line = 80.00 [19:05:52]line НДС 12% НСП 1% [19:05:52]line > о реализуемом товаре [19:05:52]line ИТОГО: 80.00 [19:05:52]line НСП 1% : 0.71 [19:05:52]line НДС 12% : 8.50 [19:05:52]line Наличными: 80.00 [19:05:52]line Безнал.: 0.00 [19:05:52]line Место: АЗС № 95 "Партнер Нефть" [19:05:52]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:05:52]line СНО: Общий режим [19:05:52]line Чек 161 19.08.2024 19:05 [19:05:52]line Смена: 467 ФФД: 1.0 [19:05:52]line ЗНМ: 0300000078 [19:05:52]line РНМ: 0000000000092546 [19:05:52]line Версия ККМ: 001 [19:05:52]line ФМ: 0000000000871800 [19:05:52]line ФД: 50054 [19:05:52]line ФПД: 100789864484722 [19:05:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T190552&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50054&fm=100789864484722&tin=02508201610067®Number=0000000000092546&sum=8000 [19:05:53]OFD Sender: Processing packet 50054 [packets to send 21, broken 20] [19:05:53]ProducePacketName [19:05:53]name=ofd_packets/00050054 [19:05:53]OFD Sender: To server: pG, [19:05:53]CommunicateWithHost lk.salyk.kg:30040 [19:05:53]ConnectInit lk.salyk.kg [19:05:53]line 0 [19:05:53]written 0, free lines is 4095 [19:05:53]Connected sock=10 [19:05:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 03 70 1B 01 91 EE 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 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 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 A1 00 00 00 F4 03 04 00 90 97 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 86 C3 00 00 35 04 06 00 5B AA F8 11 CF 72 FF 38 FD DC D5 86 F8 61 [19:05:53]Write to MH i2c: 01 00 00 7A 01 7B [19:05:53]Write i2c OK [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: 01 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: 01 07 00 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: 01 07 00 7A 01 00 00 00 00 00 E5 0C 73 [19:05:53]RasterBufferAndPrint [19:05:53]line [19:05:53]line [19:05:53]line [19:05:53]line [19:05:53]line [19:05:53]written 0, free lines is 3306 [19:05:53]MH_Cut [19:05:53]Write to MH i2c: D1 01 00 81 01 01 54 [19:05:53]Write i2c OK [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: D1 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: D1 01 00 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: D1 01 00 81 01 00 53 [19:05:53]Write to MH i2c: 01 00 00 82 01 83 [19:05:53]Write i2c OK [19:05:53]MH_I2C_Read... [19:05:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 78 21 47 00 9A 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 86 C3 00 00 F4 03 04 00 FD 41 C3 66 B6 04 01 00 00 75 33 E7 97 1D E8 2A 2A [19:05:53]CommunicateWithHost err = 0 [19:05:53]CheckOFDResponse [19:05:53]1017 (14) - 77093643461234 [19:05:53]1041 (16) - 0000000000871800 [19:05:53]1040 (4) - 50054 [19:05:53]1012 (4) - 19.08.2024 13:00 [19:05:53]1206 (1) - 0 [19:05:53]OFD Sender: Remove packet 50054 [19:05:53]ProducePacketName [19:05:53]name=ofd_packets/00050054 [19:05:53]NVStorageDeleteData [19:05:54]*** Cut start [19:05:54]*** Purtial cut [19:05:54]*** Stage 1: CUTSNS_PIN = 1 [19:05:54]OFD Sender: No OFD packet to send [19:05:54]Read from MH i2c: 01 [19:05:54]MH_I2C_Read... [19:05:54]*** Stop cut motor [19:05:54]*** Cut end [19:05:54]Read from MH i2c: 01 07 00 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 FF 0F 98 [19:05:54]process_action close_receipt done [19:05:54]requested_data is exist [19:05:54]produce_requested_data [19:05:54]requested_item fm.sn is exist - process it [19:05:54]wFMCommunicate request_size=4 [19:05:54]MH_SAM_APDU [19:05:54]CAPDU: 80 11 00 00 [19:05:54]Write to MH i2c: E2 08 00 83 01 80 11 00 00 00 00 00 00 FE [19:05:54]Write i2c OK [19:05:54]MH_I2C_Read... [19:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:54]Read from MH i2c: E2 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 17 00 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 17 00 83 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 49 [19:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:05:54]wFMCommunicate OK [19:05:54]requested_item fd.num is exist - process it [19:05:54]SAM_PROTO_GetFieldsCounters [19:05:54]wFMCommunicate request_size=4 [19:05:54]MH_SAM_APDU [19:05:54]CAPDU: 80 13 00 00 [19:05:54]Write to MH i2c: E2 08 00 84 01 80 13 00 00 00 00 00 00 01 [19:05:54]Write i2c OK [19:05:54]MH_I2C_Read... [19:05:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:54]Read from MH i2c: E2 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 62 00 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 62 00 84 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 86 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [19:05:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 86 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:54]wFMCommunicate OK [19:05:54]SAM_PROTO_GetFieldsCounters done [19:05:54]requested_item shift.num is exist - process it [19:05:54]requested_item shift.opened is exist - process it [19:05:54]req_shift_opened [19:05:54]FM_GetShiftState [19:05:54]SAM_PROTO_GetShiftState [19:05:54]wFMCommunicate request_size=4 [19:05:54]MH_SAM_APDU [19:05:54]CAPDU: 80 13 01 00 [19:05:54]Write to MH i2c: E2 08 00 85 01 80 13 01 00 00 00 00 00 03 [19:05:54]Write i2c OK [19:05:54]MH_I2C_Read... [19:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:54]Read from MH i2c: E2 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 0E 00 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 0E 00 85 01 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 BD [19:05:54]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:05:54]wFMCommunicate OK [19:05:54]SAM_PROTO_GetShiftState done [19:05:54]FM_GetShiftState done [19:05:54]req_shift_opened done [19:05:54]requested_item shift.open_date is exist - process it [19:05:54]req_shift_open_date [19:05:54]req_shift_open_date done [19:05:54]produce_requested_data done [19:05:54]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50054,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [19:05:54]process_action_free close_receipt [19:05:54]json_value_free [19:05:54]json_value_free done [19:05:54]process_json_proto returns [19:05:54]Send response to host [19:05:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50054,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [19:05:54]free response buf [19:05:54]execute_script done [19:05:54]execute_script returns [19:05:54]free content buf [19:05:54]Sock 8.Close socket [19:05:54]Sock 8.Thread stoped [19:05:59]OFD Sender: No OFD packet to send [19:06:04]OFD Sender: No OFD packet to send [19:06:09]OFD Sender: No OFD packet to send [19:06:14]OFD Sender: No OFD packet to send [19:06:19]OFD Sender: No OFD packet to send [19:06:24]OFD Sender: No OFD packet to send [19:06:29]OFD Sender: No OFD packet to send [19:06:34]OFD Sender: No OFD packet to send [19:06:39]OFD Sender: No OFD packet to send [19:06:44]OFD Sender: No OFD packet to send [19:06:49]OFD Sender: No OFD packet to send [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:04]OFD Sender: No OFD packet to send [19:08:09]OFD Sender: No OFD packet to send [19:08:14]OFD Sender: No OFD packet to send [19:08:19]OFD Sender: No OFD packet to send [19:08:24]OFD Sender: No OFD packet to send [19:08:29]OFD Sender: No OFD packet to send [19:08:34]OFD Sender: No OFD packet to send [19:08:39]OFD Sender: No OFD packet to send [19:08:44]OFD Sender: No OFD packet to send [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:08:59]OFD Sender: No OFD packet to send [19:09:04]OFD Sender: No OFD packet to send [19:09:09]OFD Sender: No OFD packet to send [19:09:14]OFD Sender: No OFD packet to send [19:09:19]OFD Sender: No OFD packet to send [19:09:24]OFD Sender: No OFD packet to send [19:09:29]OFD Sender: No OFD packet to send [19:09:34]OFD Sender: No OFD packet to send [19:09:39]OFD Sender: No OFD packet to send [19:09:44]OFD Sender: No OFD packet to send [19:09:49]OFD Sender: No OFD packet to send [19:09:54]OFD Sender: No OFD packet to send [19:09:59]OFD Sender: No OFD packet to send [19:10:04]OFD Sender: No OFD packet to send [19:10:09]OFD Sender: No OFD packet to send [19:10:14]OFD Sender: No OFD packet to send [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:19]OFD Sender: No OFD packet to send [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]accept exits with 9 [19:12:59]New connection [19:12:59]New thread 3066756452 created [19:12:59]Thread 3066899812 joined [19:12:59]Waiting for new connection... [19:12:59] Sock 9.Parse request [19:12:59]Sock 9.Check first char [19:12:59]Sock 9.First char is OK [19:12:59]request: POST /json_proto HTTP/1.0 [19:12:59]Method: POST [19:12:59]URL: /json_proto [19:12:59]Method is POST - this is cgi request [19:12:59]url: /json_proto [19:12:59]query_string will be loaded in cgi processing [19:12:59]execute_cgi json_proto POST (null) [19:12:59]execute_cgi path=json_proto method=POST [19:12:59]POST find Content-Length [19:12:59]Host: 172.17.46.196:8080 [19:12:59]Content-Length: 977 [19:12:59]Content-Type: application/json [19:12:59] [19:12:59]POST finish read [19:12:59]Found Content-Length = 977 [19:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190181", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227744", "name": "\u0416\u0435\u0432 \u043C\u0435\u043D\u0442\u043E\u0441 \u0431\u0430\u043D\u043A\u0430 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 8*6*54\u0433", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 375.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:59]execute_script... [19: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)190181", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227744", "name": "\u0416\u0435\u0432 \u043C\u0435\u043D\u0442\u043E\u0441 \u0431\u0430\u043D\u043A\u0430 \u0412\u0438\u043D\u043E\u0433\u0440\u0430\u0434 8*6*54\u0433", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 375.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:59]POST & json_proto [19:12:59]process_json_proto [19:12:59]json parsed OK: [19:12:59]protocol is kg_v1.0 [19:12:59]action value=close_receipt [19:12:59]process_action close_receipt [19:12:59]cmd_close_receipt [19:12:59]MH_GetDate [19:12:59]Write to MH i2c: F0 00 00 86 01 76 [19:12:59]Write i2c OK [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: F0 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: F0 09 00 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: F0 09 00 86 01 00 3C 99 C3 66 C4 85 C2 66 EE [19:12:59]GetLastDocTimeStamp 1724094352 [19:12:59]current date 1724094780 [19:12:59]FM_GetShiftState [19:12:59]SAM_PROTO_GetShiftState [19:12:59]wFMCommunicate request_size=4 [19:12:59]MH_SAM_APDU [19:12:59]CAPDU: 80 13 01 00 [19:12:59]Write to MH i2c: E2 08 00 87 01 80 13 01 00 00 00 00 00 05 [19:12:59]Write i2c OK [19:12:59]MH_I2C_Read... [19:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:59]Read from MH i2c: E2 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: E2 0E 00 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: E2 0E 00 87 01 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 BF [19:12:59]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:12:59]wFMCommunicate OK [19:12:59]SAM_PROTO_GetShiftState done [19:12:59]FM_GetShiftState done [19:12:59]opened in 1724026361 [19:12:59]opened+sec_in_day 1724112761 [19:12:59]quantity*price = 17000 [19:12:59]sum+1 = 17001 [19:12:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46227744 Жев ментос банка Виноград 8*6*54г 1.000 * 205.00 = 205.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 375.00 НСП 1% : 3.31 НДС 12% : 39.82 Наличными: 375.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 162 19.08.2024 19:13 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50055 ФПД: 67545133608379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T191300&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50055&fm=67545133608379&tin=02508201610067®Number=0000000000092546&sum=37500 0 [19:13:00]StoreToDocumentArchive [19:13:00]shift 467 fd 50055 [19:13:00]save to /storage/0467/doc_00050055 [19:13:00]save last doc name /storage/0467/doc_00050055 to /storage/kkm_last_doc_name [19:13:00]save OK [19:13:00]Clear old archive folders... [19:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=404 [19:13:00]tlvbuf is 01955F00 [19:13:00]SAM_PROTO_ClearQueue [19:13:00]wFMCommunicate request_size=4 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 09 00 00 [19:13:00]Write to MH i2c: E2 08 00 94 01 80 09 00 00 00 00 00 00 07 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 94 01 00 90 00 09 [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]SAM_PROTO_ClearQueue done [19:13:00]KKMCreateOFDPacket [19:13:00]OFDProtocolAddRootSTLVToBuf [19:13:00]FM_MakeSignedData [19:13:00]FM_MakeSignedData [19:13:00]SAM_PROTO_SignData [19:13:00]wFMCommunicate request_size=4 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 0D 01 02 [19:13:00]Write to MH i2c: E2 08 00 95 01 80 0D 01 02 00 00 00 00 0F [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]wFMCommunicate request_size=255 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 08 00 34 36 32 32 37 37 34 34 06 04 38 00 D0 96 D0 B5 D0 B2 20 D0 BC D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 38 2A 36 2A 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 [19:13:00]Write to MH i2c: E2 02 01 96 01 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 08 00 34 36 32 32 37 37 34 34 06 04 38 00 D0 96 D0 B5 D0 B2 20 D0 BC D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 38 2A 36 2A 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 C1 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]wFMCommunicate request_size=163 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 0D 02 02 9E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 3C 99 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 87 C3 00 00 35 04 06 00 3D 6E 93 B1 ED BB [19:13:00]Write to MH i2c: E2 A6 00 97 01 80 0D 02 02 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 3C 99 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 87 C3 00 00 35 04 06 00 3D 6E 93 B1 ED BB 00 00 D0 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:01]Read from MH i2c: E2 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: E2 03 00 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [19:13:01]RAPDU: 90 00 [19:13:01]wFMCommunicate OK [19:13:01]wFMCommunicate request_size=4 [19:13:01]MH_SAM_APDU [19:13:01]CAPDU: 80 0D 03 02 [19:13:01]Write to MH i2c: E2 08 00 98 01 80 0D 03 02 00 00 00 00 14 [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:01]Read from MH i2c: E2 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: E2 0B 00 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: E2 0B 00 98 01 00 52 F9 01 EC B1 D2 5C 35 90 00 61 [19:13:01]RAPDU: 52 F9 01 EC B1 D2 5C 35 90 00 [19:13:01]wFMCommunicate OK [19:13:01]SAM_PROTO_SignData done [19:13:01]FM_MakeSignedData done [19:13:01]CreateOFDProtocolMessage [19:13:01]wFMCommunicate request_size=4 [19:13:01]MH_SAM_APDU [19:13:01]CAPDU: 80 11 00 00 [19:13:01]Write to MH i2c: E2 08 00 99 01 80 11 00 00 00 00 00 00 14 [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:01]Read from MH i2c: E2 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: E2 17 00 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: E2 17 00 99 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5F [19:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:13:01]wFMCommunicate OK [19:13:01]CreateOFDProtocolMessage done [19:13:01]OFDSenderStorePacket 50055 [19:13:01]StoreOFDPacket docnum=50055 [19:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A8 01 00 00 53 DA A0 01 57 E9 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 08 00 34 36 32 32 37 37 34 34 06 04 38 00 D0 96 D0 B5 D0 B2 20 D0 BC D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 38 2A 36 2A 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 3C 99 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 87 C3 00 00 35 04 06 00 3D 6E 93 B1 ED BB 52 F9 01 EC B1 D2 5C 35 [19:13:01]CheckFolder [19:13:01]dirname=/storage/ofd_packets [19:13:01]CheckFolder done [19:13:01]ProducePacketName [19:13:01]name=ofd_packets/00050055 [19:13:01]NVStorageSaveData ofd_packets/00050055 [19:13:01]File name is /storage/ofd_packets/00050055 [19:13:01]Write 454 bytes [19:13:01]NVStorageSaveData done [19:13:01]OFDSenderStorePacket done [19:13:01]KKMCreateOFDPacket done [19:13:01]NVStorageSaveData kkm_last_timestamp [19:13:01]File name is /storage/kkm_last_timestamp [19:13:01]Write 4 bytes [19:13:01]NVStorageSaveData done [19:13:01]ExternCall_PrintAddStr [19:13:01]wPrintStart [19:13:01]Write to MH i2c: 01 00 00 9A 01 9B [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 07 00 [19:13:01]MH_I2C_Read... [19:13:01]OFD Sender: Processing packet 50055 [packets to send 21, broken 20] [19:13:01]ProducePacketName [19:13:01]name=ofd_packets/00050055 [19:13:01]Read from MH i2c: 01 OFD Sender: To server: pG, [19:13:01]07 CommunicateWithHost lk.salyk.kg:30040 [19:13:01]00 ConnectInit lk.salyk.kg [19:13:01]9A 01 00 00 00 00 00 FF 0F B0 [19:13:01]RasterBufferAndPrint [19:13:01]line Счет N : (3)190181 [19:13:01]line ИНН: 02508201610067 [19:13:01]line Контрольно-Кассовый Чек [19:13:01]line ПРОДАЖА [19:13:01]line Товар: 5449000000996 [19:13:01]line Напиток Кока-Кола 0,33л [19:13:01]line 2.000 * 85.00 [19:13:01]line = 170.00 [19:13:01]line НДС 12% НСП 1% [19:13:01]line > о реализуемом товаре [19:13:01]line Товар: 46227744 [19:13:01]line Жев ментос банка Виноград 8*6*54г [19:13:01]line 1.000 * 205.00 [19:13:01]line = 205.00 [19:13:01]line НДС 12% НСП 1% [19:13:01]line > о реализуемом товаре [19:13:01]line ИТОГО: 375.00 [19:13:01]line НСП 1% : 3.31 [19:13:01]line НДС 12% : 39.82 [19:13:01]line Наличными: 375.00 [19:13:01]line Безнал.: 0.00 [19:13:01]line Место: АЗС № 95 "Партнер Нефть" [19:13:01]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:13:01]line СНО: Общий режим [19:13:01]line Чек 162 19.08.2024 19:13 [19:13:01]line Смена: 467 ФФД: 1.0 [19:13:01]line ЗНМ: 0300000078 [19:13:01]line РНМ: 0000000000092546 [19:13:01]line Версия ККМ: 001 [19:13:01]line ФМ: 0000000000871800 [19:13:01]line ФД: 50055 [19:13:01]line ФПД: 67545133608379 [19:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T191300&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50055&fm=67545133608379&tin=02508201610067®Number=0000000000092546&sum=37500 [19:13:01]line 0 [19:13:01]written 0, free lines is 4095 [19:13:01]Connected sock=10 [19:13:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A8 01 00 00 53 DA A0 01 57 E9 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 08 00 34 36 32 32 37 37 34 34 06 04 38 00 D0 96 D0 B5 D0 B2 20 D0 BC D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 20 D0 92 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 38 2A 36 2A 35 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 92 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 0F 00 00 00 00 07 04 06 00 7C 92 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 3C 99 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 87 C3 00 00 35 04 06 00 3D 6E 93 B1 ED BB 52 F9 01 EC B1 D2 5C 35 [19:13:02]Write to MH i2c: 01 00 00 C9 01 CA [19:13:02]Write i2c OK [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: 01 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: 01 07 00 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: 01 07 00 C9 01 00 00 00 00 00 7E 0C 5B [19:13:02]RasterBufferAndPrint [19:13:02]line [19:13:02]line [19:13:02]line [19:13:02]line [19:13:02]line [19:13:02]written 0, free lines is 3205 [19:13:02]MH_Cut [19:13:02]Write to MH i2c: D1 01 00 D0 01 01 A3 [19:13:02]Write i2c OK [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: D1 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: D1 01 00 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: D1 01 00 D0 01 00 A2 [19:13:02]Write to MH i2c: 01 00 00 D1 01 D2 [19:13:02]Write i2c OK [19:13:02]MH_I2C_Read... [19:13:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 EC BF 47 00 35 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 87 C3 00 00 F4 03 04 00 A9 43 C3 66 B6 04 01 00 00 17 DF DE 63 C7 18 5A 59 [19:13:02]CommunicateWithHost err = 0 [19:13:02]CheckOFDResponse [19:13:02]1017 (14) - 77093643461234 [19:13:02]1041 (16) - 0000000000871800 [19:13:02]1040 (4) - 50055 [19:13:02]1012 (4) - 19.08.2024 13:07 [19:13:02]1206 (1) - 0 [19:13:02]OFD Sender: Remove packet 50055 [19:13:02]ProducePacketName [19:13:02]name=ofd_packets/00050055 [19:13:02]NVStorageDeleteData [19:13:02]OFD Sender: No OFD packet to send [19:13:02]*** Cut start [19:13:02]*** Purtial cut [19:13:02]*** CUTSNS_PIN = 0 [19:13:03]*** Stage 1: CUTSNS_PIN = 1 [19:13:04]Read from MH i2c: 01 [19:13:04]MH_I2C_Read... [19:13:04]*** Stop cut motor [19:13:04]*** Cut end [19:13:04]Read from MH i2c: 01 07 00 [19:13:04]MH_I2C_Read... [19:13:04]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 FF 0F E7 [19:13:04]process_action close_receipt done [19:13:04]requested_data is exist [19:13:04]produce_requested_data [19:13:04]requested_item fm.sn is exist - process it [19:13:04]wFMCommunicate request_size=4 [19:13:04]MH_SAM_APDU [19:13:04]CAPDU: 80 11 00 00 [19:13:04]Write to MH i2c: E2 08 00 D2 01 80 11 00 00 00 00 00 00 4D [19:13:04]Write i2c OK [19:13:04]MH_I2C_Read... [19:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:05]Read from MH i2c: E2 [19:13:05]MH_I2C_Read... [19:13:05]Read from MH i2c: E2 17 00 [19:13:05]MH_I2C_Read... [19:13:05]Read from MH i2c: E2 17 00 D2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 98 [19:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:13:05]wFMCommunicate OK [19:13:05]requested_item fd.num is exist - process it [19:13:05]SAM_PROTO_GetFieldsCounters [19:13:05]wFMCommunicate request_size=4 [19:13:05]MH_SAM_APDU [19:13:05]CAPDU: 80 13 00 00 [19:13:05]Write to MH i2c: E2 08 00 D3 01 80 13 00 00 00 00 00 00 50 [19:13:05]Write i2c OK [19:13:05]MH_I2C_Read... [19:13:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:05]Read from MH i2c: E2 [19:13:05]MH_I2C_Read... [19:13:05]Read from MH i2c: E2 62 00 [19:13:05]MH_I2C_Read... [19:13:05]Read from MH i2c: E2 62 00 D3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 87 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [19: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 87 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:05]wFMCommunicate OK [19:13:05]SAM_PROTO_GetFieldsCounters done [19:13:05]requested_item shift.num is exist - process it [19:13:05]requested_item shift.opened is exist - process it [19:13:05]req_shift_opened [19:13:05]FM_GetShiftState [19:13:05]SAM_PROTO_GetShiftState [19:13:05]wFMCommunicate request_size=4 [19:13:05]MH_SAM_APDU [19:13:05]CAPDU: 80 13 01 00 [19:13:05]Write to MH i2c: E2 08 00 D4 01 80 13 01 00 00 00 00 00 52 [19:13:05]Write i2c OK [19:13:05]MH_I2C_Read... [19:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:05]Read from MH i2c: E2 [19:13:05]MH_I2C_Read... [19:13:05]Read from MH i2c: E2 0E 00 [19:13:05]MH_I2C_Read... [19:13:05]Read from MH i2c: E2 0E 00 D4 01 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 0C [19:13:05]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:13:05]wFMCommunicate OK [19:13:05]SAM_PROTO_GetShiftState done [19:13:05]FM_GetShiftState done [19:13:05]req_shift_opened done [19:13:05]requested_item shift.open_date is exist - process it [19:13:05]req_shift_open_date [19:13:05]req_shift_open_date done [19:13:05]produce_requested_data done [19:13:05]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50055,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [19:13:05]process_action_free close_receipt [19:13:05]json_value_free [19:13:05]json_value_free done [19:13:05]process_json_proto returns [19:13:05]Send response to host [19:13:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50055,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [19:13:05]free response buf [19:13:05]execute_script done [19:13:05]execute_script returns [19:13:05]free content buf [19:13:05]Sock 9.Close socket [19:13:05]Sock 9.Thread stoped [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:51]accept exits with 8 [19:18:51]New connection [19:18:51]New thread 3066899812 created [19:18:51]Thread 3066756452 joined [19:18:51]Waiting for new connection... [19:18:51] Sock 8.Parse request [19:18:51]Sock 8.Check first char [19:18:51]Sock 8.First char is OK [19:18:51]request: POST /json_proto HTTP/1.0 [19:18:51]Method: POST [19:18:51]URL: /json_proto [19:18:51]Method is POST - this is cgi request [19:18:51]url: /json_proto [19:18:51]query_string will be loaded in cgi processing [19:18:51]execute_cgi json_proto POST (null) [19:18:51]execute_cgi path=json_proto method=POST [19:18:51]POST find Content-Length [19:18:51]Host: 172.17.46.196:8080 [19:18:51]Content-Length: 754 [19:18:51]Content-Type: application/json [19:18:51] [19:18:51]POST finish read [19:18:51]Found Content-Length = 754 [19:18:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11328111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116562", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:51]execute_script... [19:18: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)11328111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116562", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:51]POST & json_proto [19:18:51]process_json_proto [19:18:51]json parsed OK: [19:18:51]protocol is kg_v1.0 [19:18:51]action value=close_receipt [19:18:51]process_action close_receipt [19:18:51]cmd_close_receipt [19:18:51]MH_GetDate [19:18:51]Write to MH i2c: F0 00 00 D5 01 C5 [19:18:51]Write i2c OK [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: F0 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: F0 09 00 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: F0 09 00 D5 01 00 9C 9A C3 66 C4 85 C2 66 9E [19:18:51]GetLastDocTimeStamp 1724094780 [19:18:51]current date 1724095132 [19:18:51]FM_GetShiftState [19:18:51]SAM_PROTO_GetShiftState [19:18:51]wFMCommunicate request_size=4 [19:18:51]MH_SAM_APDU [19:18:51]CAPDU: 80 13 01 00 [19:18:51]Write to MH i2c: E2 08 00 D6 01 80 13 01 00 00 00 00 00 54 [19:18:51]Write i2c OK [19:18:51]MH_I2C_Read... [19:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:51]Read from MH i2c: E2 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: E2 0E 00 [19:18:51]MH_I2C_Read... [19:18:51]Read from MH i2c: E2 0E 00 D6 01 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 0E [19:18:51]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:18:51]wFMCommunicate OK [19:18:51]SAM_PROTO_GetShiftState done [19:18:51]FM_GetShiftState done [19:18:51]opened in 1724026361 [19:18:51]opened+sec_in_day 1724112761 [19:18:51]quantity*price = 0 [19:18:51]sum+1 = 1 [19:18:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 163 19.08.2024 19:18 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116562 ФМ: 0000000000871800 ФД: 50056 ФПД: 200282319582917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T191852&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50056&fm=200282319582917&tin=02508201610067®Number=0000000000092546&sum=0 [19:18:52]StoreToDocumentArchive [19:18:52]shift 467 fd 50056 [19:18:52]save to /storage/0467/doc_00050056 [19:18:52]save last doc name /storage/0467/doc_00050056 to /storage/kkm_last_doc_name [19:18:52]save OK [19:18:52]Clear old archive folders... [19:18:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:18:52]tlvbuf is 01961950 [19:18:52]SAM_PROTO_ClearQueue [19:18:52]wFMCommunicate request_size=4 [19:18:52]MH_SAM_APDU [19:18:52]CAPDU: 80 09 00 00 [19:18:52]Write to MH i2c: E2 08 00 E3 01 80 09 00 00 00 00 00 00 56 [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:52]Read from MH i2c: E2 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 03 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 03 00 E3 01 00 90 00 58 [19:18:52]RAPDU: 90 00 [19:18:52]wFMCommunicate OK [19:18:52]SAM_PROTO_ClearQueue done [19:18:52]KKMCreateOFDPacket [19:18:52]OFDProtocolAddRootSTLVToBuf [19:18:52]FM_MakeSignedData [19:18:52]FM_MakeSignedData [19:18:52]SAM_PROTO_SignData [19:18:52]wFMCommunicate request_size=4 [19:18:52]MH_SAM_APDU [19:18:52]CAPDU: 80 0D 01 02 [19:18:52]Write to MH i2c: E2 08 00 E4 01 80 0D 01 02 00 00 00 00 5E [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:52]Read from MH i2c: E2 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 03 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 03 00 E4 01 00 90 00 59 [19:18:52]RAPDU: 90 00 [19:18:52]wFMCommunicate OK [19:18:52]wFMCommunicate request_size=255 [19:18:52]MH_SAM_APDU [19:18:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 9C 9A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 88 C3 00 00 35 04 06 00 B6 27 DC 83 [19:18:52]Write to MH i2c: E2 02 01 E5 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 9C 9A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 88 C3 00 00 35 04 06 00 B6 27 DC 83 00 00 38 [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:52]Read from MH i2c: E2 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 03 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 03 00 E5 01 00 90 00 5A [19:18:52]RAPDU: 90 00 [19:18:52]wFMCommunicate OK [19:18:52]wFMCommunicate request_size=7 [19:18:52]MH_SAM_APDU [19:18:52]CAPDU: 80 0D 02 02 02 76 C5 [19:18:52]Write to MH i2c: E2 0A 00 E6 01 80 0D 02 02 02 00 76 C5 00 00 A0 [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:52]Read from MH i2c: E2 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 03 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [19:18:52]RAPDU: 90 00 [19:18:52]wFMCommunicate OK [19:18:52]wFMCommunicate request_size=4 [19:18:52]MH_SAM_APDU [19:18:52]CAPDU: 80 0D 03 02 [19:18:52]Write to MH i2c: E2 08 00 E7 01 80 0D 03 02 00 00 00 00 63 [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:52]OFD Sender: No OFD packet to send [19:18:52]Read from MH i2c: E2 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 0B 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 0B 00 E7 01 00 3E 31 8C CA 56 58 E0 B2 90 00 69 [19:18:52]RAPDU: 3E 31 8C CA 56 58 E0 B2 90 00 [19:18:52]wFMCommunicate OK [19:18:52]SAM_PROTO_SignData done [19:18:52]FM_MakeSignedData done [19:18:52]CreateOFDProtocolMessage [19:18:52]wFMCommunicate request_size=4 [19:18:52]MH_SAM_APDU [19:18:52]CAPDU: 80 11 00 00 [19:18:52]Write to MH i2c: E2 08 00 E8 01 80 11 00 00 00 00 00 00 63 [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:53]Read from MH i2c: E2 [19:18:53]MH_I2C_Read... [19:18:53]Read from MH i2c: E2 17 00 [19:18:53]MH_I2C_Read... [19:18:53]Read from MH i2c: E2 17 00 E8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AE [19:18:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:18:53]wFMCommunicate OK [19:18:53]CreateOFDProtocolMessage done [19:18:53]OFDSenderStorePacket 50056 [19:18:53]StoreOFDPacket docnum=50056 [19:18:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 3D 83 04 01 19 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 9C 9A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 88 C3 00 00 35 04 06 00 B6 27 DC 83 76 C5 3E 31 8C CA 56 58 E0 B2 [19:18:53]CheckFolder [19:18:53]dirname=/storage/ofd_packets [19:18:53]CheckFolder done [19:18:53]ProducePacketName [19:18:53]name=ofd_packets/00050056 [19:18:53]NVStorageSaveData ofd_packets/00050056 [19:18:53]File name is /storage/ofd_packets/00050056 [19:18:53]Write 298 bytes [19:18:53]NVStorageSaveData done [19:18:53]OFDSenderStorePacket done [19:18:53]KKMCreateOFDPacket done [19:18:53]NVStorageSaveData kkm_last_timestamp [19:18:53]File name is /storage/kkm_last_timestamp [19:18:53]Write 4 bytes [19:18:53]NVStorageSaveData done [19:18:53]ExternCall_PrintAddStr [19:18:53]wPrintStart [19:18:53]Write to MH i2c: 01 00 00 E9 01 EA [19:18:53]Write i2c OK [19:18:53]MH_I2C_Read... [19:18:53]Read from MH i2c: 01 [19:18:53]MH_I2C_Read... [19:18:53]Read from MH i2c: 01 07 00 [19:18:53]MH_I2C_Read... [19:18:53]Read from MH i2c: 01 07 00 E9 01 00 00 00 00 00 FF 0F FF [19:18:53]RasterBufferAndPrint [19:18:53]line Счет N : (1)11328111 [19:18:53]line ИНН: 02508201610067 [19:18:53]line Контрольно-Кассовый Чек [19:18:53]line ПРОДАЖА [19:18:53]line ТРК (МРК, ГНК) : 51 [19:18:53]line Товар: 2710194210 [19:18:53]line ДТ-К-5 [19:18:53]line 100.000 * 0.00 [19:18:53]line = 0.00 [19:18:53]line НДС 12% НСП 1% [19:18:53]line > о реализуемом товаре [19:18:53]line ИТОГО: 0.00 [19:18:53]line НСП 1% : 0.00 [19:18:53]line НДС 12% : 0.00 [19:18:53]line Наличными: 0.00 [19:18:53]line Безнал.: 0.00 [19:18:53]line Место: АЗС № 95 "Партнер Нефть" [19:18:53]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:18:53]line СНО: Общий режим [19:18:53]line Чек 163 19.08.2024 19:18 [19:18:53]line Смена: 467 ФФД: 1.0 [19:18:53]line ЗНМ: 0300000078 [19:18:53]line РНМ: 0000000000092546 [19:18:53]line Версия ККМ: 001 [19:18:53]line Талоны: ТК ГПНА Online [19:18:53]line 30116562 [19:18:53]line ФМ: 0000000000871800 [19:18:53]line ФД: 50056 [19:18:53]line ФПД: 200282319582917 [19:18:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T191852&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50056&fm=200282319582917&tin=02508201610067®Number=0000000000092546&sum=0 [19:18:53]OFD Sender: Processing packet 50056 [packets to send 21, broken 20] [19:18:53]ProducePacketName [19:18:53]name=ofd_packets/00050056 [19:18:53]OFD Sender: To server: pG, [19:18:53]CommunicateWithHost lk.salyk.kg:30040 [19:18:53]ConnectInit lk.salyk.kg [19:18:53]written 0, free lines is 4095 [19:18:53]Connected sock=11 [19:18:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 3D 83 04 01 19 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 9C 9A C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 88 C3 00 00 35 04 06 00 B6 27 DC 83 76 C5 3E 31 8C CA 56 58 E0 B2 [19:18:53]Write to MH i2c: 01 00 00 13 02 15 [19:18:53]Write i2c OK [19:18:53]MH_I2C_Read... [19:18:53]Read from MH i2c: 01 [19:18:53]MH_I2C_Read... [19:18:53]Read from MH i2c: 01 07 00 [19:18:53]MH_I2C_Read... [19:18:53]Read from MH i2c: 01 07 00 13 02 00 00 00 00 00 D1 0C F9 [19:18:53]RasterBufferAndPrint [19:18:53]line [19:18:53]line [19:18:53]line [19:18:53]line [19:18:53]line [19:18:53]written 0, free lines is 3287 [19:18:53]MH_Cut [19:18:53]Write to MH i2c: D1 01 00 1A 02 01 EE [19:18:53]Write i2c OK [19:18:53]MH_I2C_Read... [19:18:53]Read from MH i2c: D1 [19:18:53]MH_I2C_Read... [19:18:53]Read from MH i2c: D1 01 00 [19:18:53]MH_I2C_Read... [19:18:53]Read from MH i2c: D1 01 00 1A 02 00 ED [19:18:53]Write to MH i2c: 01 00 00 1B 02 1D [19:18:53]Write i2c OK [19:18:53]MH_I2C_Read... [19:18:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 2D 96 47 00 07 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 88 C3 00 00 F4 03 04 00 08 45 C3 66 B6 04 01 00 00 54 9F 05 72 A7 54 16 B2 [19:18:53]CommunicateWithHost err = 0 [19:18:53]CheckOFDResponse [19:18:53]1017 (14) - 77093643461234 [19:18:53]1041 (16) - 0000000000871800 [19:18:53]1040 (4) - 50056 [19:18:53]1012 (4) - 19.08.2024 13:13 [19:18:53]1206 (1) - 0 [19:18:53]OFD Sender: Remove packet 50056 [19:18:53]ProducePacketName [19:18:53]name=ofd_packets/00050056 [19:18:53]NVStorageDeleteData [19:18:54]OFD Sender: No OFD packet to send [19:18:54]*** Cut start [19:18:54]*** Purtial cut [19:18:54]*** Stage 1: CUTSNS_PIN = 1 [19:18:54]Read from MH i2c: 01 [19:18:54]MH_I2C_Read... [19:18:54]*** Stop cut motor [19:18:54]*** Cut end [19:18:54]Read from MH i2c: 01 07 00 [19:18:54]MH_I2C_Read... [19:18:54]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 FF 0F 32 [19:18:54]process_action close_receipt done [19:18:54]requested_data is exist [19:18:54]produce_requested_data [19:18:54]requested_item fm.sn is exist - process it [19:18:54]wFMCommunicate request_size=4 [19:18:54]MH_SAM_APDU [19:18:54]CAPDU: 80 11 00 00 [19:18:54]Write to MH i2c: E2 08 00 1C 02 80 11 00 00 00 00 00 00 98 [19:18:54]Write i2c OK [19:18:54]MH_I2C_Read... [19:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:54]Read from MH i2c: E2 [19:18:54]MH_I2C_Read... [19:18:54]Read from MH i2c: E2 17 00 [19:18:54]MH_I2C_Read... [19:18:54]Read from MH i2c: E2 17 00 1C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E3 [19:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:18:54]wFMCommunicate OK [19:18:54]requested_item fd.num is exist - process it [19:18:54]SAM_PROTO_GetFieldsCounters [19:18:54]wFMCommunicate request_size=4 [19:18:54]MH_SAM_APDU [19:18:54]CAPDU: 80 13 00 00 [19:18:54]Write to MH i2c: E2 08 00 1D 02 80 13 00 00 00 00 00 00 9B [19:18:54]Write i2c OK [19:18:54]MH_I2C_Read... [19:18:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:55]Read from MH i2c: E2 [19:18:55]MH_I2C_Read... [19:18:55]Read from MH i2c: E2 62 00 [19:18:55]MH_I2C_Read... [19:18:55]Read from MH i2c: E2 62 00 1D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 88 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [19:18:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 88 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:55]wFMCommunicate OK [19:18:55]SAM_PROTO_GetFieldsCounters done [19:18:55]requested_item shift.num is exist - process it [19:18:55]requested_item shift.opened is exist - process it [19:18:55]req_shift_opened [19:18:55]FM_GetShiftState [19:18:55]SAM_PROTO_GetShiftState [19:18:55]wFMCommunicate request_size=4 [19:18:55]MH_SAM_APDU [19:18:55]CAPDU: 80 13 01 00 [19:18:55]Write to MH i2c: E2 08 00 1E 02 80 13 01 00 00 00 00 00 9D [19:18:55]Write i2c OK [19:18:55]MH_I2C_Read... [19:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:55]Read from MH i2c: E2 [19:18:55]MH_I2C_Read... [19:18:55]Read from MH i2c: E2 0E 00 [19:18:55]MH_I2C_Read... [19:18:55]Read from MH i2c: E2 0E 00 1E 02 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 57 [19:18:55]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:18:55]wFMCommunicate OK [19:18:55]SAM_PROTO_GetShiftState done [19:18:55]FM_GetShiftState done [19:18:55]req_shift_opened done [19:18:55]requested_item shift.open_date is exist - process it [19:18:55]req_shift_open_date [19:18:55]req_shift_open_date done [19:18:55]produce_requested_data done [19:18:55]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50056,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [19:18:55]process_action_free close_receipt [19:18:55]json_value_free [19:18:55]json_value_free done [19:18:55]process_json_proto returns [19:18:55]Send response to host [19:18:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50056,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [19:18:55]free response buf [19:18:55]execute_script done [19:18:55]execute_script returns [19:18:55]free content buf [19:18:55]Sock 8.Close socket [19:18:55]Sock 8.Thread stoped [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:26]accept exits with 9 [19:22:26]New connection [19:22:26]New thread 3066756452 created [19:22:26]Thread 3066899812 joined [19:22:26]Waiting for new connection... [19:22:26] Sock 9.Parse request [19:22:26]Sock 9.Check first char [19:22:26]Sock 9.First char is OK [19:22:26]request: POST /json_proto HTTP/1.0 [19:22:26]Method: POST [19:22:26]URL: /json_proto [19:22:26]Method is POST - this is cgi request [19:22:26]url: /json_proto [19:22:26]query_string will be loaded in cgi processing [19:22:26]execute_cgi json_proto POST (null) [19:22:26]execute_cgi path=json_proto method=POST [19:22:26]POST find Content-Length [19:22:26]Host: 172.17.46.196:8080 [19:22:26]Content-Length: 754 [19:22:26]Content-Type: application/json [19:22:26] [19:22:26]POST finish read [19:22:26]Found Content-Length = 754 [19:22:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11328116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116562", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:26]execute_script... [19:22:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11328116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116562", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:26]POST & json_proto [19:22:26]process_json_proto [19:22:26]json parsed OK: [19:22:26]protocol is kg_v1.0 [19:22:26]action value=close_receipt [19:22:26]process_action close_receipt [19:22:26]cmd_close_receipt [19:22:26]MH_GetDate [19:22:26]Write to MH i2c: F0 00 00 1F 02 10 [19:22:26]Write i2c OK [19:22:26]MH_I2C_Read... [19:22:26]Read from MH i2c: F0 [19:22:26]MH_I2C_Read... [19:22:26]Read from MH i2c: F0 09 00 [19:22:26]MH_I2C_Read... [19:22:26]Read from MH i2c: F0 09 00 1F 02 00 73 9B C3 66 C4 85 C2 66 C1 [19:22:26]GetLastDocTimeStamp 1724095132 [19:22:26]current date 1724095347 [19:22:26]FM_GetShiftState [19:22:26]SAM_PROTO_GetShiftState [19:22:26]wFMCommunicate request_size=4 [19:22:26]MH_SAM_APDU [19:22:26]CAPDU: 80 13 01 00 [19:22:26]Write to MH i2c: E2 08 00 20 02 80 13 01 00 00 00 00 00 9F [19:22:26]Write i2c OK [19:22:26]MH_I2C_Read... [19:22:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:26]Read from MH i2c: E2 [19:22:26]MH_I2C_Read... [19:22:26]Read from MH i2c: E2 0E 00 [19:22:26]MH_I2C_Read... [19:22:26]Read from MH i2c: E2 0E 00 20 02 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 59 [19:22:26]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:22:26]wFMCommunicate OK [19:22:26]SAM_PROTO_GetShiftState done [19:22:26]FM_GetShiftState done [19:22:26]opened in 1724026361 [19:22:26]opened+sec_in_day 1724112761 [19:22:26]quantity*price = 0 [19:22:26]sum+1 = 1 [19:22:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 164 19.08.2024 19:22 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116562 ФМ: 0000000000871800 ФД: 50057 ФПД: 279102845341913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T192227&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50057&fm=279102845341913&tin=02508201610067®Number=0000000000092546&sum=0 [19:22:27]StoreToDocumentArchive [19:22:27]shift 467 fd 50057 [19:22:27]save to /storage/0467/doc_00050057 [19:22:27]save last doc name /storage/0467/doc_00050057 to /storage/kkm_last_doc_name [19:22:27]save OK [19:22:27]Clear old archive folders... [19:22:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:22:27]tlvbuf is 01961950 [19:22:27]SAM_PROTO_ClearQueue [19:22:27]wFMCommunicate request_size=4 [19:22:27]MH_SAM_APDU [19:22:27]CAPDU: 80 09 00 00 [19:22:27]Write to MH i2c: E2 08 00 2D 02 80 09 00 00 00 00 00 00 A1 [19:22:27]Write i2c OK [19:22:27]MH_I2C_Read... [19:22:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:27]Read from MH i2c: E2 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: E2 03 00 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: E2 03 00 2D 02 00 90 00 A3 [19:22:27]RAPDU: 90 00 [19:22:27]wFMCommunicate OK [19:22:27]SAM_PROTO_ClearQueue done [19:22:27]KKMCreateOFDPacket [19:22:27]OFDProtocolAddRootSTLVToBuf [19:22:27]FM_MakeSignedData [19:22:27]FM_MakeSignedData [19:22:27]SAM_PROTO_SignData [19:22:27]wFMCommunicate request_size=4 [19:22:27]MH_SAM_APDU [19:22:27]CAPDU: 80 0D 01 02 [19:22:27]Write to MH i2c: E2 08 00 2E 02 80 0D 01 02 00 00 00 00 A9 [19:22:27]Write i2c OK [19:22:27]MH_I2C_Read... [19:22:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:27]Read from MH i2c: E2 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: E2 03 00 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: E2 03 00 2E 02 00 90 00 A4 [19:22:27]RAPDU: 90 00 [19:22:27]wFMCommunicate OK [19:22:27]wFMCommunicate request_size=255 [19:22:27]MH_SAM_APDU [19:22:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 73 9B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 89 C3 00 00 35 04 06 00 FD D7 B1 F3 [19:22:27]Write to MH i2c: E2 02 01 2F 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 73 9B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 89 C3 00 00 35 04 06 00 FD D7 B1 F3 00 00 99 [19:22:27]Write i2c OK [19:22:27]MH_I2C_Read... [19:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:27]Read from MH i2c: E2 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: E2 03 00 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: E2 03 00 2F 02 00 90 00 A5 [19:22:27]RAPDU: 90 00 [19:22:27]wFMCommunicate OK [19:22:27]wFMCommunicate request_size=7 [19:22:27]MH_SAM_APDU [19:22:27]CAPDU: 80 0D 02 02 02 D0 D9 [19:22:27]Write to MH i2c: E2 0A 00 30 02 80 0D 02 02 02 00 D0 D9 00 00 59 [19:22:27]Write i2c OK [19:22:27]MH_I2C_Read... [19:22:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:27]Read from MH i2c: E2 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: E2 03 00 [19:22:27]MH_I2C_Read... [19:22:27]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [19:22:27]RAPDU: 90 00 [19:22:27]wFMCommunicate OK [19:22:27]wFMCommunicate request_size=4 [19:22:27]MH_SAM_APDU [19:22:27]CAPDU: 80 0D 03 02 [19:22:27]Write to MH i2c: E2 08 00 31 02 80 0D 03 02 00 00 00 00 AE [19:22:27]Write i2c OK [19:22:27]MH_I2C_Read... [19:22:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:28]Read from MH i2c: E2 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 0B 00 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 0B 00 31 02 00 29 E7 BC D2 BB CD B4 5A 90 00 E3 [19:22:28]RAPDU: 29 E7 BC D2 BB CD B4 5A 90 00 [19:22:28]wFMCommunicate OK [19:22:28]SAM_PROTO_SignData done [19:22:28]FM_MakeSignedData done [19:22:28]CreateOFDProtocolMessage [19:22:28]wFMCommunicate request_size=4 [19:22:28]MH_SAM_APDU [19:22:28]CAPDU: 80 11 00 00 [19:22:28]Write to MH i2c: E2 08 00 32 02 80 11 00 00 00 00 00 00 AE [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:28]Read from MH i2c: E2 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 17 00 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 17 00 32 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F9 [19:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:22:28]wFMCommunicate OK [19:22:28]CreateOFDProtocolMessage done [19:22:28]OFDSenderStorePacket 50057 [19:22:28]StoreOFDPacket docnum=50057 [19:22:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 90 63 04 01 F4 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 73 9B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 89 C3 00 00 35 04 06 00 FD D7 B1 F3 D0 D9 29 E7 BC D2 BB CD B4 5A [19:22:28]CheckFolder [19:22:28]dirname=/storage/ofd_packets [19:22:28]CheckFolder done [19:22:28]ProducePacketName [19:22:28]name=ofd_packets/00050057 [19:22:28]NVStorageSaveData ofd_packets/00050057 [19:22:28]File name is /storage/ofd_packets/00050057 [19:22:28]Write 298 bytes [19:22:28]NVStorageSaveData done [19:22:28]OFDSenderStorePacket done [19:22:28]KKMCreateOFDPacket done [19:22:28]NVStorageSaveData kkm_last_timestamp [19:22:28]File name is /storage/kkm_last_timestamp [19:22:28]Write 4 bytes [19:22:28]NVStorageSaveData done [19:22:28]ExternCall_PrintAddStr [19:22:28]wPrintStart [19:22:28]Write to MH i2c: 01 00 00 33 02 35 [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: 01 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: 01 07 00 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: 01 07 00 33 02 00 00 00 00 00 FF 0F 4A [19:22:28]RasterBufferAndPrint [19:22:28]line Счет N : (1)11328116 [19:22:28]line ИНН: 02508201610067 [19:22:28]line Контрольно-Кассовый Чек [19:22:28]line ПРОДАЖА [19:22:28]line ТРК (МРК, ГНК) : 51 [19:22:28]line Товар: 2710194210 [19:22:28]line ДТ-К-5 [19:22:28]line 100.000 * 0.00 [19:22:28]line = 0.00 [19:22:28]line НДС 12% НСП 1% [19:22:28]line > о реализуемом товаре [19:22:28]line ИТОГО: 0.00 [19:22:28]line НСП 1% : 0.00 [19:22:28]line НДС 12% : 0.00 [19:22:28]line Наличными: 0.00 [19:22:28]line Безнал.: 0.00 [19:22:28]line Место: АЗС № 95 "Партнер Нефть" [19:22:28]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:22:28]line СНО: Общий режим [19:22:28]line Чек 164 19.08.2024 19:22 [19:22:28]line Смена: 467 ФФД: 1.0 [19:22:28]line ЗНМ: 0300000078 [19:22:28]line РНМ: 0000000000092546 [19:22:28]line Версия ККМ: 001 [19:22:28]line Талоны: ТК ГПНА Online [19:22:28]line 30116562 [19:22:28]line ФМ: 0000000000871800 [19:22:28]line ФД: 50057 [19:22:28]line ФПД: 279102845341913 [19:22:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T192227&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50057&fm=279102845341913&tin=02508201610067®Number=0000000000092546&sum=0 [19:22:28]OFD Sender: Processing packet 50057 [packets to send 21, broken 20] [19:22:28]ProducePacketName [19:22:28]name=ofd_packets/00050057 [19:22:28]OFD Sender: To server: pG, [19:22:28]CommunicateWithHost lk.salyk.kg:30040 [19:22:28]ConnectInit lk.salyk.kg [19:22:28]written 0, free lines is 4095 [19:22:28]Connected sock=10 [19:22:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 90 63 04 01 F4 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 73 9B C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 89 C3 00 00 35 04 06 00 FD D7 B1 F3 D0 D9 29 E7 BC D2 BB CD B4 5A [19:22:28]Write to MH i2c: 01 00 00 5D 02 5F [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: 01 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: 01 07 00 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: 01 07 00 5D 02 00 00 00 00 00 CF 0C 41 [19:22:28]RasterBufferAndPrint [19:22:28]line [19:22:28]line [19:22:28]line [19:22:28]line [19:22:28]line [19:22:28]written 0, free lines is 3285 [19:22:28]MH_Cut [19:22:28]Write to MH i2c: D1 01 00 64 02 01 38 [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: D1 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: D1 01 00 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: D1 01 00 64 02 00 37 [19:22:28]Write to MH i2c: 01 00 00 65 02 67 [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E6 52 47 00 7F 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 89 C3 00 00 F4 03 04 00 E0 45 C3 66 B6 04 01 00 00 E2 20 2B 90 B2 64 11 37 [19:22:29]CommunicateWithHost err = 0 [19:22:29]CheckOFDResponse [19:22:29]1017 (14) - 77093643461234 [19:22:29]1041 (16) - 0000000000871800 [19:22:29]1040 (4) - 50057 [19:22:29]1012 (4) - 19.08.2024 13:17 [19:22:29]1206 (1) - 0 [19:22:29]OFD Sender: Remove packet 50057 [19:22:29]ProducePacketName [19:22:29]name=ofd_packets/00050057 [19:22:29]NVStorageDeleteData [19:22:29]OFD Sender: No OFD packet to send [19:22:29]*** Cut start [19:22:29]*** Purtial cut [19:22:29]*** CUTSNS_PIN = 0 [19:22:29]*** Stage 1: CUTSNS_PIN = 1 [19:22:31]Read from MH i2c: 01 [19:22:31]MH_I2C_Read... [19:22:31]*** Stop cut motor [19:22:31]*** Cut end [19:22:31]Read from MH i2c: 01 07 00 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: 01 07 00 65 02 00 00 00 00 00 FF 0F 7C [19:22:31]process_action close_receipt done [19:22:31]requested_data is exist [19:22:31]produce_requested_data [19:22:31]requested_item fm.sn is exist - process it [19:22:31]wFMCommunicate request_size=4 [19:22:31]MH_SAM_APDU [19:22:31]CAPDU: 80 11 00 00 [19:22:31]Write to MH i2c: E2 08 00 66 02 80 11 00 00 00 00 00 00 E2 [19:22:31]Write i2c OK [19:22:31]MH_I2C_Read... [19:22:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:31]Read from MH i2c: E2 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 17 00 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 17 00 66 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2D [19:22:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:22:31]wFMCommunicate OK [19:22:31]requested_item fd.num is exist - process it [19:22:31]SAM_PROTO_GetFieldsCounters [19:22:31]wFMCommunicate request_size=4 [19:22:31]MH_SAM_APDU [19:22:31]CAPDU: 80 13 00 00 [19:22:31]Write to MH i2c: E2 08 00 67 02 80 13 00 00 00 00 00 00 E5 [19:22:31]Write i2c OK [19:22:31]MH_I2C_Read... [19:22:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:31]Read from MH i2c: E2 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 62 00 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 62 00 67 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 89 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [19:22:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 89 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:22:31]wFMCommunicate OK [19:22:31]SAM_PROTO_GetFieldsCounters done [19:22:31]requested_item shift.num is exist - process it [19:22:31]requested_item shift.opened is exist - process it [19:22:31]req_shift_opened [19:22:31]FM_GetShiftState [19:22:31]SAM_PROTO_GetShiftState [19:22:31]wFMCommunicate request_size=4 [19:22:31]MH_SAM_APDU [19:22:31]CAPDU: 80 13 01 00 [19:22:31]Write to MH i2c: E2 08 00 68 02 80 13 01 00 00 00 00 00 E7 [19:22:31]Write i2c OK [19:22:31]MH_I2C_Read... [19:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:31]Read from MH i2c: E2 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 0E 00 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 0E 00 68 02 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A1 [19:22:31]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:22:31]wFMCommunicate OK [19:22:31]SAM_PROTO_GetShiftState done [19:22:31]FM_GetShiftState done [19:22:31]req_shift_opened done [19:22:31]requested_item shift.open_date is exist - process it [19:22:31]req_shift_open_date [19:22:31]req_shift_open_date done [19:22:31]produce_requested_data done [19:22:31]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50057,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [19:22:31]process_action_free close_receipt [19:22:31]json_value_free [19:22:31]json_value_free done [19:22:31]process_json_proto returns [19:22:31]Send response to host [19:22:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50057,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [19:22:31]free response buf [19:22:31]execute_script done [19:22:31]execute_script returns [19:22:31]free content buf [19:22:31]Sock 9.Close socket [19:22:31]Sock 9.Thread stoped [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:29]OFD Sender: No OFD packet to send [19:24:34]OFD Sender: No OFD packet to send [19:24:39]OFD Sender: No OFD packet to send [19:24:44]OFD Sender: No OFD packet to send [19:24:49]OFD Sender: No OFD packet to send [19:24:54]OFD Sender: No OFD packet to send [19:24:59]OFD Sender: No OFD packet to send [19:25:04]OFD Sender: No OFD packet to send [19:25:09]OFD Sender: No OFD packet to send [19:25:14]OFD Sender: No OFD packet to send [19:25:19]OFD Sender: No OFD packet to send [19:25:24]OFD Sender: No OFD packet to send [19:25:29]OFD Sender: No OFD packet to send [19:25:34]OFD Sender: No OFD packet to send [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:43]accept exits with 8 [19:27:43]New connection [19:27:43]New thread 3066899812 created [19:27:43]Thread 3066756452 joined [19:27:43]Waiting for new connection... [19:27:43] Sock 8.Parse request [19:27:43]Sock 8.Check first char [19:27:43]Sock 8.First char is OK [19:27:43]request: POST /json_proto HTTP/1.0 [19:27:43]Method: POST [19:27:43]URL: /json_proto [19:27:43]Method is POST - this is cgi request [19:27:43]url: /json_proto [19:27:43]query_string will be loaded in cgi processing [19:27:43]execute_cgi json_proto POST (null) [19:27:43]execute_cgi path=json_proto method=POST [19:27:43]POST find Content-Length [19:27:43]Host: 172.17.46.196:8080 [19:27:43]Content-Length: 621 [19:27:43]Content-Type: application/json [19:27:43] [19:27:43]POST finish read [19:27:43]Found Content-Length = 621 [19:27:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190182", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:43]execute_script... [19:27:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190182", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:43]POST & json_proto [19:27:43]process_json_proto [19:27:43]json parsed OK: [19:27:43]protocol is kg_v1.0 [19:27:43]action value=close_receipt [19:27:43]process_action close_receipt [19:27:43]cmd_close_receipt [19:27:43]MH_GetDate [19:27:43]Write to MH i2c: F0 00 00 69 02 5A [19:27:43]Write i2c OK [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: F0 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: F0 09 00 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: F0 09 00 69 02 00 B0 9C C3 66 C4 85 C2 66 49 [19:27:43]GetLastDocTimeStamp 1724095347 [19:27:43]current date 1724095664 [19:27:43]FM_GetShiftState [19:27:43]SAM_PROTO_GetShiftState [19:27:43]wFMCommunicate request_size=4 [19:27:43]MH_SAM_APDU [19:27:43]CAPDU: 80 13 01 00 [19:27:43]Write to MH i2c: E2 08 00 6A 02 80 13 01 00 00 00 00 00 E9 [19:27:43]Write i2c OK [19:27:43]MH_I2C_Read... [19:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:43]Read from MH i2c: E2 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 0E 00 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 0E 00 6A 02 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A3 [19:27:43]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:27:43]wFMCommunicate OK [19:27:43]SAM_PROTO_GetShiftState done [19:27:43]FM_GetShiftState done [19:27:43]opened in 1724026361 [19:27:43]opened+sec_in_day 1724112761 [19:27:43]quantity*price = 14000 [19:27:43]sum+1 = 14001 [19:27:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 165 19.08.2024 19:27 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50058 ФПД: 132559143869516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T192744&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50058&fm=132559143869516&tin=02508201610067®Number=0000000000092546&sum=14000 0 [19:27:44]StoreToDocumentArchive [19:27:44]shift 467 fd 50058 [19:27:44]save to /storage/0467/doc_00050058 [19:27:44]save last doc name /storage/0467/doc_00050058 to /storage/kkm_last_doc_name [19:27:44]save OK [19:27:44]Clear old archive folders... [19:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:27:44]tlvbuf is 019532B0 [19:27:44]SAM_PROTO_ClearQueue [19:27:44]wFMCommunicate request_size=4 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 09 00 00 [19:27:44]Write to MH i2c: E2 08 00 77 02 80 09 00 00 00 00 00 00 EB [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [19:27:44]RAPDU: 90 00 [19:27:44]wFMCommunicate OK [19:27:44]SAM_PROTO_ClearQueue done [19:27:44]KKMCreateOFDPacket [19:27:44]OFDProtocolAddRootSTLVToBuf [19:27:44]FM_MakeSignedData [19:27:44]FM_MakeSignedData [19:27:44]SAM_PROTO_SignData [19:27:44]wFMCommunicate request_size=4 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 0D 01 02 [19:27:44]Write to MH i2c: E2 08 00 78 02 80 0D 01 02 00 00 00 00 F3 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [19:27:44]RAPDU: 90 00 [19:27:44]wFMCommunicate OK [19:27:44]wFMCommunicate request_size=255 [19:27:44]MH_SAM_APDU [19:27: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 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B0 9C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [19:27:44]Write to MH i2c: E2 02 01 79 02 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B0 9C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 D7 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [19:27:44]RAPDU: 90 00 [19:27:44]wFMCommunicate OK [19:27:44]wFMCommunicate request_size=32 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 8A C3 00 00 35 04 06 00 78 8F D4 AE 9C 4C [19:27:44]Write to MH i2c: E2 23 00 7A 02 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 8A C3 00 00 35 04 06 00 78 8F D4 AE 9C 4C 00 00 09 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [19:27:44]RAPDU: 90 00 [19:27:44]wFMCommunicate OK [19:27:44]wFMCommunicate request_size=4 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 0D 03 02 [19:27:44]Write to MH i2c: E2 08 00 7B 02 80 0D 03 02 00 00 00 00 F8 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 0B 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 0B 00 7B 02 00 2A 65 51 B8 C6 7C FB A1 90 00 6F [19:27:44]RAPDU: 2A 65 51 B8 C6 7C FB A1 90 00 [19:27:44]wFMCommunicate OK [19:27:44]SAM_PROTO_SignData done [19:27:44]FM_MakeSignedData done [19:27:44]CreateOFDProtocolMessage [19:27:44]wFMCommunicate request_size=4 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 11 00 00 [19:27:44]Write to MH i2c: E2 08 00 7C 02 80 11 00 00 00 00 00 00 F8 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 17 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 17 00 7C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 43 [19:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:27:44]wFMCommunicate OK [19:27:44]CreateOFDProtocolMessage done [19:27:44]OFDSenderStorePacket 50058 [19:27:44]StoreOFDPacket docnum=50058 [19:27:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 9F 73 1D 01 5B 2B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B0 9C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8A C3 00 00 35 04 06 00 78 8F D4 AE 9C 4C 2A 65 51 B8 C6 7C FB A1 [19:27:44]CheckFolder [19:27:44]dirname=/storage/ofd_packets [19:27:44]CheckFolder done [19:27:44]ProducePacketName [19:27:44]name=ofd_packets/00050058 [19:27:44]NVStorageSaveData ofd_packets/00050058 [19:27:44]File name is /storage/ofd_packets/00050058 [19:27:44]Write 323 bytes [19:27:44]NVStorageSaveData done [19:27:44]OFDSenderStorePacket done [19:27:44]KKMCreateOFDPacket done [19:27:44]NVStorageSaveData kkm_last_timestamp [19:27:44]File name is /storage/kkm_last_timestamp [19:27:44]Write 4 bytes [19:27:44]NVStorageSaveData done [19:27:44]ExternCall_PrintAddStr [19:27:44]wPrintStart [19:27:44]Write to MH i2c: 01 00 00 7D 02 7F [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 07 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 07 00 7D 02 00 00 00 00 00 FF 0F 94 [19:27:44]RasterBufferAndPrint [19:27:44]line Счет N : (3)190182 [19:27:44]line ИНН: 02508201610067 [19:27:44]line Контрольно-Кассовый Чек [19:27:44]line ПРОДАЖА [19:27:44]line Товар: 48743570 [19:27:44]line Сигареты Winston XStyle Blue [19:27:44]line 1.000 * 140.00 [19:27:44]line = 140.00 [19:27:44]line НДС 12% НСП 1% [19:27:44]line > о реализуемом товаре [19:27:44]line ИТОГО: 140.00 [19:27:44]line НСП 1% : 1.24 [19:27:44]line НДС 12% : 14.87 [19:27:44]line Наличными: 140.00 [19:27:44]line Безнал.: 0.00 [19:27:44]line Место: АЗС № 95 "Партнер Нефть" [19:27:44]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:27:44]line СНО: Общий режим [19:27:44]line Чек 165 19.08.2024 19:27 [19:27:44]line Смена: 467 ФФД: 1.0 [19:27:44]line ЗНМ: 0300000078 [19:27:44]line РНМ: 0000000000092546 [19:27:44]line Версия ККМ: 001 [19:27:44]line ФМ: 0000000000871800 [19:27:44]line ФД: 50058 [19:27:44]line ФПД: 132559143869516 [19:27:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T192744&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50058&fm=132559143869516&tin=02508201610067®Number=0000000000092546&sum=14000 [19:27:45]OFD Sender: Processing packet 50058 [packets to send 21, broken 20] [19:27:45]ProducePacketName [19:27:45]name=ofd_packets/00050058 [19:27:45]OFD Sender: To server: pG, [19:27:45]CommunicateWithHost lk.salyk.kg:30040 [19:27:45]ConnectInit lk.salyk.kg [19:27:45]line 0 [19:27:45]written 0, free lines is 4095 [19:27:45]Connected sock=9 [19:27:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 9F 73 1D 01 5B 2B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 B0 9C C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8A C3 00 00 35 04 06 00 78 8F D4 AE 9C 4C 2A 65 51 B8 C6 7C FB A1 [19:27:45]Write to MH i2c: 01 00 00 A5 02 A7 [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: 01 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: 01 07 00 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: 01 07 00 A5 02 00 00 00 00 00 D5 0C 8F [19:27:45]RasterBufferAndPrint [19:27:45]line [19:27:45]line [19:27:45]line [19:27:45]line [19:27:45]line [19:27:45]written 0, free lines is 3291 [19:27:45]MH_Cut [19:27:45]Write to MH i2c: D1 01 00 AC 02 01 80 [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: D1 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: D1 01 00 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: D1 01 00 AC 02 00 7F [19:27:45]Write to MH i2c: 01 00 00 AD 02 AF [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 23 CE 47 00 B1 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8A C3 00 00 F4 03 04 00 1C 47 C3 66 B6 04 01 00 00 C0 AF C5 0B 67 3A 0E 2E [19:27:45]CommunicateWithHost err = 0 [19:27:45]CheckOFDResponse [19:27:45]1017 (14) - 77093643461234 [19:27:45]1041 (16) - 0000000000871800 [19:27:45]1040 (4) - 50058 [19:27:45]1012 (4) - 19.08.2024 13:22 [19:27:45]1206 (1) - 0 [19:27:45]OFD Sender: Remove packet 50058 [19:27:45]ProducePacketName [19:27:45]name=ofd_packets/00050058 [19:27:45]NVStorageDeleteData [19:27:46]OFD Sender: No OFD packet to send [19:27:46]*** Cut start [19:27:46]*** Purtial cut [19:27:46]*** Stage 1: CUTSNS_PIN = 1 [19:27:46]Read from MH i2c: 01 [19:27:46]MH_I2C_Read... [19:27:46]*** Stop cut motor [19:27:46]*** Cut end [19:27:46]Read from MH i2c: 01 07 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: 01 07 00 AD 02 00 00 00 00 00 FF 0F C4 [19:27:46]process_action close_receipt done [19:27:46]requested_data is exist [19:27:46]produce_requested_data [19:27:46]requested_item fm.sn is exist - process it [19:27:46]wFMCommunicate request_size=4 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 11 00 00 [19:27:46]Write to MH i2c: E2 08 00 AE 02 80 11 00 00 00 00 00 00 2A [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 17 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 17 00 AE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 75 [19:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:27:46]wFMCommunicate OK [19:27:46]requested_item fd.num is exist - process it [19:27:46]SAM_PROTO_GetFieldsCounters [19:27:46]wFMCommunicate request_size=4 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 13 00 00 [19:27:46]Write to MH i2c: E2 08 00 AF 02 80 13 00 00 00 00 00 00 2D [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 62 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 62 00 AF 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8A C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [19:27:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8A C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:46]wFMCommunicate OK [19:27:46]SAM_PROTO_GetFieldsCounters done [19:27:46]requested_item shift.num is exist - process it [19:27:46]requested_item shift.opened is exist - process it [19:27:46]req_shift_opened [19:27:46]FM_GetShiftState [19:27:46]SAM_PROTO_GetShiftState [19:27:46]wFMCommunicate request_size=4 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 13 01 00 [19:27:46]Write to MH i2c: E2 08 00 B0 02 80 13 01 00 00 00 00 00 2F [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 0E 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 0E 00 B0 02 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 E9 [19:27:46]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:27:46]wFMCommunicate OK [19:27:46]SAM_PROTO_GetShiftState done [19:27:46]FM_GetShiftState done [19:27:46]req_shift_opened done [19:27:46]requested_item shift.open_date is exist - process it [19:27:46]req_shift_open_date [19:27:46]req_shift_open_date done [19:27:46]produce_requested_data done [19:27:46]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50058,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [19:27:46]process_action_free close_receipt [19:27:46]json_value_free [19:27:46]json_value_free done [19:27:46]process_json_proto returns [19:27:46]Send response to host [19:27:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50058,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [19:27:46]free response buf [19:27:46]execute_script done [19:27:46]execute_script returns [19:27:46]free content buf [19:27:46]Sock 8.Close socket [19:27:46]Sock 8.Thread stoped [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:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [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:19]accept exits with 10 [19:41:19]New connection [19:41:19]New thread 3066756452 created [19:41:19]Thread 3066899812 joined [19:41:19]Waiting for new connection... [19:41:19] Sock 10.Parse request [19:41:19]Sock 10.Check first char [19:41:19]Sock 10.First char is OK [19:41:19]request: POST /json_proto HTTP/1.0 [19:41:19]Method: POST [19:41:19]URL: /json_proto [19:41:19]Method is POST - this is cgi request [19:41:19]url: /json_proto [19:41:19]query_string will be loaded in cgi processing [19:41:19]execute_cgi json_proto POST (null) [19:41:19]execute_cgi path=json_proto method=POST [19:41:19]POST find Content-Length [19:41:19]Host: 172.17.46.196:8080 [19:41:19]Content-Length: 824 [19:41:19]Content-Type: application/json [19:41:19] [19:41:19]POST finish read [19:41:19]Found Content-Length = 824 [19:41:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190183", "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" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:19]execute_script... [19:41:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190183", "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" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:19]POST & json_proto [19:41:19]process_json_proto [19:41:19]json parsed OK: [19:41:19]protocol is kg_v1.0 [19:41:19]action value=close_receipt [19:41:19]process_action close_receipt [19:41:19]cmd_close_receipt [19:41:19]MH_GetDate [19:41:19]Write to MH i2c: F0 00 00 B1 02 A2 [19:41:19]Write i2c OK [19:41:19]MH_I2C_Read... [19:41:19]Read from MH i2c: F0 [19:41:19]MH_I2C_Read... [19:41:19]Read from MH i2c: F0 09 00 [19:41:19]MH_I2C_Read... [19:41:19]Read from MH i2c: F0 09 00 B1 02 00 E0 9F C3 66 C4 85 C2 66 C4 [19:41:19]GetLastDocTimeStamp 1724095664 [19:41:19]current date 1724096480 [19:41:19]FM_GetShiftState [19:41:19]SAM_PROTO_GetShiftState [19:41:19]wFMCommunicate request_size=4 [19:41:19]MH_SAM_APDU [19:41:19]CAPDU: 80 13 01 00 [19:41:19]Write to MH i2c: E2 08 00 B2 02 80 13 01 00 00 00 00 00 31 [19:41:19]Write i2c OK [19:41:19]MH_I2C_Read... [19:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:19]Read from MH i2c: E2 [19:41:19]MH_I2C_Read... [19:41:19]Read from MH i2c: E2 0E 00 [19:41:19]MH_I2C_Read... [19:41:19]Read from MH i2c: E2 0E 00 B2 02 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 EB [19:41:19]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:41:19]wFMCommunicate OK [19:41:19]SAM_PROTO_GetShiftState done [19:41:19]FM_GetShiftState done [19:41:19]opened in 1724026361 [19:41:19]opened+sec_in_day 1724112761 [19:41:19]quantity*price = 15500 [19:41:19]sum+1 = 15501 [19:41:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 0.00 Безнал.: 155.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 166 19.08.2024 19:41 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 50059 ФПД: 77509938639735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T194120&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50059&fm=77509938639735&tin=02508201610067®Number=0000000000092546&sum=15500 0 [19:41:20]StoreToDocumentArchive [19:41:20]shift 467 fd 50059 [19:41:20]save to /storage/0467/doc_00050059 [19:41:20]save last doc name /storage/0467/doc_00050059 to /storage/kkm_last_doc_name [19:41:20]save OK [19:41:20]Clear old archive folders... [19:41:20]ProcessDocumentItem done err = 0, tmpTLVsize=287 [19:41:20]tlvbuf is 01960AA0 [19:41:20]SAM_PROTO_ClearQueue [19:41:20]wFMCommunicate request_size=4 [19:41:20]MH_SAM_APDU [19:41:20]CAPDU: 80 09 00 00 [19:41:20]Write to MH i2c: E2 08 00 BF 02 80 09 00 00 00 00 00 00 33 [19:41:20]Write i2c OK [19:41:20]MH_I2C_Read... [19:41:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:20]Read from MH i2c: E2 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: E2 03 00 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: E2 03 00 BF 02 00 90 00 35 [19:41:20]RAPDU: 90 00 [19:41:20]wFMCommunicate OK [19:41:20]SAM_PROTO_ClearQueue done [19:41:20]KKMCreateOFDPacket [19:41:20]OFDProtocolAddRootSTLVToBuf [19:41:20]FM_MakeSignedData [19:41:20]FM_MakeSignedData [19:41:20]SAM_PROTO_SignData [19:41:20]wFMCommunicate request_size=4 [19:41:20]MH_SAM_APDU [19:41:20]CAPDU: 80 0D 01 02 [19:41:20]Write to MH i2c: E2 08 00 C0 02 80 0D 01 02 00 00 00 00 3B [19:41:20]Write i2c OK [19:41:20]MH_I2C_Read... [19:41:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:20]Read from MH i2c: E2 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: E2 03 00 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: E2 03 00 C0 02 00 90 00 36 [19:41:20]RAPDU: 90 00 [19:41:20]wFMCommunicate OK [19:41:20]wFMCommunicate request_size=255 [19:41:20]MH_SAM_APDU [19:41:20]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E0 9F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [19:41:20]Write to MH i2c: E2 02 01 C1 02 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E0 9F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 AB [19:41:20]Write i2c OK [19:41:20]MH_I2C_Read... [19:41:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:20]Read from MH i2c: E2 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: E2 03 00 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [19:41:20]RAPDU: 90 00 [19:41:20]wFMCommunicate OK [19:41:20]wFMCommunicate request_size=46 [19:41:20]MH_SAM_APDU [19:41:20]CAPDU: 80 0D 02 02 29 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8B C3 00 00 35 04 06 00 46 7E B0 5B F3 77 [19:41:20]Write to MH i2c: E2 31 00 C2 02 80 0D 02 02 29 00 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8B C3 00 00 35 04 06 00 46 7E B0 5B F3 77 00 00 4A [19:41:20]Write i2c OK [19:41:20]MH_I2C_Read... [19:41:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:20]Read from MH i2c: E2 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: E2 03 00 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [19:41:20]RAPDU: 90 00 [19:41:20]wFMCommunicate OK [19:41:20]wFMCommunicate request_size=4 [19:41:20]MH_SAM_APDU [19:41:20]CAPDU: 80 0D 03 02 [19:41:20]Write to MH i2c: E2 08 00 C3 02 80 0D 03 02 00 00 00 00 40 [19:41:20]Write i2c OK [19:41:20]MH_I2C_Read... [19:41:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:20]Read from MH i2c: E2 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: E2 0B 00 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: E2 0B 00 C3 02 00 17 C0 58 FA B1 8B A1 0D 90 00 54 [19:41:20]RAPDU: 17 C0 58 FA B1 8B A1 0D 90 00 [19:41:20]wFMCommunicate OK [19:41:20]SAM_PROTO_SignData done [19:41:20]FM_MakeSignedData done [19:41:20]CreateOFDProtocolMessage [19:41:20]wFMCommunicate request_size=4 [19:41:20]MH_SAM_APDU [19:41:20]CAPDU: 80 11 00 00 [19:41:20]Write to MH i2c: E2 08 00 C4 02 80 11 00 00 00 00 00 00 40 [19:41:20]Write i2c OK [19:41:20]MH_I2C_Read... [19:41:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:20]Read from MH i2c: E2 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: E2 17 00 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: E2 17 00 C4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8B [19:41:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:41:20]wFMCommunicate OK [19:41:20]CreateOFDProtocolMessage done [19:41:20]OFDSenderStorePacket 50059 [19:41:20]StoreOFDPacket docnum=50059 [19:41:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 04 40 2B 01 15 59 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E0 9F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8B C3 00 00 35 04 06 00 46 7E B0 5B F3 77 17 C0 58 FA B1 8B A1 0D [19:41:20]CheckFolder [19:41:20]dirname=/storage/ofd_packets [19:41:20]CheckFolder done [19:41:20]ProducePacketName [19:41:20]name=ofd_packets/00050059 [19:41:20]NVStorageSaveData ofd_packets/00050059 [19:41:20]File name is /storage/ofd_packets/00050059 [19:41:20]Write 337 bytes [19:41:20]NVStorageSaveData done [19:41:20]OFDSenderStorePacket done [19:41:20]KKMCreateOFDPacket done [19:41:20]NVStorageSaveData kkm_last_timestamp [19:41:20]File name is /storage/kkm_last_timestamp [19:41:20]Write 4 bytes [19:41:20]NVStorageSaveData done [19:41:20]ExternCall_PrintAddStr [19:41:20]wPrintStart [19:41:20]Write to MH i2c: 01 00 00 C5 02 C7 [19:41:20]Write i2c OK [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: 01 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: 01 07 00 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: 01 07 00 C5 02 00 00 00 00 00 FF 0F DC [19:41:20]RasterBufferAndPrint [19:41:20]line Счет N : (3)190183 [19:41:20]line ИНН: 02508201610067 [19:41:20]line Контрольно-Кассовый Чек [19:41:20]line ПРОДАЖА [19:41:20]line Товар: 5449000176448 [19:41:20]line Сок Piko Pulpy апельсин ПЭТ 1л [19:41:20]line 1.000 * 155.00 [19:41:20]line = 155.00 [19:41:20]line НДС 12% НСП 1% [19:41:20]line > о реализуемом товаре [19:41:20]line ИТОГО: 155.00 [19:41:20]line НСП 1% : 1.37 [19:41:20]line НДС 12% : 16.46 [19:41:20]line Наличными: 0.00 [19:41:20]line Безнал.: 155.00 [19:41:20]line Место: АЗС № 95 "Партнер Нефть" [19:41:20]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:41:20]line СНО: Общий режим [19:41:21]line Чек 166 19.08.2024 19:41 [19:41:21]line Смена: 467 ФФД: 1.0 [19:41:21]line ЗНМ: 0300000078 [19:41:21]line РНМ: 0000000000092546 [19:41:21]line Версия ККМ: 001 [19:41:21]line Платежная система: O! деньги [19:41:21]line ФМ: 0000000000871800 [19:41:21]line ФД: 50059 [19:41:21]line ФПД: 77509938639735 [19:41:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T194120&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50059&fm=77509938639735&tin=02508201610067®Number=0000000000092546&sum=15500 [19:41:21]line 0 [19:41:21]OFD Sender: Processing packet 50059 [packets to send 21, broken 20] [19:41:21]ProducePacketName [19:41:21]name=ofd_packets/00050059 [19:41:21]OFD Sender: To server: pG, [19:41:21]CommunicateWithHost lk.salyk.kg:30040 [19:41:21]ConnectInit lk.salyk.kg [19:41:21]written 0, free lines is 4095 [19:41:21]Connected sock=9 [19:41:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 04 40 2B 01 15 59 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 3C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E0 9F C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8B C3 00 00 35 04 06 00 46 7E B0 5B F3 77 17 C0 58 FA B1 8B A1 0D [19:41:21]Write to MH i2c: 01 00 00 F0 02 F2 [19:41:21]Write i2c OK [19:41:21]MH_I2C_Read... [19:41:21]Read from MH i2c: 01 [19:41:21]MH_I2C_Read... [19:41:21]Read from MH i2c: 01 07 00 [19:41:21]MH_I2C_Read... [19:41:21]Read from MH i2c: 01 07 00 F0 02 00 00 00 00 00 B8 0C BD [19:41:21]RasterBufferAndPrint [19:41:21]line [19:41:21]line [19:41:21]line [19:41:21]line [19:41:21]line [19:41:21]written 0, free lines is 3263 [19:41:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 00 FA 47 00 FA 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8B C3 00 00 F4 03 04 00 4C 4A C3 66 B6 04 01 00 00 B6 15 30 D6 29 DD 73 78 [19:41:21]CommunicateWithHost err = 0 [19:41:21]CheckOFDResponse [19:41:21]1017 (14) - 77093643461234 [19:41:21]1041 (16) - 0000000000871800 [19:41:21]1040 (4) - 50059 [19:41:21]1012 (4) - 19.08.2024 13:36 [19:41:21]1206 (1) - 0 [19:41:21]OFD Sender: Remove packet 50059 [19:41:21]ProducePacketName [19:41:21]name=ofd_packets/00050059 [19:41:21]NVStorageDeleteData [19:41:21]MH_Cut [19:41:21]Write to MH i2c: D1 01 00 F7 02 01 CB [19:41:21]Write i2c OK [19:41:21]MH_I2C_Read... [19:41:21]Read from MH i2c: D1 [19:41:21]MH_I2C_Read... [19:41:21]Read from MH i2c: D1 01 00 [19:41:21]MH_I2C_Read... [19:41:21]Read from MH i2c: D1 01 00 F7 02 00 CA [19:41:21]Write to MH i2c: 01 00 00 F8 02 FA [19:41:21]Write i2c OK [19:41:21]MH_I2C_Read... [19:41:22]OFD Sender: No OFD packet to send [19:41:22]*** Cut start [19:41:22]*** Purtial cut [19:41:22]*** CUTSNS_PIN = 0 [19:41:22]*** Stage 1: CUTSNS_PIN = 1 [19:41:24]Read from MH i2c: 01 [19:41:24]MH_I2C_Read... [19:41:24]*** Stop cut motor [19:41:24]*** Cut end [19:41:24]Read from MH i2c: 01 07 00 [19:41:24]MH_I2C_Read... [19:41:24]Read from MH i2c: 01 07 00 F8 02 00 00 00 00 00 FF 0F 0F [19:41:24]process_action close_receipt done [19:41:24]requested_data is exist [19:41:24]produce_requested_data [19:41:24]requested_item fm.sn is exist - process it [19:41:24]wFMCommunicate request_size=4 [19:41:24]MH_SAM_APDU [19:41:24]CAPDU: 80 11 00 00 [19:41:24]Write to MH i2c: E2 08 00 F9 02 80 11 00 00 00 00 00 00 75 [19:41:24]Write i2c OK [19:41:24]MH_I2C_Read... [19:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:24]Read from MH i2c: E2 [19:41:24]MH_I2C_Read... [19:41:24]Read from MH i2c: E2 17 00 [19:41:24]MH_I2C_Read... [19:41:24]Read from MH i2c: E2 17 00 F9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C0 [19:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:41:24]wFMCommunicate OK [19:41:24]requested_item fd.num is exist - process it [19:41:24]SAM_PROTO_GetFieldsCounters [19:41:24]wFMCommunicate request_size=4 [19:41:24]MH_SAM_APDU [19:41:24]CAPDU: 80 13 00 00 [19:41:24]Write to MH i2c: E2 08 00 FA 02 80 13 00 00 00 00 00 00 78 [19:41:24]Write i2c OK [19:41:24]MH_I2C_Read... [19:41:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:24]Read from MH i2c: E2 [19:41:24]MH_I2C_Read... [19:41:24]Read from MH i2c: E2 62 00 [19:41:24]MH_I2C_Read... [19:41:24]Read from MH i2c: E2 62 00 FA 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8B C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [19:41:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8B C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:24]wFMCommunicate OK [19:41:24]SAM_PROTO_GetFieldsCounters done [19:41:24]requested_item shift.num is exist - process it [19:41:24]requested_item shift.opened is exist - process it [19:41:24]req_shift_opened [19:41:24]FM_GetShiftState [19:41:24]SAM_PROTO_GetShiftState [19:41:24]wFMCommunicate request_size=4 [19:41:24]MH_SAM_APDU [19:41:24]CAPDU: 80 13 01 00 [19:41:24]Write to MH i2c: E2 08 00 FB 02 80 13 01 00 00 00 00 00 7A [19:41:24]Write i2c OK [19:41:24]MH_I2C_Read... [19:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:24]Read from MH i2c: E2 [19:41:24]MH_I2C_Read... [19:41:24]Read from MH i2c: E2 0E 00 [19:41:24]MH_I2C_Read... [19:41:24]Read from MH i2c: E2 0E 00 FB 02 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 34 [19:41:24]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:41:24]wFMCommunicate OK [19:41:24]SAM_PROTO_GetShiftState done [19:41:24]FM_GetShiftState done [19:41:24]req_shift_opened done [19:41:24]requested_item shift.open_date is exist - process it [19:41:24]req_shift_open_date [19:41:24]req_shift_open_date done [19:41:24]produce_requested_data done [19:41:24]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50059,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [19:41:24]process_action_free close_receipt [19:41:24]json_value_free [19:41:24]json_value_free done [19:41:24]process_json_proto returns [19:41:24]Send response to host [19:41:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50059,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [19:41:24]free response buf [19:41:24]execute_script done [19:41:24]execute_script returns [19:41:24]free content buf [19:41:24]Sock 10.Close socket [19:41:24]Sock 10.Thread stoped [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:00]accept exits with 8 [19:54:00]New connection [19:54:00]New thread 3066899812 created [19:54:00]Thread 3066756452 joined [19:54:00]Waiting for new connection... [19:54:00] Sock 8.Parse request [19:54:00]Sock 8.Check first char [19:54:00]Sock 8.First char is OK [19:54:00]request: POST /json_proto HTTP/1.0 [19:54:00]Method: POST [19:54:00]URL: /json_proto [19:54:00]Method is POST - this is cgi request [19:54:00]url: /json_proto [19:54:00]query_string will be loaded in cgi processing [19:54:00]execute_cgi json_proto POST (null) [19:54:00]execute_cgi path=json_proto method=POST [19:54:00]POST find Content-Length [19:54:00]Host: 172.17.46.196:8080 [19:54:00]Content-Length: 2385 [19:54:00]Content-Type: application/json [19:54:00] [19:54:00]POST finish read [19:54:00]Found Content-Length = 2385 [19:54:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190184", "tax_sys" : 0, "items" : [ { "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 2.000, "sum" : 186.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235784", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 685.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:00]execute_script... [19:54:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190184", "tax_sys" : 0, "items" : [ { "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 2.000, "sum" : 186.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235784", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 685.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:00]POST & json_proto [19:54:00]process_json_proto [19:54:00]json parsed OK: [19:54:00]protocol is kg_v1.0 [19:54:00]action value=close_receipt [19:54:00]process_action close_receipt [19:54:00]cmd_close_receipt [19:54:00]MH_GetDate [19:54:00]Write to MH i2c: F0 00 00 FC 02 ED [19:54:00]Write i2c OK [19:54:00]MH_I2C_Read... [19:54:00]Read from MH i2c: F0 [19:54:00]MH_I2C_Read... [19:54:00]Read from MH i2c: F0 09 00 [19:54:00]MH_I2C_Read... [19:54:00]Read from MH i2c: F0 09 00 FC 02 00 D9 A2 C3 66 C4 85 C2 66 0B [19:54:00]GetLastDocTimeStamp 1724096480 [19:54:00]current date 1724097241 [19:54:00]FM_GetShiftState [19:54:00]SAM_PROTO_GetShiftState [19:54:00]wFMCommunicate request_size=4 [19:54:00]MH_SAM_APDU [19:54:00]CAPDU: 80 13 01 00 [19:54:00]Write to MH i2c: E2 08 00 FD 02 80 13 01 00 00 00 00 00 7C [19:54:00]Write i2c OK [19:54:00]MH_I2C_Read... [19:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:00]Read from MH i2c: E2 [19:54:00]MH_I2C_Read... [19:54:00]Read from MH i2c: E2 0E 00 [19:54:00]MH_I2C_Read... [19:54:00]Read from MH i2c: E2 0E 00 FD 02 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 36 [19:54:00]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:54:00]wFMCommunicate OK [19:54:00]SAM_PROTO_GetShiftState done [19:54:00]FM_GetShiftState done [19:54:00]opened in 1724026361 [19:54:00]opened+sec_in_day 1724112761 [19:54:00]quantity*price = 18600 [19:54:00]sum+1 = 18601 [19:54:00]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607015235784 Печ. сд. Яшкино клубника 137г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000176448 Сок Piko Pulpy апельсин ПЭТ 1л 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202521254 Чай холодный MAXI черный со вкусом клубн 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202522671 Garden напиток со вкусом граната 1,20 ПЭ 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 685.00 НСП 1% : 6.07 НДС 12% : 72.73 Наличными: 0.00 Безнал.: 685.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 167 19.08.2024 19:54 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 50060 ФПД: 211941143356357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T195401&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50060&fm=211941143356357&tin=02508201610067®Number=0000000000092546&sum=68500 0 [19:54:02]StoreToDocumentArchive [19:54:02]shift 467 fd 50060 [19:54:02]save to /storage/0467/doc_00050060 [19:54:02]save last doc name /storage/0467/doc_00050060 to /storage/kkm_last_doc_name [19:54:02]save OK [19:54:02]Clear old archive folders... [19:54:02]ProcessDocumentItem done err = 0, tmpTLVsize=913 [19:54:02]tlvbuf is 0194B350 [19:54:02]SAM_PROTO_ClearQueue [19:54:02]wFMCommunicate request_size=4 [19:54:02]MH_SAM_APDU [19:54:02]CAPDU: 80 09 00 00 [19:54:02]Write to MH i2c: E2 08 00 0A 03 80 09 00 00 00 00 00 00 7F [19:54:02]Write i2c OK [19:54:02]MH_I2C_Read... [19:54:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:02]Read from MH i2c: E2 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 03 00 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 03 00 0A 03 00 90 00 81 [19:54:02]RAPDU: 90 00 [19:54:02]wFMCommunicate OK [19:54:02]SAM_PROTO_ClearQueue done [19:54:02]KKMCreateOFDPacket [19:54:02]OFDProtocolAddRootSTLVToBuf [19:54:02]FM_MakeSignedData [19:54:02]FM_MakeSignedData [19:54:02]SAM_PROTO_SignData [19:54:02]wFMCommunicate request_size=4 [19:54:02]MH_SAM_APDU [19:54:02]CAPDU: 80 0D 01 02 [19:54:02]Write to MH i2c: E2 08 00 0B 03 80 0D 01 02 00 00 00 00 87 [19:54:02]Write i2c OK [19:54:02]MH_I2C_Read... [19:54:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:02]Read from MH i2c: E2 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 03 00 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [19:54:02]RAPDU: 90 00 [19:54:02]wFMCommunicate OK [19:54:02]wFMCommunicate request_size=255 [19:54:02]MH_SAM_APDU [19:54:02]CAPDU: 80 0D 02 02 FA 03 00 91 03 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 A8 48 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 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 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 [19:54:02]Write to MH i2c: E2 02 01 0C 03 80 0D 02 02 FA 00 03 00 91 03 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 A8 48 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 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 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 00 00 75 [19:54:02]Write i2c OK [19:54:02]MH_I2C_Read... [19:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:02]Read from MH i2c: E2 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 03 00 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [19:54:02]RAPDU: 90 00 [19:54:02]wFMCommunicate OK [19:54:02]wFMCommunicate request_size=255 [19:54:02]MH_SAM_APDU [19:54:02]CAPDU: 80 0D 02 02 FA 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 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 [19:54:02]Write to MH i2c: E2 02 01 0D 03 80 0D 02 02 FA 00 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 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 00 00 80 [19:54:02]Write i2c OK [19:54:02]MH_I2C_Read... [19:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:02]Read from MH i2c: E2 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 03 00 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [19:54:02]RAPDU: 90 00 [19:54:02]wFMCommunicate OK [19:54:02]wFMCommunicate request_size=255 [19:54:02]MH_SAM_APDU [19:54:02]CAPDU: 80 0D 02 02 FA 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [19:54:02]Write to MH i2c: E2 02 01 0E 03 80 0D 02 02 FA 00 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 3C [19:54:02]Write i2c OK [19:54:02]MH_I2C_Read... [19:54:02]OFD Sender: No OFD packet to send [19:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:02]Read from MH i2c: E2 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 03 00 [19:54:02]MH_I2C_Read... [19:54:02]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [19:54:02]RAPDU: 90 00 [19:54:02]wFMCommunicate OK [19:54:02]wFMCommunicate request_size=172 [19:54:02]MH_SAM_APDU [19:54:02]CAPDU: 80 0D 02 02 A7 00 01 FC 03 06 00 94 0B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 0B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 D9 A2 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8C C3 00 00 35 04 06 00 C0 C2 64 90 23 C5 [19:54:02]Write to MH i2c: E2 AF 00 0F 03 80 0D 02 02 A7 00 00 01 FC 03 06 00 94 0B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 0B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 D9 A2 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8C C3 00 00 35 04 06 00 C0 C2 64 90 23 C5 00 00 08 [19:54:02]Write i2c OK [19:54:02]MH_I2C_Read... [19:54:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:03]Read from MH i2c: E2 [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: E2 03 00 [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [19:54:03]RAPDU: 90 00 [19:54:03]wFMCommunicate OK [19:54:03]wFMCommunicate request_size=4 [19:54:03]MH_SAM_APDU [19:54:03]CAPDU: 80 0D 03 02 [19:54:03]Write to MH i2c: E2 08 00 10 03 80 0D 03 02 00 00 00 00 8E [19:54:03]Write i2c OK [19:54:03]MH_I2C_Read... [19:54:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:03]Read from MH i2c: E2 [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: E2 0B 00 [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: E2 0B 00 10 03 00 D2 B1 93 EF 25 15 F3 A5 90 00 66 [19:54:03]RAPDU: D2 B1 93 EF 25 15 F3 A5 90 00 [19:54:03]wFMCommunicate OK [19:54:03]SAM_PROTO_SignData done [19:54:03]FM_MakeSignedData done [19:54:03]CreateOFDProtocolMessage [19:54:03]wFMCommunicate request_size=4 [19:54:03]MH_SAM_APDU [19:54:03]CAPDU: 80 11 00 00 [19:54:03]Write to MH i2c: E2 08 00 11 03 80 11 00 00 00 00 00 00 8E [19:54:03]Write i2c OK [19:54:03]MH_I2C_Read... [19:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:03]Read from MH i2c: E2 [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: E2 17 00 [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: E2 17 00 11 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D9 [19:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:54:03]wFMCommunicate OK [19:54:03]CreateOFDProtocolMessage done [19:54:03]OFDSenderStorePacket 50060 [19:54:03]StoreOFDPacket docnum=50060 [19:54:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A5 03 00 00 43 D8 9D 03 25 59 5A 03 01 00 03 00 91 03 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 A8 48 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 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 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 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 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 0B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 0B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 D9 A2 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8C C3 00 00 35 04 06 00 C0 C2 64 90 23 C5 D2 B1 93 EF 25 15 F3 A5 [19:54:03]CheckFolder [19:54:03]dirname=/storage/ofd_packets [19:54:03]CheckFolder done [19:54:03]ProducePacketName [19:54:03]name=ofd_packets/00050060 [19:54:03]NVStorageSaveData ofd_packets/00050060 [19:54:03]File name is /storage/ofd_packets/00050060 [19:54:03]Write 963 bytes [19:54:03]NVStorageSaveData done [19:54:03]OFDSenderStorePacket done [19:54:03]KKMCreateOFDPacket done [19:54:03]NVStorageSaveData kkm_last_timestamp [19:54:03]File name is /storage/kkm_last_timestamp [19:54:03]Write 4 bytes [19:54:03]NVStorageSaveData done [19:54:03]ExternCall_PrintAddStr [19:54:03]wPrintStart [19:54:03]Write to MH i2c: 01 00 00 12 03 15 [19:54:03]Write i2c OK [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: 01 [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: 01 07 00 [19:54:03]MH_I2C_Read... [19:54:03]Read from MH i2c: 01 07 00 12 03 00 00 00 00 00 FF 0F 2A [19:54:03]RasterBufferAndPrint [19:54:03]line Счет N : (3)190184 [19:54:03]line ИНН: 02508201610067 [19:54:03]line Контрольно-Кассовый Чек [19:54:03]line ПРОДАЖА [19:54:03]line Товар: 4603290004862 [19:54:03]line Печ.сах.FORSITE Сэнд.шок-ор.вк [19:54:03]line 2.000 * 93.00 [19:54:03]line = 186.00 [19:54:03]line НДС 12% НСП 1% [19:54:03]line > о реализуемом товаре [19:54:03]line Товар: 4607015235784 [19:54:03]line Печ. сд. Яшкино клубника 137г [19:54:03]line 1.000 * 90.00 [19:54:03]line = 90.00 [19:54:03]line НДС 12% НСП 1% [19:54:03]line > о реализуемом товаре [19:54:03]line Товар: 5449000176448 [19:54:03]line Сок Piko Pulpy апельсин ПЭТ 1л [19:54:03]line 1.000 * 155.00 [19:54:03]line = 155.00 [19:54:03]line НДС 12% НСП 1% [19:54:03]line > о реализуемом товаре [19:54:03]line Товар: 4870202521254 [19:54:03]line Чай холодный MAXI черный со вкусом клубн [19:54:03]line 1.000 * 125.00 [19:54:03]line = 125.00 [19:54:03]line НДС 12% НСП 1% [19:54:03]line > о реализуемом товаре [19:54:03]line Товар: 4870202522671 [19:54:03]line Garden напиток со вкусом граната 1,20 ПЭ [19:54:03]line 1.000 * 125.00 [19:54:03]line = 125.00 [19:54:03]line НДС 12% НСП 1% [19:54:03]line > о реализуемом товаре [19:54:03]line Товар: 2000031750019 [19:54:03]line Пакет Партнер Нефть [19:54:03]line 1.000 * 4.00 [19:54:03]line = 4.00 [19:54:03]line НДС 12% НСП 1% [19:54:03]line > о реализуемом товаре [19:54:03]line ИТОГО: 685.00 [19:54:03]line НСП 1% : 6.07 [19:54:03]line НДС 12% : 72.73 [19:54:03]line Наличными: 0.00 [19:54:03]line Безнал.: 685.00 [19:54:03]line Место: АЗС № 95 "Партнер Нефть" [19:54:03]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:54:03]line СНО: Общий режим [19:54:03]line Чек 167 19.08.2024 19:54 [19:54:03]line Смена: 467 ФФД: 1.0 [19:54:03]line ЗНМ: 0300000078 [19:54:03]line РНМ: 0000000000092546 [19:54:03]line Версия ККМ: 001 [19:54:03]line Платежная система: O! деньги [19:54:03]line ФМ: 0000000000871800 [19:54:03]line ФД: 50060 [19:54:03]line ФПД: 211941143356357 [19:54:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T195401&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50060&fm=211941143356357&tin=02508201610067®Number=0000000000092546&sum=68500 [19:54:03]line 0 [19:54:03]OFD Sender: Processing packet 50060 [packets to send 21, broken 20] [19:54:03]ProducePacketName [19:54:03]name=ofd_packets/00050060 [19:54:03]OFD Sender: To server: pG, [19:54:03]CommunicateWithHost lk.salyk.kg:30040 [19:54:03]ConnectInit lk.salyk.kg [19:54:03]written 0, free lines is 4095 [19:54:04]Connected sock=11 [19:54:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A5 03 00 00 43 D8 9D 03 25 59 5A 03 01 00 03 00 91 03 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 A8 48 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 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 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 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 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 0B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 0B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 D9 A2 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8C C3 00 00 35 04 06 00 C0 C2 64 90 23 C5 D2 B1 93 EF 25 15 F3 A5 [19:54:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F8 0B 47 00 4E 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8C C3 00 00 F4 03 04 00 47 4D C3 66 B6 04 01 00 00 D8 24 17 90 31 3B FE 96 [19:54:04]CommunicateWithHost err = 0 [19:54:04]CheckOFDResponse [19:54:04]1017 (14) - 77093643461234 [19:54:04]1041 (16) - 0000000000871800 [19:54:04]1040 (4) - 50060 [19:54:04]1012 (4) - 19.08.2024 13:48 [19:54:04]1206 (1) - 0 [19:54:04]OFD Sender: Remove packet 50060 [19:54:04]ProducePacketName [19:54:04]name=ofd_packets/00050060 [19:54:04]NVStorageDeleteData [19:54:04]Write to MH i2c: 01 00 00 5F 03 62 [19:54:04]Write i2c OK [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: 01 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: 01 07 00 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: 01 07 00 5F 03 00 00 00 00 00 9F 0A 12 [19:54:04]RasterBufferAndPrint [19:54:04]line [19:54:04]line [19:54:04]line [19:54:04]line [19:54:04]line [19:54:04]written 0, free lines is 2732 [19:54:04]MH_Cut [19:54:04]Write to MH i2c: D1 01 00 66 03 01 3B [19:54:04]Write i2c OK [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: D1 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: D1 01 00 [19:54:04]MH_I2C_Read... [19:54:04]Read from MH i2c: D1 01 00 66 03 00 3A [19:54:04]Write to MH i2c: 01 00 00 67 03 6A [19:54:04]Write i2c OK [19:54:04]MH_I2C_Read... [19:54:04]OFD Sender: No OFD packet to send [19:54:05]*** Cut start [19:54:05]*** Purtial cut [19:54:05]*** Stage 1: CUTSNS_PIN = 1 [19:54:05]Read from MH i2c: 01 [19:54:05]MH_I2C_Read... [19:54:05]*** Stop cut motor [19:54:05]*** Cut end [19:54:05]Read from MH i2c: 01 07 00 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: 01 07 00 67 03 00 00 00 00 00 FF 0F 7F [19:54:05]process_action close_receipt done [19:54:05]requested_data is exist [19:54:05]produce_requested_data [19:54:05]requested_item fm.sn is exist - process it [19:54:05]wFMCommunicate request_size=4 [19:54:05]MH_SAM_APDU [19:54:05]CAPDU: 80 11 00 00 [19:54:05]Write to MH i2c: E2 08 00 68 03 80 11 00 00 00 00 00 00 E5 [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:05]Read from MH i2c: E2 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 17 00 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 17 00 68 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 30 [19:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:54:05]wFMCommunicate OK [19:54:05]requested_item fd.num is exist - process it [19:54:05]SAM_PROTO_GetFieldsCounters [19:54:05]wFMCommunicate request_size=4 [19:54:05]MH_SAM_APDU [19:54:05]CAPDU: 80 13 00 00 [19:54:05]Write to MH i2c: E2 08 00 69 03 80 13 00 00 00 00 00 00 E8 [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:06]Read from MH i2c: E2 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 62 00 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 62 00 69 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8C C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [19:54:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8C C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:06]wFMCommunicate OK [19:54:06]SAM_PROTO_GetFieldsCounters done [19:54:06]requested_item shift.num is exist - process it [19:54:06]requested_item shift.opened is exist - process it [19:54:06]req_shift_opened [19:54:06]FM_GetShiftState [19:54:06]SAM_PROTO_GetShiftState [19:54:06]wFMCommunicate request_size=4 [19:54:06]MH_SAM_APDU [19:54:06]CAPDU: 80 13 01 00 [19:54:06]Write to MH i2c: E2 08 00 6A 03 80 13 01 00 00 00 00 00 EA [19:54:06]Write i2c OK [19:54:06]MH_I2C_Read... [19:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:06]Read from MH i2c: E2 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 0E 00 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 0E 00 6A 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A4 [19:54:06]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:54:06]wFMCommunicate OK [19:54:06]SAM_PROTO_GetShiftState done [19:54:06]FM_GetShiftState done [19:54:06]req_shift_opened done [19:54:06]requested_item shift.open_date is exist - process it [19:54:06]req_shift_open_date [19:54:06]req_shift_open_date done [19:54:06]produce_requested_data done [19:54:06]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50060,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [19:54:06]process_action_free close_receipt [19:54:06]json_value_free [19:54:06]json_value_free done [19:54:06]process_json_proto returns [19:54:06]Send response to host [19:54:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50060,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [19:54:06]free response buf [19:54:06]execute_script done [19:54:06]execute_script returns [19:54:06]free content buf [19:54:06]Sock 8.Close socket [19:54:06]Sock 8.Thread stoped [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:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:36]accept exits with 9 [19:57:36]New connection [19:57:36]New thread 3066756452 created [19:57:36]Thread 3066899812 joined [19:57:36]Waiting for new connection... [19:57:36] Sock 9.Parse request [19:57:36]Sock 9.Check first char [19:57:36]Sock 9.First char is OK [19:57:36]request: POST /json_proto HTTP/1.0 [19:57:36]Method: POST [19:57:36]URL: /json_proto [19:57:36]Method is POST - this is cgi request [19:57:36]url: /json_proto [19:57:36]query_string will be loaded in cgi processing [19:57:36]execute_cgi json_proto POST (null) [19:57:36]execute_cgi path=json_proto method=POST [19:57:36]POST find Content-Length [19:57:36]Host: 172.17.46.196:8080 [19:57:36]Content-Length: 781 [19:57:36]Content-Type: application/json [19:57:36] [19:57:36]POST finish read [19:57:36]Found Content-Length = 781 [19:57:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190185", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:36]execute_script... [19: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)190185", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:36]POST & json_proto [19:57:36]process_json_proto [19:57:36]json parsed OK: [19:57:36]protocol is kg_v1.0 [19:57:36]action value=close_receipt [19:57:36]process_action close_receipt [19:57:36]cmd_close_receipt [19:57:36]MH_GetDate [19:57:36]Write to MH i2c: F0 00 00 6B 03 5D [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: F0 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: F0 09 00 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: F0 09 00 6B 03 00 B1 A3 C3 66 C4 85 C2 66 54 [19:57:36]GetLastDocTimeStamp 1724097241 [19:57:36]current date 1724097457 [19:57:36]FM_GetShiftState [19:57:36]SAM_PROTO_GetShiftState [19:57:36]wFMCommunicate request_size=4 [19:57:36]MH_SAM_APDU [19:57:36]CAPDU: 80 13 01 00 [19:57:36]Write to MH i2c: E2 08 00 6C 03 80 13 01 00 00 00 00 00 EC [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:36]Read from MH i2c: E2 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 0E 00 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 0E 00 6C 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A6 [19:57:36]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:57:36]wFMCommunicate OK [19:57:36]SAM_PROTO_GetShiftState done [19:57:36]FM_GetShiftState done [19:57:36]opened in 1724026361 [19:57:36]opened+sec_in_day 1724112761 [19:57:36]quantity*price = 15000 [19:57:36]sum+1 = 15001 [19:57:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 168 19.08.2024 19:57 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 50061 ФПД: 6164327748604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T195737&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50061&fm=6164327748604&tin=02508201610067®Number=0000000000092546&sum=15000 0 [19:57:37]StoreToDocumentArchive [19:57:37]shift 467 fd 50061 [19:57:37]save to /storage/0467/doc_00050061 [19:57:37]save last doc name /storage/0467/doc_00050061 to /storage/kkm_last_doc_name [19:57:37]save OK [19:57:37]Clear old archive folders... [19:57:37]ProcessDocumentItem done err = 0, tmpTLVsize=272 [19:57:37]tlvbuf is 01955270 [19:57:37]SAM_PROTO_ClearQueue [19:57:37]wFMCommunicate request_size=4 [19:57:37]MH_SAM_APDU [19:57:37]CAPDU: 80 09 00 00 [19:57:37]Write to MH i2c: E2 08 00 79 03 80 09 00 00 00 00 00 00 EE [19:57:37]Write i2c OK [19:57:37]MH_I2C_Read... [19:57:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:37]Read from MH i2c: E2 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 03 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 03 00 79 03 00 90 00 F0 [19:57:37]RAPDU: 90 00 [19:57:37]wFMCommunicate OK [19:57:37]SAM_PROTO_ClearQueue done [19:57:37]KKMCreateOFDPacket [19:57:37]OFDProtocolAddRootSTLVToBuf [19:57:37]FM_MakeSignedData [19:57:37]FM_MakeSignedData [19:57:37]SAM_PROTO_SignData [19:57:37]wFMCommunicate request_size=4 [19:57:37]MH_SAM_APDU [19:57:37]CAPDU: 80 0D 01 02 [19:57:37]Write to MH i2c: E2 08 00 7A 03 80 0D 01 02 00 00 00 00 F6 [19:57:37]Write i2c OK [19:57:37]MH_I2C_Read... [19:57:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:37]Read from MH i2c: E2 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 03 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 03 00 7A 03 00 90 00 F1 [19:57:37]RAPDU: 90 00 [19:57:37]wFMCommunicate OK [19:57:37]wFMCommunicate request_size=255 [19:57:37]MH_SAM_APDU [19:57:37]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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 B1 A3 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 [19:57:37]Write to MH i2c: E2 02 01 7B 03 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 B1 A3 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 78 [19:57:37]Write i2c OK [19:57:37]MH_I2C_Read... [19:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:37]Read from MH i2c: E2 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 03 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 03 00 7B 03 00 90 00 F2 [19:57:37]RAPDU: 90 00 [19:57:37]wFMCommunicate OK [19:57:37]wFMCommunicate request_size=31 [19:57:37]MH_SAM_APDU [19:57:37]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 30 30 10 04 04 00 8D C3 00 00 35 04 06 00 05 9B 3E 90 D3 FC [19:57:37]Write to MH i2c: E2 22 00 7C 03 80 0D 02 02 1A 00 30 30 38 37 31 38 30 30 10 04 04 00 8D C3 00 00 35 04 06 00 05 9B 3E 90 D3 FC 00 00 A9 [19:57:37]Write i2c OK [19:57:37]MH_I2C_Read... [19:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:37]Read from MH i2c: E2 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 03 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 03 00 7C 03 00 90 00 F3 [19:57:37]RAPDU: 90 00 [19:57:37]wFMCommunicate OK [19:57:37]wFMCommunicate request_size=4 [19:57:37]MH_SAM_APDU [19:57:37]CAPDU: 80 0D 03 02 [19:57:37]Write to MH i2c: E2 08 00 7D 03 80 0D 03 02 00 00 00 00 FB [19:57:37]Write i2c OK [19:57:37]MH_I2C_Read... [19:57:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:37]Read from MH i2c: E2 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 0B 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 0B 00 7D 03 00 BC 51 3E 1A 9B DC 98 4F 90 00 BF [19:57:37]RAPDU: BC 51 3E 1A 9B DC 98 4F 90 00 [19:57:37]wFMCommunicate OK [19:57:37]SAM_PROTO_SignData done [19:57:37]FM_MakeSignedData done [19:57:37]CreateOFDProtocolMessage [19:57:37]wFMCommunicate request_size=4 [19:57:37]MH_SAM_APDU [19:57:37]CAPDU: 80 11 00 00 [19:57:37]Write to MH i2c: E2 08 00 7E 03 80 11 00 00 00 00 00 00 FB [19:57:37]Write i2c OK [19:57:37]MH_I2C_Read... [19:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:37]Read from MH i2c: E2 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 17 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 17 00 7E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 46 [19:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:57:37]wFMCommunicate OK [19:57:37]CreateOFDProtocolMessage done [19:57:37]OFDSenderStorePacket 50061 [19:57:37]StoreOFDPacket docnum=50061 [19:57:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 33 00 1C 01 28 BD 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 B1 A3 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8D C3 00 00 35 04 06 00 05 9B 3E 90 D3 FC BC 51 3E 1A 9B DC 98 4F [19:57:37]CheckFolder [19:57:37]dirname=/storage/ofd_packets [19:57:37]CheckFolder done [19:57:37]ProducePacketName [19:57:37]name=ofd_packets/00050061 [19:57:37]NVStorageSaveData ofd_packets/00050061 [19:57:37]File name is /storage/ofd_packets/00050061 [19:57:37]Write 322 bytes [19:57:37]NVStorageSaveData done [19:57:37]OFDSenderStorePacket done [19:57:37]KKMCreateOFDPacket done [19:57:37]NVStorageSaveData kkm_last_timestamp [19:57:37]File name is /storage/kkm_last_timestamp [19:57:37]Write 4 bytes [19:57:37]NVStorageSaveData done [19:57:37]ExternCall_PrintAddStr [19:57:37]wPrintStart [19:57:37]Write to MH i2c: 01 00 00 7F 03 82 [19:57:37]Write i2c OK [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: 01 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: 01 07 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: 01 07 00 7F 03 00 00 00 00 00 FF 0F 97 [19:57:37]RasterBufferAndPrint [19:57:37]line Счет N : (3)190185 [19:57:37]line ИНН: 02508201610067 [19:57:37]line Контрольно-Кассовый Чек [19:57:37]line ПРОДАЖА [19:57:37]line Товар: 4640030091607 [19:57:37]line Сигареты ESSE Exchange [19:57:37]line 1.000 * 150.00 [19:57:37]line = 150.00 [19:57:37]line НДС 12% НСП 1% [19:57:37]line > о реализуемом товаре [19:57:37]line ИТОГО: 150.00 [19:57:37]line НСП 1% : 1.33 [19:57:37]line НДС 12% : 15.93 [19:57:37]line Наличными: 0.00 [19:57:37]line Безнал.: 150.00 [19:57:37]line Место: АЗС № 95 "Партнер Нефть" [19:57:37]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:57:37]line СНО: Общий режим [19:57:37]line Чек 168 19.08.2024 19:57 [19:57:37]line Смена: 467 ФФД: 1.0 [19:57:37]line ЗНМ: 0300000078 [19:57:37]line РНМ: 0000000000092546 [19:57:37]line Версия ККМ: 001 [19:57:37]line Платежная система: O! деньги [19:57:37]line ФМ: 0000000000871800 [19:57:37]line ФД: 50061 [19:57:37]line ФПД: 6164327748604 [19:57:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T195737&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50061&fm=6164327748604&tin=02508201610067®Number=0000000000092546&sum=15000 [19:57:38]line 0 [19:57:38]OFD Sender: Processing packet 50061 [packets to send 21, broken 20] [19:57:38]ProducePacketName [19:57:38]name=ofd_packets/00050061 [19:57:38]OFD Sender: To server: pG, [19:57:38]CommunicateWithHost lk.salyk.kg:30040 [19:57:38]ConnectInit lk.salyk.kg [19:57:38]written 0, free lines is 4095 [19:57:38]Connected sock=10 [19: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 31 38 30 30 24 01 00 00 33 00 1C 01 28 BD 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 B1 A3 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8D C3 00 00 35 04 06 00 05 9B 3E 90 D3 FC BC 51 3E 1A 9B DC 98 4F [19:57:38]Write to MH i2c: 01 00 00 A9 03 AC [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: 01 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: 01 07 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: 01 07 00 A9 03 00 00 00 00 00 C1 0C 80 [19:57:38]RasterBufferAndPrint [19:57:38]line [19:57:38]line [19:57:38]line [19:57:38]line [19:57:38]line [19:57:38]written 0, free lines is 3271 [19:57:38]MH_Cut [19:57:38]Write to MH i2c: D1 01 00 B0 03 01 85 [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: D1 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: D1 01 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: D1 01 00 B0 03 00 84 [19:57:38]Write to MH i2c: 01 00 00 B1 03 B4 [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5C E4 47 00 56 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8D C3 00 00 F4 03 04 00 1D 4E C3 66 B6 04 01 00 00 87 CD B8 EE F9 4B 56 1A [19:57:38]CommunicateWithHost err = 0 [19:57:38]CheckOFDResponse [19:57:38]1017 (14) - 77093643461234 [19:57:38]1041 (16) - 0000000000871800 [19:57:38]1040 (4) - 50061 [19:57:38]1012 (4) - 19.08.2024 13:52 [19:57:38]1206 (1) - 0 [19:57:38]OFD Sender: Remove packet 50061 [19:57:38]ProducePacketName [19:57:38]name=ofd_packets/00050061 [19:57:38]NVStorageDeleteData [19:57:39]OFD Sender: No OFD packet to send [19:57:39]*** Cut start [19:57:39]*** Purtial cut [19:57:39]*** CUTSNS_PIN = 0 [19:57:39]*** Stage 1: CUTSNS_PIN = 1 [19:57:41]Read from MH i2c: 01 [19:57:41]MH_I2C_Read... [19:57:41]*** Stop cut motor [19:57:41]*** Cut end [19:57:41]Read from MH i2c: 01 07 00 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: 01 07 00 B1 03 00 00 00 00 00 FF 0F C9 [19:57:41]process_action close_receipt done [19:57:41]requested_data is exist [19:57:41]produce_requested_data [19:57:41]requested_item fm.sn is exist - process it [19:57:41]wFMCommunicate request_size=4 [19:57:41]MH_SAM_APDU [19:57:41]CAPDU: 80 11 00 00 [19:57:41]Write to MH i2c: E2 08 00 B2 03 80 11 00 00 00 00 00 00 2F [19:57:41]Write i2c OK [19:57:41]MH_I2C_Read... [19:57:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:41]Read from MH i2c: E2 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: E2 17 00 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: E2 17 00 B2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7A [19:57:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:57:41]wFMCommunicate OK [19:57:41]requested_item fd.num is exist - process it [19:57:41]SAM_PROTO_GetFieldsCounters [19:57:41]wFMCommunicate request_size=4 [19:57:41]MH_SAM_APDU [19:57:41]CAPDU: 80 13 00 00 [19:57:41]Write to MH i2c: E2 08 00 B3 03 80 13 00 00 00 00 00 00 32 [19:57:41]Write i2c OK [19:57:41]MH_I2C_Read... [19:57:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:41]Read from MH i2c: E2 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: E2 62 00 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: E2 62 00 B3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8D C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [19: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 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8D C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:57:41]wFMCommunicate OK [19:57:41]SAM_PROTO_GetFieldsCounters done [19:57:41]requested_item shift.num is exist - process it [19:57:41]requested_item shift.opened is exist - process it [19:57:41]req_shift_opened [19:57:41]FM_GetShiftState [19:57:41]SAM_PROTO_GetShiftState [19:57:41]wFMCommunicate request_size=4 [19:57:41]MH_SAM_APDU [19:57:41]CAPDU: 80 13 01 00 [19:57:41]Write to MH i2c: E2 08 00 B4 03 80 13 01 00 00 00 00 00 34 [19:57:41]Write i2c OK [19:57:41]MH_I2C_Read... [19:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:41]Read from MH i2c: E2 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: E2 0E 00 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: E2 0E 00 B4 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 EE [19:57:41]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [19:57:41]wFMCommunicate OK [19:57:41]SAM_PROTO_GetShiftState done [19:57:41]FM_GetShiftState done [19:57:41]req_shift_opened done [19:57:41]requested_item shift.open_date is exist - process it [19:57:41]req_shift_open_date [19:57:41]req_shift_open_date done [19:57:41]produce_requested_data done [19:57:41]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50061,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [19:57:41]process_action_free close_receipt [19:57:41]json_value_free [19:57:41]json_value_free done [19:57:41]process_json_proto returns [19:57:41]Send response to host [19:57:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50061,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [19:57:41]free response buf [19:57:41]execute_script done [19:57:41]execute_script returns [19:57:41]free content buf [19:57:41]Sock 9.Close socket [19:57:41]Sock 9.Thread stoped [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:12]accept exits with 8 [20:03:12]New connection [20:03:12]New thread 3066899812 created [20:03:12]Thread 3066756452 joined [20:03:12]Waiting for new connection... [20:03:12] Sock 8.Parse request [20:03:12]Sock 8.Check first char [20:03:12]Sock 8.First char is OK [20:03:12]request: POST /json_proto HTTP/1.0 [20:03:12]Method: POST [20:03:12]URL: /json_proto [20:03:12]Method is POST - this is cgi request [20:03:12]url: /json_proto [20:03:12]query_string will be loaded in cgi processing [20:03:12]execute_cgi json_proto POST (null) [20:03:12]execute_cgi path=json_proto method=POST [20:03:12]POST find Content-Length [20:03:12]Host: 172.17.46.196:8080 [20:03:12]Content-Length: 641 [20:03:12]Content-Type: application/json [20:03:12] [20:03:12]POST finish read [20:03:12]Found Content-Length = 641 [20:03:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190186", "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" : 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" ] } } [20:03:12]execute_script... [20:03:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190186", "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" : 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" ] } } [20:03:12]POST & json_proto [20:03:12]process_json_proto [20:03:12]json parsed OK: [20:03:12]protocol is kg_v1.0 [20:03:12]action value=close_receipt [20:03:12]process_action close_receipt [20:03:12]cmd_close_receipt [20:03:12]MH_GetDate [20:03:12]Write to MH i2c: F0 00 00 B5 03 A7 [20:03:12]Write i2c OK [20:03:12]MH_I2C_Read... [20:03:12]Read from MH i2c: F0 [20:03:12]MH_I2C_Read... [20:03:12]Read from MH i2c: F0 09 00 [20:03:12]MH_I2C_Read... [20:03:12]Read from MH i2c: F0 09 00 B5 03 00 02 A5 C3 66 C4 85 C2 66 F1 [20:03:12]GetLastDocTimeStamp 1724097457 [20:03:12]current date 1724097794 [20:03:12]FM_GetShiftState [20:03:12]SAM_PROTO_GetShiftState [20:03:12]wFMCommunicate request_size=4 [20:03:12]MH_SAM_APDU [20:03:12]CAPDU: 80 13 01 00 [20:03:12]Write to MH i2c: E2 08 00 B6 03 80 13 01 00 00 00 00 00 36 [20:03:12]Write i2c OK [20:03:12]MH_I2C_Read... [20:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:13]Read from MH i2c: E2 [20:03:13]MH_I2C_Read... [20:03:13]Read from MH i2c: E2 0E 00 [20:03:13]MH_I2C_Read... [20:03:13]Read from MH i2c: E2 0E 00 B6 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 F0 [20:03:13]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [20:03:13]wFMCommunicate OK [20:03:13]SAM_PROTO_GetShiftState done [20:03:13]FM_GetShiftState done [20:03:13]opened in 1724026361 [20:03:13]opened+sec_in_day 1724112761 [20:03:13]quantity*price = 4000 [20:03:13]sum+1 = 4001 [20:03:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 169 19.08.2024 20:03 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50062 ФПД: 80341062417061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T200314&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50062&fm=80341062417061&tin=02508201610067®Number=0000000000092546&sum=4000 0 [20:03:14]StoreToDocumentArchive [20:03:14]shift 467 fd 50062 [20:03:14]save to /storage/0467/doc_00050062 [20:03:14]save last doc name /storage/0467/doc_00050062 to /storage/kkm_last_doc_name [20:03:14]save OK [20:03:14]Clear old archive folders... [20:03:14]ProcessDocumentItem done err = 0, tmpTLVsize=272 [20:03:14]tlvbuf is 01961BD0 [20:03:14]SAM_PROTO_ClearQueue [20:03:14]wFMCommunicate request_size=4 [20:03:14]MH_SAM_APDU [20:03:14]CAPDU: 80 09 00 00 [20:03:14]Write to MH i2c: E2 08 00 C3 03 80 09 00 00 00 00 00 00 38 [20:03:14]Write i2c OK [20:03:14]MH_I2C_Read... [20:03:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:14]Read from MH i2c: E2 [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: E2 03 00 [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: E2 03 00 C3 03 00 90 00 3A [20:03:14]RAPDU: 90 00 [20:03:14]wFMCommunicate OK [20:03:14]SAM_PROTO_ClearQueue done [20:03:14]KKMCreateOFDPacket [20:03:14]OFDProtocolAddRootSTLVToBuf [20:03:14]FM_MakeSignedData [20:03:14]FM_MakeSignedData [20:03:14]SAM_PROTO_SignData [20:03:14]wFMCommunicate request_size=4 [20:03:14]MH_SAM_APDU [20:03:14]CAPDU: 80 0D 01 02 [20:03:14]Write to MH i2c: E2 08 00 C4 03 80 0D 01 02 00 00 00 00 40 [20:03:14]Write i2c OK [20:03:14]MH_I2C_Read... [20:03:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:14]Read from MH i2c: E2 [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: E2 03 00 [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: E2 03 00 C4 03 00 90 00 3B [20:03:14]RAPDU: 90 00 [20:03:14]wFMCommunicate OK [20:03:14]wFMCommunicate request_size=255 [20:03:14]MH_SAM_APDU [20:03:14]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 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 A9 00 00 00 F4 03 04 00 02 A5 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 [20:03:14]Write to MH i2c: E2 02 01 C5 03 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 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 A9 00 00 00 F4 03 04 00 02 A5 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 AE [20:03:14]Write i2c OK [20:03:14]MH_I2C_Read... [20:03:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:14]OFD Sender: No OFD packet to send [20:03:14]Read from MH i2c: E2 [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: E2 03 00 [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: E2 03 00 C5 03 00 90 00 3C [20:03:14]RAPDU: 90 00 [20:03:14]wFMCommunicate OK [20:03:14]wFMCommunicate request_size=31 [20:03:14]MH_SAM_APDU [20:03:14]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 30 30 10 04 04 00 8E C3 00 00 35 04 06 00 49 11 DC 7C 7A A5 [20:03:14]Write to MH i2c: E2 22 00 C6 03 80 0D 02 02 1A 00 30 30 38 37 31 38 30 30 10 04 04 00 8E C3 00 00 35 04 06 00 49 11 DC 7C 7A A5 00 00 88 [20:03:14]Write i2c OK [20:03:14]MH_I2C_Read... [20:03:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:14]Read from MH i2c: E2 [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: E2 03 00 [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: E2 03 00 C6 03 00 90 00 3D [20:03:14]RAPDU: 90 00 [20:03:14]wFMCommunicate OK [20:03:14]wFMCommunicate request_size=4 [20:03:14]MH_SAM_APDU [20:03:14]CAPDU: 80 0D 03 02 [20:03:14]Write to MH i2c: E2 08 00 C7 03 80 0D 03 02 00 00 00 00 45 [20:03:14]Write i2c OK [20:03:14]MH_I2C_Read... [20:03:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:14]Read from MH i2c: E2 [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: E2 0B 00 [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: E2 0B 00 C7 03 00 49 A6 43 C3 50 D5 F1 53 90 00 A4 [20:03:14]RAPDU: 49 A6 43 C3 50 D5 F1 53 90 00 [20:03:14]wFMCommunicate OK [20:03:14]SAM_PROTO_SignData done [20:03:14]FM_MakeSignedData done [20:03:14]CreateOFDProtocolMessage [20:03:14]wFMCommunicate request_size=4 [20:03:14]MH_SAM_APDU [20:03:14]CAPDU: 80 11 00 00 [20:03:14]Write to MH i2c: E2 08 00 C8 03 80 11 00 00 00 00 00 00 45 [20:03:14]Write i2c OK [20:03:14]MH_I2C_Read... [20:03:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:14]Read from MH i2c: E2 [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: E2 17 00 [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: E2 17 00 C8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 90 [20:03:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:03:14]wFMCommunicate OK [20:03:14]CreateOFDProtocolMessage done [20:03:14]OFDSenderStorePacket 50062 [20:03:14]StoreOFDPacket docnum=50062 [20:03:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 E9 AD 1C 01 2F C8 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 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 A9 00 00 00 F4 03 04 00 02 A5 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8E C3 00 00 35 04 06 00 49 11 DC 7C 7A A5 49 A6 43 C3 50 D5 F1 53 [20:03:14]CheckFolder [20:03:14]dirname=/storage/ofd_packets [20:03:14]CheckFolder done [20:03:14]ProducePacketName [20:03:14]name=ofd_packets/00050062 [20:03:14]NVStorageSaveData ofd_packets/00050062 [20:03:14]File name is /storage/ofd_packets/00050062 [20:03:14]Write 322 bytes [20:03:14]NVStorageSaveData done [20:03:14]OFDSenderStorePacket done [20:03:14]KKMCreateOFDPacket done [20:03:14]NVStorageSaveData kkm_last_timestamp [20:03:14]File name is /storage/kkm_last_timestamp [20:03:14]Write 4 bytes [20:03:14]NVStorageSaveData done [20:03:14]ExternCall_PrintAddStr [20:03:14]wPrintStart [20:03:14]Write to MH i2c: 01 00 00 C9 03 CC [20:03:14]Write i2c OK [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: 01 [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: 01 07 00 [20:03:14]MH_I2C_Read... [20:03:14]Read from MH i2c: 01 07 00 C9 03 00 00 00 00 00 FF 0F E1 [20:03:14]RasterBufferAndPrint [20:03:14]line Счет N : (3)190186 [20:03:14]line ИНН: 02508201610067 [20:03:14]line Контрольно-Кассовый Чек [20:03:14]line ПРОДАЖА [20:03:14]line Товар: 40822426 [20:03:14]line Вода Бонаква 0,5л б/г [20:03:14]line 1.000 * 40.00 [20:03:14]line = 40.00 [20:03:14]line НДС 12% НСП 1% [20:03:14]line > о реализуемом товаре [20:03:14]line ИТОГО: 40.00 [20:03:14]line НСП 1% : 0.35 [20:03:14]line НДС 12% : 4.25 [20:03:14]line Наличными: 40.00 [20:03:14]line Безнал.: 0.00 [20:03:14]line Место: АЗС № 95 "Партнер Нефть" [20:03:14]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [20:03:14]line СНО: Общий режим [20:03:14]line Чек 169 19.08.2024 20:03 [20:03:14]line Смена: 467 ФФД: 1.0 [20:03:14]line ЗНМ: 0300000078 [20:03:14]line РНМ: 0000000000092546 [20:03:14]line Версия ККМ: 001 [20:03:14]line ФМ: 0000000000871800 [20:03:14]line ФД: 50062 [20:03:14]line ФПД: 80341062417061 [20:03:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T200314&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50062&fm=80341062417061&tin=02508201610067®Number=0000000000092546&sum=4000 [20:03:15]OFD Sender: Processing packet 50062 [packets to send 21, broken 20] [20:03:15]ProducePacketName [20:03:15]name=ofd_packets/00050062 [20:03:15]OFD Sender: To server: pG, [20:03:15]CommunicateWithHost lk.salyk.kg:30040 [20:03:15]ConnectInit lk.salyk.kg [20:03:15]line 0 [20:03:15]written 0, free lines is 4095 [20:03:15]Connected sock=10 [20:03:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 E9 AD 1C 01 2F C8 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 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 A9 00 00 00 F4 03 04 00 02 A5 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8E C3 00 00 35 04 06 00 49 11 DC 7C 7A A5 49 A6 43 C3 50 D5 F1 53 [20:03:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5B C4 47 00 16 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8E C3 00 00 F4 03 04 00 6E 4F C3 66 B6 04 01 00 00 E4 35 BD A2 6B EA 5D D4 [20:03:15]CommunicateWithHost err = 0 [20:03:15]CheckOFDResponse [20:03:15]1017 (14) - 77093643461234 [20:03:15]1041 (16) - 0000000000871800 [20:03:15]1040 (4) - 50062 [20:03:15]1012 (4) - 19.08.2024 13:58 [20:03:15]1206 (1) - 0 [20:03:15]OFD Sender: Remove packet 50062 [20:03:15]ProducePacketName [20:03:15]name=ofd_packets/00050062 [20:03:15]NVStorageDeleteData [20:03:15]Write to MH i2c: 01 00 00 F1 03 F4 [20:03:15]Write i2c OK [20:03:15]MH_I2C_Read... [20:03:15]Read from MH i2c: 01 [20:03:15]MH_I2C_Read... [20:03:15]Read from MH i2c: 01 07 00 [20:03:15]MH_I2C_Read... [20:03:15]Read from MH i2c: 01 07 00 F1 03 00 00 00 00 00 DE 0C E5 [20:03:15]RasterBufferAndPrint [20:03:15]line [20:03:15]line [20:03:15]line [20:03:15]line [20:03:15]line [20:03:15]written 0, free lines is 3300 [20:03:15]MH_Cut [20:03:15]Write to MH i2c: D1 01 00 F8 03 01 CD [20:03:15]Write i2c OK [20:03:15]MH_I2C_Read... [20:03:15]Read from MH i2c: D1 [20:03:15]MH_I2C_Read... [20:03:15]Read from MH i2c: D1 01 00 [20:03:15]MH_I2C_Read... [20:03:15]Read from MH i2c: D1 01 00 F8 03 00 CC [20:03:15]Write to MH i2c: 01 00 00 F9 03 FC [20:03:15]Write i2c OK [20:03:15]MH_I2C_Read... [20:03:15]OFD Sender: No OFD packet to send [20:03:16]*** Cut start [20:03:16]*** Purtial cut [20:03:16]*** Stage 1: CUTSNS_PIN = 1 [20:03:16]Read from MH i2c: 01 [20:03:16]MH_I2C_Read... [20:03:16]*** Stop cut motor [20:03:16]*** Cut end [20:03:16]Read from MH i2c: 01 07 00 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: 01 07 00 F9 03 00 00 00 00 00 FF 0F 11 [20:03:16]process_action close_receipt done [20:03:16]requested_data is exist [20:03:16]produce_requested_data [20:03:16]requested_item fm.sn is exist - process it [20:03:16]wFMCommunicate request_size=4 [20:03:16]MH_SAM_APDU [20:03:16]CAPDU: 80 11 00 00 [20:03:16]Write to MH i2c: E2 08 00 FA 03 80 11 00 00 00 00 00 00 77 [20:03:16]Write i2c OK [20:03:16]MH_I2C_Read... [20:03:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:16]Read from MH i2c: E2 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: E2 17 00 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: E2 17 00 FA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C2 [20:03:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:03:16]wFMCommunicate OK [20:03:16]requested_item fd.num is exist - process it [20:03:16]SAM_PROTO_GetFieldsCounters [20:03:16]wFMCommunicate request_size=4 [20:03:16]MH_SAM_APDU [20:03:16]CAPDU: 80 13 00 00 [20:03:16]Write to MH i2c: E2 08 00 FB 03 80 13 00 00 00 00 00 00 7A [20:03:16]Write i2c OK [20:03:16]MH_I2C_Read... [20:03:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:16]Read from MH i2c: E2 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: E2 62 00 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: E2 62 00 FB 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8E C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [20:03:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8E C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:03:16]wFMCommunicate OK [20:03:16]SAM_PROTO_GetFieldsCounters done [20:03:16]requested_item shift.num is exist - process it [20:03:16]requested_item shift.opened is exist - process it [20:03:16]req_shift_opened [20:03:16]FM_GetShiftState [20:03:16]SAM_PROTO_GetShiftState [20:03:16]wFMCommunicate request_size=4 [20:03:16]MH_SAM_APDU [20:03:16]CAPDU: 80 13 01 00 [20:03:16]Write to MH i2c: E2 08 00 FC 03 80 13 01 00 00 00 00 00 7C [20:03:16]Write i2c OK [20:03:16]MH_I2C_Read... [20:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:16]Read from MH i2c: E2 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: E2 0E 00 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: E2 0E 00 FC 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 36 [20:03:16]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [20:03:16]wFMCommunicate OK [20:03:16]SAM_PROTO_GetShiftState done [20:03:16]FM_GetShiftState done [20:03:16]req_shift_opened done [20:03:16]requested_item shift.open_date is exist - process it [20:03:16]req_shift_open_date [20:03:16]req_shift_open_date done [20:03:16]produce_requested_data done [20:03:16]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50062,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [20:03:16]process_action_free close_receipt [20:03:16]json_value_free [20:03:16]json_value_free done [20:03:16]process_json_proto returns [20:03:16]Send response to host [20:03:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50062,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [20:03:16]free response buf [20:03:16]execute_script done [20:03:16]execute_script returns [20:03:16]free content buf [20:03:16]Sock 8.Close socket [20:03:16]Sock 8.Thread stoped [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:34]accept exits with 9 [20:18:34]New connection [20:18:34]New thread 3066756452 created [20:18:34]Thread 3066899812 joined [20:18:34]Waiting for new connection... [20:18:34] Sock 9.Parse request [20:18:34]Sock 9.Check first char [20:18:34]Sock 9.First char is OK [20:18:34]request: POST /json_proto HTTP/1.0 [20:18:34]Method: POST [20:18:34]URL: /json_proto [20:18:34]Method is POST - this is cgi request [20:18:34]url: /json_proto [20:18:34]query_string will be loaded in cgi processing [20:18:34]execute_cgi json_proto POST (null) [20:18:34]execute_cgi path=json_proto method=POST [20:18:34]POST find Content-Length [20:18:34]Host: 172.17.46.196:8080 [20:18:34]Content-Length: 748 [20:18:34]Content-Type: application/json [20:18:34] [20:18:34]POST finish read [20:18:34]Found Content-Length = 748 [20:18:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190187", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:34]execute_script... [20:18:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190187", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:34]POST & json_proto [20:18:34]process_json_proto [20:18:34]json parsed OK: [20:18:34]protocol is kg_v1.0 [20:18:34]action value=close_receipt [20:18:34]process_action close_receipt [20:18:34]cmd_close_receipt [20:18:34]MH_GetDate [20:18:34]Write to MH i2c: F0 00 00 FD 03 EF [20:18:34]Write i2c OK [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: F0 [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: F0 09 00 [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: F0 09 00 FD 03 00 9C A8 C3 66 C4 85 C2 66 D6 [20:18:34]GetLastDocTimeStamp 1724097794 [20:18:34]current date 1724098716 [20:18:34]FM_GetShiftState [20:18:34]SAM_PROTO_GetShiftState [20:18:34]wFMCommunicate request_size=4 [20:18:34]MH_SAM_APDU [20:18:34]CAPDU: 80 13 01 00 [20:18:34]Write to MH i2c: E2 08 00 FE 03 80 13 01 00 00 00 00 00 7E [20:18:34]Write i2c OK [20:18:34]MH_I2C_Read... [20:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:35]Read from MH i2c: E2 [20:18:35]MH_I2C_Read... [20:18:35]Read from MH i2c: E2 0E 00 [20:18:35]MH_I2C_Read... [20:18:35]Read from MH i2c: E2 0E 00 FE 03 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 38 [20:18:35]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [20:18:35]wFMCommunicate OK [20:18:35]SAM_PROTO_GetShiftState done [20:18:35]FM_GetShiftState done [20:18:35]opened in 1724026361 [20:18:35]opened+sec_in_day 1724112761 [20:18:35]quantity*price = 12500 [20:18:35]sum+1 = 12501 [20:18:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 170 19.08.2024 20:18 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50063 ФПД: 126240883820718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T201836&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50063&fm=126240883820718&tin=02508201610067®Number=0000000000092546&sum=12500 0 [20:18:36]StoreToDocumentArchive [20:18:36]shift 467 fd 50063 [20:18:36]save to /storage/0467/doc_00050063 [20:18:36]save last doc name /storage/0467/doc_00050063 to /storage/kkm_last_doc_name [20:18:36]save OK [20:18:36]Clear old archive folders... [20:18:36]ProcessDocumentItem done err = 0, tmpTLVsize=312 [20:18:36]tlvbuf is 019631C0 [20:18:36]SAM_PROTO_ClearQueue [20:18:36]wFMCommunicate request_size=4 [20:18:36]MH_SAM_APDU [20:18:36]CAPDU: 80 09 00 00 [20:18:36]Write to MH i2c: E2 08 00 0B 04 80 09 00 00 00 00 00 00 81 [20:18:36]Write i2c OK [20:18:36]MH_I2C_Read... [20:18:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:36]Read from MH i2c: E2 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 03 00 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 03 00 0B 04 00 90 00 83 [20:18:36]RAPDU: 90 00 [20:18:36]wFMCommunicate OK [20:18:36]SAM_PROTO_ClearQueue done [20:18:36]KKMCreateOFDPacket [20:18:36]OFDProtocolAddRootSTLVToBuf [20:18:36]FM_MakeSignedData [20:18:36]FM_MakeSignedData [20:18:36]SAM_PROTO_SignData [20:18:36]wFMCommunicate request_size=4 [20:18:36]MH_SAM_APDU [20:18:36]CAPDU: 80 0D 01 02 [20:18:36]Write to MH i2c: E2 08 00 0C 04 80 0D 01 02 00 00 00 00 89 [20:18:36]Write i2c OK [20:18:36]MH_I2C_Read... [20:18:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:36]Read from MH i2c: E2 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 03 00 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 03 00 0C 04 00 90 00 84 [20:18:36]RAPDU: 90 00 [20:18:36]wFMCommunicate OK [20:18:36]wFMCommunicate request_size=255 [20:18:36]MH_SAM_APDU [20:18:36]CAPDU: 80 0D 02 02 FA 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 9C A8 C3 66 0E 04 04 00 D3 [20:18:36]Write to MH i2c: E2 02 01 0D 04 80 0D 02 02 FA 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 9C A8 C3 66 0E 04 04 00 D3 00 00 8F [20:18:36]Write i2c OK [20:18:36]MH_I2C_Read... [20:18:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:36]Read from MH i2c: E2 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 03 00 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 03 00 0D 04 00 90 00 85 [20:18:36]RAPDU: 90 00 [20:18:36]wFMCommunicate OK [20:18:36]wFMCommunicate request_size=71 [20:18:36]MH_SAM_APDU [20:18:36]CAPDU: 80 0D 02 02 42 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8F C3 00 00 35 04 06 00 72 D0 BF 09 48 AE [20:18:36]Write to MH i2c: E2 4A 00 0E 04 80 0D 02 02 42 00 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8F C3 00 00 35 04 06 00 72 D0 BF 09 48 AE 00 00 F1 [20:18:36]Write i2c OK [20:18:36]MH_I2C_Read... [20:18:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:36]Read from MH i2c: E2 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 03 00 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 03 00 0E 04 00 90 00 86 [20:18:36]RAPDU: 90 00 [20:18:36]wFMCommunicate OK [20:18:36]wFMCommunicate request_size=4 [20:18:36]MH_SAM_APDU [20:18:36]CAPDU: 80 0D 03 02 [20:18:36]Write to MH i2c: E2 08 00 0F 04 80 0D 03 02 00 00 00 00 8E [20:18:36]Write i2c OK [20:18:36]MH_I2C_Read... [20:18:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:36]Read from MH i2c: E2 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 0B 00 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 0B 00 0F 04 00 58 72 7F 3C 86 CE 6C B6 90 00 8A [20:18:36]RAPDU: 58 72 7F 3C 86 CE 6C B6 90 00 [20:18:36]wFMCommunicate OK [20:18:36]SAM_PROTO_SignData done [20:18:36]FM_MakeSignedData done [20:18:36]CreateOFDProtocolMessage [20:18:36]wFMCommunicate request_size=4 [20:18:36]MH_SAM_APDU [20:18:36]CAPDU: 80 11 00 00 [20:18:36]Write to MH i2c: E2 08 00 10 04 80 11 00 00 00 00 00 00 8E [20:18:36]Write i2c OK [20:18:36]MH_I2C_Read... [20:18:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:36]Read from MH i2c: E2 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 17 00 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 17 00 10 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D9 [20:18:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:18:36]wFMCommunicate OK [20:18:36]CreateOFDProtocolMessage done [20:18:36]OFDSenderStorePacket 50063 [20:18:36]StoreOFDPacket docnum=50063 [20:18:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4C 01 00 00 69 94 44 01 B8 AF 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 9C A8 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8F C3 00 00 35 04 06 00 72 D0 BF 09 48 AE 58 72 7F 3C 86 CE 6C B6 [20:18:36]CheckFolder [20:18:36]dirname=/storage/ofd_packets [20:18:36]CheckFolder done [20:18:36]ProducePacketName [20:18:36]name=ofd_packets/00050063 [20:18:36]NVStorageSaveData ofd_packets/00050063 [20:18:36]File name is /storage/ofd_packets/00050063 [20:18:36]Write 362 bytes [20:18:36]NVStorageSaveData done [20:18:36]OFDSenderStorePacket done [20:18:36]KKMCreateOFDPacket done [20:18:36]NVStorageSaveData kkm_last_timestamp [20:18:36]File name is /storage/kkm_last_timestamp [20:18:36]Write 4 bytes [20:18:36]NVStorageSaveData done [20:18:36]ExternCall_PrintAddStr [20:18:36]wPrintStart [20:18:36]Write to MH i2c: 01 00 00 11 04 15 [20:18:36]Write i2c OK [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: 01 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: 01 07 00 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: 01 07 00 11 04 00 00 00 00 00 FF 0F 2A [20:18:36]RasterBufferAndPrint [20:18:36]line Счет N : (3)190187 [20:18:36]line ИНН: 02508201610067 [20:18:36]line Контрольно-Кассовый Чек [20:18:36]line ПРОДАЖА [20:18:36]line Товар: 4870202521254 [20:18:36]line Чай холодный MAXI черный со вкусом клубн [20:18:36]line 1.000 * 125.00 [20:18:36]line = 125.00 [20:18:36]line НДС 12% НСП 1% [20:18:36]line > о реализуемом товаре [20:18:36]line ИТОГО: 125.00 [20:18:36]line НСП 1% : 1.11 [20:18:36]line НДС 12% : 13.27 [20:18:36]line Наличными: 125.00 [20:18:36]line Безнал.: 0.00 [20:18:36]line Место: АЗС № 95 "Партнер Нефть" [20:18:36]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [20:18:36]line СНО: Общий режим [20:18:36]line Чек 170 19.08.2024 20:18 [20:18:36]line Смена: 467 ФФД: 1.0 [20:18:36]line ЗНМ: 0300000078 [20:18:36]line РНМ: 0000000000092546 [20:18:36]line Версия ККМ: 001 [20:18:36]line ФМ: 0000000000871800 [20:18:36]line ФД: 50063 [20:18:36]line ФПД: 126240883820718 [20:18:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T201836&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50063&fm=126240883820718&tin=02508201610067®Number=0000000000092546&sum=12500 [20:18:37]line 0 [20:18:37]OFD Sender: Processing packet 50063 [packets to send 21, broken 20] [20:18:37]ProducePacketName [20:18:37]name=ofd_packets/00050063 [20:18:37]OFD Sender: To server: pG, [20:18:37]CommunicateWithHost lk.salyk.kg:30040 [20:18:37]ConnectInit lk.salyk.kg [20:18:37]written 0, free lines is 4095 [20:18:37]Connected sock=8 [20:18:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4C 01 00 00 69 94 44 01 B8 AF 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 9C A8 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8F C3 00 00 35 04 06 00 72 D0 BF 09 48 AE 58 72 7F 3C 86 CE 6C B6 [20:18:37]Write to MH i2c: 01 00 00 3A 04 3E [20:18:37]Write i2c OK [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: 01 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: 01 07 00 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: 01 07 00 3A 04 00 00 00 00 00 D4 0C 25 [20:18:37]RasterBufferAndPrint [20:18:37]line [20:18:37]line [20:18:37]line [20:18:37]line [20:18:37]line [20:18:37]written 0, free lines is 3290 [20:18:37]MH_Cut [20:18:37]Write to MH i2c: D1 01 00 41 04 01 17 [20:18:37]Write i2c OK [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: D1 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: D1 01 00 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: D1 01 00 41 04 00 16 [20:18:37]Write to MH i2c: 01 00 00 42 04 46 [20:18:37]Write i2c OK [20:18:37]MH_I2C_Read... [20:18:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C2 EC 47 00 CC C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8F C3 00 00 F4 03 04 00 08 53 C3 66 B6 04 01 00 00 54 46 FD 90 B9 AB 82 2E [20:18:37]CommunicateWithHost err = 0 [20:18:37]CheckOFDResponse [20:18:37]1017 (14) - 77093643461234 [20:18:37]1041 (16) - 0000000000871800 [20:18:37]1040 (4) - 50063 [20:18:37]1012 (4) - 19.08.2024 14:13 [20:18:37]1206 (1) - 0 [20:18:37]OFD Sender: Remove packet 50063 [20:18:37]ProducePacketName [20:18:37]name=ofd_packets/00050063 [20:18:37]NVStorageDeleteData [20:18:38]OFD Sender: No OFD packet to send [20:18:38]*** Cut start [20:18:38]*** Purtial cut [20:18:38]*** CUTSNS_PIN = 0 [20:18:38]*** Stage 1: CUTSNS_PIN = 1 [20:18:40]Read from MH i2c: 01 [20:18:40]MH_I2C_Read... [20:18:40]*** Stop cut motor [20:18:40]*** Cut end [20:18:40]Read from MH i2c: 01 07 00 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: 01 07 00 42 04 00 00 00 00 00 FF 0F 5B [20:18:40]process_action close_receipt done [20:18:40]requested_data is exist [20:18:40]produce_requested_data [20:18:40]requested_item fm.sn is exist - process it [20:18:40]wFMCommunicate request_size=4 [20:18:40]MH_SAM_APDU [20:18:40]CAPDU: 80 11 00 00 [20:18:40]Write to MH i2c: E2 08 00 43 04 80 11 00 00 00 00 00 00 C1 [20:18:40]Write i2c OK [20:18:40]MH_I2C_Read... [20:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:40]Read from MH i2c: E2 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: E2 17 00 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: E2 17 00 43 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0C [20:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:18:40]wFMCommunicate OK [20:18:40]requested_item fd.num is exist - process it [20:18:40]SAM_PROTO_GetFieldsCounters [20:18:40]wFMCommunicate request_size=4 [20:18:40]MH_SAM_APDU [20:18:40]CAPDU: 80 13 00 00 [20:18:40]Write to MH i2c: E2 08 00 44 04 80 13 00 00 00 00 00 00 C4 [20:18:40]Write i2c OK [20:18:40]MH_I2C_Read... [20:18:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:40]Read from MH i2c: E2 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: E2 62 00 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: E2 62 00 44 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8F C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [20:18:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 8F C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:18:40]wFMCommunicate OK [20:18:40]SAM_PROTO_GetFieldsCounters done [20:18:40]requested_item shift.num is exist - process it [20:18:40]requested_item shift.opened is exist - process it [20:18:40]req_shift_opened [20:18:40]FM_GetShiftState [20:18:40]SAM_PROTO_GetShiftState [20:18:40]wFMCommunicate request_size=4 [20:18:40]MH_SAM_APDU [20:18:40]CAPDU: 80 13 01 00 [20:18:40]Write to MH i2c: E2 08 00 45 04 80 13 01 00 00 00 00 00 C6 [20:18:40]Write i2c OK [20:18:40]MH_I2C_Read... [20:18:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:40]Read from MH i2c: E2 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: E2 0E 00 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: E2 0E 00 45 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 80 [20:18:40]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [20:18:40]wFMCommunicate OK [20:18:40]SAM_PROTO_GetShiftState done [20:18:40]FM_GetShiftState done [20:18:40]req_shift_opened done [20:18:40]requested_item shift.open_date is exist - process it [20:18:40]req_shift_open_date [20:18:40]req_shift_open_date done [20:18:40]produce_requested_data done [20:18:40]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50063,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [20:18:40]process_action_free close_receipt [20:18:40]json_value_free [20:18:40]json_value_free done [20:18:40]process_json_proto returns [20:18:40]Send response to host [20:18:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50063,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [20:18:40]free response buf [20:18:40]execute_script done [20:18:40]execute_script returns [20:18:40]free content buf [20:18:40]Sock 9.Close socket [20:18:40]Sock 9.Thread stoped [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:23]OFD Sender: No OFD packet to send [20:26:28]OFD Sender: No OFD packet to send [20:26:33]OFD Sender: No OFD packet to send [20:26:38]OFD Sender: No OFD packet to send [20:26:43]OFD Sender: No OFD packet to send [20:26:48]OFD Sender: No OFD packet to send [20:26:53]OFD Sender: No OFD packet to send [20:26:58]OFD Sender: No OFD packet to send [20:27:03]OFD Sender: No OFD packet to send [20:27:08]OFD Sender: No OFD packet to send [20:27:13]OFD Sender: No OFD packet to send [20:27:18]OFD Sender: No OFD packet to send [20:27:23]OFD Sender: No OFD packet to send [20:27:28]OFD Sender: No OFD packet to send [20:27:33]OFD Sender: No OFD packet to send [20:27:38]OFD Sender: No OFD packet to send [20:27:43]OFD Sender: No OFD packet to send [20:27:48]OFD Sender: No OFD packet to send [20:27:53]OFD Sender: No OFD packet to send [20:27:58]OFD Sender: No OFD packet to send [20:28:03]OFD Sender: No OFD packet to send [20:28:08]OFD Sender: No OFD packet to send [20:28:13]OFD Sender: No OFD packet to send [20:28:18]OFD Sender: No OFD packet to send [20:28:23]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:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:58]OFD Sender: No OFD packet to send [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]accept exits with 10 [20:36:13]New connection [20:36:13]New thread 3066899812 created [20:36:13]Thread 3066756452 joined [20:36:13]Waiting for new connection... [20:36:13] Sock 10.Parse request [20:36:13]Sock 10.Check first char [20:36:13]Sock 10.First char is OK [20:36:13]request: POST /json_proto HTTP/1.0 [20:36:13]Method: POST [20:36:13]URL: /json_proto [20:36:13]Method is POST - this is cgi request [20:36:13]url: /json_proto [20:36:13]query_string will be loaded in cgi processing [20:36:13]execute_cgi json_proto POST (null) [20:36:13]execute_cgi path=json_proto method=POST [20:36:13]POST find Content-Length [20:36:13]Host: 172.17.46.196:8080 [20:36:13]Content-Length: 1443 [20:36:13]Content-Type: application/json [20:36:13] [20:36:13]POST finish read [20:36:13]Found Content-Length = 1443 [20:36:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190188", "tax_sys" : 0, "items" : [ { "code": "4700002082191", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039440011", "name": "\u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 4.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 690.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:13]execute_script... [20:36: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)190188", "tax_sys" : 0, "items" : [ { "code": "4700002082191", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000039440011", "name": "\u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 4.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 690.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:13]POST & json_proto [20:36:13]process_json_proto [20:36:13]json parsed OK: [20:36:13]protocol is kg_v1.0 [20:36:13]action value=close_receipt [20:36:13]process_action close_receipt [20:36:13]cmd_close_receipt [20:36:13]MH_GetDate [20:36:13]Write to MH i2c: F0 00 00 46 04 39 [20:36:13]Write i2c OK [20:36:13]MH_I2C_Read... [20:36:13]Read from MH i2c: F0 [20:36:13]MH_I2C_Read... [20:36:13]Read from MH i2c: F0 09 00 [20:36:13]MH_I2C_Read... [20:36:13]Read from MH i2c: F0 09 00 46 04 00 BF AC C3 66 C4 85 C2 66 47 [20:36:13]GetLastDocTimeStamp 1724098716 [20:36:13]current date 1724099775 [20:36:13]FM_GetShiftState [20:36:13]SAM_PROTO_GetShiftState [20:36:13]wFMCommunicate request_size=4 [20:36:13]MH_SAM_APDU [20:36:13]CAPDU: 80 13 01 00 [20:36:14]Write to MH i2c: E2 08 00 47 04 80 13 01 00 00 00 00 00 C8 [20:36:14]OFD Sender: No OFD packet to send [20:36:14]Write i2c OK [20:36:14]MH_I2C_Read... [20:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:14]Read from MH i2c: E2 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: E2 0E 00 [20:36:14]MH_I2C_Read... [20:36:14]Read from MH i2c: E2 0E 00 47 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 82 [20:36:14]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [20:36:14]wFMCommunicate OK [20:36:14]SAM_PROTO_GetShiftState done [20:36:14]FM_GetShiftState done [20:36:14]opened in 1724026361 [20:36:14]opened+sec_in_day 1724112761 [20:36:14]quantity*price = 35000 [20:36:14]sum+1 = 35001 [20:36:14]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000039440011 Чай черный 200 мл 4.000 * 40.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100091993 Шок Батончик Милки Вей 26г 1.000 * 35.00 = 35.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700001610012 Пиво Арпа 0,5л 1.000 * 145.00 = 145.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 690.00 НСП 1% : 6.11 НДС 12% : 73.28 Наличными: 690.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 171 19.08.2024 20:36 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50064 ФПД: 131031339530361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T203615&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50064&fm=131031339530361&tin=02508201610067®Number=0000000000092546&sum=69000 0 [20:36:15]StoreToDocumentArchive [20:36:15]shift 467 fd 50064 [20:36:15]save to /storage/0467/doc_00050064 [20:36:15]save last doc name /storage/0467/doc_00050064 to /storage/kkm_last_doc_name [20:36:15]save OK [20:36:15]Clear old archive folders... [20:36:15]ProcessDocumentItem done err = 0, tmpTLVsize=596 [20:36:15]tlvbuf is 01946620 [20:36:15]SAM_PROTO_ClearQueue [20:36:15]wFMCommunicate request_size=4 [20:36:15]MH_SAM_APDU [20:36:15]CAPDU: 80 09 00 00 [20:36:15]Write to MH i2c: E2 08 00 54 04 80 09 00 00 00 00 00 00 CA [20:36:15]Write i2c OK [20:36:15]MH_I2C_Read... [20:36:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:15]Read from MH i2c: E2 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 54 04 00 90 00 CC [20:36:15]RAPDU: 90 00 [20:36:15]wFMCommunicate OK [20:36:15]SAM_PROTO_ClearQueue done [20:36:15]KKMCreateOFDPacket [20:36:15]OFDProtocolAddRootSTLVToBuf [20:36:15]FM_MakeSignedData [20:36:15]FM_MakeSignedData [20:36:15]SAM_PROTO_SignData [20:36:15]wFMCommunicate request_size=4 [20:36:15]MH_SAM_APDU [20:36:15]CAPDU: 80 0D 01 02 [20:36:15]Write to MH i2c: E2 08 00 55 04 80 0D 01 02 00 00 00 00 D2 [20:36:15]Write i2c OK [20:36:15]MH_I2C_Read... [20:36:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:15]Read from MH i2c: E2 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 55 04 00 90 00 CD [20:36:15]RAPDU: 90 00 [20:36:15]wFMCommunicate OK [20:36:15]wFMCommunicate request_size=255 [20:36:15]MH_SAM_APDU [20:36:15]CAPDU: 80 0D 02 02 FA 03 00 54 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 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 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 [20:36:15]Write to MH i2c: E2 02 01 56 04 80 0D 02 02 FA 00 03 00 54 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 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 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 00 00 04 [20:36:15]Write i2c OK [20:36:15]MH_I2C_Read... [20:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:15]Read from MH i2c: E2 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 56 04 00 90 00 CE [20:36:15]RAPDU: 90 00 [20:36:15]wFMCommunicate OK [20:36:15]wFMCommunicate request_size=255 [20:36:15]MH_SAM_APDU [20:36:15]CAPDU: 80 0D 02 02 FA 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 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 [20:36:15]Write to MH i2c: E2 02 01 57 04 80 0D 02 02 FA 00 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 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 05 [20:36:15]Write i2c OK [20:36:15]MH_I2C_Read... [20:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:15]Read from MH i2c: E2 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 [20:36:15]MH_I2C_Read... [20:36:15]Read from MH i2c: E2 03 00 57 04 00 90 00 CF [20:36:15]RAPDU: 90 00 [20:36:15]wFMCommunicate OK [20:36:15]wFMCommunicate request_size=105 [20:36:15]MH_SAM_APDU [20:36:15]CAPDU: 80 0D 02 02 64 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 BF AC C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 90 C3 00 00 35 04 06 00 77 2C 1C 72 78 79 [20:36:15]Write to MH i2c: E2 6C 00 58 04 80 0D 02 02 64 00 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 BF AC C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 90 C3 00 00 35 04 06 00 77 2C 1C 72 78 79 00 00 05 [20:36:15]Write i2c OK [20:36:15]MH_I2C_Read... [20:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:16]Read from MH i2c: E2 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 03 00 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 03 00 58 04 00 90 00 D0 [20:36:16]RAPDU: 90 00 [20:36:16]wFMCommunicate OK [20:36:16]wFMCommunicate request_size=4 [20:36:16]MH_SAM_APDU [20:36:16]CAPDU: 80 0D 03 02 [20:36:16]Write to MH i2c: E2 08 00 59 04 80 0D 03 02 00 00 00 00 D8 [20:36:16]Write i2c OK [20:36:16]MH_I2C_Read... [20:36:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:16]Read from MH i2c: E2 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 0B 00 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 0B 00 59 04 00 E7 89 1D CD F7 9F E6 E9 90 00 98 [20:36:16]RAPDU: E7 89 1D CD F7 9F E6 E9 90 00 [20:36:16]wFMCommunicate OK [20:36:16]SAM_PROTO_SignData done [20:36:16]FM_MakeSignedData done [20:36:16]CreateOFDProtocolMessage [20:36:16]wFMCommunicate request_size=4 [20:36:16]MH_SAM_APDU [20:36:16]CAPDU: 80 11 00 00 [20:36:16]Write to MH i2c: E2 08 00 5A 04 80 11 00 00 00 00 00 00 D8 [20:36:16]Write i2c OK [20:36:16]MH_I2C_Read... [20:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:16]Read from MH i2c: E2 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 17 00 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 17 00 5A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 23 [20:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:36:16]wFMCommunicate OK [20:36:16]CreateOFDProtocolMessage done [20:36:16]OFDSenderStorePacket 50064 [20:36:16]StoreOFDPacket docnum=50064 [20:36:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 68 02 00 00 1A 0C 60 02 76 10 5A 03 01 00 03 00 54 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 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 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 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 BF AC C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 90 C3 00 00 35 04 06 00 77 2C 1C 72 78 79 E7 89 1D CD F7 9F E6 E9 [20:36:16]CheckFolder [20:36:16]dirname=/storage/ofd_packets [20:36:16]CheckFolder done [20:36:16]ProducePacketName [20:36:16]name=ofd_packets/00050064 [20:36:16]NVStorageSaveData ofd_packets/00050064 [20:36:16]File name is /storage/ofd_packets/00050064 [20:36:16]Write 646 bytes [20:36:16]NVStorageSaveData done [20:36:16]OFDSenderStorePacket done [20:36:16]KKMCreateOFDPacket done [20:36:16]NVStorageSaveData kkm_last_timestamp [20:36:16]File name is /storage/kkm_last_timestamp [20:36:16]Write 4 bytes [20:36:16]NVStorageSaveData done [20:36:16]ExternCall_PrintAddStr [20:36:16]wPrintStart [20:36:16]Write to MH i2c: 01 00 00 5B 04 5F [20:36:16]Write i2c OK [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: 01 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: 01 07 00 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: 01 07 00 5B 04 00 00 00 00 00 FF 0F 74 [20:36:16]RasterBufferAndPrint [20:36:16]line Счет N : (3)190188 [20:36:16]line ИНН: 02508201610067 [20:36:16]line Контрольно-Кассовый Чек [20:36:16]line ПРОДАЖА [20:36:16]line Товар: 4700002082191 [20:36:16]line Водка Белое золото 0,46л [20:36:16]line 1.000 * 350.00 [20:36:16]line = 350.00 [20:36:16]line НДС 12% НСП 1% [20:36:16]line > о реализуемом товаре [20:36:16]line Товар: 2000039440011 [20:36:16]line Чай черный 200 мл [20:36:16]line 4.000 * 40.00 [20:36:16]line = 160.00 [20:36:16]line НДС 12% НСП 1% [20:36:16]line > о реализуемом товаре [20:36:16]line Товар: 4011100091993 [20:36:16]line Шок Батончик Милки Вей 26г [20:36:16]line 1.000 * 35.00 [20:36:16]line = 35.00 [20:36:16]line НДС 12% НСП 1% [20:36:16]line > о реализуемом товаре [20:36:16]line Товар: 4700001610012 [20:36:16]line Пиво Арпа 0,5л [20:36:16]line 1.000 * 145.00 [20:36:16]line = 145.00 [20:36:16]line НДС 12% НСП 1% [20:36:16]line > о реализуемом товаре [20:36:16]line ИТОГО: 690.00 [20:36:16]line НСП 1% : 6.11 [20:36:16]line НДС 12% : 73.28 [20:36:16]line Наличными: 690.00 [20:36:16]line Безнал.: 0.00 [20:36:16]line Место: АЗС № 95 "Партнер Нефть" [20:36:16]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [20:36:16]line СНО: Общий режим [20:36:16]line Чек 171 19.08.2024 20:36 [20:36:16]line Смена: 467 ФФД: 1.0 [20:36:16]line ЗНМ: 0300000078 [20:36:16]line РНМ: 0000000000092546 [20:36:16]line Версия ККМ: 001 [20:36:16]line ФМ: 0000000000871800 [20:36:16]line ФД: 50064 [20:36:16]line ФПД: 131031339530361 [20:36:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T203615&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50064&fm=131031339530361&tin=02508201610067®Number=0000000000092546&sum=69000 [20:36:16]OFD Sender: Processing packet 50064 [packets to send 21, broken 20] [20:36:16]ProducePacketName [20:36:16]name=ofd_packets/00050064 [20:36:16]OFD Sender: To server: pG, [20:36:16]CommunicateWithHost lk.salyk.kg:30040 [20:36:16]ConnectInit lk.salyk.kg [20:36:16]line 0 [20:36:16]written 0, free lines is 4095 [20:36:16]Connected sock=9 [20:36:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 68 02 00 00 1A 0C 60 02 76 10 5A 03 01 00 03 00 54 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 31 39 31 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 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 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 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 BF AC C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 90 C3 00 00 35 04 06 00 77 2C 1C 72 78 79 E7 89 1D CD F7 9F E6 E9 [20:36:17]Write to MH i2c: 01 00 00 95 04 99 [20:36:17]Write i2c OK [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: 01 [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: 01 07 00 [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: 01 07 00 95 04 00 00 00 00 00 CB 0B 76 [20:36:17]RasterBufferAndPrint [20:36:17]line [20:36:17]line [20:36:17]line [20:36:17]line [20:36:17]line [20:36:17]written 0, free lines is 3028 [20:36:17]MH_Cut [20:36:17]Write to MH i2c: D1 01 00 9C 04 01 72 [20:36:17]Write i2c OK [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: D1 [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: D1 01 00 [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: D1 01 00 9C 04 00 71 [20:36:17]Write to MH i2c: 01 00 00 9D 04 A1 [20:36:17]Write i2c OK [20:36:17]MH_I2C_Read... [20:36:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 42 17 47 00 BA FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 90 C3 00 00 F4 03 04 00 2C 57 C3 66 B6 04 01 00 00 00 DC EB B7 B5 D7 80 77 [20:36:17]CommunicateWithHost err = 0 [20:36:17]CheckOFDResponse [20:36:17]1017 (14) - 77093643461234 [20:36:17]1041 (16) - 0000000000871800 [20:36:17]1040 (4) - 50064 [20:36:17]1012 (4) - 19.08.2024 14:31 [20:36:17]1206 (1) - 0 [20:36:17]OFD Sender: Remove packet 50064 [20:36:17]ProducePacketName [20:36:17]name=ofd_packets/00050064 [20:36:17]NVStorageDeleteData [20:36:17]OFD Sender: No OFD packet to send [20:36:18]*** Cut start [20:36:18]*** Purtial cut [20:36:18]*** Stage 1: CUTSNS_PIN = 1 [20:36:18]Read from MH i2c: 01 [20:36:18]MH_I2C_Read... [20:36:18]*** Stop cut motor [20:36:18]*** Cut end [20:36:18]Read from MH i2c: 01 07 00 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: 01 07 00 9D 04 00 00 00 00 00 FF 0F B6 [20:36:18]process_action close_receipt done [20:36:18]requested_data is exist [20:36:18]produce_requested_data [20:36:18]requested_item fm.sn is exist - process it [20:36:18]wFMCommunicate request_size=4 [20:36:18]MH_SAM_APDU [20:36:18]CAPDU: 80 11 00 00 [20:36:18]Write to MH i2c: E2 08 00 9E 04 80 11 00 00 00 00 00 00 1C [20:36:18]Write i2c OK [20:36:18]MH_I2C_Read... [20:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:18]Read from MH i2c: E2 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 17 00 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 17 00 9E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 67 [20:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:36:18]wFMCommunicate OK [20:36:18]requested_item fd.num is exist - process it [20:36:18]SAM_PROTO_GetFieldsCounters [20:36:18]wFMCommunicate request_size=4 [20:36:18]MH_SAM_APDU [20:36:18]CAPDU: 80 13 00 00 [20:36:18]Write to MH i2c: E2 08 00 9F 04 80 13 00 00 00 00 00 00 1F [20:36:18]Write i2c OK [20:36:18]MH_I2C_Read... [20:36:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:18]Read from MH i2c: E2 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 62 00 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 62 00 9F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 90 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [20:36:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 90 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:18]wFMCommunicate OK [20:36:18]SAM_PROTO_GetFieldsCounters done [20:36:18]requested_item shift.num is exist - process it [20:36:18]requested_item shift.opened is exist - process it [20:36:18]req_shift_opened [20:36:18]FM_GetShiftState [20:36:18]SAM_PROTO_GetShiftState [20:36:18]wFMCommunicate request_size=4 [20:36:18]MH_SAM_APDU [20:36:18]CAPDU: 80 13 01 00 [20:36:18]Write to MH i2c: E2 08 00 A0 04 80 13 01 00 00 00 00 00 21 [20:36:18]Write i2c OK [20:36:18]MH_I2C_Read... [20:36:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:18]Read from MH i2c: E2 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 0E 00 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 0E 00 A0 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 DB [20:36:18]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [20:36:18]wFMCommunicate OK [20:36:18]SAM_PROTO_GetShiftState done [20:36:18]FM_GetShiftState done [20:36:18]req_shift_opened done [20:36:18]requested_item shift.open_date is exist - process it [20:36:18]req_shift_open_date [20:36:18]req_shift_open_date done [20:36:18]produce_requested_data done [20:36:18]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50064,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [20:36:18]process_action_free close_receipt [20:36:18]json_value_free [20:36:18]json_value_free done [20:36:18]process_json_proto returns [20:36:18]Send response to host [20:36:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50064,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [20:36:18]free response buf [20:36:18]execute_script done [20:36:18]execute_script returns [20:36:18]free content buf [20:36:18]Sock 10.Close socket [20:36:18]Sock 10.Thread stoped [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:31]accept exits with 8 [20:45:31]New connection [20:45:31]New thread 3066756452 created [20:45:31]Thread 3066899812 joined [20:45:31]Waiting for new connection... [20:45:31] Sock 8.Parse request [20:45:31]Sock 8.Check first char [20:45:31]Sock 8.First char is OK [20:45:31]request: POST /json_proto HTTP/1.0 [20:45:31]Method: POST [20:45:31]URL: /json_proto [20:45:31]Method is POST - this is cgi request [20:45:31]url: /json_proto [20:45:31]query_string will be loaded in cgi processing [20:45:31]execute_cgi json_proto POST (null) [20:45:31]execute_cgi path=json_proto method=POST [20:45:31]POST find Content-Length [20:45:31]Host: 172.17.46.196:8080 [20:45:31]Content-Length: 649 [20:45:31]Content-Type: application/json [20:45:31] [20:45:31]POST finish read [20:45:31]Found Content-Length = 649 [20:45:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190189", "tax_sys" : 0, "items" : [ { "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:31]execute_script... [20:45: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)190189", "tax_sys" : 0, "items" : [ { "code": "4860019001339", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,33\u043B \u0441\u0442", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:31]POST & json_proto [20:45:31]process_json_proto [20:45:31]json parsed OK: [20:45:31]protocol is kg_v1.0 [20:45:31]action value=close_receipt [20:45:31]process_action close_receipt [20:45:31]cmd_close_receipt [20:45:31]MH_GetDate [20:45:31]Write to MH i2c: F0 00 00 A1 04 94 [20:45:31]Write i2c OK [20:45:31]MH_I2C_Read... [20:45:31]Read from MH i2c: F0 [20:45:31]MH_I2C_Read... [20:45:31]Read from MH i2c: F0 09 00 [20:45:31]MH_I2C_Read... [20:45:31]Read from MH i2c: F0 09 00 A1 04 00 ED AE C3 66 C4 85 C2 66 D2 [20:45:31]GetLastDocTimeStamp 1724099775 [20:45:31]current date 1724100333 [20:45:31]FM_GetShiftState [20:45:31]SAM_PROTO_GetShiftState [20:45:31]wFMCommunicate request_size=4 [20:45:31]MH_SAM_APDU [20:45:31]CAPDU: 80 13 01 00 [20:45:31]Write to MH i2c: E2 08 00 A2 04 80 13 01 00 00 00 00 00 23 [20:45:31]Write i2c OK [20:45:31]MH_I2C_Read... [20:45:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:32]Read from MH i2c: E2 [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: E2 0E 00 [20:45:32]MH_I2C_Read... [20:45:32]Read from MH i2c: E2 0E 00 A2 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 DD [20:45:32]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [20:45:32]wFMCommunicate OK [20:45:32]SAM_PROTO_GetShiftState done [20:45:32]FM_GetShiftState done [20:45:32]opened in 1724026361 [20:45:32]opened+sec_in_day 1724112761 [20:45:32]quantity*price = 11000 [20:45:32]sum+1 = 11001 [20:45:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 172 19.08.2024 20:45 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50065 ФПД: 90382367212210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T204533&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50065&fm=90382367212210&tin=02508201610067®Number=0000000000092546&sum=11000 0 [20:45:33]StoreToDocumentArchive [20:45:33]shift 467 fd 50065 [20:45:33]save to /storage/0467/doc_00050065 [20:45:33]save last doc name /storage/0467/doc_00050065 to /storage/kkm_last_doc_name [20:45:33]save OK [20:45:33]Clear old archive folders... [20:45:33]ProcessDocumentItem done err = 0, tmpTLVsize=277 [20:45:33]tlvbuf is 01962EC0 [20:45:33]SAM_PROTO_ClearQueue [20:45:33]wFMCommunicate request_size=4 [20:45:33]MH_SAM_APDU [20:45:33]CAPDU: 80 09 00 00 [20:45:33]Write to MH i2c: E2 08 00 AF 04 80 09 00 00 00 00 00 00 25 [20:45:33]Write i2c OK [20:45:33]MH_I2C_Read... [20:45:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:45:33]Read from MH i2c: E2 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: E2 03 00 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: E2 03 00 AF 04 00 90 00 27 [20:45:33]RAPDU: 90 00 [20:45:33]wFMCommunicate OK [20:45:33]SAM_PROTO_ClearQueue done [20:45:33]KKMCreateOFDPacket [20:45:33]OFDProtocolAddRootSTLVToBuf [20:45:33]FM_MakeSignedData [20:45:33]FM_MakeSignedData [20:45:33]SAM_PROTO_SignData [20:45:33]wFMCommunicate request_size=4 [20:45:33]MH_SAM_APDU [20:45:33]CAPDU: 80 0D 01 02 [20:45:33]Write to MH i2c: E2 08 00 B0 04 80 0D 01 02 00 00 00 00 2D [20:45:33]Write i2c OK [20:45:33]MH_I2C_Read... [20:45:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:45:33]Read from MH i2c: E2 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: E2 03 00 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: E2 03 00 B0 04 00 90 00 28 [20:45:33]RAPDU: 90 00 [20:45:33]wFMCommunicate OK [20:45:33]wFMCommunicate request_size=255 [20:45:33]MH_SAM_APDU [20:45:33]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 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 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 ED AE C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 [20:45:33]Write to MH i2c: E2 02 01 B1 04 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 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 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 ED AE C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 00 00 28 [20:45:33]Write i2c OK [20:45:33]MH_I2C_Read... [20:45:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:33]Read from MH i2c: E2 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: E2 03 00 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: E2 03 00 B1 04 00 90 00 29 [20:45:33]RAPDU: 90 00 [20:45:33]wFMCommunicate OK [20:45:33]wFMCommunicate request_size=36 [20:45:33]MH_SAM_APDU [20:45:33]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 91 C3 00 00 35 04 06 00 52 33 C8 E4 42 B2 [20:45:33]Write to MH i2c: E2 27 00 B2 04 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 91 C3 00 00 35 04 06 00 52 33 C8 E4 42 B2 00 00 C6 [20:45:33]Write i2c OK [20:45:33]MH_I2C_Read... [20:45:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:33]Read from MH i2c: E2 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: E2 03 00 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: E2 03 00 B2 04 00 90 00 2A [20:45:33]RAPDU: 90 00 [20:45:33]wFMCommunicate OK [20:45:33]wFMCommunicate request_size=4 [20:45:33]MH_SAM_APDU [20:45:33]CAPDU: 80 0D 03 02 [20:45:33]Write to MH i2c: E2 08 00 B3 04 80 0D 03 02 00 00 00 00 32 [20:45:33]Write i2c OK [20:45:33]MH_I2C_Read... [20:45:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:45:33]Read from MH i2c: E2 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: E2 0B 00 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: E2 0B 00 B3 04 00 63 08 ED 20 08 7C 40 E6 90 00 55 [20:45:33]RAPDU: 63 08 ED 20 08 7C 40 E6 90 00 [20:45:33]wFMCommunicate OK [20:45:33]SAM_PROTO_SignData done [20:45:33]FM_MakeSignedData done [20:45:33]CreateOFDProtocolMessage [20:45:33]wFMCommunicate request_size=4 [20:45:33]MH_SAM_APDU [20:45:33]CAPDU: 80 11 00 00 [20:45:33]Write to MH i2c: E2 08 00 B4 04 80 11 00 00 00 00 00 00 32 [20:45:33]Write i2c OK [20:45:33]MH_I2C_Read... [20:45:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:33]Read from MH i2c: E2 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: E2 17 00 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: E2 17 00 B4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7D [20:45:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:45:33]wFMCommunicate OK [20:45:33]CreateOFDProtocolMessage done [20:45:33]OFDSenderStorePacket 50065 [20:45:33]StoreOFDPacket docnum=50065 [20:45:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 29 01 00 00 B7 43 21 01 3C CE 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 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 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 ED AE C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 91 C3 00 00 35 04 06 00 52 33 C8 E4 42 B2 63 08 ED 20 08 7C 40 E6 [20:45:33]CheckFolder [20:45:33]dirname=/storage/ofd_packets [20:45:33]CheckFolder done [20:45:33]ProducePacketName [20:45:33]name=ofd_packets/00050065 [20:45:33]NVStorageSaveData ofd_packets/00050065 [20:45:33]File name is /storage/ofd_packets/00050065 [20:45:33]Write 327 bytes [20:45:33]NVStorageSaveData done [20:45:33]OFDSenderStorePacket done [20:45:33]KKMCreateOFDPacket done [20:45:33]NVStorageSaveData kkm_last_timestamp [20:45:33]File name is /storage/kkm_last_timestamp [20:45:33]Write 4 bytes [20:45:33]NVStorageSaveData done [20:45:33]ExternCall_PrintAddStr [20:45:33]wPrintStart [20:45:33]Write to MH i2c: 01 00 00 B5 04 B9 [20:45:33]Write i2c OK [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: 01 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: 01 07 00 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: 01 07 00 B5 04 00 00 00 00 00 FF 0F CE [20:45:33]RasterBufferAndPrint [20:45:33]line Счет N : (3)190189 [20:45:33]line ИНН: 02508201610067 [20:45:33]line Контрольно-Кассовый Чек [20:45:33]line ПРОДАЖА [20:45:33]line Товар: 4860019001339 [20:45:33]line Вода Боржоми 0,33л ст [20:45:33]line 1.000 * 110.00 [20:45:33]line = 110.00 [20:45:33]line НДС 12% НСП 1% [20:45:33]line > о реализуемом товаре [20:45:33]line ИТОГО: 110.00 [20:45:33]line НСП 1% : 0.97 [20:45:33]line НДС 12% : 11.68 [20:45:33]line Наличными: 110.00 [20:45:33]line Безнал.: 0.00 [20:45:33]line Место: АЗС № 95 "Партнер Нефть" [20:45:33]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [20:45:33]line СНО: Общий режим [20:45:33]line Чек 172 19.08.2024 20:45 [20:45:33]line Смена: 467 ФФД: 1.0 [20:45:33]line ЗНМ: 0300000078 [20:45:33]line РНМ: 0000000000092546 [20:45:33]line Версия ККМ: 001 [20:45:33]line ФМ: 0000000000871800 [20:45:33]line ФД: 50065 [20:45:33]line ФПД: 90382367212210 [20:45:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T204533&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50065&fm=90382367212210&tin=02508201610067®Number=0000000000092546&sum=11000 [20:45:33]line 0 [20:45:34]written 0, free lines is 4095 [20:45:34]OFD Sender: Processing packet 50065 [packets to send 21, broken 20] [20:45:34]ProducePacketName [20:45:34]name=ofd_packets/00050065 [20:45:34]OFD Sender: To server: pG, [20:45:34]CommunicateWithHost lk.salyk.kg:30040 [20:45:34]ConnectInit lk.salyk.kg [20:45:34]Connected sock=9 [20:45:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 29 01 00 00 B7 43 21 01 3C CE 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 33 39 06 04 23 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 33 33 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 ED AE C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 91 C3 00 00 35 04 06 00 52 33 C8 E4 42 B2 63 08 ED 20 08 7C 40 E6 [20:45:34]Write to MH i2c: 01 00 00 DD 04 E1 [20:45:34]Write i2c OK [20:45:34]MH_I2C_Read... [20:45:34]Read from MH i2c: 01 [20:45:34]MH_I2C_Read... [20:45:34]Read from MH i2c: 01 07 00 [20:45:34]MH_I2C_Read... [20:45:34]Read from MH i2c: 01 07 00 DD 04 00 00 00 00 00 DA 0C CE [20:45:34]RasterBufferAndPrint [20:45:34]line [20:45:34]line [20:45:34]line [20:45:34]line [20:45:34]line [20:45:34]written 0, free lines is 3296 [20:45:34]MH_Cut [20:45:34]Write to MH i2c: D1 01 00 E4 04 01 BA [20:45:34]Write i2c OK [20:45:34]MH_I2C_Read... [20:45:34]Read from MH i2c: D1 [20:45:34]MH_I2C_Read... [20:45:34]Read from MH i2c: D1 01 00 [20:45:34]MH_I2C_Read... [20:45:34]Read from MH i2c: D1 01 00 E4 04 00 B9 [20:45:34]Write to MH i2c: 01 00 00 E5 04 E9 [20:45:34]Write i2c OK [20:45:34]MH_I2C_Read... [20:45:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 07 A2 47 00 12 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 91 C3 00 00 F4 03 04 00 59 59 C3 66 B6 04 01 00 00 24 A8 85 0C 94 26 79 E8 [20:45:34]CommunicateWithHost err = 0 [20:45:34]CheckOFDResponse [20:45:34]1017 (14) - 77093643461234 [20:45:34]1041 (16) - 0000000000871800 [20:45:34]1040 (4) - 50065 [20:45:34]1012 (4) - 19.08.2024 14:40 [20:45:34]1206 (1) - 0 [20:45:34]OFD Sender: Remove packet 50065 [20:45:34]ProducePacketName [20:45:34]name=ofd_packets/00050065 [20:45:34]NVStorageDeleteData [20:45:34]OFD Sender: No OFD packet to send [20:45:35]*** Cut start [20:45:35]*** Purtial cut [20:45:35]*** CUTSNS_PIN = 0 [20:45:35]*** Stage 1: CUTSNS_PIN = 1 [20:45:37]Read from MH i2c: 01 [20:45:37]MH_I2C_Read... [20:45:37]*** Stop cut motor [20:45:37]*** Cut end [20:45:37]Read from MH i2c: 01 07 00 [20:45:37]MH_I2C_Read... [20:45:37]Read from MH i2c: 01 07 00 E5 04 00 00 00 00 00 FF 0F FE [20:45:37]process_action close_receipt done [20:45:37]requested_data is exist [20:45:37]produce_requested_data [20:45:37]requested_item fm.sn is exist - process it [20:45:37]wFMCommunicate request_size=4 [20:45:37]MH_SAM_APDU [20:45:37]CAPDU: 80 11 00 00 [20:45:37]Write to MH i2c: E2 08 00 E6 04 80 11 00 00 00 00 00 00 64 [20:45:37]Write i2c OK [20:45:37]MH_I2C_Read... [20:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:37]Read from MH i2c: E2 [20:45:37]MH_I2C_Read... [20:45:37]Read from MH i2c: E2 17 00 [20:45:37]MH_I2C_Read... [20:45:37]Read from MH i2c: E2 17 00 E6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AF [20:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:45:37]wFMCommunicate OK [20:45:37]requested_item fd.num is exist - process it [20:45:37]SAM_PROTO_GetFieldsCounters [20:45:37]wFMCommunicate request_size=4 [20:45:37]MH_SAM_APDU [20:45:37]CAPDU: 80 13 00 00 [20:45:37]Write to MH i2c: E2 08 00 E7 04 80 13 00 00 00 00 00 00 67 [20:45:37]Write i2c OK [20:45:37]MH_I2C_Read... [20:45:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:45:37]Read from MH i2c: E2 [20:45:37]MH_I2C_Read... [20:45:37]Read from MH i2c: E2 62 00 [20:45:37]MH_I2C_Read... [20:45:37]Read from MH i2c: E2 62 00 E7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 91 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [20:45:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 91 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:45:37]wFMCommunicate OK [20:45:37]SAM_PROTO_GetFieldsCounters done [20:45:37]requested_item shift.num is exist - process it [20:45:37]requested_item shift.opened is exist - process it [20:45:37]req_shift_opened [20:45:37]FM_GetShiftState [20:45:37]SAM_PROTO_GetShiftState [20:45:37]wFMCommunicate request_size=4 [20:45:37]MH_SAM_APDU [20:45:37]CAPDU: 80 13 01 00 [20:45:37]Write to MH i2c: E2 08 00 E8 04 80 13 01 00 00 00 00 00 69 [20:45:37]Write i2c OK [20:45:37]MH_I2C_Read... [20:45:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:37]Read from MH i2c: E2 [20:45:37]MH_I2C_Read... [20:45:37]Read from MH i2c: E2 0E 00 [20:45:37]MH_I2C_Read... [20:45:37]Read from MH i2c: E2 0E 00 E8 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 23 [20:45:37]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [20:45:37]wFMCommunicate OK [20:45:37]SAM_PROTO_GetShiftState done [20:45:37]FM_GetShiftState done [20:45:37]req_shift_opened done [20:45:37]requested_item shift.open_date is exist - process it [20:45:37]req_shift_open_date [20:45:37]req_shift_open_date done [20:45:37]produce_requested_data done [20:45:37]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50065,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [20:45:37]process_action_free close_receipt [20:45:37]json_value_free [20:45:37]json_value_free done [20:45:37]process_json_proto returns [20:45:37]Send response to host [20:45:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50065,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [20:45:37]free response buf [20:45:37]execute_script done [20:45:37]execute_script returns [20:45:37]free content buf [20:45:37]Sock 8.Close socket [20:45:37]Sock 8.Thread stoped [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:40]OFD Sender: No OFD packet to send [20:48:45]OFD Sender: No OFD packet to send [20:48:50]OFD Sender: No OFD packet to send [20:48:55]OFD Sender: No OFD packet to send [20:49:00]OFD Sender: No OFD packet to send [20:49:05]OFD Sender: No OFD packet to send [20:49:10]OFD Sender: No OFD packet to send [20:49:15]OFD Sender: No OFD packet to send [20:49:20]OFD Sender: No OFD packet to send [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:02]accept exits with 10 [20:50:02]New connection [20:50:02]New thread 3066899812 created [20:50:02]Thread 3066756452 joined [20:50:02]Waiting for new connection... [20:50:02] Sock 10.Parse request [20:50:02]Sock 10.Check first char [20:50:02]Sock 10.First char is OK [20:50:02]request: POST /json_proto HTTP/1.0 [20:50:02]Method: POST [20:50:02]URL: /json_proto [20:50:02]Method is POST - this is cgi request [20:50:02]url: /json_proto [20:50:02]query_string will be loaded in cgi processing [20:50:02]execute_cgi json_proto POST (null) [20:50:02]execute_cgi path=json_proto method=POST [20:50:02]POST find Content-Length [20:50:02]Host: 172.17.46.196:8080 [20:50:02]Content-Length: 937 [20:50:02]Content-Type: application/json [20:50:02] [20:50:02]POST finish read [20:50:02]Found Content-Length = 937 [20:50:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190190", "tax_sys" : 0, "items" : [ { "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:02]execute_script... [20:50: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)190190", "tax_sys" : 0, "items" : [ { "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:02]POST & json_proto [20:50:02]process_json_proto [20:50:02]json parsed OK: [20:50:02]protocol is kg_v1.0 [20:50:02]action value=close_receipt [20:50:02]process_action close_receipt [20:50:02]cmd_close_receipt [20:50:02]MH_GetDate [20:50:02]Write to MH i2c: F0 00 00 E9 04 DC [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: F0 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: F0 09 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: F0 09 00 E9 04 00 FB AF C3 66 C4 85 C2 66 29 [20:50:02]GetLastDocTimeStamp 1724100333 [20:50:02]current date 1724100603 [20:50:02]FM_GetShiftState [20:50:02]SAM_PROTO_GetShiftState [20:50:02]wFMCommunicate request_size=4 [20:50:02]MH_SAM_APDU [20:50:02]CAPDU: 80 13 01 00 [20:50:02]Write to MH i2c: E2 08 00 EA 04 80 13 01 00 00 00 00 00 6B [20:50:02]Write i2c OK [20:50:02]MH_I2C_Read... [20:50:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:02]Read from MH i2c: E2 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 0E 00 [20:50:02]MH_I2C_Read... [20:50:02]Read from MH i2c: E2 0E 00 EA 04 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 25 [20:50:02]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [20:50:02]wFMCommunicate OK [20:50:02]SAM_PROTO_GetShiftState done [20:50:02]FM_GetShiftState done [20:50:02]opened in 1724026361 [20:50:02]opened+sec_in_day 1724112761 [20:50:02]quantity*price = 7500 [20:50:02]sum+1 = 7501 [20:50:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329999 Напиток Lipton IceTea 1л лимон Regular 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.76 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 173 19.08.2024 20:50 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50066 ФПД: 103171844346158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T205003&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50066&fm=103171844346158&tin=02508201610067®Number=0000000000092546&sum=20500 0 [20:50:03]StoreToDocumentArchive [20:50:03]shift 467 fd 50066 [20:50:03]save to /storage/0467/doc_00050066 [20:50:03]save last doc name /storage/0467/doc_00050066 to /storage/kkm_last_doc_name [20:50:03]save OK [20:50:03]Clear old archive folders... [20:50:03]ProcessDocumentItem done err = 0, tmpTLVsize=413 [20:50:03]tlvbuf is 01960250 [20:50:03]SAM_PROTO_ClearQueue [20:50:03]wFMCommunicate request_size=4 [20:50:03]MH_SAM_APDU [20:50:03]CAPDU: 80 09 00 00 [20:50:03]Write to MH i2c: E2 08 00 F7 04 80 09 00 00 00 00 00 00 6D [20:50:03]Write i2c OK [20:50:03]MH_I2C_Read... [20:50:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:03]Read from MH i2c: E2 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: E2 03 00 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: E2 03 00 F7 04 00 90 00 6F [20:50:03]RAPDU: 90 00 [20:50:03]wFMCommunicate OK [20:50:03]SAM_PROTO_ClearQueue done [20:50:03]KKMCreateOFDPacket [20:50:03]OFDProtocolAddRootSTLVToBuf [20:50:03]FM_MakeSignedData [20:50:03]FM_MakeSignedData [20:50:03]SAM_PROTO_SignData [20:50:03]wFMCommunicate request_size=4 [20:50:03]MH_SAM_APDU [20:50:03]CAPDU: 80 0D 01 02 [20:50:03]Write to MH i2c: E2 08 00 F8 04 80 0D 01 02 00 00 00 00 75 [20:50:03]Write i2c OK [20:50:03]MH_I2C_Read... [20:50:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:03]Read from MH i2c: E2 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: E2 03 00 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: E2 03 00 F8 04 00 90 00 70 [20:50:03]RAPDU: 90 00 [20:50:03]wFMCommunicate OK [20:50:03]wFMCommunicate request_size=255 [20:50:03]MH_SAM_APDU [20:50:03]CAPDU: 80 0D 02 02 FA 03 00 9D 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 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 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 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 [20:50:03]Write to MH i2c: E2 02 01 F9 04 80 0D 02 02 FA 00 03 00 9D 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 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 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 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 00 F6 [20:50:03]Write i2c OK [20:50:03]MH_I2C_Read... [20:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:03]Read from MH i2c: E2 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: E2 03 00 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: E2 03 00 F9 04 00 90 00 71 [20:50:03]RAPDU: 90 00 [20:50:03]wFMCommunicate OK [20:50:03]wFMCommunicate request_size=172 [20:50:03]MH_SAM_APDU [20:50:03]CAPDU: 80 0D 02 02 A7 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 FB AF C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 92 C3 00 00 35 04 06 00 5D D5 91 22 11 2E [20:50:03]Write to MH i2c: E2 AF 00 FA 04 80 0D 02 02 A7 00 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 FB AF C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 92 C3 00 00 35 04 06 00 5D D5 91 22 11 2E 00 00 D4 [20:50:03]Write i2c OK [20:50:03]MH_I2C_Read... [20:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:03]Read from MH i2c: E2 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: E2 03 00 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: E2 03 00 FA 04 00 90 00 72 [20:50:03]RAPDU: 90 00 [20:50:03]wFMCommunicate OK [20:50:03]wFMCommunicate request_size=4 [20:50:03]MH_SAM_APDU [20:50:03]CAPDU: 80 0D 03 02 [20:50:03]Write to MH i2c: E2 08 00 FB 04 80 0D 03 02 00 00 00 00 7A [20:50:03]Write i2c OK [20:50:03]MH_I2C_Read... [20:50:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:03]Read from MH i2c: E2 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: E2 0B 00 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: E2 0B 00 FB 04 00 E5 23 48 C5 07 1A 42 FD 90 00 F0 [20:50:03]RAPDU: E5 23 48 C5 07 1A 42 FD 90 00 [20:50:03]wFMCommunicate OK [20:50:03]SAM_PROTO_SignData done [20:50:03]FM_MakeSignedData done [20:50:03]CreateOFDProtocolMessage [20:50:03]wFMCommunicate request_size=4 [20:50:03]MH_SAM_APDU [20:50:03]CAPDU: 80 11 00 00 [20:50:03]Write to MH i2c: E2 08 00 FC 04 80 11 00 00 00 00 00 00 7A [20:50:03]Write i2c OK [20:50:03]MH_I2C_Read... [20:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:03]Read from MH i2c: E2 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: E2 17 00 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: E2 17 00 FC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C5 [20:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:50:03]wFMCommunicate OK [20:50:03]CreateOFDProtocolMessage done [20:50:03]OFDSenderStorePacket 50066 [20:50:03]StoreOFDPacket docnum=50066 [20:50:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B1 01 00 00 BA 29 A9 01 8A 81 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 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 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 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 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 FB AF C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 92 C3 00 00 35 04 06 00 5D D5 91 22 11 2E E5 23 48 C5 07 1A 42 FD [20:50:03]CheckFolder [20:50:03]dirname=/storage/ofd_packets [20:50:03]CheckFolder done [20:50:03]ProducePacketName [20:50:03]name=ofd_packets/00050066 [20:50:03]NVStorageSaveData ofd_packets/00050066 [20:50:03]File name is /storage/ofd_packets/00050066 [20:50:03]Write 463 bytes [20:50:03]NVStorageSaveData done [20:50:03]OFDSenderStorePacket done [20:50:03]KKMCreateOFDPacket done [20:50:03]NVStorageSaveData kkm_last_timestamp [20:50:03]File name is /storage/kkm_last_timestamp [20:50:03]Write 4 bytes [20:50:03]NVStorageSaveData done [20:50:03]ExternCall_PrintAddStr [20:50:03]wPrintStart [20:50:03]Write to MH i2c: 01 00 00 FD 04 01 [20:50:03]Write i2c OK [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: 01 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: 01 07 00 [20:50:03]MH_I2C_Read... [20:50:03]Read from MH i2c: 01 07 00 FD 04 00 00 00 00 00 FF 0F 16 [20:50:04]RasterBufferAndPrint [20:50:04]line Счет N : (3)190190 [20:50:04]line ИНН: 02508201610067 [20:50:04]line Контрольно-Кассовый Чек [20:50:04]line ПРОДАЖА [20:50:04]line Товар: 4870001154059 [20:50:04]line Напиток Lipton IceTea 0,5л зел чай [20:50:04]line 1.000 * 75.00 [20:50:04]line = 75.00 [20:50:04]line НДС 12% НСП 1% [20:50:04]line > о реализуемом товаре [20:50:04]line Товар: 4870002329999 [20:50:04]line Напиток Lipton IceTea 1л лимон Regular [20:50:04]line 1.000 * 130.00 [20:50:04]line = 130.00 [20:50:04]line НДС 12% НСП 1% [20:50:04]line > о реализуемом товаре [20:50:04]line ИТОГО: 205.00 [20:50:04]line НСП 1% : 1.81 [20:50:04]line НДС 12% : 21.76 [20:50:04]line Наличными: 205.00 [20:50:04]line Безнал.: 0.00 [20:50:04]line Место: АЗС № 95 "Партнер Нефть" [20:50:04]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [20:50:04]line СНО: Общий режим [20:50:04]line Чек 173 19.08.2024 20:50 [20:50:04]line Смена: 467 ФФД: 1.0 [20:50:04]line ЗНМ: 0300000078 [20:50:04]line РНМ: 0000000000092546 [20:50:04]line Версия ККМ: 001 [20:50:04]line ФМ: 0000000000871800 [20:50:04]line ФД: 50066 [20:50:04]line ФПД: 103171844346158 [20:50:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T205003&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50066&fm=103171844346158&tin=02508201610067®Number=0000000000092546&sum=20500 [20:50:04]OFD Sender: Processing packet 50066 [packets to send 21, broken 20] [20:50:04]ProducePacketName [20:50:04]name=ofd_packets/00050066 [20:50:04]OFD Sender: To server: pG, [20:50:04]CommunicateWithHost lk.salyk.kg:30040 [20:50:04]ConnectInit lk.salyk.kg [20:50:04]line 0 [20:50:04]written 0, free lines is 4095 [20:50:04]Connected sock=9 [20:50:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B1 01 00 00 BA 29 A9 01 8A 81 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 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 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 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 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 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 FB AF C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 92 C3 00 00 35 04 06 00 5D D5 91 22 11 2E E5 23 48 C5 07 1A 42 FD [20:50:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B2 F0 47 00 DC 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 92 C3 00 00 F4 03 04 00 68 5A C3 66 B6 04 01 00 00 E8 F1 39 3A 06 18 FF E2 [20:50:04]CommunicateWithHost err = 0 [20:50:04]CheckOFDResponse [20:50:04]1017 (14) - 77093643461234 [20:50:04]1041 (16) - 0000000000871800 [20:50:04]1040 (4) - 50066 [20:50:04]1012 (4) - 19.08.2024 14:44 [20:50:04]1206 (1) - 0 [20:50:04]OFD Sender: Remove packet 50066 [20:50:04]ProducePacketName [20:50:04]name=ofd_packets/00050066 [20:50:04]NVStorageDeleteData [20:50:04]Write to MH i2c: 01 00 00 2D 05 32 [20:50:04]Write i2c OK [20:50:04]MH_I2C_Read... [20:50:04]Read from MH i2c: 01 [20:50:04]MH_I2C_Read... [20:50:04]Read from MH i2c: 01 07 00 [20:50:04]MH_I2C_Read... [20:50:04]Read from MH i2c: 01 07 00 2D 05 00 00 00 00 00 5B 0C A0 [20:50:04]RasterBufferAndPrint [20:50:04]line [20:50:04]line [20:50:04]line [20:50:04]line [20:50:04]line [20:50:04]written 0, free lines is 3169 [20:50:04]MH_Cut [20:50:04]Write to MH i2c: D1 01 00 34 05 01 0B [20:50:04]Write i2c OK [20:50:04]MH_I2C_Read... [20:50:04]Read from MH i2c: D1 [20:50:04]MH_I2C_Read... [20:50:04]Read from MH i2c: D1 01 00 [20:50:04]MH_I2C_Read... [20:50:04]Read from MH i2c: D1 01 00 34 05 00 0A [20:50:04]Write to MH i2c: 01 00 00 35 05 3A [20:50:04]Write i2c OK [20:50:04]MH_I2C_Read... [20:50:05]OFD Sender: No OFD packet to send [20:50:05]*** Cut start [20:50:05]*** Purtial cut [20:50:05]*** Stage 1: CUTSNS_PIN = 1 [20:50:05]Read from MH i2c: 01 [20:50:05]MH_I2C_Read... [20:50:05]*** Stop cut motor [20:50:05]*** Cut end [20:50:05]Read from MH i2c: 01 07 00 [20:50:05]MH_I2C_Read... [20:50:05]Read from MH i2c: 01 07 00 35 05 00 00 00 00 00 FF 0F 4F [20:50:05]process_action close_receipt done [20:50:05]requested_data is exist [20:50:05]produce_requested_data [20:50:05]requested_item fm.sn is exist - process it [20:50:05]wFMCommunicate request_size=4 [20:50:05]MH_SAM_APDU [20:50:05]CAPDU: 80 11 00 00 [20:50:05]Write to MH i2c: E2 08 00 36 05 80 11 00 00 00 00 00 00 B5 [20:50:05]Write i2c OK [20:50:05]MH_I2C_Read... [20:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:06]Read from MH i2c: E2 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 17 00 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 17 00 36 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 00 [20:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:50:06]wFMCommunicate OK [20:50:06]requested_item fd.num is exist - process it [20:50:06]SAM_PROTO_GetFieldsCounters [20:50:06]wFMCommunicate request_size=4 [20:50:06]MH_SAM_APDU [20:50:06]CAPDU: 80 13 00 00 [20:50:06]Write to MH i2c: E2 08 00 37 05 80 13 00 00 00 00 00 00 B8 [20:50:06]Write i2c OK [20:50:06]MH_I2C_Read... [20:50:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:06]Read from MH i2c: E2 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 62 00 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 62 00 37 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 92 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [20:50:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 92 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:50:06]wFMCommunicate OK [20:50:06]SAM_PROTO_GetFieldsCounters done [20:50:06]requested_item shift.num is exist - process it [20:50:06]requested_item shift.opened is exist - process it [20:50:06]req_shift_opened [20:50:06]FM_GetShiftState [20:50:06]SAM_PROTO_GetShiftState [20:50:06]wFMCommunicate request_size=4 [20:50:06]MH_SAM_APDU [20:50:06]CAPDU: 80 13 01 00 [20:50:06]Write to MH i2c: E2 08 00 38 05 80 13 01 00 00 00 00 00 BA [20:50:06]Write i2c OK [20:50:06]MH_I2C_Read... [20:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:06]Read from MH i2c: E2 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 0E 00 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 0E 00 38 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 74 [20:50:06]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [20:50:06]wFMCommunicate OK [20:50:06]SAM_PROTO_GetShiftState done [20:50:06]FM_GetShiftState done [20:50:06]req_shift_opened done [20:50:06]requested_item shift.open_date is exist - process it [20:50:06]req_shift_open_date [20:50:06]req_shift_open_date done [20:50:06]produce_requested_data done [20:50:06]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50066,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [20:50:06]process_action_free close_receipt [20:50:06]json_value_free [20:50:06]json_value_free done [20:50:06]process_json_proto returns [20:50:06]Send response to host [20:50:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50066,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [20:50:06]free response buf [20:50:06]execute_script done [20:50:06]execute_script returns [20:50:06]free content buf [20:50:06]Sock 10.Close socket [20:50:06]Sock 10.Thread stoped [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:40]accept exits with 8 [20:50:40]New connection [20:50:40]New thread 3066756452 created [20:50:40]Thread 3066899812 joined [20:50:40]Waiting for new connection... [20:50:40] Sock 8.Parse request [20:50:40]Sock 8.Check first char [20:50:40]Sock 8.First char is OK [20:50:40]request: POST /json_proto HTTP/1.0 [20:50:40]Method: POST [20:50:40]URL: /json_proto [20:50:40]Method is POST - this is cgi request [20:50:40]url: /json_proto [20:50:40]query_string will be loaded in cgi processing [20:50:40]execute_cgi json_proto POST (null) [20:50:40]execute_cgi path=json_proto method=POST [20:50:40]POST find Content-Length [20:50:40]Host: 172.17.46.196:8080 [20:50:40]Content-Length: 756 [20:50:40]Content-Type: application/json [20:50:40] [20:50:40]POST finish read [20:50:40]Found Content-Length = 756 [20:50:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11328183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30076931", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:40]execute_script... [20:50:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11328183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30076931", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:40]POST & json_proto [20:50:40]process_json_proto [20:50:40]json parsed OK: [20:50:40]protocol is kg_v1.0 [20:50:40]action value=close_receipt [20:50:40]process_action close_receipt [20:50:40]cmd_close_receipt [20:50:40]MH_GetDate [20:50:40]Write to MH i2c: F0 00 00 39 05 2D [20:50:40]Write i2c OK [20:50:40]MH_I2C_Read... [20:50:40]Read from MH i2c: F0 [20:50:40]MH_I2C_Read... [20:50:40]Read from MH i2c: F0 09 00 [20:50:40]MH_I2C_Read... [20:50:40]Read from MH i2c: F0 09 00 39 05 00 22 B0 C3 66 C4 85 C2 66 A2 [20:50:40]GetLastDocTimeStamp 1724100603 [20:50:40]current date 1724100642 [20:50:40]FM_GetShiftState [20:50:40]SAM_PROTO_GetShiftState [20:50:40]wFMCommunicate request_size=4 [20:50:40]MH_SAM_APDU [20:50:40]CAPDU: 80 13 01 00 [20:50:40]Write to MH i2c: E2 08 00 3A 05 80 13 01 00 00 00 00 00 BC [20:50:40]Write i2c OK [20:50:40]MH_I2C_Read... [20:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:40]Read from MH i2c: E2 [20:50:40]MH_I2C_Read... [20:50:40]Read from MH i2c: E2 0E 00 [20:50:40]MH_I2C_Read... [20:50:40]Read from MH i2c: E2 0E 00 3A 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 76 [20:50:40]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [20:50:40]wFMCommunicate OK [20:50:40]SAM_PROTO_GetShiftState done [20:50:40]FM_GetShiftState done [20:50:40]opened in 1724026361 [20:50:40]opened+sec_in_day 1724112761 [20:50:40]quantity*price = 0 [20:50:40]sum+1 = 1 [20:50:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 174 19.08.2024 20:50 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30076931 ФМ: 0000000000871800 ФД: 50067 ФПД: 61026397222010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T205042&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50067&fm=61026397222010&tin=02508201610067®Number=0000000000092546&sum=0 [20:50:41]StoreToDocumentArchive [20:50:41]shift 467 fd 50067 [20:50:41]save to /storage/0467/doc_00050067 [20:50:41]save last doc name /storage/0467/doc_00050067 to /storage/kkm_last_doc_name [20:50:41]save OK [20:50:41]Clear old archive folders... [20:50:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:50:41]tlvbuf is 0194C230 [20:50:41]SAM_PROTO_ClearQueue [20:50:41]wFMCommunicate request_size=4 [20:50:41]MH_SAM_APDU [20:50:41]CAPDU: 80 09 00 00 [20:50:41]Write to MH i2c: E2 08 00 47 05 80 09 00 00 00 00 00 00 BE [20:50:41]Write i2c OK [20:50:41]MH_I2C_Read... [20:50:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:41]Read from MH i2c: E2 [20:50:41]MH_I2C_Read... [20:50:41]Read from MH i2c: E2 03 00 [20:50:41]MH_I2C_Read... [20:50:41]Read from MH i2c: E2 03 00 47 05 00 90 00 C0 [20:50:41]RAPDU: 90 00 [20:50:41]wFMCommunicate OK [20:50:41]SAM_PROTO_ClearQueue done [20:50:41]KKMCreateOFDPacket [20:50:41]OFDProtocolAddRootSTLVToBuf [20:50:41]FM_MakeSignedData [20:50:41]FM_MakeSignedData [20:50:41]SAM_PROTO_SignData [20:50:41]wFMCommunicate request_size=4 [20:50:41]MH_SAM_APDU [20:50:41]CAPDU: 80 0D 01 02 [20:50:41]Write to MH i2c: E2 08 00 48 05 80 0D 01 02 00 00 00 00 C6 [20:50:41]Write i2c OK [20:50:41]MH_I2C_Read... [20:50:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:42]Read from MH i2c: E2 [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: E2 03 00 [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: E2 03 00 48 05 00 90 00 C1 [20:50:42]RAPDU: 90 00 [20:50:42]wFMCommunicate OK [20:50:42]wFMCommunicate request_size=255 [20:50:42]MH_SAM_APDU [20:50:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 22 B0 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 93 C3 00 00 35 04 06 00 37 [20:50:42]Write to MH i2c: E2 02 01 49 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 22 B0 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 93 C3 00 00 35 04 06 00 37 00 00 77 [20:50:42]Write i2c OK [20:50:42]MH_I2C_Read... [20:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:42]Read from MH i2c: E2 [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: E2 03 00 [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: E2 03 00 49 05 00 90 00 C2 [20:50:42]RAPDU: 90 00 [20:50:42]wFMCommunicate OK [20:50:42]wFMCommunicate request_size=10 [20:50:42]MH_SAM_APDU [20:50:42]CAPDU: 80 0D 02 02 05 80 D0 BA 74 7A [20:50:42]Write to MH i2c: E2 0D 00 4A 05 80 0D 02 02 05 00 80 D0 BA 74 7A 00 00 CB [20:50:42]Write i2c OK [20:50:42]MH_I2C_Read... [20:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:42]Read from MH i2c: E2 [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: E2 03 00 [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: E2 03 00 4A 05 00 90 00 C3 [20:50:42]RAPDU: 90 00 [20:50:42]wFMCommunicate OK [20:50:42]wFMCommunicate request_size=4 [20:50:42]MH_SAM_APDU [20:50:42]CAPDU: 80 0D 03 02 [20:50:42]Write to MH i2c: E2 08 00 4B 05 80 0D 03 02 00 00 00 00 CB [20:50:42]Write i2c OK [20:50:42]MH_I2C_Read... [20:50:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:42]Read from MH i2c: E2 [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: E2 0B 00 [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: E2 0B 00 4B 05 00 63 3D 00 0B 48 6D 65 47 90 00 D8 [20:50:42]RAPDU: 63 3D 00 0B 48 6D 65 47 90 00 [20:50:42]wFMCommunicate OK [20:50:42]SAM_PROTO_SignData done [20:50:42]FM_MakeSignedData done [20:50:42]CreateOFDProtocolMessage [20:50:42]wFMCommunicate request_size=4 [20:50:42]MH_SAM_APDU [20:50:42]CAPDU: 80 11 00 00 [20:50:42]Write to MH i2c: E2 08 00 4C 05 80 11 00 00 00 00 00 00 CB [20:50:42]Write i2c OK [20:50:42]MH_I2C_Read... [20:50:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:42]Read from MH i2c: E2 [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: E2 17 00 [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: E2 17 00 4C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 16 [20:50:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:50:42]wFMCommunicate OK [20:50:42]CreateOFDProtocolMessage done [20:50:42]OFDSenderStorePacket 50067 [20:50:42]StoreOFDPacket docnum=50067 [20:50:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 80 57 07 01 D2 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 22 B0 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 93 C3 00 00 35 04 06 00 37 80 D0 BA 74 7A 63 3D 00 0B 48 6D 65 47 [20:50:42]CheckFolder [20:50:42]dirname=/storage/ofd_packets [20:50:42]CheckFolder done [20:50:42]ProducePacketName [20:50:42]name=ofd_packets/00050067 [20:50:42]NVStorageSaveData ofd_packets/00050067 [20:50:42]File name is /storage/ofd_packets/00050067 [20:50:42]Write 301 bytes [20:50:42]NVStorageSaveData done [20:50:42]OFDSenderStorePacket done [20:50:42]KKMCreateOFDPacket done [20:50:42]NVStorageSaveData kkm_last_timestamp [20:50:42]File name is /storage/kkm_last_timestamp [20:50:42]Write 4 bytes [20:50:42]NVStorageSaveData done [20:50:42]ExternCall_PrintAddStr [20:50:42]wPrintStart [20:50:42]Write to MH i2c: 01 00 00 4D 05 52 [20:50:42]Write i2c OK [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: 01 [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: 01 07 00 [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: 01 07 00 4D 05 00 00 00 00 00 FF 0F 67 [20:50:42]RasterBufferAndPrint [20:50:42]line Счет N : (1)11328183 [20:50:42]line ИНН: 02508201610067 [20:50:42]line Контрольно-Кассовый Чек [20:50:42]line ПРОДАЖА [20:50:42]line ТРК (МРК, ГНК) : 32 [20:50:42]line Товар: 2710124130 [20:50:42]line Аи-92-К-4 [20:50:42]line 30.000 * 0.00 [20:50:42]line = 0.00 [20:50:42]line НДС 12% НСП 1% [20:50:42]line > о реализуемом товаре [20:50:42]line ИТОГО: 0.00 [20:50:42]line НСП 1% : 0.00 [20:50:42]line НДС 12% : 0.00 [20:50:42]line Наличными: 0.00 [20:50:42]line Безнал.: 0.00 [20:50:42]line Место: АЗС № 95 "Партнер Нефть" [20:50:42]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [20:50:42]line СНО: Общий режим [20:50:42]line Чек 174 19.08.2024 20:50 [20:50:42]line Смена: 467 ФФД: 1.0 [20:50:42]line ЗНМ: 0300000078 [20:50:42]line РНМ: 0000000000092546 [20:50:42]line Версия ККМ: 001 [20:50:42]line Талоны: ТК ГПНА Online [20:50:42]line 30076931 [20:50:42]line ФМ: 0000000000871800 [20:50:42]line ФД: 50067 [20:50:42]line ФПД: 61026397222010 [20:50:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T205042&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50067&fm=61026397222010&tin=02508201610067®Number=0000000000092546&sum=0 [20:50:42]written 0, free lines is 4095 [20:50:42]OFD Sender: Processing packet 50067 [packets to send 21, broken 20] [20:50:42]ProducePacketName [20:50:42]name=ofd_packets/00050067 [20:50:42]OFD Sender: To server: pG, [20:50:42]CommunicateWithHost lk.salyk.kg:30040 [20:50:42]ConnectInit lk.salyk.kg [20:50:42]Connected sock=10 [20:50:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 80 57 07 01 D2 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 22 B0 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 93 C3 00 00 35 04 06 00 37 80 D0 BA 74 7A 63 3D 00 0B 48 6D 65 47 [20:50:42]Write to MH i2c: 01 00 00 77 05 7C [20:50:42]Write i2c OK [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: 01 [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: 01 07 00 [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: 01 07 00 77 05 00 00 00 00 00 C3 0C 52 [20:50:42]RasterBufferAndPrint [20:50:42]line [20:50:42]line [20:50:42]line [20:50:42]line [20:50:42]line [20:50:42]written 0, free lines is 3273 [20:50:42]MH_Cut [20:50:42]Write to MH i2c: D1 01 00 7E 05 01 55 [20:50:42]Write i2c OK [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: D1 [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: D1 01 00 [20:50:42]MH_I2C_Read... [20:50:42]Read from MH i2c: D1 01 00 7E 05 00 54 [20:50:42]Write to MH i2c: 01 00 00 7F 05 84 [20:50:42]Write i2c OK [20:50:42]MH_I2C_Read... [20:50:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F0 2E 47 00 61 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 93 C3 00 00 F4 03 04 00 8E 5A C3 66 B6 04 01 00 00 C2 B2 21 4E 67 CF A6 97 [20:50:43]CommunicateWithHost err = 0 [20:50:43]CheckOFDResponse [20:50:43]1017 (14) - 77093643461234 [20:50:43]1041 (16) - 0000000000871800 [20:50:43]1040 (4) - 50067 [20:50:43]1012 (4) - 19.08.2024 14:45 [20:50:43]1206 (1) - 0 [20:50:43]OFD Sender: Remove packet 50067 [20:50:43]ProducePacketName [20:50:43]name=ofd_packets/00050067 [20:50:43]NVStorageDeleteData [20:50:43]OFD Sender: No OFD packet to send [20:50:43]*** Cut start [20:50:43]*** Purtial cut [20:50:43]*** CUTSNS_PIN = 0 [20:50:43]*** Stage 1: CUTSNS_PIN = 1 [20:50:45]Read from MH i2c: 01 [20:50:45]MH_I2C_Read... [20:50:45]*** Stop cut motor [20:50:45]*** Cut end [20:50:45]Read from MH i2c: 01 07 00 [20:50:45]MH_I2C_Read... [20:50:45]Read from MH i2c: 01 07 00 7F 05 00 00 00 00 00 FF 0F 99 [20:50:45]process_action close_receipt done [20:50:45]requested_data is exist [20:50:45]produce_requested_data [20:50:45]requested_item fm.sn is exist - process it [20:50:45]wFMCommunicate request_size=4 [20:50:45]MH_SAM_APDU [20:50:45]CAPDU: 80 11 00 00 [20:50:45]Write to MH i2c: E2 08 00 80 05 80 11 00 00 00 00 00 00 FF [20:50:45]Write i2c OK [20:50:45]MH_I2C_Read... [20:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:45]Read from MH i2c: E2 [20:50:45]MH_I2C_Read... [20:50:45]Read from MH i2c: E2 17 00 [20:50:45]MH_I2C_Read... [20:50:45]Read from MH i2c: E2 17 00 80 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4A [20:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:50:45]wFMCommunicate OK [20:50:45]requested_item fd.num is exist - process it [20:50:45]SAM_PROTO_GetFieldsCounters [20:50:45]wFMCommunicate request_size=4 [20:50:45]MH_SAM_APDU [20:50:45]CAPDU: 80 13 00 00 [20:50:45]Write to MH i2c: E2 08 00 81 05 80 13 00 00 00 00 00 00 02 [20:50:45]Write i2c OK [20:50:45]MH_I2C_Read... [20:50:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:45]Read from MH i2c: E2 [20:50:45]MH_I2C_Read... [20:50:45]Read from MH i2c: E2 62 00 [20:50:45]MH_I2C_Read... [20:50:45]Read from MH i2c: E2 62 00 81 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 93 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [20:50:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 93 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:50:45]wFMCommunicate OK [20:50:45]SAM_PROTO_GetFieldsCounters done [20:50:45]requested_item shift.num is exist - process it [20:50:45]requested_item shift.opened is exist - process it [20:50:45]req_shift_opened [20:50:45]FM_GetShiftState [20:50:45]SAM_PROTO_GetShiftState [20:50:45]wFMCommunicate request_size=4 [20:50:45]MH_SAM_APDU [20:50:45]CAPDU: 80 13 01 00 [20:50:45]Write to MH i2c: E2 08 00 82 05 80 13 01 00 00 00 00 00 04 [20:50:45]Write i2c OK [20:50:45]MH_I2C_Read... [20:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:45]Read from MH i2c: E2 [20:50:45]MH_I2C_Read... [20:50:45]Read from MH i2c: E2 0E 00 [20:50:45]MH_I2C_Read... [20:50:45]Read from MH i2c: E2 0E 00 82 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 BE [20:50:45]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [20:50:45]wFMCommunicate OK [20:50:45]SAM_PROTO_GetShiftState done [20:50:45]FM_GetShiftState done [20:50:45]req_shift_opened done [20:50:45]requested_item shift.open_date is exist - process it [20:50:45]req_shift_open_date [20:50:45]req_shift_open_date done [20:50:45]produce_requested_data done [20:50:45]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50067,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [20:50:45]process_action_free close_receipt [20:50:45]json_value_free [20:50:45]json_value_free done [20:50:45]process_json_proto returns [20:50:45]Send response to host [20:50:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50067,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [20:50:45]free response buf [20:50:45]execute_script done [20:50:45]execute_script returns [20:50:45]free content buf [20:50:45]Sock 8.Close socket [20:50:45]Sock 8.Thread stoped [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:06]accept exits with 9 [20:54:06]New connection [20:54:06]New thread 3066899812 created [20:54:06]Thread 3066756452 joined [20:54:06]Waiting for new connection... [20:54:06] Sock 9.Parse request [20:54:06]Sock 9.Check first char [20:54:06]Sock 9.First char is OK [20:54:06]request: POST /json_proto HTTP/1.0 [20:54:06]Method: POST [20:54:06]URL: /json_proto [20:54:06]Method is POST - this is cgi request [20:54:06]url: /json_proto [20:54:06]query_string will be loaded in cgi processing [20:54:06]execute_cgi json_proto POST (null) [20:54:06]execute_cgi path=json_proto method=POST [20:54:06]POST find Content-Length [20:54:06]Host: 172.17.46.196:8080 [20:54:06]Content-Length: 646 [20:54:06]Content-Type: application/json [20:54:06] [20:54:06]POST finish read [20:54:06]Found Content-Length = 646 [20:54:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190191", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:06]execute_script... [20:54:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190191", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:06]POST & json_proto [20:54:06]process_json_proto [20:54:06]json parsed OK: [20:54:06]protocol is kg_v1.0 [20:54:06]action value=close_receipt [20:54:06]process_action close_receipt [20:54:06]cmd_close_receipt [20:54:06]MH_GetDate [20:54:06]Write to MH i2c: F0 00 00 83 05 77 [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: F0 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: F0 09 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: F0 09 00 83 05 00 EF B0 C3 66 C4 85 C2 66 B9 [20:54:06]GetLastDocTimeStamp 1724100642 [20:54:06]current date 1724100847 [20:54:06]FM_GetShiftState [20:54:06]SAM_PROTO_GetShiftState [20:54:06]wFMCommunicate request_size=4 [20:54:06]MH_SAM_APDU [20:54:06]CAPDU: 80 13 01 00 [20:54:06]Write to MH i2c: E2 08 00 84 05 80 13 01 00 00 00 00 00 06 [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:06]Read from MH i2c: E2 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 0E 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 0E 00 84 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 C0 [20:54:06]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [20:54:06]wFMCommunicate OK [20:54:06]SAM_PROTO_GetShiftState done [20:54:06]FM_GetShiftState done [20:54:06]opened in 1724026361 [20:54:06]opened+sec_in_day 1724112761 [20:54:06]quantity*price = 26000 [20:54:06]sum+1 = 26001 [20:54:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 175 19.08.2024 20:54 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50068 ФПД: 108700734558143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T205407&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50068&fm=108700734558143&tin=02508201610067®Number=0000000000092546&sum=26000 0 [20:54:07]StoreToDocumentArchive [20:54:07]shift 467 fd 50068 [20:54:07]save to /storage/0467/doc_00050068 [20:54:07]save last doc name /storage/0467/doc_00050068 to /storage/kkm_last_doc_name [20:54:07]save OK [20:54:07]Clear old archive folders... [20:54:07]ProcessDocumentItem done err = 0, tmpTLVsize=282 [20:54:07]tlvbuf is 0193DC10 [20:54:07]SAM_PROTO_ClearQueue [20:54:07]wFMCommunicate request_size=4 [20:54:07]MH_SAM_APDU [20:54:07]CAPDU: 80 09 00 00 [20:54:07]Write to MH i2c: E2 08 00 91 05 80 09 00 00 00 00 00 00 08 [20:54:07]Write i2c OK [20:54:07]MH_I2C_Read... [20:54:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:07]Read from MH i2c: E2 [20:54:07]MH_I2C_Read... [20:54:07]Read from MH i2c: E2 03 00 [20:54:07]MH_I2C_Read... [20:54:07]Read from MH i2c: E2 03 00 91 05 00 90 00 0A [20:54:07]RAPDU: 90 00 [20:54:07]wFMCommunicate OK [20:54:07]SAM_PROTO_ClearQueue done [20:54:07]KKMCreateOFDPacket [20:54:07]OFDProtocolAddRootSTLVToBuf [20:54:07]FM_MakeSignedData [20:54:07]FM_MakeSignedData [20:54:07]SAM_PROTO_SignData [20:54:07]wFMCommunicate request_size=4 [20:54:07]MH_SAM_APDU [20:54:07]CAPDU: 80 0D 01 02 [20:54:07]Write to MH i2c: E2 08 00 92 05 80 0D 01 02 00 00 00 00 10 [20:54:07]Write i2c OK [20:54:07]MH_I2C_Read... [20:54:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:07]Read from MH i2c: E2 [20:54:07]MH_I2C_Read... [20:54:07]Read from MH i2c: E2 03 00 [20:54:07]MH_I2C_Read... [20:54:07]Read from MH i2c: E2 03 00 92 05 00 90 00 0B [20:54:07]RAPDU: 90 00 [20:54:07]wFMCommunicate OK [20:54:07]wFMCommunicate request_size=255 [20:54:07]MH_SAM_APDU [20:54:07]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 EF B0 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [20:54:07]Write to MH i2c: E2 02 01 93 05 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 EF B0 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 25 [20:54:07]Write i2c OK [20:54:07]MH_I2C_Read... [20:54:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:07]Read from MH i2c: E2 [20:54:07]MH_I2C_Read... [20:54:07]Read from MH i2c: E2 03 00 [20:54:07]MH_I2C_Read... [20:54:07]Read from MH i2c: E2 03 00 93 05 00 90 00 0C [20:54:07]RAPDU: 90 00 [20:54:07]wFMCommunicate OK [20:54:07]wFMCommunicate request_size=41 [20:54:07]MH_SAM_APDU [20:54:07]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 94 C3 00 00 35 04 06 00 62 DC DC AB 8F BF [20:54:07]Write to MH i2c: E2 2C 00 94 05 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 94 C3 00 00 35 04 06 00 62 DC DC AB 8F BF 00 00 44 [20:54:07]Write i2c OK [20:54:07]MH_I2C_Read... [20:54:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:07]Read from MH i2c: E2 [20:54:07]MH_I2C_Read... [20:54:07]Read from MH i2c: E2 03 00 [20:54:07]MH_I2C_Read... [20:54:07]Read from MH i2c: E2 03 00 94 05 00 90 00 0D [20:54:07]RAPDU: 90 00 [20:54:07]wFMCommunicate OK [20:54:07]wFMCommunicate request_size=4 [20:54:07]MH_SAM_APDU [20:54:07]CAPDU: 80 0D 03 02 [20:54:07]Write to MH i2c: E2 08 00 95 05 80 0D 03 02 00 00 00 00 15 [20:54:07]Write i2c OK [20:54:07]MH_I2C_Read... [20:54:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:07]Read from MH i2c: E2 [20:54:07]MH_I2C_Read... [20:54:07]Read from MH i2c: E2 0B 00 [20:54:07]MH_I2C_Read... [20:54:07]Read from MH i2c: E2 0B 00 95 05 00 71 D4 CF 57 70 5F 90 EB 90 00 CB [20:54:07]RAPDU: 71 D4 CF 57 70 5F 90 EB 90 00 [20:54:07]wFMCommunicate OK [20:54:07]SAM_PROTO_SignData done [20:54:07]FM_MakeSignedData done [20:54:07]CreateOFDProtocolMessage [20:54:07]wFMCommunicate request_size=4 [20:54:07]MH_SAM_APDU [20:54:07]CAPDU: 80 11 00 00 [20:54:07]Write to MH i2c: E2 08 00 96 05 80 11 00 00 00 00 00 00 15 [20:54:07]Write i2c OK [20:54:07]MH_I2C_Read... [20:54:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:07]Read from MH i2c: E2 [20:54:07]MH_I2C_Read... [20:54:07]Read from MH i2c: E2 17 00 [20:54:07]MH_I2C_Read... [20:54:07]Read from MH i2c: E2 17 00 96 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 60 [20:54:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:54:07]wFMCommunicate OK [20:54:07]CreateOFDProtocolMessage done [20:54:07]OFDSenderStorePacket 50068 [20:54:07]StoreOFDPacket docnum=50068 [20:54:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 8B 00 26 01 14 72 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 EF B0 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 94 C3 00 00 35 04 06 00 62 DC DC AB 8F BF 71 D4 CF 57 70 5F 90 EB [20:54:07]CheckFolder [20:54:07]dirname=/storage/ofd_packets [20:54:07]CheckFolder done [20:54:07]ProducePacketName [20:54:07]name=ofd_packets/00050068 [20:54:07]NVStorageSaveData ofd_packets/00050068 [20:54:07]File name is /storage/ofd_packets/00050068 [20:54:07]Write 332 bytes [20:54:07]NVStorageSaveData done [20:54:07]OFDSenderStorePacket done [20:54:07]KKMCreateOFDPacket done [20:54:07]NVStorageSaveData kkm_last_timestamp [20:54:07]File name is /storage/kkm_last_timestamp [20:54:07]Write 4 bytes [20:54:07]NVStorageSaveData done [20:54:07]ExternCall_PrintAddStr [20:54:07]wPrintStart [20:54:07]Write to MH i2c: 01 00 00 97 05 9C [20:54:07]Write i2c OK [20:54:07]MH_I2C_Read... [20:54:07]Read from MH i2c: 01 [20:54:07]MH_I2C_Read... [20:54:07]Read from MH i2c: 01 07 00 [20:54:07]MH_I2C_Read... [20:54:07]Read from MH i2c: 01 07 00 97 05 00 00 00 00 00 FF 0F B1 [20:54:07]RasterBufferAndPrint [20:54:07]line Счет N : (3)190191 [20:54:07]line ИНН: 02508201610067 [20:54:07]line Контрольно-Кассовый Чек [20:54:07]line ПРОДАЖА [20:54:07]line Товар: 2000036220012 [20:54:07]line Кофе Капучино XL(GABB TRADE) [20:54:07]line 2.000 * 130.00 [20:54:07]line = 260.00 [20:54:07]line НДС 12% НСП 1% [20:54:07]line > о реализуемом товаре [20:54:07]line ИТОГО: 260.00 [20:54:07]line НСП 1% : 2.30 [20:54:07]line НДС 12% : 27.61 [20:54:07]line Наличными: 260.00 [20:54:07]line Безнал.: 0.00 [20:54:07]line Место: АЗС № 95 "Партнер Нефть" [20:54:07]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [20:54:07]line СНО: Общий режим [20:54:07]line Чек 175 19.08.2024 20:54 [20:54:07]line Смена: 467 ФФД: 1.0 [20:54:07]line ЗНМ: 0300000078 [20:54:07]line РНМ: 0000000000092546 [20:54:07]line Версия ККМ: 001 [20:54:07]line ФМ: 0000000000871800 [20:54:07]line ФД: 50068 [20:54:07]line ФПД: 108700734558143 [20:54:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T205407&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50068&fm=108700734558143&tin=02508201610067®Number=0000000000092546&sum=26000 [20:54:08]line 0 [20:54:08]OFD Sender: Processing packet 50068 [packets to send 21, broken 20] [20:54:08]ProducePacketName [20:54:08]name=ofd_packets/00050068 [20:54:08]OFD Sender: To server: pG, [20:54:08]CommunicateWithHost lk.salyk.kg:30040 [20:54:08]ConnectInit lk.salyk.kg [20:54:08]written 0, free lines is 4095 [20:54:08]Connected sock=11 [20:54:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 8B 00 26 01 14 72 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 EF B0 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 94 C3 00 00 35 04 06 00 62 DC DC AB 8F BF 71 D4 CF 57 70 5F 90 EB [20:54:08]Write to MH i2c: 01 00 00 C0 05 C5 [20:54:08]Write i2c OK [20:54:08]MH_I2C_Read... [20:54:08]Read from MH i2c: 01 [20:54:08]MH_I2C_Read... [20:54:08]Read from MH i2c: 01 07 00 [20:54:08]MH_I2C_Read... [20:54:08]Read from MH i2c: 01 07 00 C0 05 00 00 00 00 00 E3 0C BB [20:54:08]RasterBufferAndPrint [20:54:08]line [20:54:08]line [20:54:08]line [20:54:08]line [20:54:08]line [20:54:08]written 0, free lines is 3303 [20:54:08]MH_Cut [20:54:08]Write to MH i2c: D1 01 00 C7 05 01 9E [20:54:08]Write i2c OK [20:54:08]MH_I2C_Read... [20:54:08]Read from MH i2c: D1 [20:54:08]MH_I2C_Read... [20:54:08]Read from MH i2c: D1 01 00 [20:54:08]MH_I2C_Read... [20:54:08]Read from MH i2c: D1 01 00 C7 05 00 9D [20:54:08]Write to MH i2c: 01 00 00 C8 05 CD [20:54:08]Write i2c OK [20:54:08]MH_I2C_Read... [20:54:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D3 5E 47 00 B3 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 94 C3 00 00 F4 03 04 00 5B 5B C3 66 B6 04 01 00 00 77 C6 E1 4B 74 45 69 29 [20:54:08]CommunicateWithHost err = 0 [20:54:08]CheckOFDResponse [20:54:08]1017 (14) - 77093643461234 [20:54:08]1041 (16) - 0000000000871800 [20:54:08]1040 (4) - 50068 [20:54:08]1012 (4) - 19.08.2024 14:48 [20:54:08]1206 (1) - 0 [20:54:08]OFD Sender: Remove packet 50068 [20:54:08]ProducePacketName [20:54:08]name=ofd_packets/00050068 [20:54:08]NVStorageDeleteData [20:54:09]OFD Sender: No OFD packet to send [20:54:09]*** Cut start [20:54:09]*** Purtial cut [20:54:09]*** Stage 1: CUTSNS_PIN = 1 [20:54:09]Read from MH i2c: 01 [20:54:09]MH_I2C_Read... [20:54:09]*** Stop cut motor [20:54:09]*** Cut end [20:54:09]Read from MH i2c: 01 07 00 [20:54:09]MH_I2C_Read... [20:54:09]Read from MH i2c: 01 07 00 C8 05 00 00 00 00 00 FF 0F E2 [20:54:09]process_action close_receipt done [20:54:09]requested_data is exist [20:54:09]produce_requested_data [20:54:09]requested_item fm.sn is exist - process it [20:54:09]wFMCommunicate request_size=4 [20:54:09]MH_SAM_APDU [20:54:09]CAPDU: 80 11 00 00 [20:54:09]Write to MH i2c: E2 08 00 C9 05 80 11 00 00 00 00 00 00 48 [20:54:09]Write i2c OK [20:54:09]MH_I2C_Read... [20:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:09]Read from MH i2c: E2 [20:54:09]MH_I2C_Read... [20:54:09]Read from MH i2c: E2 17 00 [20:54:09]MH_I2C_Read... [20:54:09]Read from MH i2c: E2 17 00 C9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 93 [20:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [20:54:09]wFMCommunicate OK [20:54:09]requested_item fd.num is exist - process it [20:54:09]SAM_PROTO_GetFieldsCounters [20:54:09]wFMCommunicate request_size=4 [20:54:09]MH_SAM_APDU [20:54:09]CAPDU: 80 13 00 00 [20:54:09]Write to MH i2c: E2 08 00 CA 05 80 13 00 00 00 00 00 00 4B [20:54:09]Write i2c OK [20:54:09]MH_I2C_Read... [20:54:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:09]Read from MH i2c: E2 [20:54:09]MH_I2C_Read... [20:54:09]Read from MH i2c: E2 62 00 [20:54:09]MH_I2C_Read... [20:54:09]Read from MH i2c: E2 62 00 CA 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 94 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [20:54:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 94 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:54:09]wFMCommunicate OK [20:54:09]SAM_PROTO_GetFieldsCounters done [20:54:09]requested_item shift.num is exist - process it [20:54:09]requested_item shift.opened is exist - process it [20:54:09]req_shift_opened [20:54:09]FM_GetShiftState [20:54:09]SAM_PROTO_GetShiftState [20:54:09]wFMCommunicate request_size=4 [20:54:09]MH_SAM_APDU [20:54:09]CAPDU: 80 13 01 00 [20:54:09]Write to MH i2c: E2 08 00 CB 05 80 13 01 00 00 00 00 00 4D [20:54:09]Write i2c OK [20:54:09]MH_I2C_Read... [20:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:09]Read from MH i2c: E2 [20:54:09]MH_I2C_Read... [20:54:09]Read from MH i2c: E2 0E 00 [20:54:09]MH_I2C_Read... [20:54:09]Read from MH i2c: E2 0E 00 CB 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 07 [20:54:09]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [20:54:09]wFMCommunicate OK [20:54:09]SAM_PROTO_GetShiftState done [20:54:09]FM_GetShiftState done [20:54:09]req_shift_opened done [20:54:09]requested_item shift.open_date is exist - process it [20:54:09]req_shift_open_date [20:54:09]req_shift_open_date done [20:54:09]produce_requested_data done [20:54:09]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50068,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [20:54:09]process_action_free close_receipt [20:54:09]json_value_free [20:54:09]json_value_free done [20:54:09]process_json_proto returns [20:54:09]Send response to host [20:54:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50068,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [20:54:09]free response buf [20:54:09]execute_script done [20:54:09]execute_script returns [20:54:09]free content buf [20:54:09]Sock 9.Close socket [20:54:09]Sock 9.Thread stoped [20:54:14]OFD Sender: No OFD packet to send [20:54:19]OFD Sender: No OFD packet to send [20:54:24]OFD Sender: No OFD packet to send [20:54:29]OFD Sender: No OFD packet to send [20:54:34]OFD Sender: No OFD packet to send [20:54:39]OFD Sender: No OFD packet to send [20:54:44]OFD Sender: No OFD packet to send [20:54:49]OFD Sender: No OFD packet to send [20:54:54]OFD Sender: No OFD packet to send [20:54:59]OFD Sender: No OFD packet to send [20:55:04]OFD Sender: No OFD packet to send [20:55:09]OFD Sender: No OFD packet to send [20:55:14]OFD Sender: No OFD packet to send [20:55:19]OFD Sender: No OFD packet to send [20:55:24]OFD Sender: No OFD packet to send [20:55:29]OFD Sender: No OFD packet to send [20:55:34]OFD Sender: No OFD packet to send [20:55:39]OFD Sender: No OFD packet to send [20:55:44]OFD Sender: No OFD packet to send [20:55:49]OFD Sender: No OFD packet to send [20:55:54]OFD Sender: No OFD packet to send [20:55:59]OFD Sender: No OFD packet to send [20:56:04]OFD Sender: No OFD packet to send [20:56:09]OFD Sender: No OFD packet to send [20:56:14]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:24]OFD Sender: No OFD packet to send [20:56:29]OFD Sender: No OFD packet to send [20:56:34]OFD Sender: No OFD packet to send [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:59]OFD Sender: No OFD packet to send [20:59:04]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]accept exits with 8 [21:09:59]New connection [21:09:59]New thread 3066756452 created [21:09:59]Thread 3066899812 joined [21:09:59]Waiting for new connection... [21:09:59] Sock 8.Parse request [21:09:59]Sock 8.Check first char [21:09:59]Sock 8.First char is OK [21:09:59]request: POST /json_proto HTTP/1.0 [21:09:59]Method: POST [21:09:59]URL: /json_proto [21:09:59]Method is POST - this is cgi request [21:09:59]url: /json_proto [21:09:59]query_string will be loaded in cgi processing [21:09:59]execute_cgi json_proto POST (null) [21:09:59]execute_cgi path=json_proto method=POST [21:09:59]POST find Content-Length [21:09:59]Host: 172.17.46.196:8080 [21:09:59]Content-Length: 1031 [21:09:59]Content-Type: application/json [21:09:59] [21:09:59]POST finish read [21:09:59]Found Content-Length = 1031 [21:09:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190192", "tax_sys" : 0, "items" : [ { "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 423.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:59]execute_script... [21:09: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)190192", "tax_sys" : 0, "items" : [ { "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 423.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:59]POST & json_proto [21:09:59]process_json_proto [21:09:59]json parsed OK: [21:09:59]protocol is kg_v1.0 [21:09:59]action value=close_receipt [21:09:59]process_action close_receipt [21:09:59]cmd_close_receipt [21:09:59]MH_GetDate [21:09:59]Write to MH i2c: F0 00 00 CC 05 C0 [21:09:59]Write i2c OK [21:09:59]MH_I2C_Read... [21:09:59]Read from MH i2c: F0 [21:09:59]MH_I2C_Read... [21:09:59]Read from MH i2c: F0 09 00 [21:09:59]MH_I2C_Read... [21:09:59]Read from MH i2c: F0 09 00 CC 05 00 A8 B4 C3 66 C4 85 C2 66 BF [21:09:59]GetLastDocTimeStamp 1724100847 [21:09:59]current date 1724101800 [21:09:59]FM_GetShiftState [21:09:59]SAM_PROTO_GetShiftState [21:09:59]wFMCommunicate request_size=4 [21:09:59]MH_SAM_APDU [21:09:59]CAPDU: 80 13 01 00 [21:09:59]Write to MH i2c: E2 08 00 CD 05 80 13 01 00 00 00 00 00 4F [21:09:59]Write i2c OK [21:09:59]MH_I2C_Read... [21:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:59]Read from MH i2c: E2 [21:09:59]MH_I2C_Read... [21:09:59]Read from MH i2c: E2 0E 00 [21:09:59]MH_I2C_Read... [21:09:59]Read from MH i2c: E2 0E 00 CD 05 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 09 [21:09:59]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [21:09:59]wFMCommunicate OK [21:09:59]SAM_PROTO_GetShiftState done [21:09:59]FM_GetShiftState done [21:09:59]opened in 1724026361 [21:09:59]opened+sec_in_day 1724112761 [21:09:59]quantity*price = 14300 [21:09:59]sum+1 = 14301 [21:09:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 2.000 * 140.00 = 280.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 423.00 НСП 1% : 3.74 НДС 12% : 44.92 Наличными: 0.00 Безнал.: 423.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 176 19.08.2024 21:10 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 50069 ФПД: 184451698876135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T211000&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50069&fm=184451698876135&tin=02508201610067®Number=0000000000092546&sum=42300 0 [21:10:00]StoreToDocumentArchive [21:10:00]shift 467 fd 50069 [21:10:00]save to /storage/0467/doc_00050069 [21:10:00]save last doc name /storage/0467/doc_00050069 to /storage/kkm_last_doc_name [21:10:00]save OK [21:10:00]Clear old archive folders... [21:10:00]ProcessDocumentItem done err = 0, tmpTLVsize=388 [21:10:00]tlvbuf is 0193F0F0 [21:10:00]SAM_PROTO_ClearQueue [21:10:00]wFMCommunicate request_size=4 [21:10:00]MH_SAM_APDU [21:10:00]CAPDU: 80 09 00 00 [21:10:00]Write to MH i2c: E2 08 00 DA 05 80 09 00 00 00 00 00 00 51 [21:10:00]Write i2c OK [21:10:00]MH_I2C_Read... [21:10:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:00]Read from MH i2c: E2 [21:10:00]MH_I2C_Read... [21:10:00]Read from MH i2c: E2 03 00 [21:10:00]MH_I2C_Read... [21:10:00]Read from MH i2c: E2 03 00 DA 05 00 90 00 53 [21:10:00]RAPDU: 90 00 [21:10:00]wFMCommunicate OK [21:10:00]SAM_PROTO_ClearQueue done [21:10:00]KKMCreateOFDPacket [21:10:00]OFDProtocolAddRootSTLVToBuf [21:10:00]FM_MakeSignedData [21:10:00]FM_MakeSignedData [21:10:00]SAM_PROTO_SignData [21:10:00]wFMCommunicate request_size=4 [21:10:00]MH_SAM_APDU [21:10:00]CAPDU: 80 0D 01 02 [21:10:00]Write to MH i2c: E2 08 00 DB 05 80 0D 01 02 00 00 00 00 59 [21:10:00]Write i2c OK [21:10:00]MH_I2C_Read... [21:10:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:00]Read from MH i2c: E2 [21:10:00]MH_I2C_Read... [21:10:00]Read from MH i2c: E2 03 00 [21:10:00]MH_I2C_Read... [21:10:00]Read from MH i2c: E2 03 00 DB 05 00 90 00 54 [21:10:00]RAPDU: 90 00 [21:10:00]wFMCommunicate OK [21:10:00]wFMCommunicate request_size=255 [21:10:00]MH_SAM_APDU [21:10:00]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 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 20 2B 20 44 72 65 61 6D 20 4D 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 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [21:10:00]Write to MH i2c: E2 02 01 DC 05 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 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 20 2B 20 44 72 65 61 6D 20 4D 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 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 F4 [21:10:00]Write i2c OK [21:10:00]MH_I2C_Read... [21:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:00]Read from MH i2c: E2 [21:10:00]MH_I2C_Read... [21:10:00]Read from MH i2c: E2 03 00 [21:10:00]MH_I2C_Read... [21:10:00]Read from MH i2c: E2 03 00 DC 05 00 90 00 55 [21:10:00]RAPDU: 90 00 [21:10:00]wFMCommunicate OK [21:10:00]wFMCommunicate request_size=147 [21:10:00]MH_SAM_APDU [21:10:00]CAPDU: 80 0D 02 02 8E F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C A5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 A8 B4 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 95 C3 00 00 35 04 06 00 A7 C2 01 FD 5E E7 [21:10:00]Write to MH i2c: E2 96 00 DD 05 80 0D 02 02 8E 00 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C A5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 A8 B4 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 95 C3 00 00 35 04 06 00 A7 C2 01 FD 5E E7 00 00 A0 [21:10:00]Write i2c OK [21:10:00]MH_I2C_Read... [21:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:00]Read from MH i2c: E2 [21:10:00]MH_I2C_Read... [21:10:00]Read from MH i2c: E2 03 00 [21:10:00]MH_I2C_Read... [21:10:00]Read from MH i2c: E2 03 00 DD 05 00 90 00 56 [21:10:00]RAPDU: 90 00 [21:10:00]wFMCommunicate OK [21:10:00]wFMCommunicate request_size=4 [21:10:00]MH_SAM_APDU [21:10:00]CAPDU: 80 0D 03 02 [21:10:00]Write to MH i2c: E2 08 00 DE 05 80 0D 03 02 00 00 00 00 5E [21:10:00]Write i2c OK [21:10:00]MH_I2C_Read... [21:10:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:00]Read from MH i2c: E2 [21:10:00]MH_I2C_Read... [21:10:00]Read from MH i2c: E2 0B 00 [21:10:00]MH_I2C_Read... [21:10:00]Read from MH i2c: E2 0B 00 DE 05 00 81 63 AE FD 1E 81 55 45 90 00 27 [21:10:00]RAPDU: 81 63 AE FD 1E 81 55 45 90 00 [21:10:00]wFMCommunicate OK [21:10:00]SAM_PROTO_SignData done [21:10:00]FM_MakeSignedData done [21:10:00]CreateOFDProtocolMessage [21:10:00]wFMCommunicate request_size=4 [21:10:00]MH_SAM_APDU [21:10:00]CAPDU: 80 11 00 00 [21:10:00]Write to MH i2c: E2 08 00 DF 05 80 11 00 00 00 00 00 00 5E [21:10:00]Write i2c OK [21:10:00]MH_I2C_Read... [21:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:00]Read from MH i2c: E2 [21:10:00]MH_I2C_Read... [21:10:00]Read from MH i2c: E2 17 00 [21:10:00]MH_I2C_Read... [21:10:00]Read from MH i2c: E2 17 00 DF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A9 [21:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:10:00]wFMCommunicate OK [21:10:00]CreateOFDProtocolMessage done [21:10:00]OFDSenderStorePacket 50069 [21:10:00]StoreOFDPacket docnum=50069 [21:10:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 98 01 00 00 DC 74 90 01 CE D4 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 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 20 2B 20 44 72 65 61 6D 20 4D 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 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C A5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 A8 B4 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 95 C3 00 00 35 04 06 00 A7 C2 01 FD 5E E7 81 63 AE FD 1E 81 55 45 [21:10:00]CheckFolder [21:10:00]dirname=/storage/ofd_packets [21:10:00]CheckFolder done [21:10:00]ProducePacketName [21:10:00]name=ofd_packets/00050069 [21:10:00]NVStorageSaveData ofd_packets/00050069 [21:10:00]File name is /storage/ofd_packets/00050069 [21:10:00]Write 438 bytes [21:10:00]NVStorageSaveData done [21:10:00]OFDSenderStorePacket done [21:10:00]KKMCreateOFDPacket done [21:10:00]NVStorageSaveData kkm_last_timestamp [21:10:00]File name is /storage/kkm_last_timestamp [21:10:00]Write 4 bytes [21:10:00]NVStorageSaveData done [21:10:00]ExternCall_PrintAddStr [21:10:00]wPrintStart [21:10:00]Write to MH i2c: 01 00 00 E0 05 E5 [21:10:01]Write i2c OK [21:10:01]MH_I2C_Read... [21:10:01]OFD Sender: Processing packet 50069 [packets to send 21, broken 20] [21:10:01]ProducePacketName [21:10:01]name=ofd_packets/00050069 [21:10:01]OFD Sender: To server: pG, [21:10:01]CommunicateWithHost lk.salyk.kg:30040 [21:10:01]ConnectInit lk.salyk.kg [21:10:01]Read from MH i2c: 01 [21:10:01]MH_I2C_Read... [21:10:01]Read from MH i2c: 01 07 00 [21:10:01]MH_I2C_Read... [21:10:01]Read from MH i2c: 01 07 00 E0 05 00 00 00 00 00 FF 0F FA [21:10:01]RasterBufferAndPrint [21:10:01]line Счет N : (3)190192 [21:10:01]line ИНН: 02508201610067 [21:10:01]line Контрольно-Кассовый Чек [21:10:01]line ПРОДАЖА [21:10:01]line Товар: 48746717 [21:10:01]line Сигареты Winston XStyle Caster + Dream M [21:10:01]line 1.000 * 143.00 [21:10:01]line = 143.00 [21:10:01]line НДС 12% НСП 1% [21:10:01]line > о реализуемом товаре [21:10:01]line Товар: 48743570 [21:10:01]line Сигареты Winston XStyle Blue [21:10:01]line 2.000 * 140.00 [21:10:01]line = 280.00 [21:10:01]line НДС 12% НСП 1% [21:10:01]line > о реализуемом товаре [21:10:01]line ИТОГО: 423.00 [21:10:01]line НСП 1% : 3.74 [21:10:01]line НДС 12% : 44.92 [21:10:01]line Наличными: 0.00 [21:10:01]line Безнал.: 423.00 [21:10:01]line Место: АЗС № 95 "Партнер Нефть" [21:10:01]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:10:01]line СНО: Общий режим [21:10:01]line Чек 176 19.08.2024 21:10 [21:10:01]line Смена: 467 ФФД: 1.0 [21:10:01]line ЗНМ: 0300000078 [21:10:01]line РНМ: 0000000000092546 [21:10:01]line Версия ККМ: 001 [21:10:01]line Платежная система: O! деньги [21:10:01]line ФМ: 0000000000871800 [21:10:01]line ФД: 50069 [21:10:01]line ФПД: 184451698876135 [21:10:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T211000&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50069&fm=184451698876135&tin=02508201610067®Number=0000000000092546&sum=42300 [21:10:01]line 0 [21:10:01]written 0, free lines is 4095 [21:10:01]Connected sock=10 [21:10:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 98 01 00 00 DC 74 90 01 CE D4 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 37 31 37 06 04 30 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 20 2B 20 44 72 65 61 6D 20 4D 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 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 D0 07 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 60 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C A5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 A8 B4 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 95 C3 00 00 35 04 06 00 A7 C2 01 FD 5E E7 81 63 AE FD 1E 81 55 45 [21:10:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 18 2B 47 00 B1 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 95 C3 00 00 F4 03 04 00 14 5F C3 66 B6 04 01 00 00 E9 9A 3D 82 FC EA 11 7F [21:10:01]CommunicateWithHost err = 0 [21:10:01]CheckOFDResponse [21:10:01]1017 (14) - 77093643461234 [21:10:01]1041 (16) - 0000000000871800 [21:10:01]1040 (4) - 50069 [21:10:01]1012 (4) - 19.08.2024 15:04 [21:10:01]1206 (1) - 0 [21:10:01]OFD Sender: Remove packet 50069 [21:10:01]ProducePacketName [21:10:01]name=ofd_packets/00050069 [21:10:01]NVStorageDeleteData [21:10:01]Write to MH i2c: 01 00 00 11 06 17 [21:10:01]Write i2c OK [21:10:01]MH_I2C_Read... [21:10:01]Read from MH i2c: 01 [21:10:01]MH_I2C_Read... [21:10:01]Read from MH i2c: 01 07 00 [21:10:01]MH_I2C_Read... [21:10:01]Read from MH i2c: 01 07 00 11 06 00 00 00 00 00 4D 0C 77 [21:10:01]RasterBufferAndPrint [21:10:01]line [21:10:01]line [21:10:01]line [21:10:01]line [21:10:01]line [21:10:01]written 0, free lines is 3156 [21:10:01]MH_Cut [21:10:01]Write to MH i2c: D1 01 00 18 06 01 F0 [21:10:01]Write i2c OK [21:10:01]MH_I2C_Read... [21:10:01]Read from MH i2c: D1 [21:10:01]MH_I2C_Read... [21:10:01]Read from MH i2c: D1 01 00 [21:10:01]MH_I2C_Read... [21:10:01]Read from MH i2c: D1 01 00 18 06 00 EF [21:10:01]Write to MH i2c: 01 00 00 19 06 1F [21:10:01]Write i2c OK [21:10:01]MH_I2C_Read... [21:10:02]OFD Sender: No OFD packet to send [21:10:02]*** Cut start [21:10:02]*** Purtial cut [21:10:02]*** CUTSNS_PIN = 0 [21:10:02]*** Stage 1: CUTSNS_PIN = 1 [21:10:04]Read from MH i2c: 01 [21:10:04]MH_I2C_Read... [21:10:04]*** Stop cut motor [21:10:04]*** Cut end [21:10:04]Read from MH i2c: 01 07 00 [21:10:04]MH_I2C_Read... [21:10:04]Read from MH i2c: 01 07 00 19 06 00 00 00 00 00 FF 0F 34 [21:10:04]process_action close_receipt done [21:10:04]requested_data is exist [21:10:04]produce_requested_data [21:10:04]requested_item fm.sn is exist - process it [21:10:04]wFMCommunicate request_size=4 [21:10:04]MH_SAM_APDU [21:10:04]CAPDU: 80 11 00 00 [21:10:04]Write to MH i2c: E2 08 00 1A 06 80 11 00 00 00 00 00 00 9A [21:10:04]Write i2c OK [21:10:04]MH_I2C_Read... [21:10:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:04]Read from MH i2c: E2 [21:10:04]MH_I2C_Read... [21:10:04]Read from MH i2c: E2 17 00 [21:10:04]MH_I2C_Read... [21:10:04]Read from MH i2c: E2 17 00 1A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E5 [21:10:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:10:04]wFMCommunicate OK [21:10:04]requested_item fd.num is exist - process it [21:10:04]SAM_PROTO_GetFieldsCounters [21:10:04]wFMCommunicate request_size=4 [21:10:04]MH_SAM_APDU [21:10:04]CAPDU: 80 13 00 00 [21:10:04]Write to MH i2c: E2 08 00 1B 06 80 13 00 00 00 00 00 00 9D [21:10:04]Write i2c OK [21:10:04]MH_I2C_Read... [21:10:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:04]Read from MH i2c: E2 [21:10:04]MH_I2C_Read... [21:10:04]Read from MH i2c: E2 62 00 [21:10:04]MH_I2C_Read... [21:10:04]Read from MH i2c: E2 62 00 1B 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 95 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [21:10:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 95 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:10:04]wFMCommunicate OK [21:10:04]SAM_PROTO_GetFieldsCounters done [21:10:04]requested_item shift.num is exist - process it [21:10:04]requested_item shift.opened is exist - process it [21:10:04]req_shift_opened [21:10:04]FM_GetShiftState [21:10:04]SAM_PROTO_GetShiftState [21:10:04]wFMCommunicate request_size=4 [21:10:04]MH_SAM_APDU [21:10:04]CAPDU: 80 13 01 00 [21:10:04]Write to MH i2c: E2 08 00 1C 06 80 13 01 00 00 00 00 00 9F [21:10:04]Write i2c OK [21:10:04]MH_I2C_Read... [21:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:04]Read from MH i2c: E2 [21:10:04]MH_I2C_Read... [21:10:04]Read from MH i2c: E2 0E 00 [21:10:04]MH_I2C_Read... [21:10:04]Read from MH i2c: E2 0E 00 1C 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 59 [21:10:04]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [21:10:04]wFMCommunicate OK [21:10:04]SAM_PROTO_GetShiftState done [21:10:04]FM_GetShiftState done [21:10:04]req_shift_opened done [21:10:04]requested_item shift.open_date is exist - process it [21:10:04]req_shift_open_date [21:10:04]req_shift_open_date done [21:10:04]produce_requested_data done [21:10:04]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50069,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [21:10:04]process_action_free close_receipt [21:10:04]json_value_free [21:10:04]json_value_free done [21:10:04]process_json_proto returns [21:10:04]Send response to host [21:10:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50069,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [21:10:04]free response buf [21:10:04]execute_script done [21:10:04]execute_script returns [21:10:04]free content buf [21:10:04]Sock 8.Close socket [21:10:04]Sock 8.Thread stoped [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:22]OFD Sender: No OFD packet to send [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:37]OFD Sender: No OFD packet to send [21:10:42]OFD Sender: No OFD packet to send [21:10:47]OFD Sender: No OFD packet to send [21:10:52]OFD Sender: No OFD packet to send [21:10:57]OFD Sender: No OFD packet to send [21:11:02]OFD Sender: No OFD packet to send [21:11:07]OFD Sender: No OFD packet to send [21:11:12]OFD Sender: No OFD packet to send [21:11:17]accept exits with 9 [21:11:17]New connection [21:11:17]New thread 3066899812 created [21:11:17]Thread 3066756452 joined [21:11:17]Waiting for new connection... [21:11:17] Sock 9.Parse request [21:11:17]Sock 9.Check first char [21:11:17]Sock 9.First char is OK [21:11:17]request: POST /json_proto HTTP/1.0 [21:11:17]Method: POST [21:11:17]URL: /json_proto [21:11:17]Method is POST - this is cgi request [21:11:17]url: /json_proto [21:11:17]query_string will be loaded in cgi processing [21:11:17]execute_cgi json_proto POST (null) [21:11:17]execute_cgi path=json_proto method=POST [21:11:17]POST find Content-Length [21:11:17]Host: 172.17.46.196:8080 [21:11:17]Content-Length: 922 [21:11:17]Content-Type: application/json [21:11:17] [21:11:17]POST finish read [21:11:17]Found Content-Length = 922 [21:11:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190193", "tax_sys" : 0, "items" : [ { "code": "90456060", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Red Bull Sugarfree 0.25\u043B \u0436", "price" : 152.00, "quantity" : 1.000, "sum" : 152.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 211.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:17]execute_script... [21:11:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190193", "tax_sys" : 0, "items" : [ { "code": "90456060", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Red Bull Sugarfree 0.25\u043B \u0436", "price" : 152.00, "quantity" : 1.000, "sum" : 152.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 211.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:17]POST & json_proto [21:11:17]process_json_proto [21:11:17]json parsed OK: [21:11:17]protocol is kg_v1.0 [21:11:17]action value=close_receipt [21:11:17]process_action close_receipt [21:11:17]cmd_close_receipt [21:11:17]MH_GetDate [21:11:17]Write to MH i2c: F0 00 00 1D 06 12 [21:11:17]Write i2c OK [21:11:17]MH_I2C_Read... [21:11:17]Read from MH i2c: F0 [21:11:17]MH_I2C_Read... [21:11:17]Read from MH i2c: F0 09 00 [21:11:17]MH_I2C_Read... [21:11:17]Read from MH i2c: F0 09 00 1D 06 00 F6 B4 C3 66 C4 85 C2 66 5F [21:11:17]GetLastDocTimeStamp 1724101800 [21:11:17]current date 1724101878 [21:11:17]FM_GetShiftState [21:11:17]SAM_PROTO_GetShiftState [21:11:17]wFMCommunicate request_size=4 [21:11:17]MH_SAM_APDU [21:11:17]CAPDU: 80 13 01 00 [21:11:17]Write to MH i2c: E2 08 00 1E 06 80 13 01 00 00 00 00 00 A1 [21:11:17]Write i2c OK [21:11:17]MH_I2C_Read... [21:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:17]Read from MH i2c: E2 [21:11:17]MH_I2C_Read... [21:11:17]Read from MH i2c: E2 0E 00 [21:11:17]MH_I2C_Read... [21:11:17]Read from MH i2c: E2 0E 00 1E 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 5B [21:11:17]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [21:11:17]wFMCommunicate OK [21:11:17]SAM_PROTO_GetShiftState done [21:11:17]FM_GetShiftState done [21:11:17]opened in 1724026361 [21:11:17]opened+sec_in_day 1724112761 [21:11:17]quantity*price = 15200 [21:11:17]sum+1 = 15201 [21:11:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 211.00 НСП 1% : 1.86 НДС 12% : 22.40 Наличными: 211.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 177 19.08.2024 21:11 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50070 ФПД: 46465544314759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T211118&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50070&fm=46465544314759&tin=02508201610067®Number=0000000000092546&sum=21100 0 [21:11:18]StoreToDocumentArchive [21:11:18]shift 467 fd 50070 [21:11:18]save to /storage/0467/doc_00050070 [21:11:18]save last doc name /storage/0467/doc_00050070 to /storage/kkm_last_doc_name [21:11:18]save OK [21:11:18]Clear old archive folders... [21:11:18]ProcessDocumentItem done err = 0, tmpTLVsize=402 [21:11:18]tlvbuf is 0193EC40 [21:11:18]SAM_PROTO_ClearQueue [21:11:18]wFMCommunicate request_size=4 [21:11:18]MH_SAM_APDU [21:11:18]CAPDU: 80 09 00 00 [21:11:18]Write to MH i2c: E2 08 00 2B 06 80 09 00 00 00 00 00 00 A3 [21:11:18]Write i2c OK [21:11:18]MH_I2C_Read... [21:11:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:18]Read from MH i2c: E2 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 03 00 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 03 00 2B 06 00 90 00 A5 [21:11:18]RAPDU: 90 00 [21:11:18]wFMCommunicate OK [21:11:18]SAM_PROTO_ClearQueue done [21:11:18]KKMCreateOFDPacket [21:11:18]OFDProtocolAddRootSTLVToBuf [21:11:18]FM_MakeSignedData [21:11:18]FM_MakeSignedData [21:11:18]SAM_PROTO_SignData [21:11:18]wFMCommunicate request_size=4 [21:11:18]MH_SAM_APDU [21:11:18]CAPDU: 80 0D 01 02 [21:11:18]Write to MH i2c: E2 08 00 2C 06 80 0D 01 02 00 00 00 00 AB [21:11:18]Write i2c OK [21:11:18]MH_I2C_Read... [21:11:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:18]Read from MH i2c: E2 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 03 00 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 03 00 2C 06 00 90 00 A6 [21:11:18]RAPDU: 90 00 [21:11:18]wFMCommunicate OK [21:11:18]wFMCommunicate request_size=255 [21:11:18]MH_SAM_APDU [21:11:18]CAPDU: 80 0D 02 02 FA 03 00 92 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 36 30 36 30 06 04 36 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 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 3B 00 00 00 00 13 04 06 00 60 3B 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 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 6C 52 00 00 00 [21:11:18]Write to MH i2c: E2 02 01 2D 06 80 0D 02 02 FA 00 03 00 92 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 36 30 36 30 06 04 36 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 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 3B 00 00 00 00 13 04 06 00 60 3B 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 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 6C 52 00 00 00 00 00 A2 [21:11:18]Write i2c OK [21:11:18]MH_I2C_Read... [21:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:18]Read from MH i2c: E2 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 03 00 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 03 00 2D 06 00 90 00 A7 [21:11:18]RAPDU: 90 00 [21:11:18]wFMCommunicate OK [21:11:18]wFMCommunicate request_size=161 [21:11:18]MH_SAM_APDU [21:11:18]CAPDU: 80 0D 02 02 9C 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 F6 B4 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 96 C3 00 00 35 04 06 00 2A 42 9A 43 5F 87 [21:11:18]Write to MH i2c: E2 A4 00 2E 06 80 0D 02 02 9C 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 F6 B4 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 96 C3 00 00 35 04 06 00 2A 42 9A 43 5F 87 00 00 3C [21:11:18]Write i2c OK [21:11:18]MH_I2C_Read... [21:11:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:18]Read from MH i2c: E2 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 03 00 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 03 00 2E 06 00 90 00 A8 [21:11:18]RAPDU: 90 00 [21:11:18]wFMCommunicate OK [21:11:18]wFMCommunicate request_size=4 [21:11:18]MH_SAM_APDU [21:11:18]CAPDU: 80 0D 03 02 [21:11:18]Write to MH i2c: E2 08 00 2F 06 80 0D 03 02 00 00 00 00 B0 [21:11:18]Write i2c OK [21:11:18]MH_I2C_Read... [21:11:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:18]Read from MH i2c: E2 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 0B 00 [21:11:18]MH_I2C_Read... [21:11:18]Read from MH i2c: E2 0B 00 2F 06 00 0F 40 59 E7 F6 26 BA DB 90 00 F1 [21:11:18]RAPDU: 0F 40 59 E7 F6 26 BA DB 90 00 [21:11:18]wFMCommunicate OK [21:11:18]SAM_PROTO_SignData done [21:11:18]FM_MakeSignedData done [21:11:18]CreateOFDProtocolMessage [21:11:18]wFMCommunicate request_size=4 [21:11:18]MH_SAM_APDU [21:11:18]CAPDU: 80 11 00 00 [21:11:18]Write to MH i2c: E2 08 00 30 06 80 11 00 00 00 00 00 00 B0 [21:11:18]Write i2c OK [21:11:18]MH_I2C_Read... [21:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:19]Read from MH i2c: E2 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 17 00 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: E2 17 00 30 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FB [21:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:11:19]wFMCommunicate OK [21:11:19]CreateOFDProtocolMessage done [21:11:19]OFDSenderStorePacket 50070 [21:11:19]StoreOFDPacket docnum=50070 [21:11:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A6 01 00 00 9A D4 9E 01 8B D2 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 36 30 36 30 06 04 36 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 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 3B 00 00 00 00 13 04 06 00 60 3B 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 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 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 F6 B4 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 96 C3 00 00 35 04 06 00 2A 42 9A 43 5F 87 0F 40 59 E7 F6 26 BA DB [21:11:19]CheckFolder [21:11:19]dirname=/storage/ofd_packets [21:11:19]CheckFolder done [21:11:19]ProducePacketName [21:11:19]name=ofd_packets/00050070 [21:11:19]NVStorageSaveData ofd_packets/00050070 [21:11:19]File name is /storage/ofd_packets/00050070 [21:11:19]Write 452 bytes [21:11:19]NVStorageSaveData done [21:11:19]OFDSenderStorePacket done [21:11:19]KKMCreateOFDPacket done [21:11:19]NVStorageSaveData kkm_last_timestamp [21:11:19]File name is /storage/kkm_last_timestamp [21:11:19]Write 4 bytes [21:11:19]NVStorageSaveData done [21:11:19]ExternCall_PrintAddStr [21:11:19]wPrintStart [21:11:19]Write to MH i2c: 01 00 00 31 06 37 [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: 01 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: 01 07 00 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: 01 07 00 31 06 00 00 00 00 00 FF 0F 4C [21:11:19]RasterBufferAndPrint [21:11:19]line Счет N : (3)190193 [21:11:19]line ИНН: 02508201610067 [21:11:19]line Контрольно-Кассовый Чек [21:11:19]line ПРОДАЖА [21:11:19]line Товар: 90456060 [21:11:19]line Напиток энерг Red Bull Sugarfree 0.25л ж [21:11:19]line 1.000 * 152.00 [21:11:19]line = 152.00 [21:11:19]line НДС 12% НСП 1% [21:11:19]line > о реализуемом товаре [21:11:19]line Товар: 4607065001445 [21:11:19]line Шок батончик Snickers 50,5г [21:11:19]line 1.000 * 59.00 [21:11:19]line = 59.00 [21:11:19]line НДС 12% НСП 1% [21:11:19]line > о реализуемом товаре [21:11:19]line ИТОГО: 211.00 [21:11:19]line НСП 1% : 1.86 [21:11:19]line НДС 12% : 22.40 [21:11:19]line Наличными: 211.00 [21:11:19]line Безнал.: 0.00 [21:11:19]line Место: АЗС № 95 "Партнер Нефть" [21:11:19]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:11:19]line СНО: Общий режим [21:11:19]line Чек 177 19.08.2024 21:11 [21:11:19]line Смена: 467 ФФД: 1.0 [21:11:19]line ЗНМ: 0300000078 [21:11:19]line РНМ: 0000000000092546 [21:11:19]line Версия ККМ: 001 [21:11:19]line ФМ: 0000000000871800 [21:11:19]line ФД: 50070 [21:11:19]line ФПД: 46465544314759 [21:11:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T211118&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50070&fm=46465544314759&tin=02508201610067®Number=0000000000092546&sum=21100 [21:11:19]line 0 [21:11:19]OFD Sender: Processing packet 50070 [packets to send 21, broken 20] [21:11:19]ProducePacketName [21:11:19]name=ofd_packets/00050070 [21:11:19]OFD Sender: To server: pG, [21:11:19]CommunicateWithHost lk.salyk.kg:30040 [21:11:19]ConnectInit lk.salyk.kg [21:11:19]written 0, free lines is 4095 [21:11:19]Connected sock=10 [21:11:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A6 01 00 00 9A D4 9E 01 8B D2 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 36 30 36 30 06 04 36 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 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 3B 00 00 00 00 13 04 06 00 60 3B 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 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 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 F6 B4 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 96 C3 00 00 35 04 06 00 2A 42 9A 43 5F 87 0F 40 59 E7 F6 26 BA DB [21:11:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 77 95 47 00 EA E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 96 C3 00 00 F4 03 04 00 63 5F C3 66 B6 04 01 00 00 A9 B4 0A F4 09 41 37 74 [21:11:19]CommunicateWithHost err = 0 [21:11:19]CheckOFDResponse [21:11:19]1017 (14) - 77093643461234 [21:11:19]1041 (16) - 0000000000871800 [21:11:19]1040 (4) - 50070 [21:11:19]1012 (4) - 19.08.2024 15:06 [21:11:19]1206 (1) - 0 [21:11:19]OFD Sender: Remove packet 50070 [21:11:19]ProducePacketName [21:11:19]name=ofd_packets/00050070 [21:11:19]NVStorageDeleteData [21:11:19]Write to MH i2c: 01 00 00 60 06 66 [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: 01 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: 01 07 00 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: 01 07 00 60 06 00 00 00 00 00 79 0C F2 [21:11:19]RasterBufferAndPrint [21:11:19]line [21:11:19]line [21:11:19]line [21:11:19]line [21:11:19]line [21:11:19]written 0, free lines is 3199 [21:11:19]MH_Cut [21:11:19]Write to MH i2c: D1 01 00 67 06 01 3F [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: D1 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: D1 01 00 [21:11:19]MH_I2C_Read... [21:11:19]Read from MH i2c: D1 01 00 67 06 00 3E [21:11:19]Write to MH i2c: 01 00 00 68 06 6E [21:11:19]Write i2c OK [21:11:19]MH_I2C_Read... [21:11:20]OFD Sender: No OFD packet to send [21:11:20]*** Cut start [21:11:20]*** Purtial cut [21:11:20]*** Stage 1: CUTSNS_PIN = 1 [21:11:20]Read from MH i2c: 01 [21:11:21]MH_I2C_Read... [21:11:21]*** Stop cut motor [21:11:21]*** Cut end [21:11:21]Read from MH i2c: 01 07 00 [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: 01 07 00 68 06 00 00 00 00 00 FF 0F 83 [21:11:21]process_action close_receipt done [21:11:21]requested_data is exist [21:11:21]produce_requested_data [21:11:21]requested_item fm.sn is exist - process it [21:11:21]wFMCommunicate request_size=4 [21:11:21]MH_SAM_APDU [21:11:21]CAPDU: 80 11 00 00 [21:11:21]Write to MH i2c: E2 08 00 69 06 80 11 00 00 00 00 00 00 E9 [21:11:21]Write i2c OK [21:11:21]MH_I2C_Read... [21:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:21]Read from MH i2c: E2 [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: E2 17 00 [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: E2 17 00 69 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 34 [21:11:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:11:21]wFMCommunicate OK [21:11:21]requested_item fd.num is exist - process it [21:11:21]SAM_PROTO_GetFieldsCounters [21:11:21]wFMCommunicate request_size=4 [21:11:21]MH_SAM_APDU [21:11:21]CAPDU: 80 13 00 00 [21:11:21]Write to MH i2c: E2 08 00 6A 06 80 13 00 00 00 00 00 00 EC [21:11:21]Write i2c OK [21:11:21]MH_I2C_Read... [21:11:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:21]Read from MH i2c: E2 [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: E2 62 00 [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: E2 62 00 6A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 96 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [21:11:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 96 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:21]wFMCommunicate OK [21:11:21]SAM_PROTO_GetFieldsCounters done [21:11:21]requested_item shift.num is exist - process it [21:11:21]requested_item shift.opened is exist - process it [21:11:21]req_shift_opened [21:11:21]FM_GetShiftState [21:11:21]SAM_PROTO_GetShiftState [21:11:21]wFMCommunicate request_size=4 [21:11:21]MH_SAM_APDU [21:11:21]CAPDU: 80 13 01 00 [21:11:21]Write to MH i2c: E2 08 00 6B 06 80 13 01 00 00 00 00 00 EE [21:11:21]Write i2c OK [21:11:21]MH_I2C_Read... [21:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:21]Read from MH i2c: E2 [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: E2 0E 00 [21:11:21]MH_I2C_Read... [21:11:21]Read from MH i2c: E2 0E 00 6B 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 A8 [21:11:21]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [21:11:21]wFMCommunicate OK [21:11:21]SAM_PROTO_GetShiftState done [21:11:21]FM_GetShiftState done [21:11:21]req_shift_opened done [21:11:21]requested_item shift.open_date is exist - process it [21:11:21]req_shift_open_date [21:11:21]req_shift_open_date done [21:11:21]produce_requested_data done [21:11:21]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50070,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [21:11:21]process_action_free close_receipt [21:11:21]json_value_free [21:11:21]json_value_free done [21:11:21]process_json_proto returns [21:11:21]Send response to host [21:11:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50070,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [21:11:21]free response buf [21:11:21]execute_script done [21:11:21]execute_script returns [21:11:21]free content buf [21:11:21]Sock 9.Close socket [21:11:21]Sock 9.Thread stoped [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:25]OFD Sender: No OFD packet to send [21:24:30]OFD Sender: No OFD packet to send [21:24:35]OFD Sender: No OFD packet to send [21:24:40]OFD Sender: No OFD packet to send [21:24:45]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:05]accept exits with 8 [21:32:05]New connection [21:32:05]New thread 3066756452 created [21:32:05]Thread 3066899812 joined [21:32:05]Waiting for new connection... [21:32:05] Sock 8.Parse request [21:32:05]Sock 8.Check first char [21:32:05]Sock 8.First char is OK [21:32:05]request: POST /json_proto HTTP/1.0 [21:32:05]Method: POST [21:32:05]URL: /json_proto [21:32:05]Method is POST - this is cgi request [21:32:05]url: /json_proto [21:32:05]query_string will be loaded in cgi processing [21:32:05]execute_cgi json_proto POST (null) [21:32:05]execute_cgi path=json_proto method=POST [21:32:05]POST find Content-Length [21:32:05]Host: 172.17.46.196:8080 [21:32:05]Content-Length: 642 [21:32:05]Content-Type: application/json [21:32:05] [21:32:05]POST finish read [21:32:05]Found Content-Length = 642 [21:32:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190194", "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" ] } } [21:32:05]execute_script... [21:32:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190194", "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" ] } } [21:32:05]POST & json_proto [21:32:05]process_json_proto [21:32:05]json parsed OK: [21:32:05]protocol is kg_v1.0 [21:32:05]action value=close_receipt [21:32:05]process_action close_receipt [21:32:05]cmd_close_receipt [21:32:05]MH_GetDate [21:32:05]Write to MH i2c: F0 00 00 6C 06 61 [21:32:05]Write i2c OK [21:32:05]MH_I2C_Read... [21:32:05]Read from MH i2c: F0 [21:32:05]MH_I2C_Read... [21:32:05]Read from MH i2c: F0 09 00 [21:32:05]MH_I2C_Read... [21:32:05]Read from MH i2c: F0 09 00 6C 06 00 D7 B9 C3 66 C4 85 C2 66 94 [21:32:05]GetLastDocTimeStamp 1724101878 [21:32:05]current date 1724103127 [21:32:05]FM_GetShiftState [21:32:05]SAM_PROTO_GetShiftState [21:32:05]wFMCommunicate request_size=4 [21:32:05]MH_SAM_APDU [21:32:05]CAPDU: 80 13 01 00 [21:32:05]Write to MH i2c: E2 08 00 6D 06 80 13 01 00 00 00 00 00 F0 [21:32:05]Write i2c OK [21:32:05]MH_I2C_Read... [21:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:05]Read from MH i2c: E2 [21:32:05]MH_I2C_Read... [21:32:05]Read from MH i2c: E2 0E 00 [21:32:05]MH_I2C_Read... [21:32:05]Read from MH i2c: E2 0E 00 6D 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 AA [21:32:05]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [21:32:05]wFMCommunicate OK [21:32:05]SAM_PROTO_GetShiftState done [21:32:05]FM_GetShiftState done [21:32:05]opened in 1724026361 [21:32:05]opened+sec_in_day 1724112761 [21:32:05]quantity*price = 5900 [21:32:05]sum+1 = 5901 [21:32:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 178 19.08.2024 21:32 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50071 ФПД: 182751227492611 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T213207&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50071&fm=182751227492611&tin=02508201610067®Number=0000000000092546&sum=5900 0 [21:32:07]StoreToDocumentArchive [21:32:07]shift 467 fd 50071 [21:32:07]save to /storage/0467/doc_00050071 [21:32:07]save last doc name /storage/0467/doc_00050071 to /storage/kkm_last_doc_name [21:32:07]save OK [21:32:07]Clear old archive folders... [21:32:07]ProcessDocumentItem done err = 0, tmpTLVsize=281 [21:32:07]tlvbuf is 01962C50 [21:32:07]SAM_PROTO_ClearQueue [21:32:07]wFMCommunicate request_size=4 [21:32:07]MH_SAM_APDU [21:32:07]CAPDU: 80 09 00 00 [21:32:07]Write to MH i2c: E2 08 00 7A 06 80 09 00 00 00 00 00 00 F2 [21:32:07]Write i2c OK [21:32:07]MH_I2C_Read... [21:32:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:07]Read from MH i2c: E2 [21:32:07]MH_I2C_Read... [21:32:07]Read from MH i2c: E2 03 00 [21:32:07]MH_I2C_Read... [21:32:07]Read from MH i2c: E2 03 00 7A 06 00 90 00 F4 [21:32:07]RAPDU: 90 00 [21:32:07]wFMCommunicate OK [21:32:07]SAM_PROTO_ClearQueue done [21:32:07]KKMCreateOFDPacket [21:32:07]OFDProtocolAddRootSTLVToBuf [21:32:07]FM_MakeSignedData [21:32:07]FM_MakeSignedData [21:32:07]SAM_PROTO_SignData [21:32:07]wFMCommunicate request_size=4 [21:32:07]MH_SAM_APDU [21:32:07]CAPDU: 80 0D 01 02 [21:32:07]Write to MH i2c: E2 08 00 7B 06 80 0D 01 02 00 00 00 00 FA [21:32:07]Write i2c OK [21:32:07]MH_I2C_Read... [21:32:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:07]Read from MH i2c: E2 [21:32:07]MH_I2C_Read... [21:32:07]Read from MH i2c: E2 03 00 [21:32:07]MH_I2C_Read... [21:32:07]Read from MH i2c: E2 03 00 7B 06 00 90 00 F5 [21:32:07]RAPDU: 90 00 [21:32:07]wFMCommunicate OK [21:32:07]wFMCommunicate request_size=255 [21:32:07]MH_SAM_APDU [21:32:07]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 B2 00 00 00 F4 03 04 00 D7 B9 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 [21:32:07]Write to MH i2c: E2 02 01 7C 06 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 B2 00 00 00 F4 03 04 00 D7 B9 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 C7 [21:32:07]Write i2c OK [21:32:07]MH_I2C_Read... [21:32:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:07]Read from MH i2c: E2 [21:32:07]MH_I2C_Read... [21:32:07]Read from MH i2c: E2 03 00 [21:32:07]MH_I2C_Read... [21:32:07]Read from MH i2c: E2 03 00 7C 06 00 90 00 F6 [21:32:07]RAPDU: 90 00 [21:32:07]wFMCommunicate OK [21:32:07]wFMCommunicate request_size=40 [21:32:07]MH_SAM_APDU [21:32:07]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 97 C3 00 00 35 04 06 00 A6 36 15 FF 39 03 [21:32:07]Write to MH i2c: E2 2B 00 7D 06 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 97 C3 00 00 35 04 06 00 A6 36 15 FF 39 03 00 00 38 [21:32:07]Write i2c OK [21:32:07]MH_I2C_Read... [21:32:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:07]Read from MH i2c: E2 [21:32:07]MH_I2C_Read... [21:32:07]Read from MH i2c: E2 03 00 [21:32:07]MH_I2C_Read... [21:32:07]Read from MH i2c: E2 03 00 7D 06 00 90 00 F7 [21:32:07]RAPDU: 90 00 [21:32:07]wFMCommunicate OK [21:32:07]wFMCommunicate request_size=4 [21:32:07]MH_SAM_APDU [21:32:07]CAPDU: 80 0D 03 02 [21:32:07]Write to MH i2c: E2 08 00 7E 06 80 0D 03 02 00 00 00 00 FF [21:32:07]Write i2c OK [21:32:07]MH_I2C_Read... [21:32:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:07]Read from MH i2c: E2 [21:32:07]MH_I2C_Read... [21:32:07]Read from MH i2c: E2 0B 00 [21:32:07]MH_I2C_Read... [21:32:07]Read from MH i2c: E2 0B 00 7E 06 00 02 98 72 13 40 83 56 A0 90 00 D8 [21:32:07]RAPDU: 02 98 72 13 40 83 56 A0 90 00 [21:32:07]wFMCommunicate OK [21:32:07]SAM_PROTO_SignData done [21:32:07]FM_MakeSignedData done [21:32:07]CreateOFDProtocolMessage [21:32:07]wFMCommunicate request_size=4 [21:32:07]MH_SAM_APDU [21:32:07]CAPDU: 80 11 00 00 [21:32:07]Write to MH i2c: E2 08 00 7F 06 80 11 00 00 00 00 00 00 FF [21:32:07]Write i2c OK [21:32:07]MH_I2C_Read... [21:32:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:07]Read from MH i2c: E2 [21:32:07]MH_I2C_Read... [21:32:07]Read from MH i2c: E2 17 00 [21:32:07]MH_I2C_Read... [21:32:07]Read from MH i2c: E2 17 00 7F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4A [21:32:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:32:07]wFMCommunicate OK [21:32:07]CreateOFDProtocolMessage done [21:32:07]OFDSenderStorePacket 50071 [21:32:07]StoreOFDPacket docnum=50071 [21:32:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2D 01 00 00 DF DF 25 01 5B 18 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 B2 00 00 00 F4 03 04 00 D7 B9 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 97 C3 00 00 35 04 06 00 A6 36 15 FF 39 03 02 98 72 13 40 83 56 A0 [21:32:07]CheckFolder [21:32:07]dirname=/storage/ofd_packets [21:32:07]CheckFolder done [21:32:07]ProducePacketName [21:32:07]name=ofd_packets/00050071 [21:32:07]NVStorageSaveData ofd_packets/00050071 [21:32:07]File name is /storage/ofd_packets/00050071 [21:32:07]Write 331 bytes [21:32:07]NVStorageSaveData done [21:32:07]OFDSenderStorePacket done [21:32:07]KKMCreateOFDPacket done [21:32:07]NVStorageSaveData kkm_last_timestamp [21:32:07]File name is /storage/kkm_last_timestamp [21:32:07]Write 4 bytes [21:32:07]NVStorageSaveData done [21:32:07]ExternCall_PrintAddStr [21:32:07]wPrintStart [21:32:07]Write to MH i2c: 01 00 00 80 06 86 [21:32:07]Write i2c OK [21:32:07]MH_I2C_Read... [21:32:07]Read from MH i2c: 01 [21:32:07]MH_I2C_Read... [21:32:07]Read from MH i2c: 01 07 00 [21:32:07]MH_I2C_Read... [21:32:07]Read from MH i2c: 01 07 00 80 06 00 00 00 00 00 FF 0F 9B [21:32:07]RasterBufferAndPrint [21:32:07]line Счет N : (3)190194 [21:32:07]line ИНН: 02508201610067 [21:32:07]line Контрольно-Кассовый Чек [21:32:07]line ПРОДАЖА [21:32:07]line Товар: 4607065001445 [21:32:07]line Шок батончик Snickers 50,5г [21:32:07]line 1.000 * 59.00 [21:32:07]line = 59.00 [21:32:07]line НДС 12% НСП 1% [21:32:07]line > о реализуемом товаре [21:32:07]line ИТОГО: 59.00 [21:32:07]line НСП 1% : 0.52 [21:32:07]line НДС 12% : 6.26 [21:32:07]line Наличными: 59.00 [21:32:07]line Безнал.: 0.00 [21:32:07]line Место: АЗС № 95 "Партнер Нефть" [21:32:07]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:32:07]line СНО: Общий режим [21:32:07]line Чек 178 19.08.2024 21:32 [21:32:07]line Смена: 467 ФФД: 1.0 [21:32:07]line ЗНМ: 0300000078 [21:32:07]line РНМ: 0000000000092546 [21:32:07]line Версия ККМ: 001 [21:32:07]line ФМ: 0000000000871800 [21:32:07]line ФД: 50071 [21:32:07]line ФПД: 182751227492611 [21:32:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T213207&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50071&fm=182751227492611&tin=02508201610067®Number=0000000000092546&sum=5900 [21:32:07]line 0 [21:32:07]OFD Sender: Processing packet 50071 [packets to send 21, broken 20] [21:32:07]ProducePacketName [21:32:07]name=ofd_packets/00050071 [21:32:07]OFD Sender: To server: pG, [21:32:07]CommunicateWithHost lk.salyk.kg:30040 [21:32:07]ConnectInit lk.salyk.kg [21:32:07]written 0, free lines is 4095 [21:32:08]Connected sock=10 [21:32:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2D 01 00 00 DF DF 25 01 5B 18 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 B2 00 00 00 F4 03 04 00 D7 B9 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 97 C3 00 00 35 04 06 00 A6 36 15 FF 39 03 02 98 72 13 40 83 56 A0 [21:32:08]Write to MH i2c: 01 00 00 A8 06 AE [21:32:08]Write i2c OK [21:32:08]MH_I2C_Read... [21:32:08]Read from MH i2c: 01 [21:32:08]MH_I2C_Read... [21:32:08]Read from MH i2c: 01 07 00 [21:32:08]MH_I2C_Read... [21:32:08]Read from MH i2c: 01 07 00 A8 06 00 00 00 00 00 F7 0C B8 [21:32:08]RasterBufferAndPrint [21:32:08]line [21:32:08]line [21:32:08]line [21:32:08]line [21:32:08]line [21:32:08]written 0, free lines is 3326 [21:32:08]MH_Cut [21:32:08]Write to MH i2c: D1 01 00 AF 06 01 87 [21:32:08]Write i2c OK [21:32:08]MH_I2C_Read... [21:32:08]Read from MH i2c: D1 [21:32:08]MH_I2C_Read... [21:32:08]Read from MH i2c: D1 01 00 [21:32:08]MH_I2C_Read... [21:32:08]Read from MH i2c: D1 01 00 AF 06 00 86 [21:32:08]Write to MH i2c: 01 00 00 B0 06 B6 [21:32:08]Write i2c OK [21:32:08]MH_I2C_Read... [21:32:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 36 DE 47 00 8E 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 97 C3 00 00 F4 03 04 00 43 64 C3 66 B6 04 01 00 00 F3 96 3C 6B 66 6C 59 C6 [21:32:08]CommunicateWithHost err = 0 [21:32:08]CheckOFDResponse [21:32:08]1017 (14) - 77093643461234 [21:32:08]1041 (16) - 0000000000871800 [21:32:08]1040 (4) - 50071 [21:32:08]1012 (4) - 19.08.2024 15:26 [21:32:08]1206 (1) - 0 [21:32:08]OFD Sender: Remove packet 50071 [21:32:08]ProducePacketName [21:32:08]name=ofd_packets/00050071 [21:32:08]NVStorageDeleteData [21:32:08]OFD Sender: No OFD packet to send [21:32:09]*** Cut start [21:32:09]*** Purtial cut [21:32:09]*** CUTSNS_PIN = 0 [21:32:09]*** Stage 1: CUTSNS_PIN = 1 [21:32:11]Read from MH i2c: 01 [21:32:11]MH_I2C_Read... [21:32:11]*** Stop cut motor [21:32:11]*** Cut end [21:32:11]Read from MH i2c: 01 07 00 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: 01 07 00 B0 06 00 00 00 00 00 FF 0F CB [21:32:11]process_action close_receipt done [21:32:11]requested_data is exist [21:32:11]produce_requested_data [21:32:11]requested_item fm.sn is exist - process it [21:32:11]wFMCommunicate request_size=4 [21:32:11]MH_SAM_APDU [21:32:11]CAPDU: 80 11 00 00 [21:32:11]Write to MH i2c: E2 08 00 B1 06 80 11 00 00 00 00 00 00 31 [21:32:11]Write i2c OK [21:32:11]MH_I2C_Read... [21:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:11]Read from MH i2c: E2 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: E2 17 00 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: E2 17 00 B1 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7C [21:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:32:11]wFMCommunicate OK [21:32:11]requested_item fd.num is exist - process it [21:32:11]SAM_PROTO_GetFieldsCounters [21:32:11]wFMCommunicate request_size=4 [21:32:11]MH_SAM_APDU [21:32:11]CAPDU: 80 13 00 00 [21:32:11]Write to MH i2c: E2 08 00 B2 06 80 13 00 00 00 00 00 00 34 [21:32:11]Write i2c OK [21:32:11]MH_I2C_Read... [21:32:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:11]Read from MH i2c: E2 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: E2 62 00 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: E2 62 00 B2 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 97 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [21:32:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 97 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:11]wFMCommunicate OK [21:32:11]SAM_PROTO_GetFieldsCounters done [21:32:11]requested_item shift.num is exist - process it [21:32:11]requested_item shift.opened is exist - process it [21:32:11]req_shift_opened [21:32:11]FM_GetShiftState [21:32:11]SAM_PROTO_GetShiftState [21:32:11]wFMCommunicate request_size=4 [21:32:11]MH_SAM_APDU [21:32:11]CAPDU: 80 13 01 00 [21:32:11]Write to MH i2c: E2 08 00 B3 06 80 13 01 00 00 00 00 00 36 [21:32:11]Write i2c OK [21:32:11]MH_I2C_Read... [21:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:11]Read from MH i2c: E2 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: E2 0E 00 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: E2 0E 00 B3 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 F0 [21:32:11]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [21:32:11]wFMCommunicate OK [21:32:11]SAM_PROTO_GetShiftState done [21:32:11]FM_GetShiftState done [21:32:11]req_shift_opened done [21:32:11]requested_item shift.open_date is exist - process it [21:32:11]req_shift_open_date [21:32:11]req_shift_open_date done [21:32:11]produce_requested_data done [21:32:11]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50071,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [21:32:11]process_action_free close_receipt [21:32:11]json_value_free [21:32:11]json_value_free done [21:32:11]process_json_proto returns [21:32:11]Send response to host [21:32:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50071,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [21:32:11]free response buf [21:32:11]execute_script done [21:32:11]execute_script returns [21:32:11]free content buf [21:32:11]Sock 8.Close socket [21:32:11]Sock 8.Thread stoped [21:32:13]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:54]OFD Sender: No OFD packet to send [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:05]accept exits with 9 [21:49:05]New connection [21:49:05]New thread 3066899812 created [21:49:05]Thread 3066756452 joined [21:49:05]Waiting for new connection... [21:49:05] Sock 9.Parse request [21:49:05]Sock 9.Check first char [21:49:05]Sock 9.First char is OK [21:49:05]request: POST /json_proto HTTP/1.0 [21:49:05]Method: POST [21:49:05]URL: /json_proto [21:49:05]Method is POST - this is cgi request [21:49:05]url: /json_proto [21:49:05]query_string will be loaded in cgi processing [21:49:05]execute_cgi json_proto POST (null) [21:49:05]execute_cgi path=json_proto method=POST [21:49:05]POST find Content-Length [21:49:05]Host: 172.17.46.196:8080 [21:49:05]Content-Length: 775 [21:49:05]Content-Type: application/json [21:49:05] [21:49:05]POST finish read [21:49:05]Found Content-Length = 775 [21:49:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190195", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:05]execute_script... [21:49: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)190195", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:05]POST & json_proto [21:49:05]process_json_proto [21:49:05]json parsed OK: [21:49:05]protocol is kg_v1.0 [21:49:05]action value=close_receipt [21:49:05]process_action close_receipt [21:49:05]cmd_close_receipt [21:49:05]MH_GetDate [21:49:05]Write to MH i2c: F0 00 00 B4 06 A9 [21:49:05]Write i2c OK [21:49:05]MH_I2C_Read... [21:49:05]Read from MH i2c: F0 [21:49:05]MH_I2C_Read... [21:49:05]Read from MH i2c: F0 09 00 [21:49:05]MH_I2C_Read... [21:49:05]Read from MH i2c: F0 09 00 B4 06 00 D3 BD C3 66 C4 85 C2 66 DC [21:49:05]GetLastDocTimeStamp 1724103127 [21:49:05]current date 1724104147 [21:49:05]FM_GetShiftState [21:49:05]SAM_PROTO_GetShiftState [21:49:05]wFMCommunicate request_size=4 [21:49:05]MH_SAM_APDU [21:49:05]CAPDU: 80 13 01 00 [21:49:05]Write to MH i2c: E2 08 00 B5 06 80 13 01 00 00 00 00 00 38 [21:49:05]Write i2c OK [21:49:05]MH_I2C_Read... [21:49:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:05]Read from MH i2c: E2 [21:49:05]MH_I2C_Read... [21:49:05]Read from MH i2c: E2 0E 00 [21:49:05]MH_I2C_Read... [21:49:05]Read from MH i2c: E2 0E 00 B5 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 F2 [21:49:05]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [21:49:05]wFMCommunicate OK [21:49:05]SAM_PROTO_GetShiftState done [21:49:05]FM_GetShiftState done [21:49:05]opened in 1724026361 [21:49:05]opened+sec_in_day 1724112761 [21:49:05]quantity*price = 11100 [21:49:05]sum+1 = 11101 [21:49:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 0.00 Безнал.: 111.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 179 19.08.2024 21:49 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 50072 ФПД: 195807395588713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T214907&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50072&fm=195807395588713&tin=02508201610067®Number=0000000000092546&sum=11100 0 [21:49:07]StoreToDocumentArchive [21:49:07]shift 467 fd 50072 [21:49:07]save to /storage/0467/doc_00050072 [21:49:07]save last doc name /storage/0467/doc_00050072 to /storage/kkm_last_doc_name [21:49:07]save OK [21:49:07]Clear old archive folders... [21:49:07]ProcessDocumentItem done err = 0, tmpTLVsize=266 [21:49:07]tlvbuf is 019631E0 [21:49:07]SAM_PROTO_ClearQueue [21:49:07]wFMCommunicate request_size=4 [21:49:07]MH_SAM_APDU [21:49:07]CAPDU: 80 09 00 00 [21:49:07]Write to MH i2c: E2 08 00 C2 06 80 09 00 00 00 00 00 00 3A [21:49:07]Write i2c OK [21:49:07]MH_I2C_Read... [21:49:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:07]Read from MH i2c: E2 [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: E2 03 00 [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: E2 03 00 C2 06 00 90 00 3C [21:49:07]RAPDU: 90 00 [21:49:07]wFMCommunicate OK [21:49:07]SAM_PROTO_ClearQueue done [21:49:07]KKMCreateOFDPacket [21:49:07]OFDProtocolAddRootSTLVToBuf [21:49:07]FM_MakeSignedData [21:49:07]FM_MakeSignedData [21:49:07]SAM_PROTO_SignData [21:49:07]wFMCommunicate request_size=4 [21:49:07]MH_SAM_APDU [21:49:07]CAPDU: 80 0D 01 02 [21:49:07]Write to MH i2c: E2 08 00 C3 06 80 0D 01 02 00 00 00 00 42 [21:49:07]Write i2c OK [21:49:07]MH_I2C_Read... [21:49:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:07]Read from MH i2c: E2 [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: E2 03 00 [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: E2 03 00 C3 06 00 90 00 3D [21:49:07]RAPDU: 90 00 [21:49:07]wFMCommunicate OK [21:49:07]wFMCommunicate request_size=255 [21:49:07]MH_SAM_APDU [21:49:07]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 D3 BD C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [21:49:07]Write to MH i2c: E2 02 01 C4 06 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 D3 BD C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 9A [21:49:07]Write i2c OK [21:49:07]MH_I2C_Read... [21:49:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:07]Read from MH i2c: E2 [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: E2 03 00 [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: E2 03 00 C4 06 00 90 00 3E [21:49:07]RAPDU: 90 00 [21:49:07]wFMCommunicate OK [21:49:07]wFMCommunicate request_size=25 [21:49:07]MH_SAM_APDU [21:49:07]CAPDU: 80 0D 02 02 14 30 30 10 04 04 00 98 C3 00 00 35 04 06 00 B2 15 F6 42 2A 69 [21:49:07]Write to MH i2c: E2 1C 00 C5 06 80 0D 02 02 14 00 30 30 10 04 04 00 98 C3 00 00 35 04 06 00 B2 15 F6 42 2A 69 00 00 11 [21:49:07]Write i2c OK [21:49:07]MH_I2C_Read... [21:49:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:07]Read from MH i2c: E2 [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: E2 03 00 [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: E2 03 00 C5 06 00 90 00 3F [21:49:07]RAPDU: 90 00 [21:49:07]wFMCommunicate OK [21:49:07]wFMCommunicate request_size=4 [21:49:07]MH_SAM_APDU [21:49:07]CAPDU: 80 0D 03 02 [21:49:07]Write to MH i2c: E2 08 00 C6 06 80 0D 03 02 00 00 00 00 47 [21:49:07]Write i2c OK [21:49:07]MH_I2C_Read... [21:49:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:07]Read from MH i2c: E2 [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: E2 0B 00 [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: E2 0B 00 C6 06 00 2C CA 3F 44 40 89 9D 89 90 00 B0 [21:49:07]RAPDU: 2C CA 3F 44 40 89 9D 89 90 00 [21:49:07]wFMCommunicate OK [21:49:07]SAM_PROTO_SignData done [21:49:07]FM_MakeSignedData done [21:49:07]CreateOFDProtocolMessage [21:49:07]wFMCommunicate request_size=4 [21:49:07]MH_SAM_APDU [21:49:07]CAPDU: 80 11 00 00 [21:49:07]Write to MH i2c: E2 08 00 C7 06 80 11 00 00 00 00 00 00 47 [21:49:07]Write i2c OK [21:49:07]MH_I2C_Read... [21:49:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:07]Read from MH i2c: E2 [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: E2 17 00 [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: E2 17 00 C7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 92 [21:49:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:49:07]wFMCommunicate OK [21:49:07]CreateOFDProtocolMessage done [21:49:07]OFDSenderStorePacket 50072 [21:49:07]StoreOFDPacket docnum=50072 [21:49:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 E9 94 16 01 E3 D0 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 D3 BD C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 98 C3 00 00 35 04 06 00 B2 15 F6 42 2A 69 2C CA 3F 44 40 89 9D 89 [21:49:07]CheckFolder [21:49:07]dirname=/storage/ofd_packets [21:49:07]CheckFolder done [21:49:07]ProducePacketName [21:49:07]name=ofd_packets/00050072 [21:49:07]NVStorageSaveData ofd_packets/00050072 [21:49:07]File name is /storage/ofd_packets/00050072 [21:49:07]Write 316 bytes [21:49:07]NVStorageSaveData done [21:49:07]OFDSenderStorePacket done [21:49:07]KKMCreateOFDPacket done [21:49:07]NVStorageSaveData kkm_last_timestamp [21:49:07]File name is /storage/kkm_last_timestamp [21:49:07]Write 4 bytes [21:49:07]NVStorageSaveData done [21:49:07]ExternCall_PrintAddStr [21:49:07]wPrintStart [21:49:07]Write to MH i2c: 01 00 00 C8 06 CE [21:49:07]Write i2c OK [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: 01 [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: 01 07 00 [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: 01 07 00 C8 06 00 00 00 00 00 FF 0F E3 [21:49:07]RasterBufferAndPrint [21:49:07]line Счет N : (3)190195 [21:49:07]line ИНН: 02508201610067 [21:49:07]line Контрольно-Кассовый Чек [21:49:07]line ПРОДАЖА [21:49:07]line Товар: 4870001570071 [21:49:07]line Напиток Pepsi 1л [21:49:07]line 1.000 * 111.00 [21:49:07]line = 111.00 [21:49:07]line НДС 12% НСП 1% [21:49:07]line > о реализуемом товаре [21:49:07]line ИТОГО: 111.00 [21:49:07]line НСП 1% : 0.98 [21:49:07]line НДС 12% : 11.79 [21:49:07]line Наличными: 0.00 [21:49:07]line Безнал.: 111.00 [21:49:07]line Место: АЗС № 95 "Партнер Нефть" [21:49:07]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:49:07]line СНО: Общий режим [21:49:07]line Чек 179 19.08.2024 21:49 [21:49:07]line Смена: 467 ФФД: 1.0 [21:49:07]line ЗНМ: 0300000078 [21:49:07]line РНМ: 0000000000092546 [21:49:07]line Версия ККМ: 001 [21:49:07]line Платежная система: O! деньги [21:49:07]line ФМ: 0000000000871800 [21:49:07]line ФД: 50072 [21:49:07]line ФПД: 195807395588713 [21:49:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T214907&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50072&fm=195807395588713&tin=02508201610067®Number=0000000000092546&sum=11100 [21:49:07]OFD Sender: Processing packet 50072 [packets to send 21, broken 20] [21:49:07]ProducePacketName [21:49:07]name=ofd_packets/00050072 [21:49:07]OFD Sender: To server: pG, [21:49:07]CommunicateWithHost lk.salyk.kg:30040 [21:49:07]ConnectInit lk.salyk.kg [21:49:07]line 0 [21:49:07]written 0, free lines is 4095 [21:49:08]Connected sock=11 [21:49:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 E9 94 16 01 E3 D0 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 D3 BD C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 98 C3 00 00 35 04 06 00 B2 15 F6 42 2A 69 2C CA 3F 44 40 89 9D 89 [21:49:08]Write to MH i2c: 01 00 00 F2 06 F8 [21:49:08]Write i2c OK [21:49:08]MH_I2C_Read... [21:49:08]Read from MH i2c: 01 [21:49:08]MH_I2C_Read... [21:49:08]Read from MH i2c: 01 07 00 [21:49:08]MH_I2C_Read... [21:49:08]Read from MH i2c: 01 07 00 F2 06 00 00 00 00 00 D0 0C DB [21:49:08]RasterBufferAndPrint [21:49:08]line [21:49:08]line [21:49:08]line [21:49:08]line [21:49:08]line [21:49:08]written 0, free lines is 3286 [21:49:08]MH_Cut [21:49:08]Write to MH i2c: D1 01 00 F9 06 01 D1 [21:49:08]Write i2c OK [21:49:08]MH_I2C_Read... [21:49:08]Read from MH i2c: D1 [21:49:08]MH_I2C_Read... [21:49:08]Read from MH i2c: D1 01 00 [21:49:08]MH_I2C_Read... [21:49:08]Read from MH i2c: D1 01 00 F9 06 00 D0 [21:49:08]Write to MH i2c: 01 00 00 FA 06 00 [21:49:08]Write i2c OK [21:49:08]MH_I2C_Read... [21:49:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E4 1B 47 00 2F ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 98 C3 00 00 F4 03 04 00 40 68 C3 66 B6 04 01 00 00 A8 C8 39 AD 27 4C 77 39 [21:49:08]CommunicateWithHost err = 0 [21:49:08]CheckOFDResponse [21:49:08]1017 (14) - 77093643461234 [21:49:08]1041 (16) - 0000000000871800 [21:49:08]1040 (4) - 50072 [21:49:08]1012 (4) - 19.08.2024 15:44 [21:49:08]1206 (1) - 0 [21:49:08]OFD Sender: Remove packet 50072 [21:49:08]ProducePacketName [21:49:08]name=ofd_packets/00050072 [21:49:08]NVStorageDeleteData [21:49:09]OFD Sender: No OFD packet to send [21:49:09]*** Cut start [21:49:09]*** Purtial cut [21:49:09]*** Stage 1: CUTSNS_PIN = 1 [21:49:09]Read from MH i2c: 01 [21:49:09]MH_I2C_Read... [21:49:09]*** Stop cut motor [21:49:09]*** Cut end [21:49:09]Read from MH i2c: 01 07 00 [21:49:09]MH_I2C_Read... [21:49:09]Read from MH i2c: 01 07 00 FA 06 00 00 00 00 00 FF 0F 15 [21:49:09]process_action close_receipt done [21:49:09]requested_data is exist [21:49:09]produce_requested_data [21:49:09]requested_item fm.sn is exist - process it [21:49:09]wFMCommunicate request_size=4 [21:49:09]MH_SAM_APDU [21:49:09]CAPDU: 80 11 00 00 [21:49:09]Write to MH i2c: E2 08 00 FB 06 80 11 00 00 00 00 00 00 7B [21:49:09]Write i2c OK [21:49:09]MH_I2C_Read... [21:49:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:09]Read from MH i2c: E2 [21:49:09]MH_I2C_Read... [21:49:09]Read from MH i2c: E2 17 00 [21:49:09]MH_I2C_Read... [21:49:09]Read from MH i2c: E2 17 00 FB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C6 [21:49:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:49:09]wFMCommunicate OK [21:49:09]requested_item fd.num is exist - process it [21:49:09]SAM_PROTO_GetFieldsCounters [21:49:09]wFMCommunicate request_size=4 [21:49:09]MH_SAM_APDU [21:49:09]CAPDU: 80 13 00 00 [21:49:09]Write to MH i2c: E2 08 00 FC 06 80 13 00 00 00 00 00 00 7E [21:49:09]Write i2c OK [21:49:09]MH_I2C_Read... [21:49:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:09]Read from MH i2c: E2 [21:49:09]MH_I2C_Read... [21:49:09]Read from MH i2c: E2 62 00 [21:49:09]MH_I2C_Read... [21:49:09]Read from MH i2c: E2 62 00 FC 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 98 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [21:49:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 98 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:09]wFMCommunicate OK [21:49:09]SAM_PROTO_GetFieldsCounters done [21:49:09]requested_item shift.num is exist - process it [21:49:09]requested_item shift.opened is exist - process it [21:49:09]req_shift_opened [21:49:09]FM_GetShiftState [21:49:09]SAM_PROTO_GetShiftState [21:49:09]wFMCommunicate request_size=4 [21:49:09]MH_SAM_APDU [21:49:09]CAPDU: 80 13 01 00 [21:49:09]Write to MH i2c: E2 08 00 FD 06 80 13 01 00 00 00 00 00 80 [21:49:09]Write i2c OK [21:49:09]MH_I2C_Read... [21:49:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:09]Read from MH i2c: E2 [21:49:09]MH_I2C_Read... [21:49:09]Read from MH i2c: E2 0E 00 [21:49:09]MH_I2C_Read... [21:49:09]Read from MH i2c: E2 0E 00 FD 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 3A [21:49:09]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [21:49:09]wFMCommunicate OK [21:49:09]SAM_PROTO_GetShiftState done [21:49:09]FM_GetShiftState done [21:49:09]req_shift_opened done [21:49:09]requested_item shift.open_date is exist - process it [21:49:09]req_shift_open_date [21:49:09]req_shift_open_date done [21:49:09]produce_requested_data done [21:49:09]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50072,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [21:49:09]process_action_free close_receipt [21:49:09]json_value_free [21:49:09]json_value_free done [21:49:09]process_json_proto returns [21:49:09]Send response to host [21:49:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50072,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [21:49:09]free response buf [21:49:09]execute_script done [21:49:09]execute_script returns [21:49:09]free content buf [21:49:09]Sock 9.Close socket [21:49:09]Sock 9.Thread stoped [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:10]accept exits with 8 [21:58:10]New connection [21:58:10]New thread 3066756452 created [21:58:10]Thread 3066899812 joined [21:58:10]Waiting for new connection... [21:58:10] Sock 8.Parse request [21:58:10]Sock 8.Check first char [21:58:10]Sock 8.First char is OK [21:58:10]request: POST /json_proto HTTP/1.0 [21:58:10]Method: POST [21:58:10]URL: /json_proto [21:58:10]Method is POST - this is cgi request [21:58:10]url: /json_proto [21:58:10]query_string will be loaded in cgi processing [21:58:10]execute_cgi json_proto POST (null) [21:58:10]execute_cgi path=json_proto method=POST [21:58:10]POST find Content-Length [21:58:10]Host: 172.17.46.196:8080 [21:58:10]Content-Length: 669 [21:58:10]Content-Type: application/json [21:58:10] [21:58:10]POST finish read [21:58:10]Found Content-Length = 669 [21:58:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190196", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "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" ] } } [21:58:10]execute_script... [21:58:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190196", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "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" ] } } [21:58:10]POST & json_proto [21:58:10]process_json_proto [21:58:10]json parsed OK: [21:58:10]protocol is kg_v1.0 [21:58:10]action value=close_receipt [21:58:10]process_action close_receipt [21:58:10]cmd_close_receipt [21:58:10]MH_GetDate [21:58:10]Write to MH i2c: F0 00 00 FE 06 F3 [21:58:10]Write i2c OK [21:58:10]MH_I2C_Read... [21:58:10]Read from MH i2c: F0 [21:58:10]MH_I2C_Read... [21:58:10]Read from MH i2c: F0 09 00 [21:58:10]MH_I2C_Read... [21:58:10]Read from MH i2c: F0 09 00 FE 06 00 F4 BF C3 66 C4 85 C2 66 49 [21:58:10]GetLastDocTimeStamp 1724104147 [21:58:10]current date 1724104692 [21:58:10]FM_GetShiftState [21:58:10]SAM_PROTO_GetShiftState [21:58:10]wFMCommunicate request_size=4 [21:58:10]MH_SAM_APDU [21:58:10]CAPDU: 80 13 01 00 [21:58:10]Write to MH i2c: E2 08 00 FF 06 80 13 01 00 00 00 00 00 82 [21:58:10]Write i2c OK [21:58:10]MH_I2C_Read... [21:58:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:10]Read from MH i2c: E2 [21:58:10]MH_I2C_Read... [21:58:10]Read from MH i2c: E2 0E 00 [21:58:10]MH_I2C_Read... [21:58:10]Read from MH i2c: E2 0E 00 FF 06 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 3C [21:58:10]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [21:58:10]wFMCommunicate OK [21:58:10]SAM_PROTO_GetShiftState done [21:58:10]FM_GetShiftState done [21:58:10]opened in 1724026361 [21:58:10]opened+sec_in_day 1724112761 [21:58:10]quantity*price = 6500 [21:58:10]sum+1 = 6501 [21:58:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 180 19.08.2024 21:58 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50073 ФПД: 69653892321554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T215812&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50073&fm=69653892321554&tin=02508201610067®Number=0000000000092546&sum=6500 0 [21:58:12]StoreToDocumentArchive [21:58:12]shift 467 fd 50073 [21:58:12]save to /storage/0467/doc_00050073 [21:58:12]save last doc name /storage/0467/doc_00050073 to /storage/kkm_last_doc_name [21:58:12]save OK [21:58:12]Clear old archive folders... [21:58:12]ProcessDocumentItem done err = 0, tmpTLVsize=284 [21:58:12]tlvbuf is 0193EA40 [21:58:12]SAM_PROTO_ClearQueue [21:58:12]wFMCommunicate request_size=4 [21:58:12]MH_SAM_APDU [21:58:12]CAPDU: 80 09 00 00 [21:58:12]Write to MH i2c: E2 08 00 0C 07 80 09 00 00 00 00 00 00 85 [21:58:12]Write i2c OK [21:58:12]MH_I2C_Read... [21:58:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:12]Read from MH i2c: E2 [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: E2 03 00 [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: E2 03 00 0C 07 00 90 00 87 [21:58:12]RAPDU: 90 00 [21:58:12]wFMCommunicate OK [21:58:12]SAM_PROTO_ClearQueue done [21:58:12]KKMCreateOFDPacket [21:58:12]OFDProtocolAddRootSTLVToBuf [21:58:12]FM_MakeSignedData [21:58:12]FM_MakeSignedData [21:58:12]SAM_PROTO_SignData [21:58:12]wFMCommunicate request_size=4 [21:58:12]MH_SAM_APDU [21:58:12]CAPDU: 80 0D 01 02 [21:58:12]Write to MH i2c: E2 08 00 0D 07 80 0D 01 02 00 00 00 00 8D [21:58:12]Write i2c OK [21:58:12]MH_I2C_Read... [21:58:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:12]Read from MH i2c: E2 [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: E2 03 00 [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: E2 03 00 0D 07 00 90 00 88 [21:58:12]RAPDU: 90 00 [21:58:12]wFMCommunicate OK [21:58:12]wFMCommunicate request_size=255 [21:58:12]MH_SAM_APDU [21:58:12]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 B4 00 00 00 F4 03 04 00 F4 BF C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 [21:58:12]Write to MH i2c: E2 02 01 0E 07 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 B4 00 00 00 F4 03 04 00 F4 BF C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 00 00 7E [21:58:12]Write i2c OK [21:58:12]MH_I2C_Read... [21:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:12]Read from MH i2c: E2 [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: E2 03 00 [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: E2 03 00 0E 07 00 90 00 89 [21:58:12]RAPDU: 90 00 [21:58:12]wFMCommunicate OK [21:58:12]wFMCommunicate request_size=43 [21:58:12]MH_SAM_APDU [21:58:12]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 99 C3 00 00 35 04 06 00 3F 59 8F 82 51 12 [21:58:12]Write to MH i2c: E2 2E 00 0F 07 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 99 C3 00 00 35 04 06 00 3F 59 8F 82 51 12 00 00 D8 [21:58:12]Write i2c OK [21:58:12]MH_I2C_Read... [21:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:12]Read from MH i2c: E2 [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: E2 03 00 [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: E2 03 00 0F 07 00 90 00 8A [21:58:12]RAPDU: 90 00 [21:58:12]wFMCommunicate OK [21:58:12]wFMCommunicate request_size=4 [21:58:12]MH_SAM_APDU [21:58:12]CAPDU: 80 0D 03 02 [21:58:12]Write to MH i2c: E2 08 00 10 07 80 0D 03 02 00 00 00 00 92 [21:58:12]Write i2c OK [21:58:12]MH_I2C_Read... [21:58:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:12]Read from MH i2c: E2 [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: E2 0B 00 [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: E2 0B 00 10 07 00 98 C0 07 CC AA FD 74 BC 90 00 95 [21:58:12]RAPDU: 98 C0 07 CC AA FD 74 BC 90 00 [21:58:12]wFMCommunicate OK [21:58:12]SAM_PROTO_SignData done [21:58:12]FM_MakeSignedData done [21:58:12]CreateOFDProtocolMessage [21:58:12]wFMCommunicate request_size=4 [21:58:12]MH_SAM_APDU [21:58:12]CAPDU: 80 11 00 00 [21:58:12]Write to MH i2c: E2 08 00 11 07 80 11 00 00 00 00 00 00 92 [21:58:12]Write i2c OK [21:58:12]MH_I2C_Read... [21:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:12]Read from MH i2c: E2 [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: E2 17 00 [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: E2 17 00 11 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DD [21:58:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:58:12]wFMCommunicate OK [21:58:12]CreateOFDProtocolMessage done [21:58:12]OFDSenderStorePacket 50073 [21:58:12]StoreOFDPacket docnum=50073 [21:58:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 35 4E 28 01 9E E5 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 B4 00 00 00 F4 03 04 00 F4 BF C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 99 C3 00 00 35 04 06 00 3F 59 8F 82 51 12 98 C0 07 CC AA FD 74 BC [21:58:12]CheckFolder [21:58:12]dirname=/storage/ofd_packets [21:58:12]CheckFolder done [21:58:12]ProducePacketName [21:58:12]name=ofd_packets/00050073 [21:58:12]NVStorageSaveData ofd_packets/00050073 [21:58:12]File name is /storage/ofd_packets/00050073 [21:58:12]Write 334 bytes [21:58:12]NVStorageSaveData done [21:58:12]OFDSenderStorePacket done [21:58:12]KKMCreateOFDPacket done [21:58:12]NVStorageSaveData kkm_last_timestamp [21:58:12]File name is /storage/kkm_last_timestamp [21:58:12]Write 4 bytes [21:58:12]NVStorageSaveData done [21:58:12]ExternCall_PrintAddStr [21:58:12]wPrintStart [21:58:12]Write to MH i2c: 01 00 00 12 07 19 [21:58:12]Write i2c OK [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: 01 [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: 01 07 00 [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: 01 07 00 12 07 00 00 00 00 00 FF 0F 2E [21:58:12]RasterBufferAndPrint [21:58:12]line Счет N : (3)190196 [21:58:12]line ИНН: 02508201610067 [21:58:12]line Контрольно-Кассовый Чек [21:58:12]line ПРОДАЖА [21:58:12]line Товар: 4700040114137 [21:58:12]line Султан чай 1л. зел лимон [21:58:12]line 1.000 * 65.00 [21:58:12]line = 65.00 [21:58:12]line НДС 12% НСП 1% [21:58:12]line > о реализуемом товаре [21:58:12]line ИТОГО: 65.00 [21:58:12]line НСП 1% : 0.57 [21:58:12]line НДС 12% : 6.90 [21:58:12]line Наличными: 65.00 [21:58:12]line Безнал.: 0.00 [21:58:12]line Место: АЗС № 95 "Партнер Нефть" [21:58:12]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:58:12]line СНО: Общий режим [21:58:12]line Чек 180 19.08.2024 21:58 [21:58:12]line Смена: 467 ФФД: 1.0 [21:58:12]line ЗНМ: 0300000078 [21:58:12]line РНМ: 0000000000092546 [21:58:12]line Версия ККМ: 001 [21:58:12]line ФМ: 0000000000871800 [21:58:12]line ФД: 50073 [21:58:12]line ФПД: 69653892321554 [21:58:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T215812&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50073&fm=69653892321554&tin=02508201610067®Number=0000000000092546&sum=6500 [21:58:12]line 0 [21:58:12]written 0, free lines is 4095 [21:58:12]OFD Sender: Processing packet 50073 [packets to send 21, broken 20] [21:58:12]ProducePacketName [21:58:12]name=ofd_packets/00050073 [21:58:12]OFD Sender: To server: pG, [21:58:12]CommunicateWithHost lk.salyk.kg:30040 [21:58:12]ConnectInit lk.salyk.kg [21:58:13]Write to MH i2c: 01 00 00 3A 07 41 [21:58:13]Write i2c OK [21:58:13]MH_I2C_Read... [21:58:13]Read from MH i2c: 01 [21:58:13]MH_I2C_Read... [21:58:13]Read from MH i2c: 01 07 00 [21:58:13]MH_I2C_Read... [21:58:13]Read from MH i2c: 01 07 00 3A 07 00 00 00 00 00 E1 0C 35 [21:58:13]RasterBufferAndPrint [21:58:13]line [21:58:13]line [21:58:13]line [21:58:13]line [21:58:13]line [21:58:13]written 0, free lines is 3302 [21:58:13]MH_Cut [21:58:13]Write to MH i2c: D1 01 00 41 07 01 1A [21:58:13]Write i2c OK [21:58:13]MH_I2C_Read... [21:58:13]Read from MH i2c: D1 [21:58:13]MH_I2C_Read... [21:58:13]Read from MH i2c: D1 01 00 [21:58:13]MH_I2C_Read... [21:58:13]Read from MH i2c: D1 01 00 41 07 00 19 [21:58:13]Write to MH i2c: 01 00 00 42 07 49 [21:58:13]Write i2c OK [21:58:13]MH_I2C_Read... [21:58:13]Connected sock=10 [21:58:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 35 4E 28 01 9E E5 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 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 B4 00 00 00 F4 03 04 00 F4 BF C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 99 C3 00 00 35 04 06 00 3F 59 8F 82 51 12 98 C0 07 CC AA FD 74 BC [21:58:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 65 03 47 00 15 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 99 C3 00 00 F4 03 04 00 60 6A C3 66 B6 04 01 00 00 7A 5B 04 78 F4 30 5C 84 [21:58:13]CommunicateWithHost err = 0 [21:58:13]CheckOFDResponse [21:58:13]1017 (14) - 77093643461234 [21:58:13]1041 (16) - 0000000000871800 [21:58:13]1040 (4) - 50073 [21:58:13]1012 (4) - 19.08.2024 15:53 [21:58:13]1206 (1) - 0 [21:58:13]OFD Sender: Remove packet 50073 [21:58:13]ProducePacketName [21:58:13]name=ofd_packets/00050073 [21:58:13]NVStorageDeleteData [21:58:13]*** Cut start [21:58:13]*** Purtial cut [21:58:13]*** CUTSNS_PIN = 0 [21:58:14]OFD Sender: No OFD packet to send [21:58:14]*** Stage 1: CUTSNS_PIN = 1 [21:58:15]Read from MH i2c: 01 [21:58:15]MH_I2C_Read... [21:58:15]*** Stop cut motor [21:58:15]*** Cut end [21:58:15]Read from MH i2c: 01 07 00 [21:58:15]MH_I2C_Read... [21:58:15]Read from MH i2c: 01 07 00 42 07 00 00 00 00 00 FF 0F 5E [21:58:15]process_action close_receipt done [21:58:15]requested_data is exist [21:58:15]produce_requested_data [21:58:15]requested_item fm.sn is exist - process it [21:58:15]wFMCommunicate request_size=4 [21:58:15]MH_SAM_APDU [21:58:15]CAPDU: 80 11 00 00 [21:58:15]Write to MH i2c: E2 08 00 43 07 80 11 00 00 00 00 00 00 C4 [21:58:15]Write i2c OK [21:58:15]MH_I2C_Read... [21:58:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:15]Read from MH i2c: E2 [21:58:15]MH_I2C_Read... [21:58:15]Read from MH i2c: E2 17 00 [21:58:15]MH_I2C_Read... [21:58:15]Read from MH i2c: E2 17 00 43 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0F [21:58:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:58:15]wFMCommunicate OK [21:58:15]requested_item fd.num is exist - process it [21:58:15]SAM_PROTO_GetFieldsCounters [21:58:15]wFMCommunicate request_size=4 [21:58:15]MH_SAM_APDU [21:58:15]CAPDU: 80 13 00 00 [21:58:15]Write to MH i2c: E2 08 00 44 07 80 13 00 00 00 00 00 00 C7 [21:58:15]Write i2c OK [21:58:15]MH_I2C_Read... [21:58:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:16]Read from MH i2c: E2 [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: E2 62 00 [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: E2 62 00 44 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 99 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [21:58:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 99 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:58:16]wFMCommunicate OK [21:58:16]SAM_PROTO_GetFieldsCounters done [21:58:16]requested_item shift.num is exist - process it [21:58:16]requested_item shift.opened is exist - process it [21:58:16]req_shift_opened [21:58:16]FM_GetShiftState [21:58:16]SAM_PROTO_GetShiftState [21:58:16]wFMCommunicate request_size=4 [21:58:16]MH_SAM_APDU [21:58:16]CAPDU: 80 13 01 00 [21:58:16]Write to MH i2c: E2 08 00 45 07 80 13 01 00 00 00 00 00 C9 [21:58:16]Write i2c OK [21:58:16]MH_I2C_Read... [21:58:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:16]Read from MH i2c: E2 [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: E2 0E 00 [21:58:16]MH_I2C_Read... [21:58:16]Read from MH i2c: E2 0E 00 45 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 83 [21:58:16]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [21:58:16]wFMCommunicate OK [21:58:16]SAM_PROTO_GetShiftState done [21:58:16]FM_GetShiftState done [21:58:16]req_shift_opened done [21:58:16]requested_item shift.open_date is exist - process it [21:58:16]req_shift_open_date [21:58:16]req_shift_open_date done [21:58:16]produce_requested_data done [21:58:16]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50073,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [21:58:16]process_action_free close_receipt [21:58:16]json_value_free [21:58:16]json_value_free done [21:58:16]process_json_proto returns [21:58:16]Send response to host [21:58:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50073,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [21:58:16]free response buf [21:58:16]execute_script done [21:58:16]execute_script returns [21:58:16]free content buf [21:58:16]Sock 8.Close socket [21:58:16]Sock 8.Thread stoped [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:23]accept exits with 9 [21:59:23]New connection [21:59:23]New thread 3066899812 created [21:59:23]Thread 3066756452 joined [21:59:23]Waiting for new connection... [21:59:23] Sock 9.Parse request [21:59:23]Sock 9.Check first char [21:59:23]Sock 9.First char is OK [21:59:23]request: POST /json_proto HTTP/1.0 [21:59:23]Method: POST [21:59:23]URL: /json_proto [21:59:23]Method is POST - this is cgi request [21:59:23]url: /json_proto [21:59:23]query_string will be loaded in cgi processing [21:59:23]execute_cgi json_proto POST (null) [21:59:23]execute_cgi path=json_proto method=POST [21:59:23]POST find Content-Length [21:59:23]Host: 172.17.46.196:8080 [21:59:23]Content-Length: 737 [21:59:23]Content-Type: application/json [21:59:23] [21:59:23]POST finish read [21:59:23]Found Content-Length = 737 [21:59:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190197", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "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" ] } } [21:59:23]execute_script... [21:59:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190197", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "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" ] } } [21:59:23]POST & json_proto [21:59:23]process_json_proto [21:59:23]json parsed OK: [21:59:23]protocol is kg_v1.0 [21:59:23]action value=close_receipt [21:59:23]process_action close_receipt [21:59:23]cmd_close_receipt [21:59:23]MH_GetDate [21:59:23]Write to MH i2c: F0 00 00 46 07 3C [21:59:23]Write i2c OK [21:59:23]MH_I2C_Read... [21:59:23]Read from MH i2c: F0 [21:59:23]MH_I2C_Read... [21:59:23]Read from MH i2c: F0 09 00 [21:59:23]MH_I2C_Read... [21:59:23]Read from MH i2c: F0 09 00 46 07 00 3D C0 C3 66 C4 85 C2 66 DC [21:59:23]GetLastDocTimeStamp 1724104692 [21:59:23]current date 1724104765 [21:59:23]FM_GetShiftState [21:59:23]SAM_PROTO_GetShiftState [21:59:23]wFMCommunicate request_size=4 [21:59:23]MH_SAM_APDU [21:59:23]CAPDU: 80 13 01 00 [21:59:23]Write to MH i2c: E2 08 00 47 07 80 13 01 00 00 00 00 00 CB [21:59:23]Write i2c OK [21:59:23]MH_I2C_Read... [21:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:23]Read from MH i2c: E2 [21:59:23]MH_I2C_Read... [21:59:23]Read from MH i2c: E2 0E 00 [21:59:23]MH_I2C_Read... [21:59:23]Read from MH i2c: E2 0E 00 47 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 85 [21:59:23]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [21:59:23]wFMCommunicate OK [21:59:23]SAM_PROTO_GetShiftState done [21:59:23]FM_GetShiftState done [21:59:23]opened in 1724026361 [21:59:23]opened+sec_in_day 1724112761 [21:59:23]quantity*price = 18000 [21:59:23]sum+1 = 18001 [21:59:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 181 19.08.2024 21:59 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50074 ФПД: 246462771284924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T215925&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50074&fm=246462771284924&tin=02508201610067®Number=0000000000092546&sum=18000 0 [21:59:24]StoreToDocumentArchive [21:59:24]shift 467 fd 50074 [21:59:24]save to /storage/0467/doc_00050074 [21:59:24]save last doc name /storage/0467/doc_00050074 to /storage/kkm_last_doc_name [21:59:24]save OK [21:59:24]Clear old archive folders... [21:59:24]ProcessDocumentItem done err = 0, tmpTLVsize=310 [21:59:24]tlvbuf is 01946C80 [21:59:24]SAM_PROTO_ClearQueue [21:59:24]wFMCommunicate request_size=4 [21:59:24]MH_SAM_APDU [21:59:24]CAPDU: 80 09 00 00 [21:59:24]Write to MH i2c: E2 08 00 54 07 80 09 00 00 00 00 00 00 CD [21:59:24]Write i2c OK [21:59:24]MH_I2C_Read... [21:59:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:59:24]Read from MH i2c: E2 [21:59:24]MH_I2C_Read... [21:59:24]Read from MH i2c: E2 03 00 [21:59:24]MH_I2C_Read... [21:59:24]Read from MH i2c: E2 03 00 54 07 00 90 00 CF [21:59:24]RAPDU: 90 00 [21:59:24]wFMCommunicate OK [21:59:24]SAM_PROTO_ClearQueue done [21:59:24]KKMCreateOFDPacket [21:59:24]OFDProtocolAddRootSTLVToBuf [21:59:24]FM_MakeSignedData [21:59:24]FM_MakeSignedData [21:59:24]SAM_PROTO_SignData [21:59:24]wFMCommunicate request_size=4 [21:59:24]MH_SAM_APDU [21:59:24]CAPDU: 80 0D 01 02 [21:59:24]Write to MH i2c: E2 08 00 55 07 80 0D 01 02 00 00 00 00 D5 [21:59:24]Write i2c OK [21:59:24]MH_I2C_Read... [21:59:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:59:25]Read from MH i2c: E2 [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: E2 03 00 [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: E2 03 00 55 07 00 90 00 D0 [21:59:25]RAPDU: 90 00 [21:59:25]wFMCommunicate OK [21:59:25]wFMCommunicate request_size=255 [21:59:25]MH_SAM_APDU [21:59:25]CAPDU: 80 0D 02 02 FA 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F 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 B5 00 00 00 F4 03 04 00 3D C0 C3 66 0E 04 04 00 D3 01 00 [21:59:25]Write to MH i2c: E2 02 01 56 07 80 0D 02 02 FA 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F 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 B5 00 00 00 F4 03 04 00 3D C0 C3 66 0E 04 04 00 D3 01 00 00 00 94 [21:59:25]Write i2c OK [21:59:25]MH_I2C_Read... [21:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:25]Read from MH i2c: E2 [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: E2 03 00 [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: E2 03 00 56 07 00 90 00 D1 [21:59:25]RAPDU: 90 00 [21:59:25]wFMCommunicate OK [21:59:25]wFMCommunicate request_size=69 [21:59:25]MH_SAM_APDU [21:59:25]CAPDU: 80 0D 02 02 40 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9A C3 00 00 35 04 06 00 E0 28 15 EE CB BC [21:59:25]Write to MH i2c: E2 48 00 57 07 80 0D 02 02 40 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9A C3 00 00 35 04 06 00 E0 28 15 EE CB BC 00 00 D5 [21:59:25]Write i2c OK [21:59:25]MH_I2C_Read... [21:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:25]Read from MH i2c: E2 [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: E2 03 00 [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: E2 03 00 57 07 00 90 00 D2 [21:59:25]RAPDU: 90 00 [21:59:25]wFMCommunicate OK [21:59:25]wFMCommunicate request_size=4 [21:59:25]MH_SAM_APDU [21:59:25]CAPDU: 80 0D 03 02 [21:59:25]Write to MH i2c: E2 08 00 58 07 80 0D 03 02 00 00 00 00 DA [21:59:25]Write i2c OK [21:59:25]MH_I2C_Read... [21:59:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:59:25]Read from MH i2c: E2 [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: E2 0B 00 [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: E2 0B 00 58 07 00 DD B0 1F 20 70 2F 57 B2 90 00 4F [21:59:25]RAPDU: DD B0 1F 20 70 2F 57 B2 90 00 [21:59:25]wFMCommunicate OK [21:59:25]SAM_PROTO_SignData done [21:59:25]FM_MakeSignedData done [21:59:25]CreateOFDProtocolMessage [21:59:25]wFMCommunicate request_size=4 [21:59:25]MH_SAM_APDU [21:59:25]CAPDU: 80 11 00 00 [21:59:25]Write to MH i2c: E2 08 00 59 07 80 11 00 00 00 00 00 00 DA [21:59:25]Write i2c OK [21:59:25]MH_I2C_Read... [21:59:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:25]Read from MH i2c: E2 [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: E2 17 00 [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: E2 17 00 59 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 25 [21:59:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:59:25]wFMCommunicate OK [21:59:25]CreateOFDProtocolMessage done [21:59:25]OFDSenderStorePacket 50074 [21:59:25]StoreOFDPacket docnum=50074 [21:59:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4A 01 00 00 55 8A 42 01 6B EB 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F 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 B5 00 00 00 F4 03 04 00 3D C0 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9A C3 00 00 35 04 06 00 E0 28 15 EE CB BC DD B0 1F 20 70 2F 57 B2 [21:59:25]CheckFolder [21:59:25]dirname=/storage/ofd_packets [21:59:25]CheckFolder done [21:59:25]ProducePacketName [21:59:25]name=ofd_packets/00050074 [21:59:25]NVStorageSaveData ofd_packets/00050074 [21:59:25]File name is /storage/ofd_packets/00050074 [21:59:25]Write 360 bytes [21:59:25]NVStorageSaveData done [21:59:25]OFDSenderStorePacket done [21:59:25]KKMCreateOFDPacket done [21:59:25]NVStorageSaveData kkm_last_timestamp [21:59:25]File name is /storage/kkm_last_timestamp [21:59:25]Write 4 bytes [21:59:25]NVStorageSaveData done [21:59:25]ExternCall_PrintAddStr [21:59:25]wPrintStart [21:59:25]Write to MH i2c: 01 00 00 5A 07 61 [21:59:25]Write i2c OK [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: 01 [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: 01 07 00 [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: 01 07 00 5A 07 00 00 00 00 00 FF 0F 76 [21:59:25]RasterBufferAndPrint [21:59:25]line Счет N : (3)190197 [21:59:25]line ИНН: 02508201610067 [21:59:25]line Контрольно-Кассовый Чек [21:59:25]line ПРОДАЖА [21:59:25]line Товар: 4870145004982 [21:59:25]line Пиво Жатецкий Гусь 7 экспортное 0,43л ж/ [21:59:25]line 2.000 * 90.00 [21:59:25]line = 180.00 [21:59:25]line НДС 12% НСП 1% [21:59:25]line > о реализуемом товаре [21:59:25]line ИТОГО: 180.00 [21:59:25]line НСП 1% : 1.59 [21:59:25]line НДС 12% : 19.11 [21:59:25]line Наличными: 180.00 [21:59:25]line Безнал.: 0.00 [21:59:25]line Место: АЗС № 95 "Партнер Нефть" [21:59:25]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [21:59:25]line СНО: Общий режим [21:59:25]line Чек 181 19.08.2024 21:59 [21:59:25]line Смена: 467 ФФД: 1.0 [21:59:25]line ЗНМ: 0300000078 [21:59:25]line РНМ: 0000000000092546 [21:59:25]line Версия ККМ: 001 [21:59:25]line ФМ: 0000000000871800 [21:59:25]line ФД: 50074 [21:59:25]line ФПД: 246462771284924 [21:59:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T215925&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50074&fm=246462771284924&tin=02508201610067®Number=0000000000092546&sum=18000 [21:59:25]line 0 [21:59:25]written 0, free lines is 4095 [21:59:25]OFD Sender: Processing packet 50074 [packets to send 21, broken 20] [21:59:25]ProducePacketName [21:59:25]name=ofd_packets/00050074 [21:59:25]OFD Sender: To server: pG, [21:59:25]CommunicateWithHost lk.salyk.kg:30040 [21:59:25]ConnectInit lk.salyk.kg [21:59:25]Connected sock=10 [21:59:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4A 01 00 00 55 8A 42 01 6B EB 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F 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 B5 00 00 00 F4 03 04 00 3D C0 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9A C3 00 00 35 04 06 00 E0 28 15 EE CB BC DD B0 1F 20 70 2F 57 B2 [21:59:25]Write to MH i2c: 01 00 00 83 07 8A [21:59:25]Write i2c OK [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: 01 [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: 01 07 00 [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: 01 07 00 83 07 00 00 00 00 00 EE 0C 8B [21:59:25]RasterBufferAndPrint [21:59:25]line [21:59:25]line [21:59:25]line [21:59:25]line [21:59:25]line [21:59:25]written 0, free lines is 3316 [21:59:25]MH_Cut [21:59:25]Write to MH i2c: D1 01 00 8A 07 01 63 [21:59:25]Write i2c OK [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: D1 [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: D1 01 00 [21:59:25]MH_I2C_Read... [21:59:25]Read from MH i2c: D1 01 00 8A 07 00 62 [21:59:25]Write to MH i2c: 01 00 00 8B 07 92 [21:59:25]Write i2c OK [21:59:25]MH_I2C_Read... [21:59:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0C 7E 47 00 27 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9A C3 00 00 F4 03 04 00 A9 6A C3 66 B6 04 01 00 00 2E 81 6A 25 2B C2 B0 06 [21:59:26]CommunicateWithHost err = 0 [21:59:26]CheckOFDResponse [21:59:26]1017 (14) - 77093643461234 [21:59:26]1041 (16) - 0000000000871800 [21:59:26]1040 (4) - 50074 [21:59:26]1012 (4) - 19.08.2024 15:54 [21:59:26]1206 (1) - 0 [21:59:26]OFD Sender: Remove packet 50074 [21:59:26]ProducePacketName [21:59:26]name=ofd_packets/00050074 [21:59:26]NVStorageDeleteData [21:59:26]OFD Sender: No OFD packet to send [21:59:26]*** Cut start [21:59:26]*** Purtial cut [21:59:26]*** Stage 1: CUTSNS_PIN = 1 [21:59:27]Read from MH i2c: 01 [21:59:27]MH_I2C_Read... [21:59:27]*** Stop cut motor [21:59:27]*** Cut end [21:59:27]Read from MH i2c: 01 07 00 [21:59:27]MH_I2C_Read... [21:59:27]Read from MH i2c: 01 07 00 8B 07 00 00 00 00 00 FF 0F A7 [21:59:27]process_action close_receipt done [21:59:27]requested_data is exist [21:59:27]produce_requested_data [21:59:27]requested_item fm.sn is exist - process it [21:59:27]wFMCommunicate request_size=4 [21:59:27]MH_SAM_APDU [21:59:27]CAPDU: 80 11 00 00 [21:59:27]Write to MH i2c: E2 08 00 8C 07 80 11 00 00 00 00 00 00 0D [21:59:27]Write i2c OK [21:59:27]MH_I2C_Read... [21:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:27]Read from MH i2c: E2 [21:59:27]MH_I2C_Read... [21:59:27]Read from MH i2c: E2 17 00 [21:59:27]MH_I2C_Read... [21:59:27]Read from MH i2c: E2 17 00 8C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 58 [21:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [21:59:27]wFMCommunicate OK [21:59:27]requested_item fd.num is exist - process it [21:59:27]SAM_PROTO_GetFieldsCounters [21:59:27]wFMCommunicate request_size=4 [21:59:27]MH_SAM_APDU [21:59:27]CAPDU: 80 13 00 00 [21:59:27]Write to MH i2c: E2 08 00 8D 07 80 13 00 00 00 00 00 00 10 [21:59:27]Write i2c OK [21:59:27]MH_I2C_Read... [21:59:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:59:27]Read from MH i2c: E2 [21:59:27]MH_I2C_Read... [21:59:27]Read from MH i2c: E2 62 00 [21:59:27]MH_I2C_Read... [21:59:27]Read from MH i2c: E2 62 00 8D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9A C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [21:59:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9A C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:59:27]wFMCommunicate OK [21:59:27]SAM_PROTO_GetFieldsCounters done [21:59:27]requested_item shift.num is exist - process it [21:59:27]requested_item shift.opened is exist - process it [21:59:27]req_shift_opened [21:59:27]FM_GetShiftState [21:59:27]SAM_PROTO_GetShiftState [21:59:27]wFMCommunicate request_size=4 [21:59:27]MH_SAM_APDU [21:59:27]CAPDU: 80 13 01 00 [21:59:27]Write to MH i2c: E2 08 00 8E 07 80 13 01 00 00 00 00 00 12 [21:59:27]Write i2c OK [21:59:27]MH_I2C_Read... [21:59:27]Read from MH i2c: E2 [21:59:27]MH_I2C_Read... [21:59:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:27]Read from MH i2c: E2 0E 00 [21:59:27]MH_I2C_Read... [21:59:27]Read from MH i2c: E2 0E 00 8E 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 CC [21:59:27]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [21:59:27]wFMCommunicate OK [21:59:27]SAM_PROTO_GetShiftState done [21:59:27]FM_GetShiftState done [21:59:27]req_shift_opened done [21:59:27]requested_item shift.open_date is exist - process it [21:59:27]req_shift_open_date [21:59:27]req_shift_open_date done [21:59:27]produce_requested_data done [21:59:27]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50074,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [21:59:27]process_action_free close_receipt [21:59:27]json_value_free [21:59:27]json_value_free done [21:59:27]process_json_proto returns [21:59:27]Send response to host [21:59:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50074,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [21:59:27]free response buf [21:59:27]execute_script done [21:59:27]execute_script returns [21:59:27]free content buf [21:59:27]Sock 9.Close socket [21:59:27]Sock 9.Thread stoped [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:35]accept exits with 8 [22:08:35]New connection [22:08:35]New thread 3066756452 created [22:08:35]Thread 3066899812 joined [22:08:35]Waiting for new connection... [22:08:35] Sock 8.Parse request [22:08:35]Sock 8.Check first char [22:08:35]Sock 8.First char is OK [22:08:35]request: POST /json_proto HTTP/1.0 [22:08:35]Method: POST [22:08:35]URL: /json_proto [22:08:35]Method is POST - this is cgi request [22:08:35]url: /json_proto [22:08:35]query_string will be loaded in cgi processing [22:08:35]execute_cgi json_proto POST (null) [22:08:35]execute_cgi path=json_proto method=POST [22:08:35]POST find Content-Length [22:08:35]Host: 172.17.46.196:8080 [22:08:35]Content-Length: 737 [22:08:35]Content-Type: application/json [22:08:35] [22:08:35]POST finish read [22:08:35]Found Content-Length = 737 [22:08:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190198", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "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" ] } } [22:08:35]execute_script... [22:08: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)190198", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "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" ] } } [22:08:35]POST & json_proto [22:08:35]process_json_proto [22:08:35]json parsed OK: [22:08:35]protocol is kg_v1.0 [22:08:35]action value=close_receipt [22:08:35]process_action close_receipt [22:08:35]cmd_close_receipt [22:08:35]MH_GetDate [22:08:35]Write to MH i2c: F0 00 00 8F 07 85 [22:08:35]Write i2c OK [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: F0 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: F0 09 00 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: F0 09 00 8F 07 00 65 C2 C3 66 C4 85 C2 66 4F [22:08:35]GetLastDocTimeStamp 1724104765 [22:08:35]current date 1724105317 [22:08:35]FM_GetShiftState [22:08:35]SAM_PROTO_GetShiftState [22:08:35]wFMCommunicate request_size=4 [22:08:35]MH_SAM_APDU [22:08:35]CAPDU: 80 13 01 00 [22:08:35]Write to MH i2c: E2 08 00 90 07 80 13 01 00 00 00 00 00 14 [22:08:35]Write i2c OK [22:08:35]MH_I2C_Read... [22:08:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:35]Read from MH i2c: E2 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: E2 0E 00 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: E2 0E 00 90 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 CE [22:08:35]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [22:08:35]wFMCommunicate OK [22:08:35]SAM_PROTO_GetShiftState done [22:08:35]FM_GetShiftState done [22:08:35]opened in 1724026361 [22:08:35]opened+sec_in_day 1724112761 [22:08:35]quantity*price = 18000 [22:08:35]sum+1 = 18001 [22:08:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 182 19.08.2024 22:08 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50075 ФПД: 145438856752025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T220837&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50075&fm=145438856752025&tin=02508201610067®Number=0000000000092546&sum=18000 0 [22:08:36]StoreToDocumentArchive [22:08:36]shift 467 fd 50075 [22:08:36]save to /storage/0467/doc_00050075 [22:08:36]save last doc name /storage/0467/doc_00050075 to /storage/kkm_last_doc_name [22:08:36]save OK [22:08:36]Clear old archive folders... [22:08:36]ProcessDocumentItem done err = 0, tmpTLVsize=310 [22:08:36]tlvbuf is 01953FF0 [22:08:36]SAM_PROTO_ClearQueue [22:08:36]wFMCommunicate request_size=4 [22:08:36]MH_SAM_APDU [22:08:36]CAPDU: 80 09 00 00 [22:08:36]Write to MH i2c: E2 08 00 9D 07 80 09 00 00 00 00 00 00 16 [22:08:36]Write i2c OK [22:08:36]MH_I2C_Read... [22:08:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:36]Read from MH i2c: E2 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: E2 03 00 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: E2 03 00 9D 07 00 90 00 18 [22:08:36]RAPDU: 90 00 [22:08:36]wFMCommunicate OK [22:08:36]SAM_PROTO_ClearQueue done [22:08:36]KKMCreateOFDPacket [22:08:36]OFDProtocolAddRootSTLVToBuf [22:08:36]FM_MakeSignedData [22:08:36]FM_MakeSignedData [22:08:36]SAM_PROTO_SignData [22:08:36]wFMCommunicate request_size=4 [22:08:36]MH_SAM_APDU [22:08:36]CAPDU: 80 0D 01 02 [22:08:36]Write to MH i2c: E2 08 00 9E 07 80 0D 01 02 00 00 00 00 1E [22:08:36]Write i2c OK [22:08:36]MH_I2C_Read... [22:08:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:36]Read from MH i2c: E2 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: E2 03 00 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: E2 03 00 9E 07 00 90 00 19 [22:08:36]RAPDU: 90 00 [22:08:36]wFMCommunicate OK [22:08:36]wFMCommunicate request_size=255 [22:08:36]MH_SAM_APDU [22:08:36]CAPDU: 80 0D 02 02 FA 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F 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 B6 00 00 00 F4 03 04 00 65 C2 C3 66 0E 04 04 00 D3 01 00 [22:08:36]Write to MH i2c: E2 02 01 9F 07 80 0D 02 02 FA 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F 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 B6 00 00 00 F4 03 04 00 65 C2 C3 66 0E 04 04 00 D3 01 00 00 00 08 [22:08:36]Write i2c OK [22:08:36]MH_I2C_Read... [22:08:37]OFD Sender: No OFD packet to send [22:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:37]Read from MH i2c: E2 [22:08:37]MH_I2C_Read... [22:08:37]Read from MH i2c: E2 03 00 [22:08:37]MH_I2C_Read... [22:08:37]Read from MH i2c: E2 03 00 9F 07 00 90 00 1A [22:08:37]RAPDU: 90 00 [22:08:37]wFMCommunicate OK [22:08:37]wFMCommunicate request_size=69 [22:08:37]MH_SAM_APDU [22:08:37]CAPDU: 80 0D 02 02 40 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9B C3 00 00 35 04 06 00 84 46 9F 64 AB 99 [22:08:37]Write to MH i2c: E2 48 00 A0 07 80 0D 02 02 40 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9B C3 00 00 35 04 06 00 84 46 9F 64 AB 99 00 00 9E [22:08:37]Write i2c OK [22:08:37]MH_I2C_Read... [22:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:37]Read from MH i2c: E2 [22:08:37]MH_I2C_Read... [22:08:37]Read from MH i2c: E2 03 00 [22:08:37]MH_I2C_Read... [22:08:37]Read from MH i2c: E2 03 00 A0 07 00 90 00 1B [22:08:37]RAPDU: 90 00 [22:08:37]wFMCommunicate OK [22:08:37]wFMCommunicate request_size=4 [22:08:37]MH_SAM_APDU [22:08:37]CAPDU: 80 0D 03 02 [22:08:37]Write to MH i2c: E2 08 00 A1 07 80 0D 03 02 00 00 00 00 23 [22:08:37]Write i2c OK [22:08:37]MH_I2C_Read... [22:08:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:37]Read from MH i2c: E2 [22:08:37]MH_I2C_Read... [22:08:37]Read from MH i2c: E2 0B 00 [22:08:37]MH_I2C_Read... [22:08:37]Read from MH i2c: E2 0B 00 A1 07 00 6D BD D6 53 38 CA A2 F0 90 00 0B [22:08:37]RAPDU: 6D BD D6 53 38 CA A2 F0 90 00 [22:08:37]wFMCommunicate OK [22:08:37]SAM_PROTO_SignData done [22:08:37]FM_MakeSignedData done [22:08:37]CreateOFDProtocolMessage [22:08:37]wFMCommunicate request_size=4 [22:08:37]MH_SAM_APDU [22:08:37]CAPDU: 80 11 00 00 [22:08:37]Write to MH i2c: E2 08 00 A2 07 80 11 00 00 00 00 00 00 23 [22:08:37]Write i2c OK [22:08:37]MH_I2C_Read... [22:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:37]Read from MH i2c: E2 [22:08:37]MH_I2C_Read... [22:08:37]Read from MH i2c: E2 17 00 [22:08:37]MH_I2C_Read... [22:08:37]Read from MH i2c: E2 17 00 A2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6E [22:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:08:37]wFMCommunicate OK [22:08:37]CreateOFDProtocolMessage done [22:08:37]OFDSenderStorePacket 50075 [22:08:37]StoreOFDPacket docnum=50075 [22:08:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4A 01 00 00 37 48 42 01 8C 14 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F 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 B6 00 00 00 F4 03 04 00 65 C2 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9B C3 00 00 35 04 06 00 84 46 9F 64 AB 99 6D BD D6 53 38 CA A2 F0 [22:08:37]CheckFolder [22:08:37]dirname=/storage/ofd_packets [22:08:37]CheckFolder done [22:08:37]ProducePacketName [22:08:37]name=ofd_packets/00050075 [22:08:37]NVStorageSaveData ofd_packets/00050075 [22:08:37]File name is /storage/ofd_packets/00050075 [22:08:37]Write 360 bytes [22:08:37]NVStorageSaveData done [22:08:37]OFDSenderStorePacket done [22:08:37]KKMCreateOFDPacket done [22:08:37]NVStorageSaveData kkm_last_timestamp [22:08:37]File name is /storage/kkm_last_timestamp [22:08:37]Write 4 bytes [22:08:37]NVStorageSaveData done [22:08:37]ExternCall_PrintAddStr [22:08:37]wPrintStart [22:08:37]Write to MH i2c: 01 00 00 A3 07 AA [22:08:37]Write i2c OK [22:08:37]MH_I2C_Read... [22:08:37]Read from MH i2c: 01 [22:08:37]MH_I2C_Read... [22:08:37]Read from MH i2c: 01 07 00 [22:08:37]MH_I2C_Read... [22:08:37]Read from MH i2c: 01 07 00 A3 07 00 00 00 00 00 FF 0F BF [22:08:37]RasterBufferAndPrint [22:08:37]line Счет N : (3)190198 [22:08:37]line ИНН: 02508201610067 [22:08:37]line Контрольно-Кассовый Чек [22:08:37]line ПРОДАЖА [22:08:37]line Товар: 4870145004982 [22:08:37]line Пиво Жатецкий Гусь 7 экспортное 0,43л ж/ [22:08:37]line 2.000 * 90.00 [22:08:37]line = 180.00 [22:08:37]line НДС 12% НСП 1% [22:08:37]line > о реализуемом товаре [22:08:37]line ИТОГО: 180.00 [22:08:37]line НСП 1% : 1.59 [22:08:37]line НДС 12% : 19.11 [22:08:37]line Наличными: 180.00 [22:08:37]line Безнал.: 0.00 [22:08:37]line Место: АЗС № 95 "Партнер Нефть" [22:08:37]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:08:37]line СНО: Общий режим [22:08:37]line Чек 182 19.08.2024 22:08 [22:08:37]line Смена: 467 ФФД: 1.0 [22:08:37]line ЗНМ: 0300000078 [22:08:37]line РНМ: 0000000000092546 [22:08:37]line Версия ККМ: 001 [22:08:37]line ФМ: 0000000000871800 [22:08:37]line ФД: 50075 [22:08:37]line ФПД: 145438856752025 [22:08:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T220837&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50075&fm=145438856752025&tin=02508201610067®Number=0000000000092546&sum=18000 [22:08:37]line 0 [22:08:37]OFD Sender: Processing packet 50075 [packets to send 21, broken 20] [22:08:37]ProducePacketName [22:08:37]name=ofd_packets/00050075 [22:08:37]OFD Sender: To server: pG, [22:08:37]CommunicateWithHost lk.salyk.kg:30040 [22:08:37]ConnectInit lk.salyk.kg [22:08:37]written 0, free lines is 4095 [22:08:37]Connected sock=10 [22:08:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4A 01 00 00 37 48 42 01 8C 14 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F 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 B6 00 00 00 F4 03 04 00 65 C2 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9B C3 00 00 35 04 06 00 84 46 9F 64 AB 99 6D BD D6 53 38 CA A2 F0 [22:08:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B5 9B 47 00 EA 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9B C3 00 00 F4 03 04 00 D1 6C C3 66 B6 04 01 00 00 BC 81 76 6F 65 03 DA EF [22:08:38]CommunicateWithHost err = 0 [22:08:38]CheckOFDResponse [22:08:38]1017 (14) - 77093643461234 [22:08:38]1041 (16) - 0000000000871800 [22:08:38]1040 (4) - 50075 [22:08:38]1012 (4) - 19.08.2024 16:03 [22:08:38]1206 (1) - 0 [22:08:38]OFD Sender: Remove packet 50075 [22:08:38]ProducePacketName [22:08:38]name=ofd_packets/00050075 [22:08:38]NVStorageDeleteData [22:08:38]Write to MH i2c: 01 00 00 CC 07 D3 [22:08:38]Write i2c OK [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: 01 [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: 01 07 00 [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: 01 07 00 CC 07 00 00 00 00 00 FB 0C E1 [22:08:38]RasterBufferAndPrint [22:08:38]line [22:08:38]line [22:08:38]line [22:08:38]line [22:08:38]line [22:08:38]written 0, free lines is 3329 [22:08:38]MH_Cut [22:08:38]Write to MH i2c: D1 01 00 D3 07 01 AC [22:08:38]Write i2c OK [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: D1 [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: D1 01 00 [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: D1 01 00 D3 07 00 AB [22:08:38]Write to MH i2c: 01 00 00 D4 07 DB [22:08:38]Write i2c OK [22:08:38]MH_I2C_Read... [22:08:38]OFD Sender: No OFD packet to send [22:08:38]*** Cut start [22:08:38]*** Purtial cut [22:08:38]*** CUTSNS_PIN = 0 [22:08:39]*** Stage 1: CUTSNS_PIN = 1 [22:08:40]Read from MH i2c: 01 [22:08:40]MH_I2C_Read... [22:08:40]*** Stop cut motor [22:08:40]*** Cut end [22:08:40]Read from MH i2c: 01 07 00 [22:08:40]MH_I2C_Read... [22:08:40]Read from MH i2c: 01 07 00 D4 07 00 00 00 00 00 FF 0F F0 [22:08:40]process_action close_receipt done [22:08:40]requested_data is exist [22:08:40]produce_requested_data [22:08:40]requested_item fm.sn is exist - process it [22:08:40]wFMCommunicate request_size=4 [22:08:40]MH_SAM_APDU [22:08:40]CAPDU: 80 11 00 00 [22:08:40]Write to MH i2c: E2 08 00 D5 07 80 11 00 00 00 00 00 00 56 [22:08:40]Write i2c OK [22:08:40]MH_I2C_Read... [22:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:41]Read from MH i2c: E2 [22:08:41]MH_I2C_Read... [22:08:41]Read from MH i2c: E2 17 00 [22:08:41]MH_I2C_Read... [22:08:41]Read from MH i2c: E2 17 00 D5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A1 [22:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:08:41]wFMCommunicate OK [22:08:41]requested_item fd.num is exist - process it [22:08:41]SAM_PROTO_GetFieldsCounters [22:08:41]wFMCommunicate request_size=4 [22:08:41]MH_SAM_APDU [22:08:41]CAPDU: 80 13 00 00 [22:08:41]Write to MH i2c: E2 08 00 D6 07 80 13 00 00 00 00 00 00 59 [22:08:41]Write i2c OK [22:08:41]MH_I2C_Read... [22:08:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:41]Read from MH i2c: E2 [22:08:41]MH_I2C_Read... [22:08:41]Read from MH i2c: E2 62 00 [22:08:41]MH_I2C_Read... [22:08:41]Read from MH i2c: E2 62 00 D6 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9B C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [22:08:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9B C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:41]wFMCommunicate OK [22:08:41]SAM_PROTO_GetFieldsCounters done [22:08:41]requested_item shift.num is exist - process it [22:08:41]requested_item shift.opened is exist - process it [22:08:41]req_shift_opened [22:08:41]FM_GetShiftState [22:08:41]SAM_PROTO_GetShiftState [22:08:41]wFMCommunicate request_size=4 [22:08:41]MH_SAM_APDU [22:08:41]CAPDU: 80 13 01 00 [22:08:41]Write to MH i2c: E2 08 00 D7 07 80 13 01 00 00 00 00 00 5B [22:08:41]Write i2c OK [22:08:41]MH_I2C_Read... [22:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:41]Read from MH i2c: E2 [22:08:41]MH_I2C_Read... [22:08:41]Read from MH i2c: E2 0E 00 [22:08:41]MH_I2C_Read... [22:08:41]Read from MH i2c: E2 0E 00 D7 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 15 [22:08:41]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [22:08:41]wFMCommunicate OK [22:08:41]SAM_PROTO_GetShiftState done [22:08:41]FM_GetShiftState done [22:08:41]req_shift_opened done [22:08:41]requested_item shift.open_date is exist - process it [22:08:41]req_shift_open_date [22:08:41]req_shift_open_date done [22:08:41]produce_requested_data done [22:08:41]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50075,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [22:08:41]process_action_free close_receipt [22:08:41]json_value_free [22:08:41]json_value_free done [22:08:41]process_json_proto returns [22:08:41]Send response to host [22:08:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50075,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [22:08:41]free response buf [22:08:41]execute_script done [22:08:41]execute_script returns [22:08:41]free content buf [22:08:41]Sock 8.Close socket [22:08:41]Sock 8.Thread stoped [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:05]accept exits with 9 [22:10:05]New connection [22:10:05]New thread 3066899812 created [22:10:05]Thread 3066756452 joined [22:10:05]Waiting for new connection... [22:10:05] Sock 9.Parse request [22:10:05]Sock 9.Check first char [22:10:05]Sock 9.First char is OK [22:10:05]request: POST /json_proto HTTP/1.0 [22:10:05]Method: POST [22:10:05]URL: /json_proto [22:10:05]Method is POST - this is cgi request [22:10:05]url: /json_proto [22:10:05]query_string will be loaded in cgi processing [22:10:05]execute_cgi json_proto POST (null) [22:10:05]execute_cgi path=json_proto method=POST [22:10:05]POST find Content-Length [22:10:05]Host: 172.17.46.196:8080 [22:10:05]Content-Length: 1263 [22:10:05]Content-Type: application/json [22:10:05] [22:10:05]POST finish read [22:10:05]Found Content-Length = 1263 [22:10:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190199", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 90.00, "quantity" : 4.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209745486", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0421\u044B\u0440 50 \u0433\u0440", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 488.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:05]execute_script... [22:10: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)190199", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 90.00, "quantity" : 4.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209745486", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0421\u044B\u0440 50 \u0433\u0440", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 488.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:05]POST & json_proto [22:10:05]process_json_proto [22:10:05]json parsed OK: [22:10:05]protocol is kg_v1.0 [22:10:05]action value=close_receipt [22:10:05]process_action close_receipt [22:10:05]cmd_close_receipt [22:10:05]MH_GetDate [22:10:05]Write to MH i2c: F0 00 00 D8 07 CE [22:10:05]Write i2c OK [22:10:05]MH_I2C_Read... [22:10:05]Read from MH i2c: F0 [22:10:05]MH_I2C_Read... [22:10:05]Read from MH i2c: F0 09 00 [22:10:05]MH_I2C_Read... [22:10:05]Read from MH i2c: F0 09 00 D8 07 00 BE C2 C3 66 C4 85 C2 66 F1 [22:10:05]GetLastDocTimeStamp 1724105317 [22:10:05]current date 1724105406 [22:10:05]FM_GetShiftState [22:10:05]SAM_PROTO_GetShiftState [22:10:05]wFMCommunicate request_size=4 [22:10:05]MH_SAM_APDU [22:10:05]CAPDU: 80 13 01 00 [22:10:05]Write to MH i2c: E2 08 00 D9 07 80 13 01 00 00 00 00 00 5D [22:10:05]Write i2c OK [22:10:05]MH_I2C_Read... [22:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:05]Read from MH i2c: E2 [22:10:05]MH_I2C_Read... [22:10:05]Read from MH i2c: E2 0E 00 [22:10:05]MH_I2C_Read... [22:10:05]Read from MH i2c: E2 0E 00 D9 07 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 17 [22:10:05]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [22:10:05]wFMCommunicate OK [22:10:05]SAM_PROTO_GetShiftState done [22:10:05]FM_GetShiftState done [22:10:05]opened in 1724026361 [22:10:05]opened+sec_in_day 1724112761 [22:10:05]quantity*price = 36000 [22:10:05]sum+1 = 36001 [22:10:05]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870209745486 Арахис BIG BOB Сыр 50 гр 2.000 * 60.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 2.000 * 4.00 = 8.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 488.00 НСП 1% : 4.32 НДС 12% : 51.82 Наличными: 488.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 183 19.08.2024 22:10 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50076 ФПД: 47215659596963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T221007&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50076&fm=47215659596963&tin=02508201610067®Number=0000000000092546&sum=48800 0 [22:10:06]StoreToDocumentArchive [22:10:06]shift 467 fd 50076 [22:10:06]save to /storage/0467/doc_00050076 [22:10:06]save last doc name /storage/0467/doc_00050076 to /storage/kkm_last_doc_name [22:10:06]save OK [22:10:06]Clear old archive folders... [22:10:06]ProcessDocumentItem done err = 0, tmpTLVsize=525 [22:10:06]tlvbuf is 019A45A0 [22:10:06]SAM_PROTO_ClearQueue [22:10:06]wFMCommunicate request_size=4 [22:10:06]MH_SAM_APDU [22:10:06]CAPDU: 80 09 00 00 [22:10:06]Write to MH i2c: E2 08 00 E6 07 80 09 00 00 00 00 00 00 5F [22:10:06]Write i2c OK [22:10:06]MH_I2C_Read... [22:10:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:10:06]Read from MH i2c: E2 [22:10:06]MH_I2C_Read... [22:10:06]Read from MH i2c: E2 03 00 [22:10:06]MH_I2C_Read... [22:10:06]Read from MH i2c: E2 03 00 E6 07 00 90 00 61 [22:10:06]RAPDU: 90 00 [22:10:06]wFMCommunicate OK [22:10:06]SAM_PROTO_ClearQueue done [22:10:06]KKMCreateOFDPacket [22:10:06]OFDProtocolAddRootSTLVToBuf [22:10:06]FM_MakeSignedData [22:10:06]FM_MakeSignedData [22:10:06]SAM_PROTO_SignData [22:10:06]wFMCommunicate request_size=4 [22:10:06]MH_SAM_APDU [22:10:06]CAPDU: 80 0D 01 02 [22:10:06]Write to MH i2c: E2 08 00 E7 07 80 0D 01 02 00 00 00 00 67 [22:10:06]Write i2c OK [22:10:06]MH_I2C_Read... [22:10:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:10:06]Read from MH i2c: E2 [22:10:06]MH_I2C_Read... [22:10:06]Read from MH i2c: E2 03 00 [22:10:06]MH_I2C_Read... [22:10:06]Read from MH i2c: E2 03 00 E7 07 00 90 00 62 [22:10:06]RAPDU: 90 00 [22:10:06]wFMCommunicate OK [22:10:06]wFMCommunicate request_size=255 [22:10:06]MH_SAM_APDU [22:10:06]CAPDU: 80 0D 02 02 FA 03 00 0D 02 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [22:10:06]Write to MH i2c: E2 02 01 E8 07 80 0D 02 02 FA 00 03 00 0D 02 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 92 [22:10:06]Write i2c OK [22:10:06]MH_I2C_Read... [22:10:07]Read from MH i2c: E2 [22:10:07]MH_I2C_Read... [22:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:07]Read from MH i2c: E2 03 00 [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: E2 03 00 E8 07 00 90 00 63 [22:10:07]RAPDU: 90 00 [22:10:07]wFMCommunicate OK [22:10:07]wFMCommunicate request_size=255 [22:10:07]MH_SAM_APDU [22:10:07]CAPDU: 80 0D 02 02 FA 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 14 00 00 00 00 07 04 06 00 A0 BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 BF C2 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [22:10:07]Write to MH i2c: E2 02 01 E9 07 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 14 00 00 00 00 07 04 06 00 A0 BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 BF C2 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 DE [22:10:07]Write i2c OK [22:10:07]MH_I2C_Read... [22:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:07]Read from MH i2c: E2 [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: E2 03 00 [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: E2 03 00 E9 07 00 90 00 64 [22:10:07]RAPDU: 90 00 [22:10:07]wFMCommunicate OK [22:10:07]wFMCommunicate request_size=34 [22:10:07]MH_SAM_APDU [22:10:07]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9C C3 00 00 35 04 06 00 2A F1 40 9E 3C A3 [22:10:07]Write to MH i2c: E2 25 00 EA 07 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9C C3 00 00 35 04 06 00 2A F1 40 9E 3C A3 00 00 5B [22:10:07]Write i2c OK [22:10:07]MH_I2C_Read... [22:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:07]Read from MH i2c: E2 [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: E2 03 00 [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: E2 03 00 EA 07 00 90 00 65 [22:10:07]RAPDU: 90 00 [22:10:07]wFMCommunicate OK [22:10:07]wFMCommunicate request_size=4 [22:10:07]MH_SAM_APDU [22:10:07]CAPDU: 80 0D 03 02 [22:10:07]Write to MH i2c: E2 08 00 EB 07 80 0D 03 02 00 00 00 00 6D [22:10:07]Write i2c OK [22:10:07]MH_I2C_Read... [22:10:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:10:07]Read from MH i2c: E2 [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: E2 0B 00 [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: E2 0B 00 EB 07 00 5C 87 A0 99 41 DC 5D 48 90 00 4C [22:10:07]RAPDU: 5C 87 A0 99 41 DC 5D 48 90 00 [22:10:07]wFMCommunicate OK [22:10:07]SAM_PROTO_SignData done [22:10:07]FM_MakeSignedData done [22:10:07]CreateOFDProtocolMessage [22:10:07]wFMCommunicate request_size=4 [22:10:07]MH_SAM_APDU [22:10:07]CAPDU: 80 11 00 00 [22:10:07]Write to MH i2c: E2 08 00 EC 07 80 11 00 00 00 00 00 00 6D [22:10:07]Write i2c OK [22:10:07]MH_I2C_Read... [22:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:07]Read from MH i2c: E2 [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: E2 17 00 [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: E2 17 00 EC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B8 [22:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:10:07]wFMCommunicate OK [22:10:07]CreateOFDProtocolMessage done [22:10:07]OFDSenderStorePacket 50076 [22:10:07]StoreOFDPacket docnum=50076 [22:10:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 02 00 00 03 EE 19 02 72 B6 5A 03 01 00 03 00 0D 02 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 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 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 14 00 00 00 00 07 04 06 00 A0 BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 BF C2 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9C C3 00 00 35 04 06 00 2A F1 40 9E 3C A3 5C 87 A0 99 41 DC 5D 48 [22:10:07]CheckFolder [22:10:07]dirname=/storage/ofd_packets [22:10:07]CheckFolder done [22:10:07]ProducePacketName [22:10:07]name=ofd_packets/00050076 [22:10:07]NVStorageSaveData ofd_packets/00050076 [22:10:07]File name is /storage/ofd_packets/00050076 [22:10:07]Write 575 bytes [22:10:07]NVStorageSaveData done [22:10:07]OFDSenderStorePacket done [22:10:07]KKMCreateOFDPacket done [22:10:07]NVStorageSaveData kkm_last_timestamp [22:10:07]File name is /storage/kkm_last_timestamp [22:10:07]Write 4 bytes [22:10:07]NVStorageSaveData done [22:10:07]ExternCall_PrintAddStr [22:10:07]wPrintStart [22:10:07]Write to MH i2c: 01 00 00 ED 07 F4 [22:10:07]Write i2c OK [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: 01 [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: 01 07 00 [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: 01 07 00 ED 07 00 00 00 00 00 FF 0F 09 [22:10:07]RasterBufferAndPrint [22:10:07]line Счет N : (3)190199 [22:10:07]line ИНН: 02508201610067 [22:10:07]line Контрольно-Кассовый Чек [22:10:07]line ПРОДАЖА [22:10:07]line Товар: 4870145004982 [22:10:07]line Пиво Жатецкий Гусь 7 экспортное 0,43л ж/ [22:10:07]line 4.000 * 90.00 [22:10:07]line = 360.00 [22:10:07]line НДС 12% НСП 1% [22:10:07]line > о реализуемом товаре [22:10:07]line Товар: 4870209745486 [22:10:07]line Арахис BIG BOB Сыр 50 гр [22:10:07]line 2.000 * 60.00 [22:10:07]line = 120.00 [22:10:07]line НДС 12% НСП 1% [22:10:07]line > о реализуемом товаре [22:10:07]line Товар: 2000031750019 [22:10:07]line Пакет Партнер Нефть [22:10:07]line 2.000 * 4.00 [22:10:07]line = 8.00 [22:10:07]line НДС 12% НСП 1% [22:10:07]line > о реализуемом товаре [22:10:07]line ИТОГО: 488.00 [22:10:07]line НСП 1% : 4.32 [22:10:07]line НДС 12% : 51.82 [22:10:07]line Наличными: 488.00 [22:10:07]line Безнал.: 0.00 [22:10:07]line Место: АЗС № 95 "Партнер Нефть" [22:10:07]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:10:07]line СНО: Общий режим [22:10:07]line Чек 183 19.08.2024 22:10 [22:10:07]line Смена: 467 ФФД: 1.0 [22:10:07]line ЗНМ: 0300000078 [22:10:07]line РНМ: 0000000000092546 [22:10:07]line Версия ККМ: 001 [22:10:07]line ФМ: 0000000000871800 [22:10:07]line ФД: 50076 [22:10:07]line ФПД: 47215659596963 [22:10:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T221007&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50076&fm=47215659596963&tin=02508201610067®Number=0000000000092546&sum=48800 [22:10:07]OFD Sender: Processing packet 50076 [packets to send 21, broken 20] [22:10:07]ProducePacketName [22:10:07]name=ofd_packets/00050076 [22:10:07]OFD Sender: To server: pG, [22:10:07]CommunicateWithHost lk.salyk.kg:30040 [22:10:07]ConnectInit lk.salyk.kg [22:10:07]line 0 [22:10:07]written 0, free lines is 4095 [22:10:08]Connected sock=10 [22:10:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 02 00 00 03 EE 19 02 72 B6 5A 03 01 00 03 00 0D 02 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 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 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 14 00 00 00 00 07 04 06 00 A0 BE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 BF C2 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9C C3 00 00 35 04 06 00 2A F1 40 9E 3C A3 5C 87 A0 99 41 DC 5D 48 [22:10:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B5 C4 47 00 B1 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 31 38 30 30 10 04 04 00 9C C3 00 00 F4 03 04 00 2B 6D C3 66 B6 04 01 00 00 77 5B E5 2E F2 78 5D 4B [22:10:08]CommunicateWithHost err = 0 [22:10:08]CheckOFDResponse [22:10:08]1017 (14) - 77093643461234 [22:10:08]1041 (16) - 0000000000871800 [22:10:08]1040 (4) - 50076 [22:10:08]1012 (4) - 19.08.2024 16:04 [22:10:08]1206 (1) - 0 [22:10:08]OFD Sender: Remove packet 50076 [22:10:08]ProducePacketName [22:10:08]name=ofd_packets/00050076 [22:10:08]NVStorageDeleteData [22:10:08]Write to MH i2c: 01 00 00 22 08 2A [22:10:08]Write i2c OK [22:10:08]MH_I2C_Read... [22:10:08]Read from MH i2c: 01 [22:10:08]MH_I2C_Read... [22:10:08]Read from MH i2c: 01 07 00 [22:10:08]MH_I2C_Read... [22:10:08]Read from MH i2c: 01 07 00 22 08 00 00 00 00 00 31 0C 6E [22:10:08]RasterBufferAndPrint [22:10:08]line [22:10:08]line [22:10:08]line [22:10:08]line [22:10:08]line [22:10:08]written 0, free lines is 3127 [22:10:08]MH_Cut [22:10:08]Write to MH i2c: D1 01 00 29 08 01 03 [22:10:08]Write i2c OK [22:10:08]MH_I2C_Read... [22:10:08]Read from MH i2c: D1 [22:10:08]MH_I2C_Read... [22:10:08]Read from MH i2c: D1 01 00 [22:10:08]MH_I2C_Read... [22:10:08]Read from MH i2c: D1 01 00 29 08 00 02 [22:10:08]Write to MH i2c: 01 00 00 2A 08 32 [22:10:08]Write i2c OK [22:10:08]MH_I2C_Read... [22:10:08]OFD Sender: No OFD packet to send [22:10:09]*** Cut start [22:10:09]*** Purtial cut [22:10:09]*** Stage 1: CUTSNS_PIN = 1 [22:10:09]Read from MH i2c: 01 [22:10:09]MH_I2C_Read... [22:10:09]*** Stop cut motor [22:10:09]*** Cut end [22:10:09]Read from MH i2c: 01 07 00 [22:10:09]MH_I2C_Read... [22:10:09]Read from MH i2c: 01 07 00 2A 08 00 00 00 00 00 FF 0F 47 [22:10:09]process_action close_receipt done [22:10:09]requested_data is exist [22:10:09]produce_requested_data [22:10:09]requested_item fm.sn is exist - process it [22:10:09]wFMCommunicate request_size=4 [22:10:09]MH_SAM_APDU [22:10:09]CAPDU: 80 11 00 00 [22:10:09]Write to MH i2c: E2 08 00 2B 08 80 11 00 00 00 00 00 00 AD [22:10:09]Write i2c OK [22:10:09]MH_I2C_Read... [22:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:09]Read from MH i2c: E2 [22:10:09]MH_I2C_Read... [22:10:09]Read from MH i2c: E2 17 00 [22:10:09]MH_I2C_Read... [22:10:09]Read from MH i2c: E2 17 00 2B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F8 [22:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:10:09]wFMCommunicate OK [22:10:09]requested_item fd.num is exist - process it [22:10:09]SAM_PROTO_GetFieldsCounters [22:10:09]wFMCommunicate request_size=4 [22:10:09]MH_SAM_APDU [22:10:09]CAPDU: 80 13 00 00 [22:10:09]Write to MH i2c: E2 08 00 2C 08 80 13 00 00 00 00 00 00 B0 [22:10:09]Write i2c OK [22:10:09]MH_I2C_Read... [22:10:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:10:09]Read from MH i2c: E2 [22:10:09]MH_I2C_Read... [22:10:09]Read from MH i2c: E2 62 00 [22:10:09]MH_I2C_Read... [22:10:09]Read from MH i2c: E2 62 00 2C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9C C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [22:10:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9C C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:10:09]wFMCommunicate OK [22:10:09]SAM_PROTO_GetFieldsCounters done [22:10:09]requested_item shift.num is exist - process it [22:10:09]requested_item shift.opened is exist - process it [22:10:09]req_shift_opened [22:10:09]FM_GetShiftState [22:10:09]SAM_PROTO_GetShiftState [22:10:09]wFMCommunicate request_size=4 [22:10:09]MH_SAM_APDU [22:10:09]CAPDU: 80 13 01 00 [22:10:09]Write to MH i2c: E2 08 00 2D 08 80 13 01 00 00 00 00 00 B2 [22:10:09]Write i2c OK [22:10:09]MH_I2C_Read... [22:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:09]Read from MH i2c: E2 [22:10:09]MH_I2C_Read... [22:10:09]Read from MH i2c: E2 0E 00 [22:10:09]MH_I2C_Read... [22:10:09]Read from MH i2c: E2 0E 00 2D 08 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 6C [22:10:09]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [22:10:09]wFMCommunicate OK [22:10:09]SAM_PROTO_GetShiftState done [22:10:09]FM_GetShiftState done [22:10:09]req_shift_opened done [22:10:09]requested_item shift.open_date is exist - process it [22:10:09]req_shift_open_date [22:10:09]req_shift_open_date done [22:10:09]produce_requested_data done [22:10:09]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50076,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [22:10:09]process_action_free close_receipt [22:10:09]json_value_free [22:10:09]json_value_free done [22:10:09]process_json_proto returns [22:10:09]Send response to host [22:10:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50076,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [22:10:09]free response buf [22:10:09]execute_script done [22:10:09]execute_script returns [22:10:09]free content buf [22:10:09]Sock 9.Close socket [22:10:09]Sock 9.Thread stoped [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:46]accept exits with 8 [22:13:46]New connection [22:13:46]New thread 3066756452 created [22:13:46]Thread 3066899812 joined [22:13:46]Waiting for new connection... [22:13:46] Sock 8.Parse request [22:13:46]Sock 8.Check first char [22:13:46]Sock 8.First char is OK [22:13:46]request: POST /json_proto HTTP/1.0 [22:13:46]Method: POST [22:13:46]URL: /json_proto [22:13:46]Method is POST - this is cgi request [22:13:46]url: /json_proto [22:13:46]query_string will be loaded in cgi processing [22:13:46]execute_cgi json_proto POST (null) [22:13:46]execute_cgi path=json_proto method=POST [22:13:46]POST find Content-Length [22:13:46]Host: 172.17.46.196:8080 [22:13:46]Content-Length: 632 [22:13:46]Content-Type: application/json [22:13:46] [22:13:46]POST finish read [22:13:46]Found Content-Length = 632 [22:13:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190200", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:46]execute_script... [22:13: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)190200", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:46]POST & json_proto [22:13:46]process_json_proto [22:13:46]json parsed OK: [22:13:46]protocol is kg_v1.0 [22:13:46]action value=close_receipt [22:13:46]process_action close_receipt [22:13:46]cmd_close_receipt [22:13:46]MH_GetDate [22:13:46]Write to MH i2c: F0 00 00 2E 08 25 [22:13:46]Write i2c OK [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: F0 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: F0 09 00 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: F0 09 00 2E 08 00 9C C3 C3 66 C4 85 C2 66 27 [22:13:46]GetLastDocTimeStamp 1724105407 [22:13:46]current date 1724105628 [22:13:46]FM_GetShiftState [22:13:46]SAM_PROTO_GetShiftState [22:13:46]wFMCommunicate request_size=4 [22:13:46]MH_SAM_APDU [22:13:46]CAPDU: 80 13 01 00 [22:13:46]Write to MH i2c: E2 08 00 2F 08 80 13 01 00 00 00 00 00 B4 [22:13:46]Write i2c OK [22:13:46]MH_I2C_Read... [22:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:46]Read from MH i2c: E2 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 0E 00 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 0E 00 2F 08 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 6E [22:13:46]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [22:13:46]wFMCommunicate OK [22:13:46]SAM_PROTO_GetShiftState done [22:13:46]FM_GetShiftState done [22:13:46]opened in 1724026361 [22:13:46]opened+sec_in_day 1724112761 [22:13:46]quantity*price = 21000 [22:13:46]sum+1 = 21001 [22:13:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 184 19.08.2024 22:13 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50077 ФПД: 239403043930737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T221348&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50077&fm=239403043930737&tin=02508201610067®Number=0000000000092546&sum=21000 0 [22:13:47]StoreToDocumentArchive [22:13:47]shift 467 fd 50077 [22:13:47]save to /storage/0467/doc_00050077 [22:13:47]save last doc name /storage/0467/doc_00050077 to /storage/kkm_last_doc_name [22:13:47]save OK [22:13:47]Clear old archive folders... [22:13:47]ProcessDocumentItem done err = 0, tmpTLVsize=276 [22:13:47]tlvbuf is 0193E630 [22:13:47]SAM_PROTO_ClearQueue [22:13:47]wFMCommunicate request_size=4 [22:13:47]MH_SAM_APDU [22:13:47]CAPDU: 80 09 00 00 [22:13:47]Write to MH i2c: E2 08 00 3C 08 80 09 00 00 00 00 00 00 B6 [22:13:47]Write i2c OK [22:13:47]MH_I2C_Read... [22:13:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:48]Read from MH i2c: E2 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 03 00 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 03 00 3C 08 00 90 00 B8 [22:13:48]RAPDU: 90 00 [22:13:48]wFMCommunicate OK [22:13:48]SAM_PROTO_ClearQueue done [22:13:48]KKMCreateOFDPacket [22:13:48]OFDProtocolAddRootSTLVToBuf [22:13:48]FM_MakeSignedData [22:13:48]FM_MakeSignedData [22:13:48]SAM_PROTO_SignData [22:13:48]wFMCommunicate request_size=4 [22:13:48]MH_SAM_APDU [22:13:48]CAPDU: 80 0D 01 02 [22:13:48]Write to MH i2c: E2 08 00 3D 08 80 0D 01 02 00 00 00 00 BE [22:13:48]Write i2c OK [22:13:48]MH_I2C_Read... [22:13:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:48]Read from MH i2c: E2 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 03 00 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 03 00 3D 08 00 90 00 B9 [22:13:48]RAPDU: 90 00 [22:13:48]wFMCommunicate OK [22:13:48]wFMCommunicate request_size=255 [22:13:48]MH_SAM_APDU [22:13:48]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 9C C3 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [22:13:48]Write to MH i2c: E2 02 01 3E 08 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 9C C3 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 AA [22:13:48]Write i2c OK [22:13:48]MH_I2C_Read... [22:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:48]Read from MH i2c: E2 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 03 00 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 03 00 3E 08 00 90 00 BA [22:13:48]RAPDU: 90 00 [22:13:48]wFMCommunicate OK [22:13:48]wFMCommunicate request_size=35 [22:13:48]MH_SAM_APDU [22:13:48]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9D C3 00 00 35 04 06 00 D9 BC 5D 64 42 71 [22:13:48]Write to MH i2c: E2 26 00 3F 08 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9D C3 00 00 35 04 06 00 D9 BC 5D 64 42 71 00 00 15 [22:13:48]Write i2c OK [22:13:48]MH_I2C_Read... [22:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:48]Read from MH i2c: E2 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 03 00 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 03 00 3F 08 00 90 00 BB [22:13:48]RAPDU: 90 00 [22:13:48]wFMCommunicate OK [22:13:48]wFMCommunicate request_size=4 [22:13:48]MH_SAM_APDU [22:13:48]CAPDU: 80 0D 03 02 [22:13:48]Write to MH i2c: E2 08 00 40 08 80 0D 03 02 00 00 00 00 C3 [22:13:48]Write i2c OK [22:13:48]MH_I2C_Read... [22:13:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:48]Read from MH i2c: E2 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 0B 00 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 0B 00 40 08 00 98 97 75 7F 83 FF CE 98 90 00 CF [22:13:48]RAPDU: 98 97 75 7F 83 FF CE 98 90 00 [22:13:48]wFMCommunicate OK [22:13:48]SAM_PROTO_SignData done [22:13:48]FM_MakeSignedData done [22:13:48]CreateOFDProtocolMessage [22:13:48]wFMCommunicate request_size=4 [22:13:48]MH_SAM_APDU [22:13:48]CAPDU: 80 11 00 00 [22:13:48]Write to MH i2c: E2 08 00 41 08 80 11 00 00 00 00 00 00 C3 [22:13:48]Write i2c OK [22:13:48]MH_I2C_Read... [22:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:48]Read from MH i2c: E2 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 17 00 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: E2 17 00 41 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0E [22:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:13:48]wFMCommunicate OK [22:13:48]CreateOFDProtocolMessage done [22:13:48]OFDSenderStorePacket 50077 [22:13:48]StoreOFDPacket docnum=50077 [22:13:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 59 36 20 01 03 C9 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 9C C3 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9D C3 00 00 35 04 06 00 D9 BC 5D 64 42 71 98 97 75 7F 83 FF CE 98 [22:13:48]CheckFolder [22:13:48]dirname=/storage/ofd_packets [22:13:48]CheckFolder done [22:13:48]ProducePacketName [22:13:48]name=ofd_packets/00050077 [22:13:48]NVStorageSaveData ofd_packets/00050077 [22:13:48]File name is /storage/ofd_packets/00050077 [22:13:48]Write 326 bytes [22:13:48]NVStorageSaveData done [22:13:48]OFDSenderStorePacket done [22:13:48]KKMCreateOFDPacket done [22:13:48]NVStorageSaveData kkm_last_timestamp [22:13:48]File name is /storage/kkm_last_timestamp [22:13:48]Write 4 bytes [22:13:48]NVStorageSaveData done [22:13:48]ExternCall_PrintAddStr [22:13:48]wPrintStart [22:13:48]Write to MH i2c: 01 00 00 42 08 4A [22:13:48]Write i2c OK [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: 01 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: 01 07 00 [22:13:48]MH_I2C_Read... [22:13:48]Read from MH i2c: 01 07 00 42 08 00 00 00 00 00 FF 0F 5F [22:13:48]RasterBufferAndPrint [22:13:48]line Счет N : (3)190200 [22:13:48]line ИНН: 02508201610067 [22:13:48]line Контрольно-Кассовый Чек [22:13:48]line ПРОДАЖА [22:13:48]line Товар: 4780022460452 [22:13:48]line Антифриз Yumiko gold 1кг [22:13:48]line 1.000 * 210.00 [22:13:48]line = 210.00 [22:13:48]line НДС 12% НСП 1% [22:13:48]line > о реализуемом товаре [22:13:48]line ИТОГО: 210.00 [22:13:48]line НСП 1% : 1.86 [22:13:48]line НДС 12% : 22.30 [22:13:48]line Наличными: 210.00 [22:13:48]line Безнал.: 0.00 [22:13:48]line Место: АЗС № 95 "Партнер Нефть" [22:13:48]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:13:48]line СНО: Общий режим [22:13:48]line Чек 184 19.08.2024 22:13 [22:13:48]line Смена: 467 ФФД: 1.0 [22:13:48]line ЗНМ: 0300000078 [22:13:48]line РНМ: 0000000000092546 [22:13:48]line Версия ККМ: 001 [22:13:48]line ФМ: 0000000000871800 [22:13:48]line ФД: 50077 [22:13:48]line ФПД: 239403043930737 [22:13:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T221348&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50077&fm=239403043930737&tin=02508201610067®Number=0000000000092546&sum=21000 [22:13:48]OFD Sender: Processing packet 50077 [packets to send 21, broken 20] [22:13:48]ProducePacketName [22:13:48]name=ofd_packets/00050077 [22:13:48]OFD Sender: To server: pG, [22:13:48]CommunicateWithHost lk.salyk.kg:30040 [22:13:48]ConnectInit lk.salyk.kg [22:13:48]line 0 [22:13:48]written 0, free lines is 4095 [22:13:49]Connected sock=10 [22:13:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 59 36 20 01 03 C9 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 9C C3 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9D C3 00 00 35 04 06 00 D9 BC 5D 64 42 71 98 97 75 7F 83 FF CE 98 [22:13:49]Write to MH i2c: 01 00 00 6A 08 72 [22:13:49]Write i2c OK [22:13:49]MH_I2C_Read... [22:13:49]Read from MH i2c: 01 [22:13:49]MH_I2C_Read... [22:13:49]Read from MH i2c: 01 07 00 [22:13:49]MH_I2C_Read... [22:13:49]Read from MH i2c: 01 07 00 6A 08 00 00 00 00 00 F7 0C 7C [22:13:49]RasterBufferAndPrint [22:13:49]line [22:13:49]line [22:13:49]line [22:13:49]line [22:13:49]line [22:13:49]written 0, free lines is 3326 [22:13:49]MH_Cut [22:13:49]Write to MH i2c: D1 01 00 71 08 01 4B [22:13:49]Write i2c OK [22:13:49]MH_I2C_Read... [22:13:49]Read from MH i2c: D1 [22:13:49]MH_I2C_Read... [22:13:49]Read from MH i2c: D1 01 00 [22:13:49]MH_I2C_Read... [22:13:49]Read from MH i2c: D1 01 00 71 08 00 4A [22:13:49]Write to MH i2c: 01 00 00 72 08 7A [22:13:49]Write i2c OK [22:13:49]MH_I2C_Read... [22:13:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 6A 11 47 00 E5 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9D C3 00 00 F4 03 04 00 08 6E C3 66 B6 04 01 00 00 34 68 7D FF BF 88 06 51 [22:13:49]CommunicateWithHost err = 0 [22:13:49]CheckOFDResponse [22:13:49]1017 (14) - 77093643461234 [22:13:49]1041 (16) - 0000000000871800 [22:13:49]1040 (4) - 50077 [22:13:49]1012 (4) - 19.08.2024 16:08 [22:13:49]1206 (1) - 0 [22:13:49]OFD Sender: Remove packet 50077 [22:13:49]ProducePacketName [22:13:49]name=ofd_packets/00050077 [22:13:49]NVStorageDeleteData [22:13:49]OFD Sender: No OFD packet to send [22:13:50]*** Cut start [22:13:50]*** Purtial cut [22:13:50]*** CUTSNS_PIN = 0 [22:13:50]*** Stage 1: CUTSNS_PIN = 1 [22:13:52]Read from MH i2c: 01 [22:13:52]MH_I2C_Read... [22:13:52]*** Stop cut motor [22:13:52]*** Cut end [22:13:52]Read from MH i2c: 01 07 00 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: 01 07 00 72 08 00 00 00 00 00 FF 0F 8F [22:13:52]process_action close_receipt done [22:13:52]requested_data is exist [22:13:52]produce_requested_data [22:13:52]requested_item fm.sn is exist - process it [22:13:52]wFMCommunicate request_size=4 [22:13:52]MH_SAM_APDU [22:13:52]CAPDU: 80 11 00 00 [22:13:52]Write to MH i2c: E2 08 00 73 08 80 11 00 00 00 00 00 00 F5 [22:13:52]Write i2c OK [22:13:52]MH_I2C_Read... [22:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:52]Read from MH i2c: E2 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 17 00 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 17 00 73 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 40 [22:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:13:52]wFMCommunicate OK [22:13:52]requested_item fd.num is exist - process it [22:13:52]SAM_PROTO_GetFieldsCounters [22:13:52]wFMCommunicate request_size=4 [22:13:52]MH_SAM_APDU [22:13:52]CAPDU: 80 13 00 00 [22:13:52]Write to MH i2c: E2 08 00 74 08 80 13 00 00 00 00 00 00 F8 [22:13:52]Write i2c OK [22:13:52]MH_I2C_Read... [22:13:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:52]Read from MH i2c: E2 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 62 00 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 62 00 74 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9D C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [22:13:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9D C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:13:52]wFMCommunicate OK [22:13:52]SAM_PROTO_GetFieldsCounters done [22:13:52]requested_item shift.num is exist - process it [22:13:52]requested_item shift.opened is exist - process it [22:13:52]req_shift_opened [22:13:52]FM_GetShiftState [22:13:52]SAM_PROTO_GetShiftState [22:13:52]wFMCommunicate request_size=4 [22:13:52]MH_SAM_APDU [22:13:52]CAPDU: 80 13 01 00 [22:13:52]Write to MH i2c: E2 08 00 75 08 80 13 01 00 00 00 00 00 FA [22:13:52]Write i2c OK [22:13:52]MH_I2C_Read... [22:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:52]Read from MH i2c: E2 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 0E 00 [22:13:52]MH_I2C_Read... [22:13:52]Read from MH i2c: E2 0E 00 75 08 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B4 [22:13:52]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [22:13:52]wFMCommunicate OK [22:13:52]SAM_PROTO_GetShiftState done [22:13:52]FM_GetShiftState done [22:13:52]req_shift_opened done [22:13:52]requested_item shift.open_date is exist - process it [22:13:52]req_shift_open_date [22:13:52]req_shift_open_date done [22:13:52]produce_requested_data done [22:13:52]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50077,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [22:13:52]process_action_free close_receipt [22:13:52]json_value_free [22:13:52]json_value_free done [22:13:52]process_json_proto returns [22:13:52]Send response to host [22:13:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50077,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [22:13:52]free response buf [22:13:52]execute_script done [22:13:52]execute_script returns [22:13:52]free content buf [22:13:52]Sock 8.Close socket [22:13:52]Sock 8.Thread stoped [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:38]accept exits with 9 [22:15:38]New connection [22:15:38]New thread 3066899812 created [22:15:38]Thread 3066756452 joined [22:15:38]Waiting for new connection... [22:15:38] Sock 9.Parse request [22:15:38]Sock 9.Check first char [22:15:38]Sock 9.First char is OK [22:15:38]request: POST /json_proto HTTP/1.0 [22:15:38]Method: POST [22:15:38]URL: /json_proto [22:15:38]Method is POST - this is cgi request [22:15:38]url: /json_proto [22:15:38]query_string will be loaded in cgi processing [22:15:38]execute_cgi json_proto POST (null) [22:15:38]execute_cgi path=json_proto method=POST [22:15:38]POST find Content-Length [22:15:38]Host: 172.17.46.196:8080 [22:15:38]Content-Length: 807 [22:15:38]Content-Type: application/json [22:15:38] [22:15:38]POST finish read [22:15:38]Found Content-Length = 807 [22:15:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190201", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:38]execute_script... [22:15: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)190201", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:38]POST & json_proto [22:15:38]process_json_proto [22:15:38]json parsed OK: [22:15:38]protocol is kg_v1.0 [22:15:38]action value=close_receipt [22:15:38]process_action close_receipt [22:15:38]cmd_close_receipt [22:15:38]MH_GetDate [22:15:38]Write to MH i2c: F0 00 00 76 08 6D [22:15:38]Write i2c OK [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: F0 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: F0 09 00 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: F0 09 00 76 08 00 0C C4 C3 66 C4 85 C2 66 E0 [22:15:38]GetLastDocTimeStamp 1724105628 [22:15:38]current date 1724105740 [22:15:38]FM_GetShiftState [22:15:38]SAM_PROTO_GetShiftState [22:15:38]wFMCommunicate request_size=4 [22:15:38]MH_SAM_APDU [22:15:38]CAPDU: 80 13 01 00 [22:15:38]Write to MH i2c: E2 08 00 77 08 80 13 01 00 00 00 00 00 FC [22:15:38]Write i2c OK [22:15:38]MH_I2C_Read... [22:15:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:38]Read from MH i2c: E2 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: E2 0E 00 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: E2 0E 00 77 08 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B6 [22:15:38]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [22:15:38]wFMCommunicate OK [22:15:38]SAM_PROTO_GetShiftState done [22:15:38]FM_GetShiftState done [22:15:38]opened in 1724026361 [22:15:38]opened+sec_in_day 1724112761 [22:15:38]quantity*price = 13000 [22:15:38]sum+1 = 13001 [22:15:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 185 19.08.2024 22:15 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 50078 ФПД: 166988729368978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T221540&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50078&fm=166988729368978&tin=02508201610067®Number=0000000000092546&sum=13000 0 [22:15:39]StoreToDocumentArchive [22:15:39]shift 467 fd 50078 [22:15:39]save to /storage/0467/doc_00050078 [22:15:39]save last doc name /storage/0467/doc_00050078 to /storage/kkm_last_doc_name [22:15:39]save OK [22:15:39]Clear old archive folders... [22:15:39]ProcessDocumentItem done err = 0, tmpTLVsize=282 [22:15:39]tlvbuf is 019A4070 [22:15:39]SAM_PROTO_ClearQueue [22:15:39]wFMCommunicate request_size=4 [22:15:39]MH_SAM_APDU [22:15:39]CAPDU: 80 09 00 00 [22:15:39]Write to MH i2c: E2 08 00 84 08 80 09 00 00 00 00 00 00 FE [22:15:39]Write i2c OK [22:15:39]MH_I2C_Read... [22:15:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:40]Read from MH i2c: E2 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 03 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 03 00 84 08 00 90 00 00 [22:15:40]RAPDU: 90 00 [22:15:40]wFMCommunicate OK [22:15:40]SAM_PROTO_ClearQueue done [22:15:40]KKMCreateOFDPacket [22:15:40]OFDProtocolAddRootSTLVToBuf [22:15:40]FM_MakeSignedData [22:15:40]FM_MakeSignedData [22:15:40]SAM_PROTO_SignData [22:15:40]wFMCommunicate request_size=4 [22:15:40]MH_SAM_APDU [22:15:40]CAPDU: 80 0D 01 02 [22:15:40]Write to MH i2c: E2 08 00 85 08 80 0D 01 02 00 00 00 00 06 [22:15:40]Write i2c OK [22:15:40]MH_I2C_Read... [22:15:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:40]Read from MH i2c: E2 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 03 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 03 00 85 08 00 90 00 01 [22:15:40]RAPDU: 90 00 [22:15:40]wFMCommunicate OK [22:15:40]wFMCommunicate request_size=255 [22:15:40]MH_SAM_APDU [22:15:40]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 0C C4 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [22:15:40]Write to MH i2c: E2 02 01 86 08 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 0C C4 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 9C [22:15:40]Write i2c OK [22:15:40]MH_I2C_Read... [22:15:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:40]Read from MH i2c: E2 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 03 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 03 00 86 08 00 90 00 02 [22:15:40]RAPDU: 90 00 [22:15:40]wFMCommunicate OK [22:15:40]wFMCommunicate request_size=41 [22:15:40]MH_SAM_APDU [22:15:40]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9E C3 00 00 35 04 06 00 97 E0 17 E5 41 92 [22:15:40]Write to MH i2c: E2 2C 00 87 08 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9E C3 00 00 35 04 06 00 97 E0 17 E5 41 92 00 00 77 [22:15:40]Write i2c OK [22:15:40]MH_I2C_Read... [22:15:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:40]Read from MH i2c: E2 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 03 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 03 00 87 08 00 90 00 03 [22:15:40]RAPDU: 90 00 [22:15:40]wFMCommunicate OK [22:15:40]wFMCommunicate request_size=4 [22:15:40]MH_SAM_APDU [22:15:40]CAPDU: 80 0D 03 02 [22:15:40]Write to MH i2c: E2 08 00 88 08 80 0D 03 02 00 00 00 00 0B [22:15:40]Write i2c OK [22:15:40]MH_I2C_Read... [22:15:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:40]Read from MH i2c: E2 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 0B 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 0B 00 88 08 00 A6 77 6A FF E2 50 47 5F 90 00 6A [22:15:40]RAPDU: A6 77 6A FF E2 50 47 5F 90 00 [22:15:40]wFMCommunicate OK [22:15:40]SAM_PROTO_SignData done [22:15:40]FM_MakeSignedData done [22:15:40]CreateOFDProtocolMessage [22:15:40]wFMCommunicate request_size=4 [22:15:40]MH_SAM_APDU [22:15:40]CAPDU: 80 11 00 00 [22:15:40]Write to MH i2c: E2 08 00 89 08 80 11 00 00 00 00 00 00 0B [22:15:40]Write i2c OK [22:15:40]MH_I2C_Read... [22:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:40]Read from MH i2c: E2 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 17 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 17 00 89 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 56 [22:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:15:40]wFMCommunicate OK [22:15:40]CreateOFDProtocolMessage done [22:15:40]OFDSenderStorePacket 50078 [22:15:40]StoreOFDPacket docnum=50078 [22:15:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 0E 02 26 01 61 C0 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 0C C4 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9E C3 00 00 35 04 06 00 97 E0 17 E5 41 92 A6 77 6A FF E2 50 47 5F [22:15:40]CheckFolder [22:15:40]dirname=/storage/ofd_packets [22:15:40]CheckFolder done [22:15:40]ProducePacketName [22:15:40]name=ofd_packets/00050078 [22:15:40]NVStorageSaveData ofd_packets/00050078 [22:15:40]File name is /storage/ofd_packets/00050078 [22:15:40]Write 332 bytes [22:15:40]NVStorageSaveData done [22:15:40]OFDSenderStorePacket done [22:15:40]KKMCreateOFDPacket done [22:15:40]NVStorageSaveData kkm_last_timestamp [22:15:40]File name is /storage/kkm_last_timestamp [22:15:40]Write 4 bytes [22:15:40]NVStorageSaveData done [22:15:40]ExternCall_PrintAddStr [22:15:40]wPrintStart [22:15:40]Write to MH i2c: 01 00 00 8A 08 92 [22:15:40]Write i2c OK [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: 01 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: 01 07 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: 01 07 00 8A 08 00 00 00 00 00 FF 0F A7 [22:15:40]RasterBufferAndPrint [22:15:40]line Счет N : (3)190201 [22:15:40]line ИНН: 02508201610067 [22:15:40]line Контрольно-Кассовый Чек [22:15:40]line ПРОДАЖА [22:15:40]line Товар: 2000036220012 [22:15:40]line Кофе Капучино XL(GABB TRADE) [22:15:40]line 1.000 * 130.00 [22:15:40]line = 130.00 [22:15:40]line НДС 12% НСП 1% [22:15:40]line > о реализуемом товаре [22:15:40]line ИТОГО: 130.00 [22:15:40]line НСП 1% : 1.15 [22:15:40]line НДС 12% : 13.80 [22:15:40]line Наличными: 0.00 [22:15:40]line Безнал.: 130.00 [22:15:40]line Место: АЗС № 95 "Партнер Нефть" [22:15:40]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:15:40]line СНО: Общий режим [22:15:40]line Чек 185 19.08.2024 22:15 [22:15:40]line Смена: 467 ФФД: 1.0 [22:15:40]line ЗНМ: 0300000078 [22:15:40]line РНМ: 0000000000092546 [22:15:40]line Версия ККМ: 001 [22:15:40]line Платежная система: O! деньги [22:15:40]line ФМ: 0000000000871800 [22:15:40]line ФД: 50078 [22:15:40]line ФПД: 166988729368978 [22:15:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T221540&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50078&fm=166988729368978&tin=02508201610067®Number=0000000000092546&sum=13000 [22:15:40]line 0 [22:15:40]OFD Sender: Processing packet 50078 [packets to send 21, broken 20] [22:15:40]ProducePacketName [22:15:40]name=ofd_packets/00050078 [22:15:40]OFD Sender: To server: pG, [22:15:40]CommunicateWithHost lk.salyk.kg:30040 [22:15:40]ConnectInit lk.salyk.kg [22:15:40]written 0, free lines is 4095 [22:15:41]Connected sock=10 [22:15:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 0E 02 26 01 61 C0 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 0C C4 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9E C3 00 00 35 04 06 00 97 E0 17 E5 41 92 A6 77 6A FF E2 50 47 5F [22:15:41]Write to MH i2c: 01 00 00 B5 08 BD [22:15:41]Write i2c OK [22:15:41]MH_I2C_Read... [22:15:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 8D 87 47 00 B6 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 31 38 30 30 10 04 04 00 9E C3 00 00 F4 03 04 00 78 6E C3 66 B6 04 01 00 00 91 AF 4B 61 C5 09 7A 36 [22:15:41]CommunicateWithHost err = 0 [22:15:41]CheckOFDResponse [22:15:41]1017 (14) - 77093643461234 [22:15:41]1041 (16) - 0000000000871800 [22:15:41]1040 (4) - 50078 [22:15:41]1012 (4) - 19.08.2024 16:10 [22:15:41]1206 (1) - 0 [22:15:41]OFD Sender: Remove packet 50078 [22:15:41]ProducePacketName [22:15:41]name=ofd_packets/00050078 [22:15:41]NVStorageDeleteData [22:15:41]Read from MH i2c: 01 [22:15:41]MH_I2C_Read... [22:15:41]Read from MH i2c: 01 07 00 [22:15:41]MH_I2C_Read... [22:15:41]Read from MH i2c: 01 07 00 B5 08 00 00 00 00 00 CB 0C 9B [22:15:41]RasterBufferAndPrint [22:15:41]line [22:15:41]line [22:15:41]line [22:15:41]line [22:15:41]line [22:15:41]written 0, free lines is 3289 [22:15:41]MH_Cut [22:15:41]Write to MH i2c: D1 01 00 BC 08 01 96 [22:15:41]Write i2c OK [22:15:41]MH_I2C_Read... [22:15:41]Read from MH i2c: D1 [22:15:41]MH_I2C_Read... [22:15:41]Read from MH i2c: D1 01 00 [22:15:41]MH_I2C_Read... [22:15:41]Read from MH i2c: D1 01 00 BC 08 00 95 [22:15:41]Write to MH i2c: 01 00 00 BD 08 C5 [22:15:41]Write i2c OK [22:15:41]MH_I2C_Read... [22:15:41]OFD Sender: No OFD packet to send [22:15:42]*** Cut start [22:15:42]*** Purtial cut [22:15:42]*** Stage 1: CUTSNS_PIN = 1 [22:15:42]Read from MH i2c: 01 [22:15:42]MH_I2C_Read... [22:15:42]*** Stop cut motor [22:15:42]*** Cut end [22:15:42]Read from MH i2c: 01 07 00 [22:15:42]MH_I2C_Read... [22:15:42]Read from MH i2c: 01 07 00 BD 08 00 00 00 00 00 FF 0F DA [22:15:42]process_action close_receipt done [22:15:42]requested_data is exist [22:15:42]produce_requested_data [22:15:42]requested_item fm.sn is exist - process it [22:15:42]wFMCommunicate request_size=4 [22:15:42]MH_SAM_APDU [22:15:42]CAPDU: 80 11 00 00 [22:15:42]Write to MH i2c: E2 08 00 BE 08 80 11 00 00 00 00 00 00 40 [22:15:42]Write i2c OK [22:15:42]MH_I2C_Read... [22:15:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:42]Read from MH i2c: E2 [22:15:42]MH_I2C_Read... [22:15:42]Read from MH i2c: E2 17 00 [22:15:42]MH_I2C_Read... [22:15:42]Read from MH i2c: E2 17 00 BE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8B [22:15:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:15:42]wFMCommunicate OK [22:15:42]requested_item fd.num is exist - process it [22:15:42]SAM_PROTO_GetFieldsCounters [22:15:42]wFMCommunicate request_size=4 [22:15:42]MH_SAM_APDU [22:15:42]CAPDU: 80 13 00 00 [22:15:42]Write to MH i2c: E2 08 00 BF 08 80 13 00 00 00 00 00 00 43 [22:15:42]Write i2c OK [22:15:42]MH_I2C_Read... [22:15:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:42]Read from MH i2c: E2 [22:15:42]MH_I2C_Read... [22:15:42]Read from MH i2c: E2 62 00 [22:15:42]MH_I2C_Read... [22:15:42]Read from MH i2c: E2 62 00 BF 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9E C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [22:15:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9E C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:15:42]wFMCommunicate OK [22:15:42]SAM_PROTO_GetFieldsCounters done [22:15:42]requested_item shift.num is exist - process it [22:15:42]requested_item shift.opened is exist - process it [22:15:42]req_shift_opened [22:15:42]FM_GetShiftState [22:15:42]SAM_PROTO_GetShiftState [22:15:42]wFMCommunicate request_size=4 [22:15:42]MH_SAM_APDU [22:15:42]CAPDU: 80 13 01 00 [22:15:42]Write to MH i2c: E2 08 00 C0 08 80 13 01 00 00 00 00 00 45 [22:15:42]Write i2c OK [22:15:42]MH_I2C_Read... [22:15:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:42]Read from MH i2c: E2 [22:15:42]MH_I2C_Read... [22:15:42]Read from MH i2c: E2 0E 00 [22:15:42]MH_I2C_Read... [22:15:42]Read from MH i2c: E2 0E 00 C0 08 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 FF [22:15:42]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [22:15:42]wFMCommunicate OK [22:15:42]SAM_PROTO_GetShiftState done [22:15:42]FM_GetShiftState done [22:15:42]req_shift_opened done [22:15:42]requested_item shift.open_date is exist - process it [22:15:42]req_shift_open_date [22:15:42]req_shift_open_date done [22:15:42]produce_requested_data done [22:15:42]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50078,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [22:15:42]process_action_free close_receipt [22:15:42]json_value_free [22:15:42]json_value_free done [22:15:42]process_json_proto returns [22:15:42]Send response to host [22:15:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50078,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [22:15:42]free response buf [22:15:42]execute_script done [22:15:42]execute_script returns [22:15:42]free content buf [22:15:42]Sock 9.Close socket [22:15:42]Sock 9.Thread stoped [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:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:02]accept exits with 8 [22:41:02]New connection [22:41:02]New thread 3066756452 created [22:41:02]Thread 3066899812 joined [22:41:02]Waiting for new connection... [22:41:02] Sock 8.Parse request [22:41:02]Sock 8.Check first char [22:41:02]Sock 8.First char is OK [22:41:02]request: POST /json_proto HTTP/1.0 [22:41:02]Method: POST [22:41:02]URL: /json_proto [22:41:02]Method is POST - this is cgi request [22:41:02]url: /json_proto [22:41:02]query_string will be loaded in cgi processing [22:41:02]execute_cgi json_proto POST (null) [22:41:02]execute_cgi path=json_proto method=POST [22:41:02]POST find Content-Length [22:41:02]Host: 172.17.46.196:8080 [22:41:02]Content-Length: 756 [22:41:02]Content-Type: application/json [22:41:02] [22:41:02]POST finish read [22:41:02]Found Content-Length = 756 [22:41:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11328244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 82.220, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30147450", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:02]execute_script... [22:41:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11328244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 82.220, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30147450", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:02]POST & json_proto [22:41:02]process_json_proto [22:41:02]json parsed OK: [22:41:02]protocol is kg_v1.0 [22:41:02]action value=close_receipt [22:41:02]process_action close_receipt [22:41:02]cmd_close_receipt [22:41:02]MH_GetDate [22:41:02]Write to MH i2c: F0 00 00 C1 08 B8 [22:41:02]Write i2c OK [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: F0 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: F0 09 00 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: F0 09 00 C1 08 00 00 CA C3 66 C4 85 C2 66 25 [22:41:02]GetLastDocTimeStamp 1724105740 [22:41:02]current date 1724107264 [22:41:02]FM_GetShiftState [22:41:02]SAM_PROTO_GetShiftState [22:41:02]wFMCommunicate request_size=4 [22:41:02]MH_SAM_APDU [22:41:02]CAPDU: 80 13 01 00 [22:41:02]Write to MH i2c: E2 08 00 C2 08 80 13 01 00 00 00 00 00 47 [22:41:02]Write i2c OK [22:41:02]MH_I2C_Read... [22:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:02]Read from MH i2c: E2 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: E2 0E 00 [22:41:02]MH_I2C_Read... [22:41:02]Read from MH i2c: E2 0E 00 C2 08 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 01 [22:41:02]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [22:41:02]wFMCommunicate OK [22:41:02]SAM_PROTO_GetShiftState done [22:41:02]FM_GetShiftState done [22:41:02]opened in 1724026361 [22:41:02]opened+sec_in_day 1724112761 [22:41:02]quantity*price = 0 [22:41:02]sum+1 = 1 [22:41:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 186 19.08.2024 22:41 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30147450 ФМ: 0000000000871800 ФД: 50079 ФПД: 274135276711646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T224104&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50079&fm=274135276711646&tin=02508201610067®Number=0000000000092546&sum=0 [22:41:03]StoreToDocumentArchive [22:41:03]shift 467 fd 50079 [22:41:03]save to /storage/0467/doc_00050079 [22:41:03]save last doc name /storage/0467/doc_00050079 to /storage/kkm_last_doc_name [22:41:03]save OK [22:41:03]Clear old archive folders... [22:41:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:41:03]tlvbuf is 019AEB90 [22:41:03]SAM_PROTO_ClearQueue [22:41:03]wFMCommunicate request_size=4 [22:41:03]MH_SAM_APDU [22:41:03]CAPDU: 80 09 00 00 [22:41:03]Write to MH i2c: E2 08 00 CF 08 80 09 00 00 00 00 00 00 49 [22:41:03]Write i2c OK [22:41:03]MH_I2C_Read... [22:41:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:03]Read from MH i2c: E2 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: E2 03 00 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: E2 03 00 CF 08 00 90 00 4B [22:41:03]RAPDU: 90 00 [22:41:03]wFMCommunicate OK [22:41:03]SAM_PROTO_ClearQueue done [22:41:03]KKMCreateOFDPacket [22:41:03]OFDProtocolAddRootSTLVToBuf [22:41:03]FM_MakeSignedData [22:41:03]FM_MakeSignedData [22:41:03]SAM_PROTO_SignData [22:41:03]wFMCommunicate request_size=4 [22:41:03]MH_SAM_APDU [22:41:03]CAPDU: 80 0D 01 02 [22:41:03]Write to MH i2c: E2 08 00 D0 08 80 0D 01 02 00 00 00 00 51 [22:41:03]Write i2c OK [22:41:03]MH_I2C_Read... [22:41:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:03]Read from MH i2c: E2 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: E2 03 00 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: E2 03 00 D0 08 00 90 00 4C [22:41:03]RAPDU: 90 00 [22:41:03]wFMCommunicate OK [22:41:03]wFMCommunicate request_size=255 [22:41:03]MH_SAM_APDU [22:41:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 41 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 00 CA C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9F C3 00 00 35 04 06 00 F9 [22:41:03]Write to MH i2c: E2 02 01 D1 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 41 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 00 CA C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9F C3 00 00 35 04 06 00 F9 00 00 A2 [22:41:03]Write i2c OK [22:41:03]MH_I2C_Read... [22:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:04]Read from MH i2c: E2 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 03 00 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 03 00 D1 08 00 90 00 4D [22:41:04]RAPDU: 90 00 [22:41:04]wFMCommunicate OK [22:41:04]wFMCommunicate request_size=10 [22:41:04]MH_SAM_APDU [22:41:04]CAPDU: 80 0D 02 02 05 53 17 C9 EE DE [22:41:04]Write to MH i2c: E2 0D 00 D2 08 80 0D 02 02 05 00 53 17 C9 EE DE 00 00 5D [22:41:04]Write i2c OK [22:41:04]MH_I2C_Read... [22:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:04]Read from MH i2c: E2 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 03 00 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 03 00 D2 08 00 90 00 4E [22:41:04]RAPDU: 90 00 [22:41:04]wFMCommunicate OK [22:41:04]wFMCommunicate request_size=4 [22:41:04]MH_SAM_APDU [22:41:04]CAPDU: 80 0D 03 02 [22:41:04]Write to MH i2c: E2 08 00 D3 08 80 0D 03 02 00 00 00 00 56 [22:41:04]Write i2c OK [22:41:04]MH_I2C_Read... [22:41:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:04]Read from MH i2c: E2 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 0B 00 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 0B 00 D3 08 00 E8 D6 00 63 CB EE 17 63 90 00 AB [22:41:04]RAPDU: E8 D6 00 63 CB EE 17 63 90 00 [22:41:04]wFMCommunicate OK [22:41:04]SAM_PROTO_SignData done [22:41:04]FM_MakeSignedData done [22:41:04]CreateOFDProtocolMessage [22:41:04]wFMCommunicate request_size=4 [22:41:04]MH_SAM_APDU [22:41:04]CAPDU: 80 11 00 00 [22:41:04]Write to MH i2c: E2 08 00 D4 08 80 11 00 00 00 00 00 00 56 [22:41:04]Write i2c OK [22:41:04]MH_I2C_Read... [22:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:04]Read from MH i2c: E2 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 17 00 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 17 00 D4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A1 [22:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:41:04]wFMCommunicate OK [22:41:04]CreateOFDProtocolMessage done [22:41:04]OFDSenderStorePacket 50079 [22:41:04]StoreOFDPacket docnum=50079 [22:41:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 FC E4 07 01 0D 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 41 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 00 CA C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9F C3 00 00 35 04 06 00 F9 53 17 C9 EE DE E8 D6 00 63 CB EE 17 63 [22:41:04]CheckFolder [22:41:04]dirname=/storage/ofd_packets [22:41:04]CheckFolder done [22:41:04]ProducePacketName [22:41:04]name=ofd_packets/00050079 [22:41:04]NVStorageSaveData ofd_packets/00050079 [22:41:04]File name is /storage/ofd_packets/00050079 [22:41:04]Write 301 bytes [22:41:04]NVStorageSaveData done [22:41:04]OFDSenderStorePacket done [22:41:04]KKMCreateOFDPacket done [22:41:04]NVStorageSaveData kkm_last_timestamp [22:41:04]File name is /storage/kkm_last_timestamp [22:41:04]Write 4 bytes [22:41:04]NVStorageSaveData done [22:41:04]ExternCall_PrintAddStr [22:41:04]wPrintStart [22:41:04]Write to MH i2c: 01 00 00 D5 08 DD [22:41:04]Write i2c OK [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: 01 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: 01 07 00 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: 01 07 00 D5 08 00 00 00 00 00 FF 0F F2 [22:41:04]RasterBufferAndPrint [22:41:04]line Счет N : (1)11328244 [22:41:04]line ИНН: 02508201610067 [22:41:04]line Контрольно-Кассовый Чек [22:41:04]line ПРОДАЖА [22:41:04]line ТРК (МРК, ГНК) : 11 [22:41:04]line Товар: 2710124500 [22:41:04]line Аи-95-К-5 [22:41:04]line 82.220 * 0.00 [22:41:04]line = 0.00 [22:41:04]line НДС 12% НСП 1% [22:41:04]line > о реализуемом товаре [22:41:04]line ИТОГО: 0.00 [22:41:04]line НСП 1% : 0.00 [22:41:04]line НДС 12% : 0.00 [22:41:04]line Наличными: 0.00 [22:41:04]line Безнал.: 0.00 [22:41:04]line Место: АЗС № 95 "Партнер Нефть" [22:41:04]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:41:04]line СНО: Общий режим [22:41:04]line Чек 186 19.08.2024 22:41 [22:41:04]line Смена: 467 ФФД: 1.0 [22:41:04]line ЗНМ: 0300000078 [22:41:04]line РНМ: 0000000000092546 [22:41:04]line Версия ККМ: 001 [22:41:04]line Талоны: ТК ГПНА Online [22:41:04]line 30147450 [22:41:04]line ФМ: 0000000000871800 [22:41:04]line ФД: 50079 [22:41:04]line ФПД: 274135276711646 [22:41:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T224104&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50079&fm=274135276711646&tin=02508201610067®Number=0000000000092546&sum=0 [22:41:04]written 0, free lines is 4095 [22:41:04]OFD Sender: Processing packet 50079 [packets to send 21, broken 20] [22:41:04]ProducePacketName [22:41:04]name=ofd_packets/00050079 [22:41:04]OFD Sender: To server: pG, [22:41:04]CommunicateWithHost lk.salyk.kg:30040 [22:41:04]ConnectInit lk.salyk.kg [22:41:04]Connected sock=10 [22:41:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 FC E4 07 01 0D 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 41 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 00 CA C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9F C3 00 00 35 04 06 00 F9 53 17 C9 EE DE E8 D6 00 63 CB EE 17 63 [22:41:04]Write to MH i2c: 01 00 00 FF 08 07 [22:41:04]Write i2c OK [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: 01 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: 01 07 00 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: 01 07 00 FF 08 00 00 00 00 00 D9 0C F3 [22:41:04]RasterBufferAndPrint [22:41:04]line [22:41:04]line [22:41:04]line [22:41:04]line [22:41:04]line [22:41:04]written 0, free lines is 3296 [22:41:04]MH_Cut [22:41:04]Write to MH i2c: D1 01 00 06 09 01 E1 [22:41:04]Write i2c OK [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: D1 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: D1 01 00 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: D1 01 00 06 09 00 E0 [22:41:04]Write to MH i2c: 01 00 00 07 09 10 [22:41:04]Write i2c OK [22:41:04]MH_I2C_Read... [22:41:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D2 0C 47 00 E0 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9F C3 00 00 F4 03 04 00 6C 74 C3 66 B6 04 01 00 00 49 48 E9 20 0C A5 C7 68 [22:41:04]CommunicateWithHost err = 0 [22:41:04]CheckOFDResponse [22:41:04]1017 (14) - 77093643461234 [22:41:04]1041 (16) - 0000000000871800 [22:41:04]1040 (4) - 50079 [22:41:04]1012 (4) - 19.08.2024 16:35 [22:41:04]1206 (1) - 0 [22:41:04]OFD Sender: Remove packet 50079 [22:41:04]ProducePacketName [22:41:04]name=ofd_packets/00050079 [22:41:04]NVStorageDeleteData [22:41:05]OFD Sender: No OFD packet to send [22:41:05]*** Cut start [22:41:05]*** Purtial cut [22:41:05]*** CUTSNS_PIN = 0 [22:41:05]*** Stage 1: CUTSNS_PIN = 1 [22:41:07]Read from MH i2c: 01 [22:41:07]MH_I2C_Read... [22:41:07]*** Stop cut motor [22:41:07]*** Cut end [22:41:07]Read from MH i2c: 01 07 00 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: 01 07 00 07 09 00 00 00 00 00 FF 0F 25 [22:41:07]process_action close_receipt done [22:41:07]requested_data is exist [22:41:07]produce_requested_data [22:41:07]requested_item fm.sn is exist - process it [22:41:07]wFMCommunicate request_size=4 [22:41:07]MH_SAM_APDU [22:41:07]CAPDU: 80 11 00 00 [22:41:07]Write to MH i2c: E2 08 00 08 09 80 11 00 00 00 00 00 00 8B [22:41:07]Write i2c OK [22:41:07]MH_I2C_Read... [22:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:07]Read from MH i2c: E2 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 17 00 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 17 00 08 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D6 [22:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:41:07]wFMCommunicate OK [22:41:07]requested_item fd.num is exist - process it [22:41:07]SAM_PROTO_GetFieldsCounters [22:41:07]wFMCommunicate request_size=4 [22:41:07]MH_SAM_APDU [22:41:07]CAPDU: 80 13 00 00 [22:41:07]Write to MH i2c: E2 08 00 09 09 80 13 00 00 00 00 00 00 8E [22:41:07]Write i2c OK [22:41:07]MH_I2C_Read... [22:41:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:07]Read from MH i2c: E2 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 62 00 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 62 00 09 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9F C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [22:41:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9F C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:41:07]wFMCommunicate OK [22:41:07]SAM_PROTO_GetFieldsCounters done [22:41:07]requested_item shift.num is exist - process it [22:41:07]requested_item shift.opened is exist - process it [22:41:07]req_shift_opened [22:41:07]FM_GetShiftState [22:41:07]SAM_PROTO_GetShiftState [22:41:07]wFMCommunicate request_size=4 [22:41:07]MH_SAM_APDU [22:41:07]CAPDU: 80 13 01 00 [22:41:07]Write to MH i2c: E2 08 00 0A 09 80 13 01 00 00 00 00 00 90 [22:41:07]Write i2c OK [22:41:07]MH_I2C_Read... [22:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:07]Read from MH i2c: E2 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 0E 00 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 0E 00 0A 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 4A [22:41:07]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [22:41:07]wFMCommunicate OK [22:41:07]SAM_PROTO_GetShiftState done [22:41:07]FM_GetShiftState done [22:41:07]req_shift_opened done [22:41:07]requested_item shift.open_date is exist - process it [22:41:07]req_shift_open_date [22:41:07]req_shift_open_date done [22:41:07]produce_requested_data done [22:41:07]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50079,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [22:41:07]process_action_free close_receipt [22:41:07]json_value_free [22:41:07]json_value_free done [22:41:07]process_json_proto returns [22:41:07]Send response to host [22:41:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50079,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [22:41:07]free response buf [22:41:07]execute_script done [22:41:07]execute_script returns [22:41:07]free content buf [22:41:07]Sock 8.Close socket [22:41:07]Sock 8.Thread stoped [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:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:35]OFD Sender: No OFD packet to send [22:46:40]OFD Sender: No OFD packet to send [22:46:45]OFD Sender: No OFD packet to send [22:46:50]OFD Sender: No OFD packet to send [22:46:55]OFD Sender: No OFD packet to send [22:47:00]OFD Sender: No OFD packet to send [22:47:05]OFD Sender: No OFD packet to send [22:47:10]OFD Sender: No OFD packet to send [22:47:15]OFD Sender: No OFD packet to send [22:47:20]OFD Sender: No OFD packet to send [22:47:25]OFD Sender: No OFD packet to send [22:47:30]OFD Sender: No OFD packet to send [22:47:35]OFD Sender: No OFD packet to send [22:47:40]OFD Sender: No OFD packet to send [22:47:45]OFD Sender: No OFD packet to send [22:47:50]OFD Sender: No OFD packet to send [22:47:55]OFD Sender: No OFD packet to send [22:48:00]OFD Sender: No OFD packet to send [22:48:05]OFD Sender: No OFD packet to send [22:48:10]OFD Sender: No OFD packet to send [22:48:15]OFD Sender: No OFD packet to send [22:48:20]OFD Sender: No OFD packet to send [22:48:25]OFD Sender: No OFD packet to send [22:48:30]OFD Sender: No OFD packet to send [22:48:35]OFD Sender: No OFD packet to send [22:48:40]OFD Sender: No OFD packet to send [22:48:45]OFD Sender: No OFD packet to send [22:48:50]OFD Sender: No OFD packet to send [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:05]OFD Sender: No OFD packet to send [22:52:10]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:52:57]accept exits with 9 [22:52:57]New connection [22:52:57]New thread 3066899812 created [22:52:57]Thread 3066756452 joined [22:52:57]Waiting for new connection... [22:52:57] Sock 9.Parse request [22:52:57]Sock 9.Check first char [22:52:57]Sock 9.First char is OK [22:52:57]request: POST /json_proto HTTP/1.0 [22:52:57]Method: POST [22:52:57]URL: /json_proto [22:52:57]Method is POST - this is cgi request [22:52:57]url: /json_proto [22:52:57]query_string will be loaded in cgi processing [22:52:57]execute_cgi json_proto POST (null) [22:52:57]execute_cgi path=json_proto method=POST [22:52:57]POST find Content-Length [22:52:57]Host: 172.17.46.196:8080 [22:52:57]Content-Length: 863 [22:52:57]Content-Type: application/json [22:52:57] [22:52:57]POST finish read [22:52:57]Found Content-Length = 863 [22:52:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190202", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745895", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B RICHMOND KS GOLD EDITION", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 295.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:57]execute_script... [22:52:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190202", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745895", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B RICHMOND KS GOLD EDITION", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 295.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:57]POST & json_proto [22:52:57]process_json_proto [22:52:57]json parsed OK: [22:52:57]protocol is kg_v1.0 [22:52:57]action value=close_receipt [22:52:57]process_action close_receipt [22:52:57]cmd_close_receipt [22:52:57]MH_GetDate [22:52:57]Write to MH i2c: F0 00 00 0B 09 03 [22:52:57]Write i2c OK [22:52:57]MH_I2C_Read... [22:52:57]Read from MH i2c: F0 [22:52:57]MH_I2C_Read... [22:52:57]Read from MH i2c: F0 09 00 [22:52:57]MH_I2C_Read... [22:52:57]Read from MH i2c: F0 09 00 0B 09 00 CB CC C3 66 C4 85 C2 66 3D [22:52:57]GetLastDocTimeStamp 1724107264 [22:52:57]current date 1724107979 [22:52:57]FM_GetShiftState [22:52:57]SAM_PROTO_GetShiftState [22:52:57]wFMCommunicate request_size=4 [22:52:57]MH_SAM_APDU [22:52:57]CAPDU: 80 13 01 00 [22:52:57]Write to MH i2c: E2 08 00 0C 09 80 13 01 00 00 00 00 00 92 [22:52:57]Write i2c OK [22:52:57]MH_I2C_Read... [22:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:57]Read from MH i2c: E2 [22:52:57]MH_I2C_Read... [22:52:57]Read from MH i2c: E2 0E 00 [22:52:57]MH_I2C_Read... [22:52:57]Read from MH i2c: E2 0E 00 0C 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 4C [22:52:57]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [22:52:57]wFMCommunicate OK [22:52:57]SAM_PROTO_GetShiftState done [22:52:57]FM_GetShiftState done [22:52:57]opened in 1724026361 [22:52:57]opened+sec_in_day 1724112761 [22:52:57]quantity*price = 14000 [22:52:57]sum+1 = 14001 [22:52:57]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745895 Сигареты RICHMOND KS GOLD EDITION 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 295.00 НСП 1% : 2.61 НДС 12% : 31.33 Наличными: 295.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 187 19.08.2024 22:52 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50080 ФПД: 223043121607898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T225259&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50080&fm=223043121607898&tin=02508201610067®Number=0000000000092546&sum=29500 0 [22:52:59]StoreToDocumentArchive [22:52:59]shift 467 fd 50080 [22:52:59]save to /storage/0467/doc_00050080 [22:52:59]save last doc name /storage/0467/doc_00050080 to /storage/kkm_last_doc_name [22:52:59]save OK [22:52:59]Clear old archive folders... [22:52:59]ProcessDocumentItem done err = 0, tmpTLVsize=381 [22:52:59]tlvbuf is 019A4840 [22:52:59]SAM_PROTO_ClearQueue [22:52:59]wFMCommunicate request_size=4 [22:52:59]MH_SAM_APDU [22:52:59]CAPDU: 80 09 00 00 [22:52:59]Write to MH i2c: E2 08 00 19 09 80 09 00 00 00 00 00 00 94 [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:52:59]Read from MH i2c: E2 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 19 09 00 90 00 96 [22:52:59]RAPDU: 90 00 [22:52:59]wFMCommunicate OK [22:52:59]SAM_PROTO_ClearQueue done [22:52:59]KKMCreateOFDPacket [22:52:59]OFDProtocolAddRootSTLVToBuf [22:52:59]FM_MakeSignedData [22:52:59]FM_MakeSignedData [22:52:59]SAM_PROTO_SignData [22:52:59]wFMCommunicate request_size=4 [22:52:59]MH_SAM_APDU [22:52:59]CAPDU: 80 0D 01 02 [22:52:59]Write to MH i2c: E2 08 00 1A 09 80 0D 01 02 00 00 00 00 9C [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:52:59]Read from MH i2c: E2 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 1A 09 00 90 00 97 [22:52:59]RAPDU: 90 00 [22:52:59]wFMCommunicate OK [22:52:59]wFMCommunicate request_size=255 [22:52:59]MH_SAM_APDU [22:52:59]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 [22:52:59]Write to MH i2c: E2 02 01 1B 09 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 45 [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:59]Read from MH i2c: E2 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 1B 09 00 90 00 98 [22:52:59]RAPDU: 90 00 [22:52:59]wFMCommunicate OK [22:52:59]wFMCommunicate request_size=140 [22:52:59]MH_SAM_APDU [22:52:59]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 CB CC C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A0 C3 00 00 35 04 06 00 CA DB 46 08 74 DA [22:52:59]Write to MH i2c: E2 8F 00 1C 09 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 CB CC C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A0 C3 00 00 35 04 06 00 CA DB 46 08 74 DA 00 00 BE [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:59]Read from MH i2c: E2 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 03 00 1C 09 00 90 00 99 [22:52:59]RAPDU: 90 00 [22:52:59]wFMCommunicate OK [22:52:59]wFMCommunicate request_size=4 [22:52:59]MH_SAM_APDU [22:52:59]CAPDU: 80 0D 03 02 [22:52:59]Write to MH i2c: E2 08 00 1D 09 80 0D 03 02 00 00 00 00 A1 [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:52:59]Read from MH i2c: E2 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 0B 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 0B 00 1D 09 00 C8 3F 29 82 DA CE E1 09 90 00 E6 [22:52:59]RAPDU: C8 3F 29 82 DA CE E1 09 90 00 [22:52:59]wFMCommunicate OK [22:52:59]SAM_PROTO_SignData done [22:52:59]FM_MakeSignedData done [22:52:59]CreateOFDProtocolMessage [22:52:59]wFMCommunicate request_size=4 [22:52:59]MH_SAM_APDU [22:52:59]CAPDU: 80 11 00 00 [22:52:59]Write to MH i2c: E2 08 00 1E 09 80 11 00 00 00 00 00 00 A1 [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:59]Read from MH i2c: E2 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 17 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: E2 17 00 1E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EC [22:52:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:52:59]wFMCommunicate OK [22:52:59]CreateOFDProtocolMessage done [22:52:59]OFDSenderStorePacket 50080 [22:52:59]StoreOFDPacket docnum=50080 [22:52:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 91 01 00 00 81 0D 89 01 83 BD 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 CB CC C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A0 C3 00 00 35 04 06 00 CA DB 46 08 74 DA C8 3F 29 82 DA CE E1 09 [22:52:59]CheckFolder [22:52:59]dirname=/storage/ofd_packets [22:52:59]CheckFolder done [22:52:59]ProducePacketName [22:52:59]name=ofd_packets/00050080 [22:52:59]NVStorageSaveData ofd_packets/00050080 [22:52:59]File name is /storage/ofd_packets/00050080 [22:52:59]Write 431 bytes [22:52:59]NVStorageSaveData done [22:52:59]OFDSenderStorePacket done [22:52:59]KKMCreateOFDPacket done [22:52:59]NVStorageSaveData kkm_last_timestamp [22:52:59]File name is /storage/kkm_last_timestamp [22:52:59]Write 4 bytes [22:52:59]NVStorageSaveData done [22:52:59]ExternCall_PrintAddStr [22:52:59]wPrintStart [22:52:59]Write to MH i2c: 01 00 00 1F 09 28 [22:52:59]Write i2c OK [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: 01 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: 01 07 00 [22:52:59]MH_I2C_Read... [22:52:59]Read from MH i2c: 01 07 00 1F 09 00 00 00 00 00 FF 0F 3D [22:52:59]RasterBufferAndPrint [22:52:59]line Счет N : (3)190202 [22:52:59]line ИНН: 02508201610067 [22:52:59]line Контрольно-Кассовый Чек [22:52:59]line ПРОДАЖА [22:52:59]line Товар: 48747059 [22:52:59]line Сигареты Winston Legend Blue [22:52:59]line 1.000 * 140.00 [22:52:59]line = 140.00 [22:52:59]line НДС 12% НСП 1% [22:52:59]line > о реализуемом товаре [22:52:59]line Товар: 48745895 [22:52:59]line Сигареты RICHMOND KS GOLD EDITION [22:53:00]line 1.000 * 155.00 [22:53:00]line = 155.00 [22:53:00]line НДС 12% НСП 1% [22:53:00]line > о реализуемом товаре [22:53:00]line ИТОГО: 295.00 [22:53:00]line НСП 1% : 2.61 [22:53:00]line НДС 12% : 31.33 [22:53:00]line Наличными: 295.00 [22:53:00]line Безнал.: 0.00 [22:53:00]line Место: АЗС № 95 "Партнер Нефть" [22:53:00]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:53:00]line СНО: Общий режим [22:53:00]line Чек 187 19.08.2024 22:52 [22:53:00]line Смена: 467 ФФД: 1.0 [22:53:00]line ЗНМ: 0300000078 [22:53:00]line РНМ: 0000000000092546 [22:53:00]line Версия ККМ: 001 [22:53:00]line ФМ: 0000000000871800 [22:53:00]line ФД: 50080 [22:53:00]line ФПД: 223043121607898 [22:53:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T225259&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50080&fm=223043121607898&tin=02508201610067®Number=0000000000092546&sum=29500 [22:53:00]line 0 [22:53:00]OFD Sender: Processing packet 50080 [packets to send 21, broken 20] [22:53:00]ProducePacketName [22:53:00]name=ofd_packets/00050080 [22:53:00]OFD Sender: To server: pG, [22:53:00]CommunicateWithHost lk.salyk.kg:30040 [22:53:00]ConnectInit lk.salyk.kg [22:53:00]written 0, free lines is 4095 [22:53:00]Connected sock=10 [22:53:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 91 01 00 00 81 0D 89 01 83 BD 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 CB CC C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A0 C3 00 00 35 04 06 00 CA DB 46 08 74 DA C8 3F 29 82 DA CE E1 09 [22:53:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 CE 4C 47 00 50 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A0 C3 00 00 F4 03 04 00 38 77 C3 66 B6 04 01 00 00 10 0B 74 4C ED D1 6C D1 [22:53:00]CommunicateWithHost err = 0 [22:53:00]CheckOFDResponse [22:53:00]1017 (14) - 77093643461234 [22:53:00]1041 (16) - 0000000000871800 [22:53:00]1040 (4) - 50080 [22:53:00]1012 (4) - 19.08.2024 16:47 [22:53:00]1206 (1) - 0 [22:53:00]OFD Sender: Remove packet 50080 [22:53:00]ProducePacketName [22:53:00]name=ofd_packets/00050080 [22:53:00]NVStorageDeleteData [22:53:00]Write to MH i2c: 01 00 00 4F 09 58 [22:53:00]Write i2c OK [22:53:00]MH_I2C_Read... [22:53:00]Read from MH i2c: 01 [22:53:00]MH_I2C_Read... [22:53:00]Read from MH i2c: 01 07 00 [22:53:00]MH_I2C_Read... [22:53:00]Read from MH i2c: 01 07 00 4F 09 00 00 00 00 00 4F 0C BA [22:53:00]RasterBufferAndPrint [22:53:00]line [22:53:00]line [22:53:00]line [22:53:00]line [22:53:00]line [22:53:00]written 0, free lines is 3158 [22:53:00]MH_Cut [22:53:00]Write to MH i2c: D1 01 00 56 09 01 31 [22:53:00]Write i2c OK [22:53:00]MH_I2C_Read... [22:53:00]Read from MH i2c: D1 [22:53:00]MH_I2C_Read... [22:53:00]Read from MH i2c: D1 01 00 [22:53:00]MH_I2C_Read... [22:53:00]Read from MH i2c: D1 01 00 56 09 00 30 [22:53:00]Write to MH i2c: 01 00 00 57 09 60 [22:53:00]Write i2c OK [22:53:00]MH_I2C_Read... [22:53:01]OFD Sender: No OFD packet to send [22:53:01]*** Cut start [22:53:01]*** Purtial cut [22:53:01]*** Stage 1: CUTSNS_PIN = 1 [22:53:01]Read from MH i2c: 01 [22:53:01]MH_I2C_Read... [22:53:01]*** Stop cut motor [22:53:01]*** Cut end [22:53:01]Read from MH i2c: 01 07 00 [22:53:01]MH_I2C_Read... [22:53:01]Read from MH i2c: 01 07 00 57 09 00 00 00 00 00 FF 0F 75 [22:53:01]process_action close_receipt done [22:53:01]requested_data is exist [22:53:01]produce_requested_data [22:53:01]requested_item fm.sn is exist - process it [22:53:01]wFMCommunicate request_size=4 [22:53:01]MH_SAM_APDU [22:53:01]CAPDU: 80 11 00 00 [22:53:01]Write to MH i2c: E2 08 00 58 09 80 11 00 00 00 00 00 00 DB [22:53:01]Write i2c OK [22:53:01]MH_I2C_Read... [22:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:01]Read from MH i2c: E2 [22:53:01]MH_I2C_Read... [22:53:01]Read from MH i2c: E2 17 00 [22:53:01]MH_I2C_Read... [22:53:01]Read from MH i2c: E2 17 00 58 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 26 [22:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:53:01]wFMCommunicate OK [22:53:01]requested_item fd.num is exist - process it [22:53:01]SAM_PROTO_GetFieldsCounters [22:53:01]wFMCommunicate request_size=4 [22:53:01]MH_SAM_APDU [22:53:01]CAPDU: 80 13 00 00 [22:53:01]Write to MH i2c: E2 08 00 59 09 80 13 00 00 00 00 00 00 DE [22:53:01]Write i2c OK [22:53:01]MH_I2C_Read... [22:53:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:01]Read from MH i2c: E2 [22:53:01]MH_I2C_Read... [22:53:01]Read from MH i2c: E2 62 00 [22:53:01]MH_I2C_Read... [22:53:01]Read from MH i2c: E2 62 00 59 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A0 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [22:53:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A0 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:53:01]wFMCommunicate OK [22:53:01]SAM_PROTO_GetFieldsCounters done [22:53:01]requested_item shift.num is exist - process it [22:53:01]requested_item shift.opened is exist - process it [22:53:01]req_shift_opened [22:53:01]FM_GetShiftState [22:53:01]SAM_PROTO_GetShiftState [22:53:01]wFMCommunicate request_size=4 [22:53:01]MH_SAM_APDU [22:53:01]CAPDU: 80 13 01 00 [22:53:01]Write to MH i2c: E2 08 00 5A 09 80 13 01 00 00 00 00 00 E0 [22:53:01]Write i2c OK [22:53:01]MH_I2C_Read... [22:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:02]Read from MH i2c: E2 [22:53:02]MH_I2C_Read... [22:53:02]Read from MH i2c: E2 0E 00 [22:53:02]MH_I2C_Read... [22:53:02]Read from MH i2c: E2 0E 00 5A 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 9A [22:53:02]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [22:53:02]wFMCommunicate OK [22:53:02]SAM_PROTO_GetShiftState done [22:53:02]FM_GetShiftState done [22:53:02]req_shift_opened done [22:53:02]requested_item shift.open_date is exist - process it [22:53:02]req_shift_open_date [22:53:02]req_shift_open_date done [22:53:02]produce_requested_data done [22:53:02]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50080,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [22:53:02]process_action_free close_receipt [22:53:02]json_value_free [22:53:02]json_value_free done [22:53:02]process_json_proto returns [22:53:02]Send response to host [22:53:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50080,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [22:53:02]free response buf [22:53:02]execute_script done [22:53:02]execute_script returns [22:53:02]free content buf [22:53:02]Sock 9.Close socket [22:53:02]Sock 9.Thread stoped [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:06]OFD Sender: No OFD packet to send [23:11:11]OFD Sender: No OFD packet to send [23:11:12]accept exits with 8 [23:11:12]New connection [23:11:12]New thread 3066756452 created [23:11:12]Thread 3066899812 joined [23:11:12]Waiting for new connection... [23:11:12] Sock 8.Parse request [23:11:12]Sock 8.Check first char [23:11:12]Sock 8.First char is OK [23:11:12]request: POST /json_proto HTTP/1.0 [23:11:12]Method: POST [23:11:12]URL: /json_proto [23:11:12]Method is POST - this is cgi request [23:11:12]url: /json_proto [23:11:12]query_string will be loaded in cgi processing [23:11:12]execute_cgi json_proto POST (null) [23:11:12]execute_cgi path=json_proto method=POST [23:11:12]POST find Content-Length [23:11:12]Host: 172.17.46.196:8080 [23:11:12]Content-Length: 1921 [23:11:12]Content-Type: application/json [23:11:12] [23:11:12]POST finish read [23:11:12]Found Content-Length = 1921 [23:11:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190203", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160181", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 760.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:12]execute_script... [23:11:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190203", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160181", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 760.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:13]POST & json_proto [23:11:13]process_json_proto [23:11:13]json parsed OK: [23:11:13]protocol is kg_v1.0 [23:11:13]action value=close_receipt [23:11:13]process_action close_receipt [23:11:13]cmd_close_receipt [23:11:13]MH_GetDate [23:11:13]Write to MH i2c: F0 00 00 5B 09 53 [23:11:13]Write i2c OK [23:11:13]MH_I2C_Read... [23:11:13]Read from MH i2c: F0 [23:11:13]MH_I2C_Read... [23:11:13]Read from MH i2c: F0 09 00 [23:11:13]MH_I2C_Read... [23:11:13]Read from MH i2c: F0 09 00 5B 09 00 12 D1 C3 66 C4 85 C2 66 D9 [23:11:13]GetLastDocTimeStamp 1724107979 [23:11:13]current date 1724109074 [23:11:13]FM_GetShiftState [23:11:13]SAM_PROTO_GetShiftState [23:11:13]wFMCommunicate request_size=4 [23:11:13]MH_SAM_APDU [23:11:13]CAPDU: 80 13 01 00 [23:11:13]Write to MH i2c: E2 08 00 5C 09 80 13 01 00 00 00 00 00 E2 [23:11:13]Write i2c OK [23:11:13]MH_I2C_Read... [23:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:13]Read from MH i2c: E2 [23:11:13]MH_I2C_Read... [23:11:13]Read from MH i2c: E2 0E 00 [23:11:13]MH_I2C_Read... [23:11:13]Read from MH i2c: E2 0E 00 5C 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 9C [23:11:13]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [23:11:13]wFMCommunicate OK [23:11:13]SAM_PROTO_GetShiftState done [23:11:13]FM_GetShiftState done [23:11:13]opened in 1724026361 [23:11:13]opened+sec_in_day 1724112761 [23:11:13]quantity*price = 12500 [23:11:13]sum+1 = 12501 [23:11:13]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700001610012 Пиво Арпа 0,5л 2.000 * 145.00 = 290.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 1.000 * 151.00 = 151.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160181 Вода Байтик 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 760.00 НСП 1% : 6.73 НДС 12% : 80.70 Наличными: 760.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 188 19.08.2024 23:11 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50081 ФПД: 71693135484319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T231115&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50081&fm=71693135484319&tin=02508201610067®Number=0000000000092546&sum=76000 0 [23:11:14]StoreToDocumentArchive [23:11:14]shift 467 fd 50081 [23:11:14]save to /storage/0467/doc_00050081 [23:11:14]save last doc name /storage/0467/doc_00050081 to /storage/kkm_last_doc_name [23:11:14]save OK [23:11:14]Clear old archive folders... [23:11:14]ProcessDocumentItem done err = 0, tmpTLVsize=805 [23:11:14]tlvbuf is 01954720 [23:11:14]SAM_PROTO_ClearQueue [23:11:14]wFMCommunicate request_size=4 [23:11:14]MH_SAM_APDU [23:11:14]CAPDU: 80 09 00 00 [23:11:14]Write to MH i2c: E2 08 00 69 09 80 09 00 00 00 00 00 00 E4 [23:11:14]Write i2c OK [23:11:14]MH_I2C_Read... [23:11:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:11:14]Read from MH i2c: E2 [23:11:14]MH_I2C_Read... [23:11:14]Read from MH i2c: E2 03 00 [23:11:14]MH_I2C_Read... [23:11:14]Read from MH i2c: E2 03 00 69 09 00 90 00 E6 [23:11:14]RAPDU: 90 00 [23:11:14]wFMCommunicate OK [23:11:14]SAM_PROTO_ClearQueue done [23:11:14]KKMCreateOFDPacket [23:11:14]OFDProtocolAddRootSTLVToBuf [23:11:14]FM_MakeSignedData [23:11:14]FM_MakeSignedData [23:11:14]SAM_PROTO_SignData [23:11:14]wFMCommunicate request_size=4 [23:11:14]MH_SAM_APDU [23:11:14]CAPDU: 80 0D 01 02 [23:11:14]Write to MH i2c: E2 08 00 6A 09 80 0D 01 02 00 00 00 00 EC [23:11:14]Write i2c OK [23:11:14]MH_I2C_Read... [23:11:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:11:14]Read from MH i2c: E2 [23:11:14]MH_I2C_Read... [23:11:14]Read from MH i2c: E2 03 00 [23:11:14]MH_I2C_Read... [23:11:14]Read from MH i2c: E2 03 00 6A 09 00 90 00 E7 [23:11:14]RAPDU: 90 00 [23:11:14]wFMCommunicate OK [23:11:14]wFMCommunicate request_size=255 [23:11:14]MH_SAM_APDU [23:11:14]CAPDU: 80 0D 02 02 FA 03 00 25 03 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 [23:11:14]Write to MH i2c: E2 02 01 6B 09 80 0D 02 02 FA 00 03 00 25 03 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 00 00 17 [23:11:14]Write i2c OK [23:11:14]MH_I2C_Read... [23:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:14]Read from MH i2c: E2 [23:11:14]MH_I2C_Read... [23:11:14]Read from MH i2c: E2 03 00 [23:11:14]MH_I2C_Read... [23:11:14]Read from MH i2c: E2 03 00 6B 09 00 90 00 E8 [23:11:14]RAPDU: 90 00 [23:11:14]wFMCommunicate OK [23:11:14]wFMCommunicate request_size=255 [23:11:14]MH_SAM_APDU [23:11:14]CAPDU: 80 0D 02 02 FA D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 [23:11:14]Write to MH i2c: E2 02 01 6C 09 80 0D 02 02 FA 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 00 64 [23:11:14]Write i2c OK [23:11:14]MH_I2C_Read... [23:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:15]Read from MH i2c: E2 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 03 00 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 03 00 6C 09 00 90 00 E9 [23:11:15]RAPDU: 90 00 [23:11:15]wFMCommunicate OK [23:11:15]wFMCommunicate request_size=255 [23:11:15]MH_SAM_APDU [23:11:15]CAPDU: 80 0D 02 02 FA 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 13 D1 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 [23:11:15]Write to MH i2c: E2 02 01 6D 09 80 0D 02 02 FA 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 13 D1 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 00 00 1D [23:11:15]Write i2c OK [23:11:15]MH_I2C_Read... [23:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:15]Read from MH i2c: E2 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 03 00 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 03 00 6D 09 00 90 00 EA [23:11:15]RAPDU: 90 00 [23:11:15]wFMCommunicate OK [23:11:15]wFMCommunicate request_size=64 [23:11:15]MH_SAM_APDU [23:11:15]CAPDU: 80 0D 02 02 3B 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A1 C3 00 00 35 04 06 00 41 34 5B DF 95 9F [23:11:15]Write to MH i2c: E2 43 00 6E 09 80 0D 02 02 3B 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A1 C3 00 00 35 04 06 00 41 34 5B DF 95 9F 00 00 7E [23:11:15]Write i2c OK [23:11:15]MH_I2C_Read... [23:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:15]Read from MH i2c: E2 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 03 00 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 03 00 6E 09 00 90 00 EB [23:11:15]RAPDU: 90 00 [23:11:15]wFMCommunicate OK [23:11:15]wFMCommunicate request_size=4 [23:11:15]MH_SAM_APDU [23:11:15]CAPDU: 80 0D 03 02 [23:11:15]Write to MH i2c: E2 08 00 6F 09 80 0D 03 02 00 00 00 00 F3 [23:11:15]Write i2c OK [23:11:15]MH_I2C_Read... [23:11:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:11:15]Read from MH i2c: E2 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 0B 00 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 0B 00 6F 09 00 6D 32 1B 10 CE 73 FD F6 90 00 F2 [23:11:15]RAPDU: 6D 32 1B 10 CE 73 FD F6 90 00 [23:11:15]wFMCommunicate OK [23:11:15]SAM_PROTO_SignData done [23:11:15]FM_MakeSignedData done [23:11:15]CreateOFDProtocolMessage [23:11:15]wFMCommunicate request_size=4 [23:11:15]MH_SAM_APDU [23:11:15]CAPDU: 80 11 00 00 [23:11:15]Write to MH i2c: E2 08 00 70 09 80 11 00 00 00 00 00 00 F3 [23:11:15]Write i2c OK [23:11:15]MH_I2C_Read... [23:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:15]Read from MH i2c: E2 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 17 00 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: E2 17 00 70 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3E [23:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:11:15]wFMCommunicate OK [23:11:15]CreateOFDProtocolMessage done [23:11:15]OFDSenderStorePacket 50081 [23:11:15]StoreOFDPacket docnum=50081 [23:11:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 03 00 00 22 26 31 03 B4 7E 5A 03 01 00 03 00 25 03 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 13 D1 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A1 C3 00 00 35 04 06 00 41 34 5B DF 95 9F 6D 32 1B 10 CE 73 FD F6 [23:11:15]CheckFolder [23:11:15]dirname=/storage/ofd_packets [23:11:15]CheckFolder done [23:11:15]ProducePacketName [23:11:15]name=ofd_packets/00050081 [23:11:15]NVStorageSaveData ofd_packets/00050081 [23:11:15]File name is /storage/ofd_packets/00050081 [23:11:15]Write 855 bytes [23:11:15]NVStorageSaveData done [23:11:15]OFDSenderStorePacket done [23:11:15]KKMCreateOFDPacket done [23:11:15]NVStorageSaveData kkm_last_timestamp [23:11:15]File name is /storage/kkm_last_timestamp [23:11:15]Write 4 bytes [23:11:15]NVStorageSaveData done [23:11:15]ExternCall_PrintAddStr [23:11:15]wPrintStart [23:11:15]Write to MH i2c: 01 00 00 71 09 7A [23:11:15]Write i2c OK [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: 01 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: 01 07 00 [23:11:15]MH_I2C_Read... [23:11:15]Read from MH i2c: 01 07 00 71 09 00 00 00 00 00 FF 0F 8F [23:11:15]RasterBufferAndPrint [23:11:15]line Счет N : (3)190203 [23:11:15]line ИНН: 02508201610067 [23:11:15]line Контрольно-Кассовый Чек [23:11:15]line ПРОДАЖА [23:11:15]line Товар: 4870202521261 [23:11:15]line Напиток MAXI чай 1,2 лесные ягоды [23:11:15]line 1.000 * 125.00 [23:11:15]line = 125.00 [23:11:15]line НДС 12% НСП 1% [23:11:15]line > о реализуемом товаре [23:11:15]line Товар: 4700001610012 [23:11:15]line Пиво Арпа 0,5л [23:11:15]line 2.000 * 145.00 [23:11:15]line = 290.00 [23:11:15]line НДС 12% НСП 1% [23:11:15]line > о реализуемом товаре [23:11:15]line Товар: 48741958 [23:11:15]line Сигареты Parliament Aqua Blue [23:11:15]line 1.000 * 151.00 [23:11:15]line = 151.00 [23:11:15]line НДС 12% НСП 1% [23:11:15]line > о реализуемом товаре [23:11:15]line Товар: 48743587 [23:11:15]line Сигареты Winston XStyle Silver [23:11:15]line 1.000 * 140.00 [23:11:15]line = 140.00 [23:11:15]line НДС 12% НСП 1% [23:11:16]line > о реализуемом товаре [23:11:16]line Товар: 4700000160181 [23:11:16]line Вода Байтик 1л [23:11:16]line 1.000 * 50.00 [23:11:16]line = 50.00 [23:11:16]line НДС 12% НСП 1% [23:11:16]line > о реализуемом товаре [23:11:16]line Товар: 2000031750019 [23:11:16]line Пакет Партнер Нефть [23:11:16]line 1.000 * 4.00 [23:11:16]line = 4.00 [23:11:16]line НДС 12% НСП 1% [23:11:16]line > о реализуемом товаре [23:11:16]line ИТОГО: 760.00 [23:11:16]line НСП 1% : 6.73 [23:11:16]line НДС 12% : 80.70 [23:11:16]line Наличными: 760.00 [23:11:16]line Безнал.: 0.00 [23:11:16]line Место: АЗС № 95 "Партнер Нефть" [23:11:16]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [23:11:16]line СНО: Общий режим [23:11:16]line Чек 188 19.08.2024 23:11 [23:11:16]line Смена: 467 ФФД: 1.0 [23:11:16]line ЗНМ: 0300000078 [23:11:16]line РНМ: 0000000000092546 [23:11:16]line Версия ККМ: 001 [23:11:16]line ФМ: 0000000000871800 [23:11:16]line ФД: 50081 [23:11:16]line ФПД: 71693135484319 [23:11:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T231115&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50081&fm=71693135484319&tin=02508201610067®Number=0000000000092546&sum=76000 [23:11:16]OFD Sender: Processing packet 50081 [packets to send 21, broken 20] [23:11:16]ProducePacketName [23:11:16]name=ofd_packets/00050081 [23:11:16]OFD Sender: To server: pG, [23:11:16]CommunicateWithHost lk.salyk.kg:30040 [23:11:16]ConnectInit lk.salyk.kg [23:11:16]line 0 [23:11:16]written 0, free lines is 4095 [23:11:16]Connected sock=10 [23:11:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 03 00 00 22 26 31 03 B4 7E 5A 03 01 00 03 00 25 03 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 38 31 06 04 19 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 13 D1 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A1 C3 00 00 35 04 06 00 41 34 5B DF 95 9F 6D 32 1B 10 CE 73 FD F6 [23:11:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 9A A6 47 00 37 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A1 C3 00 00 F4 03 04 00 80 7B C3 66 B6 04 01 00 00 2A F3 23 40 F0 8E 0A B1 [23:11:16]CommunicateWithHost err = 0 [23:11:16]CheckOFDResponse [23:11:16]1017 (14) - 77093643461234 [23:11:16]1041 (16) - 0000000000871800 [23:11:16]1040 (4) - 50081 [23:11:16]1012 (4) - 19.08.2024 17:06 [23:11:16]1206 (1) - 0 [23:11:16]OFD Sender: Remove packet 50081 [23:11:16]ProducePacketName [23:11:16]name=ofd_packets/00050081 [23:11:16]NVStorageDeleteData [23:11:16]Write to MH i2c: 01 00 00 BA 09 C3 [23:11:16]Write i2c OK [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: 01 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: 01 07 00 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: 01 07 00 BA 09 00 00 00 00 00 DB 0A AF [23:11:16]RasterBufferAndPrint [23:11:16]line [23:11:16]line [23:11:16]line [23:11:16]line [23:11:16]line [23:11:16]written 0, free lines is 2789 [23:11:16]MH_Cut [23:11:16]Write to MH i2c: D1 01 00 C1 09 01 9C [23:11:16]Write i2c OK [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: D1 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: D1 01 00 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: D1 01 00 C1 09 00 9B [23:11:16]Write to MH i2c: 01 00 00 C2 09 CB [23:11:16]Write i2c OK [23:11:16]MH_I2C_Read... [23:11:17]OFD Sender: No OFD packet to send [23:11:17]*** Cut start [23:11:17]*** Purtial cut [23:11:17]*** CUTSNS_PIN = 0 [23:11:18]*** Stage 1: CUTSNS_PIN = 1 [23:11:19]Read from MH i2c: 01 [23:11:19]MH_I2C_Read... [23:11:19]*** Stop cut motor [23:11:19]*** Cut end [23:11:19]Read from MH i2c: 01 07 00 [23:11:19]MH_I2C_Read... [23:11:20]Read from MH i2c: 01 07 00 C2 09 00 00 00 00 00 FF 0F E0 [23:11:20]process_action close_receipt done [23:11:20]requested_data is exist [23:11:20]produce_requested_data [23:11:20]requested_item fm.sn is exist - process it [23:11:20]wFMCommunicate request_size=4 [23:11:20]MH_SAM_APDU [23:11:20]CAPDU: 80 11 00 00 [23:11:20]Write to MH i2c: E2 08 00 C3 09 80 11 00 00 00 00 00 00 46 [23:11:20]Write i2c OK [23:11:20]MH_I2C_Read... [23:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:20]Read from MH i2c: E2 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: E2 17 00 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: E2 17 00 C3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 91 [23:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:11:20]wFMCommunicate OK [23:11:20]requested_item fd.num is exist - process it [23:11:20]SAM_PROTO_GetFieldsCounters [23:11:20]wFMCommunicate request_size=4 [23:11:20]MH_SAM_APDU [23:11:20]CAPDU: 80 13 00 00 [23:11:20]Write to MH i2c: E2 08 00 C4 09 80 13 00 00 00 00 00 00 49 [23:11:20]Write i2c OK [23:11:20]MH_I2C_Read... [23:11:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:11:20]Read from MH i2c: E2 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: E2 62 00 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: E2 62 00 C4 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A1 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [23:11:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A1 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:11:20]wFMCommunicate OK [23:11:20]SAM_PROTO_GetFieldsCounters done [23:11:20]requested_item shift.num is exist - process it [23:11:20]requested_item shift.opened is exist - process it [23:11:20]req_shift_opened [23:11:20]FM_GetShiftState [23:11:20]SAM_PROTO_GetShiftState [23:11:20]wFMCommunicate request_size=4 [23:11:20]MH_SAM_APDU [23:11:20]CAPDU: 80 13 01 00 [23:11:20]Write to MH i2c: E2 08 00 C5 09 80 13 01 00 00 00 00 00 4B [23:11:20]Write i2c OK [23:11:20]MH_I2C_Read... [23:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:20]Read from MH i2c: E2 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: E2 0E 00 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: E2 0E 00 C5 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 05 [23:11:20]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [23:11:20]wFMCommunicate OK [23:11:20]SAM_PROTO_GetShiftState done [23:11:20]FM_GetShiftState done [23:11:20]req_shift_opened done [23:11:20]requested_item shift.open_date is exist - process it [23:11:20]req_shift_open_date [23:11:20]req_shift_open_date done [23:11:20]produce_requested_data done [23:11:20]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50081,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [23:11:20]process_action_free close_receipt [23:11:20]json_value_free [23:11:20]json_value_free done [23:11:20]process_json_proto returns [23:11:20]Send response to host [23:11:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50081,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [23:11:20]free response buf [23:11:20]execute_script done [23:11:20]execute_script returns [23:11:20]free content buf [23:11:20]Sock 8.Close socket [23:11:20]Sock 8.Thread stoped [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:52]OFD Sender: No OFD packet to send [23:11:57]OFD Sender: No OFD packet to send [23:12:02]OFD Sender: No OFD packet to send [23:12:07]OFD Sender: No OFD packet to send [23:12:12]OFD Sender: No OFD packet to send [23:12:17]OFD Sender: No OFD packet to send [23:12:22]OFD Sender: No OFD packet to send [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:47]OFD Sender: No OFD packet to send [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:17]OFD Sender: No OFD packet to send [23:21:22]OFD Sender: No OFD packet to send [23:21:27]OFD Sender: No OFD packet to send [23:21:32]OFD Sender: No OFD packet to send [23:21:37]OFD Sender: No OFD packet to send [23:21:42]OFD Sender: No OFD packet to send [23:21:47]OFD Sender: No OFD packet to send [23:21:52]OFD Sender: No OFD packet to send [23:21:57]OFD Sender: No OFD packet to send [23:22:02]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:17]OFD Sender: No OFD packet to send [23:23:22]OFD Sender: No OFD packet to send [23:23:27]OFD Sender: No OFD packet to send [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:57]OFD Sender: No OFD packet to send [23:24:02]OFD Sender: No OFD packet to send [23:24:07]OFD Sender: No OFD packet to send [23:24:12]OFD Sender: No OFD packet to send [23:24:17]OFD Sender: No OFD packet to send [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:47]OFD Sender: No OFD packet to send [23:24:52]OFD Sender: No OFD packet to send [23:24:57]OFD Sender: No OFD packet to send [23:25:02]OFD Sender: No OFD packet to send [23:25:07]OFD Sender: No OFD packet to send [23:25:12]OFD Sender: No OFD packet to send [23:25:17]OFD Sender: No OFD packet to send [23:25:22]OFD Sender: No OFD packet to send [23:25:27]OFD Sender: No OFD packet to send [23:25:32]OFD Sender: No OFD packet to send [23:25:37]OFD Sender: No OFD packet to send [23:25:42]OFD Sender: No OFD packet to send [23:25:47]OFD Sender: No OFD packet to send [23:25:52]OFD Sender: No OFD packet to send [23:25:57]OFD Sender: No OFD packet to send [23:26:02]OFD Sender: No OFD packet to send [23:26:07]OFD Sender: No OFD packet to send [23:26:12]OFD Sender: No OFD packet to send [23:26:17]OFD Sender: No OFD packet to send [23:26:22]OFD Sender: No OFD packet to send [23:26:27]OFD Sender: No OFD packet to send [23:26:32]OFD Sender: No OFD packet to send [23:26:37]OFD Sender: No OFD packet to send [23:26:40]accept exits with 9 [23:26:40]New connection [23:26:40]New thread 3066899812 created [23:26:40]Thread 3066756452 joined [23:26:40]Waiting for new connection... [23:26:40] Sock 9.Parse request [23:26:40]Sock 9.Check first char [23:26:40]Sock 9.First char is OK [23:26:40]request: POST /json_proto HTTP/1.0 [23:26:40]Method: POST [23:26:40]URL: /json_proto [23:26:40]Method is POST - this is cgi request [23:26:40]url: /json_proto [23:26:40]query_string will be loaded in cgi processing [23:26:40]execute_cgi json_proto POST (null) [23:26:40]execute_cgi path=json_proto method=POST [23:26:40]POST find Content-Length [23:26:40]Host: 172.17.46.196:8080 [23:26:40]Content-Length: 756 [23:26:40]Content-Type: application/json [23:26:40] [23:26:40]POST finish read [23:26:40]Found Content-Length = 756 [23:26:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11328262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 26.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30061131", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:40]execute_script... [23:26:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11328262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 26.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30061131", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:40]POST & json_proto [23:26:40]process_json_proto [23:26:40]json parsed OK: [23:26:40]protocol is kg_v1.0 [23:26:40]action value=close_receipt [23:26:40]process_action close_receipt [23:26:40]cmd_close_receipt [23:26:40]MH_GetDate [23:26:40]Write to MH i2c: F0 00 00 C6 09 BE [23:26:40]Write i2c OK [23:26:40]MH_I2C_Read... [23:26:40]Read from MH i2c: F0 [23:26:40]MH_I2C_Read... [23:26:40]Read from MH i2c: F0 09 00 [23:26:40]MH_I2C_Read... [23:26:40]Read from MH i2c: F0 09 00 C6 09 00 B2 D4 C3 66 C4 85 C2 66 E7 [23:26:40]GetLastDocTimeStamp 1724109075 [23:26:40]current date 1724110002 [23:26:40]FM_GetShiftState [23:26:40]SAM_PROTO_GetShiftState [23:26:40]wFMCommunicate request_size=4 [23:26:40]MH_SAM_APDU [23:26:40]CAPDU: 80 13 01 00 [23:26:40]Write to MH i2c: E2 08 00 C7 09 80 13 01 00 00 00 00 00 4D [23:26:40]Write i2c OK [23:26:40]MH_I2C_Read... [23:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:40]Read from MH i2c: E2 [23:26:40]MH_I2C_Read... [23:26:40]Read from MH i2c: E2 0E 00 [23:26:40]MH_I2C_Read... [23:26:40]Read from MH i2c: E2 0E 00 C7 09 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 07 [23:26:40]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [23:26:40]wFMCommunicate OK [23:26:40]SAM_PROTO_GetShiftState done [23:26:40]FM_GetShiftState done [23:26:40]opened in 1724026361 [23:26:40]opened+sec_in_day 1724112761 [23:26:40]quantity*price = 0 [23:26:40]sum+1 = 1 [23:26:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 189 19.08.2024 23:26 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30061131 ФМ: 0000000000871800 ФД: 50082 ФПД: 266071190298321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T232642&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50082&fm=266071190298321&tin=02508201610067®Number=0000000000092546&sum=0 [23:26:42]StoreToDocumentArchive [23:26:42]shift 467 fd 50082 [23:26:42]save to /storage/0467/doc_00050082 [23:26:42]save last doc name /storage/0467/doc_00050082 to /storage/kkm_last_doc_name [23:26:42]save OK [23:26:42]Clear old archive folders... [23:26:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:26:42]tlvbuf is 01924C20 [23:26:42]SAM_PROTO_ClearQueue [23:26:42]wFMCommunicate request_size=4 [23:26:42]MH_SAM_APDU [23:26:42]CAPDU: 80 09 00 00 [23:26:42]Write to MH i2c: E2 08 00 D4 09 80 09 00 00 00 00 00 00 4F [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:26:42]Read from MH i2c: E2 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 03 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 03 00 D4 09 00 90 00 51 [23:26:42]RAPDU: 90 00 [23:26:42]wFMCommunicate OK [23:26:42]SAM_PROTO_ClearQueue done [23:26:42]KKMCreateOFDPacket [23:26:42]OFDProtocolAddRootSTLVToBuf [23:26:42]FM_MakeSignedData [23:26:42]FM_MakeSignedData [23:26:42]SAM_PROTO_SignData [23:26:42]wFMCommunicate request_size=4 [23:26:42]MH_SAM_APDU [23:26:42]CAPDU: 80 0D 01 02 [23:26:42]Write to MH i2c: E2 08 00 D5 09 80 0D 01 02 00 00 00 00 57 [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:26:42]Read from MH i2c: E2 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 03 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 03 00 D5 09 00 90 00 52 [23:26:42]RAPDU: 90 00 [23:26:42]wFMCommunicate OK [23:26:42]wFMCommunicate request_size=255 [23:26:42]MH_SAM_APDU [23:26:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 B2 D4 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A2 C3 00 00 35 04 06 00 F1 [23:26:42]Write to MH i2c: E2 02 01 D6 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 B2 D4 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A2 C3 00 00 35 04 06 00 F1 00 00 A3 [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:42]Read from MH i2c: E2 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 03 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 03 00 D6 09 00 90 00 53 [23:26:42]RAPDU: 90 00 [23:26:42]wFMCommunicate OK [23:26:42]wFMCommunicate request_size=10 [23:26:42]MH_SAM_APDU [23:26:42]CAPDU: 80 0D 02 02 05 FD 86 C8 5E D1 [23:26:42]Write to MH i2c: E2 0D 00 D7 09 80 0D 02 02 05 00 FD 86 C8 5E D1 00 00 DE [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:42]Read from MH i2c: E2 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 03 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 03 00 D7 09 00 90 00 54 [23:26:42]RAPDU: 90 00 [23:26:42]wFMCommunicate OK [23:26:42]wFMCommunicate request_size=4 [23:26:42]MH_SAM_APDU [23:26:42]CAPDU: 80 0D 03 02 [23:26:42]Write to MH i2c: E2 08 00 D8 09 80 0D 03 02 00 00 00 00 5C [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:26:42]Read from MH i2c: E2 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 0B 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 0B 00 D8 09 00 BB 7C 39 A3 31 11 3A C6 90 00 B2 [23:26:42]RAPDU: BB 7C 39 A3 31 11 3A C6 90 00 [23:26:42]wFMCommunicate OK [23:26:42]SAM_PROTO_SignData done [23:26:42]FM_MakeSignedData done [23:26:42]CreateOFDProtocolMessage [23:26:42]wFMCommunicate request_size=4 [23:26:42]MH_SAM_APDU [23:26:42]CAPDU: 80 11 00 00 [23:26:42]Write to MH i2c: E2 08 00 D9 09 80 11 00 00 00 00 00 00 5C [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:42]Read from MH i2c: E2 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 17 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: E2 17 00 D9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A7 [23:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:26:42]wFMCommunicate OK [23:26:42]CreateOFDProtocolMessage done [23:26:42]OFDSenderStorePacket 50082 [23:26:42]StoreOFDPacket docnum=50082 [23:26:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 3D A2 07 01 BA E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 B2 D4 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A2 C3 00 00 35 04 06 00 F1 FD 86 C8 5E D1 BB 7C 39 A3 31 11 3A C6 [23:26:42]CheckFolder [23:26:42]dirname=/storage/ofd_packets [23:26:42]CheckFolder done [23:26:42]ProducePacketName [23:26:42]name=ofd_packets/00050082 [23:26:42]NVStorageSaveData ofd_packets/00050082 [23:26:42]File name is /storage/ofd_packets/00050082 [23:26:42]Write 301 bytes [23:26:42]NVStorageSaveData done [23:26:42]OFDSenderStorePacket done [23:26:42]KKMCreateOFDPacket done [23:26:42]NVStorageSaveData kkm_last_timestamp [23:26:42]File name is /storage/kkm_last_timestamp [23:26:42]Write 4 bytes [23:26:42]NVStorageSaveData done [23:26:42]ExternCall_PrintAddStr [23:26:42]wPrintStart [23:26:42]Write to MH i2c: 01 00 00 DA 09 E3 [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: 01 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: 01 07 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: 01 07 00 DA 09 00 00 00 00 00 FF 0F F8 [23:26:42]RasterBufferAndPrint [23:26:42]line Счет N : (1)11328262 [23:26:42]line ИНН: 02508201610067 [23:26:42]line Контрольно-Кассовый Чек [23:26:42]line ПРОДАЖА [23:26:42]line ТРК (МРК, ГНК) : 11 [23:26:42]line Товар: 2710124500 [23:26:42]line Аи-95-К-5 [23:26:42]line 26.950 * 0.00 [23:26:42]line = 0.00 [23:26:42]line НДС 12% НСП 1% [23:26:42]line > о реализуемом товаре [23:26:42]line ИТОГО: 0.00 [23:26:42]line НСП 1% : 0.00 [23:26:42]line НДС 12% : 0.00 [23:26:42]line Наличными: 0.00 [23:26:42]line Безнал.: 0.00 [23:26:42]line Место: АЗС № 95 "Партнер Нефть" [23:26:42]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [23:26:42]line СНО: Общий режим [23:26:42]line Чек 189 19.08.2024 23:26 [23:26:42]line Смена: 467 ФФД: 1.0 [23:26:42]line ЗНМ: 0300000078 [23:26:42]line РНМ: 0000000000092546 [23:26:42]line Версия ККМ: 001 [23:26:42]line Талоны: ТК ГПНА Online [23:26:42]line 30061131 [23:26:42]line ФМ: 0000000000871800 [23:26:42]line ФД: 50082 [23:26:42]line ФПД: 266071190298321 [23:26:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T232642&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50082&fm=266071190298321&tin=02508201610067®Number=0000000000092546&sum=0 [23:26:42]written 0, free lines is 4095 [23:26:42]OFD Sender: Processing packet 50082 [packets to send 21, broken 20] [23:26:42]ProducePacketName [23:26:42]name=ofd_packets/00050082 [23:26:42]OFD Sender: To server: pG, [23:26:42]CommunicateWithHost lk.salyk.kg:30040 [23:26:42]ConnectInit lk.salyk.kg [23:26:42]Connected sock=10 [23:26:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 3D A2 07 01 BA E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 B2 D4 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A2 C3 00 00 35 04 06 00 F1 FD 86 C8 5E D1 BB 7C 39 A3 31 11 3A C6 [23:26:42]Write to MH i2c: 01 00 00 04 0A 0E [23:26:42]Write i2c OK [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: 01 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: 01 07 00 [23:26:42]MH_I2C_Read... [23:26:42]Read from MH i2c: 01 07 00 04 0A 00 00 00 00 00 D9 0C FA [23:26:42]RasterBufferAndPrint [23:26:42]line [23:26:42]line [23:26:42]line [23:26:42]line [23:26:42]line [23:26:42]written 0, free lines is 3296 [23:26:43]MH_Cut [23:26:43]Write to MH i2c: D1 01 00 0B 0A 01 E7 [23:26:43]Write i2c OK [23:26:43]MH_I2C_Read... [23:26:43]Read from MH i2c: D1 [23:26:43]MH_I2C_Read... [23:26:43]Read from MH i2c: D1 01 00 [23:26:43]MH_I2C_Read... [23:26:43]Read from MH i2c: D1 01 00 0B 0A 00 E6 [23:26:43]Write to MH i2c: 01 00 00 0C 0A 16 [23:26:43]Write i2c OK [23:26:43]MH_I2C_Read... [23:26:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B2 B7 47 00 B1 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A2 C3 00 00 F4 03 04 00 1E 7F C3 66 B6 04 01 00 00 83 E9 37 4A F7 28 DF F5 [23:26:43]CommunicateWithHost err = 0 [23:26:43]CheckOFDResponse [23:26:43]1017 (14) - 77093643461234 [23:26:43]1041 (16) - 0000000000871800 [23:26:43]1040 (4) - 50082 [23:26:43]1012 (4) - 19.08.2024 17:21 [23:26:43]1206 (1) - 0 [23:26:43]OFD Sender: Remove packet 50082 [23:26:43]ProducePacketName [23:26:43]name=ofd_packets/00050082 [23:26:43]NVStorageDeleteData [23:26:43]OFD Sender: No OFD packet to send [23:26:43]*** Cut start [23:26:43]*** Purtial cut [23:26:43]*** Stage 1: CUTSNS_PIN = 1 [23:26:44]Read from MH i2c: 01 [23:26:44]MH_I2C_Read... [23:26:44]*** Stop cut motor [23:26:44]*** Cut end [23:26:44]Read from MH i2c: 01 07 00 [23:26:44]MH_I2C_Read... [23:26:44]Read from MH i2c: 01 07 00 0C 0A 00 00 00 00 00 FF 0F 2B [23:26:44]process_action close_receipt done [23:26:44]requested_data is exist [23:26:44]produce_requested_data [23:26:44]requested_item fm.sn is exist - process it [23:26:44]wFMCommunicate request_size=4 [23:26:44]MH_SAM_APDU [23:26:44]CAPDU: 80 11 00 00 [23:26:44]Write to MH i2c: E2 08 00 0D 0A 80 11 00 00 00 00 00 00 91 [23:26:44]Write i2c OK [23:26:44]MH_I2C_Read... [23:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:44]Read from MH i2c: E2 [23:26:44]MH_I2C_Read... [23:26:44]Read from MH i2c: E2 17 00 [23:26:44]MH_I2C_Read... [23:26:44]Read from MH i2c: E2 17 00 0D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DC [23:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:26:44]wFMCommunicate OK [23:26:44]requested_item fd.num is exist - process it [23:26:44]SAM_PROTO_GetFieldsCounters [23:26:44]wFMCommunicate request_size=4 [23:26:44]MH_SAM_APDU [23:26:44]CAPDU: 80 13 00 00 [23:26:44]Write to MH i2c: E2 08 00 0E 0A 80 13 00 00 00 00 00 00 94 [23:26:44]Write i2c OK [23:26:44]MH_I2C_Read... [23:26:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:26:44]Read from MH i2c: E2 [23:26:44]MH_I2C_Read... [23:26:44]Read from MH i2c: E2 62 00 [23:26:44]MH_I2C_Read... [23:26:44]Read from MH i2c: E2 62 00 0E 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A2 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [23:26:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A2 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:26:44]wFMCommunicate OK [23:26:44]SAM_PROTO_GetFieldsCounters done [23:26:44]requested_item shift.num is exist - process it [23:26:44]requested_item shift.opened is exist - process it [23:26:44]req_shift_opened [23:26:44]FM_GetShiftState [23:26:44]SAM_PROTO_GetShiftState [23:26:44]wFMCommunicate request_size=4 [23:26:44]MH_SAM_APDU [23:26:44]CAPDU: 80 13 01 00 [23:26:44]Write to MH i2c: E2 08 00 0F 0A 80 13 01 00 00 00 00 00 96 [23:26:44]Write i2c OK [23:26:44]MH_I2C_Read... [23:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:44]Read from MH i2c: E2 [23:26:44]MH_I2C_Read... [23:26:44]Read from MH i2c: E2 0E 00 [23:26:44]MH_I2C_Read... [23:26:44]Read from MH i2c: E2 0E 00 0F 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 50 [23:26:44]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [23:26:44]wFMCommunicate OK [23:26:44]SAM_PROTO_GetShiftState done [23:26:44]FM_GetShiftState done [23:26:44]req_shift_opened done [23:26:44]requested_item shift.open_date is exist - process it [23:26:44]req_shift_open_date [23:26:44]req_shift_open_date done [23:26:44]produce_requested_data done [23:26:44]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50082,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [23:26:44]process_action_free close_receipt [23:26:44]json_value_free [23:26:44]json_value_free done [23:26:44]process_json_proto returns [23:26:44]Send response to host [23:26:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50082,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [23:26:44]free response buf [23:26:44]execute_script done [23:26:44]execute_script returns [23:26:44]free content buf [23:26:44]Sock 9.Close socket [23:26:44]Sock 9.Thread stoped [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:08]OFD Sender: No OFD packet to send [23:30:13]OFD Sender: No OFD packet to send [23:30:18]OFD Sender: No OFD packet to send [23:30:23]OFD Sender: No OFD packet to send [23:30:28]OFD Sender: No OFD packet to send [23:30:33]OFD Sender: No OFD packet to send [23:30:38]OFD Sender: No OFD packet to send [23:30:43]OFD Sender: No OFD packet to send [23:30:48]OFD Sender: No OFD packet to send [23:30:53]OFD Sender: No OFD packet to send [23:30:58]OFD Sender: No OFD packet to send [23:31:03]OFD Sender: No OFD packet to send [23:31:08]OFD Sender: No OFD packet to send [23:31:13]OFD Sender: No OFD packet to send [23:31:18]OFD Sender: No OFD packet to send [23:31:23]OFD Sender: No OFD packet to send [23:31:28]OFD Sender: No OFD packet to send [23:31:33]OFD Sender: No OFD packet to send [23:31:38]OFD Sender: No OFD packet to send [23:31:43]OFD Sender: No OFD packet to send [23:31:48]OFD Sender: No OFD packet to send [23:31:53]OFD Sender: No OFD packet to send [23:31:58]OFD Sender: No OFD packet to send [23:32:03]OFD Sender: No OFD packet to send [23:32:08]OFD Sender: No OFD packet to send [23:32:13]OFD Sender: No OFD packet to send [23:32:18]OFD Sender: No OFD packet to send [23:32:23]OFD Sender: No OFD packet to send [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:43]OFD Sender: No OFD packet to send [23:32:48]OFD Sender: No OFD packet to send [23:32:53]OFD Sender: No OFD packet to send [23:32:58]OFD Sender: No OFD packet to send [23:33:03]OFD Sender: No OFD packet to send [23:33:08]OFD Sender: No OFD packet to send [23:33:13]OFD Sender: No OFD packet to send [23:33:18]OFD Sender: No OFD packet to send [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:23]OFD Sender: No OFD packet to send [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:44]OFD Sender: No OFD packet to send [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:27]accept exits with 8 [23:37:27]New connection [23:37:27]New thread 3066756452 created [23:37:27]Thread 3066899812 joined [23:37:27]Waiting for new connection... [23:37:27] Sock 8.Parse request [23:37:27]Sock 8.Check first char [23:37:27]Sock 8.First char is OK [23:37:27]request: POST /json_proto HTTP/1.0 [23:37:27]Method: POST [23:37:27]URL: /json_proto [23:37:27]Method is POST - this is cgi request [23:37:27]url: /json_proto [23:37:27]query_string will be loaded in cgi processing [23:37:27]execute_cgi json_proto POST (null) [23:37:27]execute_cgi path=json_proto method=POST [23:37:27]POST find Content-Length [23:37:27]Host: 172.17.46.196:8080 [23:37:27]Content-Length: 737 [23:37:27]Content-Type: application/json [23:37:27] [23:37:27]POST finish read [23:37:27]Found Content-Length = 737 [23:37:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190204", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "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" ] } } [23:37:27]execute_script... [23:37: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)190204", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "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" ] } } [23:37:27]POST & json_proto [23:37:27]process_json_proto [23:37:27]json parsed OK: [23:37:27]protocol is kg_v1.0 [23:37:27]action value=close_receipt [23:37:27]process_action close_receipt [23:37:27]cmd_close_receipt [23:37:27]MH_GetDate [23:37:27]Write to MH i2c: F0 00 00 10 0A 09 [23:37:27]Write i2c OK [23:37:27]MH_I2C_Read... [23:37:27]Read from MH i2c: F0 [23:37:27]MH_I2C_Read... [23:37:27]Read from MH i2c: F0 09 00 [23:37:27]MH_I2C_Read... [23:37:27]Read from MH i2c: F0 09 00 10 0A 00 39 D7 C3 66 C4 85 C2 66 BC [23:37:27]GetLastDocTimeStamp 1724110002 [23:37:27]current date 1724110649 [23:37:27]FM_GetShiftState [23:37:27]SAM_PROTO_GetShiftState [23:37:27]wFMCommunicate request_size=4 [23:37:27]MH_SAM_APDU [23:37:27]CAPDU: 80 13 01 00 [23:37:27]Write to MH i2c: E2 08 00 11 0A 80 13 01 00 00 00 00 00 98 [23:37:27]Write i2c OK [23:37:27]MH_I2C_Read... [23:37:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:27]Read from MH i2c: E2 [23:37:27]MH_I2C_Read... [23:37:27]Read from MH i2c: E2 0E 00 [23:37:27]MH_I2C_Read... [23:37:27]Read from MH i2c: E2 0E 00 11 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 52 [23:37:27]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [23:37:27]wFMCommunicate OK [23:37:27]SAM_PROTO_GetShiftState done [23:37:27]FM_GetShiftState done [23:37:27]opened in 1724026361 [23:37:27]opened+sec_in_day 1724112761 [23:37:27]quantity*price = 18000 [23:37:27]sum+1 = 18001 [23:37:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 190 19.08.2024 23:37 Смена: 467 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50083 ФПД: 274837890373212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T233729&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50083&fm=274837890373212&tin=02508201610067®Number=0000000000092546&sum=18000 0 [23:37:28]StoreToDocumentArchive [23:37:28]shift 467 fd 50083 [23:37:28]save to /storage/0467/doc_00050083 [23:37:28]save last doc name /storage/0467/doc_00050083 to /storage/kkm_last_doc_name [23:37:28]save OK [23:37:28]Clear old archive folders... [23:37:28]ProcessDocumentItem done err = 0, tmpTLVsize=310 [23:37:28]tlvbuf is 019469E0 [23:37:28]SAM_PROTO_ClearQueue [23:37:28]wFMCommunicate request_size=4 [23:37:28]MH_SAM_APDU [23:37:28]CAPDU: 80 09 00 00 [23:37:28]Write to MH i2c: E2 08 00 1E 0A 80 09 00 00 00 00 00 00 9A [23:37:28]Write i2c OK [23:37:28]MH_I2C_Read... [23:37:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:37:28]Read from MH i2c: E2 [23:37:28]MH_I2C_Read... [23:37:28]Read from MH i2c: E2 03 00 [23:37:28]MH_I2C_Read... [23:37:28]Read from MH i2c: E2 03 00 1E 0A 00 90 00 9C [23:37:28]RAPDU: 90 00 [23:37:28]wFMCommunicate OK [23:37:28]SAM_PROTO_ClearQueue done [23:37:28]KKMCreateOFDPacket [23:37:28]OFDProtocolAddRootSTLVToBuf [23:37:28]FM_MakeSignedData [23:37:28]FM_MakeSignedData [23:37:28]SAM_PROTO_SignData [23:37:28]wFMCommunicate request_size=4 [23:37:28]MH_SAM_APDU [23:37:28]CAPDU: 80 0D 01 02 [23:37:28]Write to MH i2c: E2 08 00 1F 0A 80 0D 01 02 00 00 00 00 A2 [23:37:28]Write i2c OK [23:37:28]MH_I2C_Read... [23:37:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:37:29]Read from MH i2c: E2 [23:37:29]MH_I2C_Read... [23:37:29]Read from MH i2c: E2 03 00 [23:37:29]MH_I2C_Read... [23:37:29]Read from MH i2c: E2 03 00 1F 0A 00 90 00 9D [23:37:29]RAPDU: 90 00 [23:37:29]wFMCommunicate OK [23:37:29]wFMCommunicate request_size=255 [23:37:29]MH_SAM_APDU [23:37:29]CAPDU: 80 0D 02 02 FA 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F 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 BE 00 00 00 F4 03 04 00 39 D7 C3 66 0E 04 04 00 D3 01 00 [23:37:29]Write to MH i2c: E2 02 01 20 0A 80 0D 02 02 FA 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F 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 BE 00 00 00 F4 03 04 00 39 D7 C3 66 0E 04 04 00 D3 01 00 00 00 7D [23:37:29]Write i2c OK [23:37:29]MH_I2C_Read... [23:37:29]OFD Sender: No OFD packet to send [23:37:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:29]Read from MH i2c: E2 [23:37:29]MH_I2C_Read... [23:37:29]Read from MH i2c: E2 03 00 [23:37:29]MH_I2C_Read... [23:37:29]Read from MH i2c: E2 03 00 20 0A 00 90 00 9E [23:37:29]RAPDU: 90 00 [23:37:29]wFMCommunicate OK [23:37:29]wFMCommunicate request_size=69 [23:37:29]MH_SAM_APDU [23:37:29]CAPDU: 80 0D 02 02 40 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A3 C3 00 00 35 04 06 00 F9 F6 AE D3 96 5C [23:37:29]Write to MH i2c: E2 48 00 21 0A 80 0D 02 02 40 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A3 C3 00 00 35 04 06 00 F9 F6 AE D3 96 5C 00 00 7B [23:37:29]Write i2c OK [23:37:29]MH_I2C_Read... [23:37:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:29]Read from MH i2c: E2 [23:37:29]MH_I2C_Read... [23:37:29]Read from MH i2c: E2 03 00 [23:37:29]MH_I2C_Read... [23:37:29]Read from MH i2c: E2 03 00 21 0A 00 90 00 9F [23:37:29]RAPDU: 90 00 [23:37:29]wFMCommunicate OK [23:37:29]wFMCommunicate request_size=4 [23:37:29]MH_SAM_APDU [23:37:29]CAPDU: 80 0D 03 02 [23:37:29]Write to MH i2c: E2 08 00 22 0A 80 0D 03 02 00 00 00 00 A7 [23:37:29]Write i2c OK [23:37:29]MH_I2C_Read... [23:37:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:37:29]Read from MH i2c: E2 [23:37:29]MH_I2C_Read... [23:37:29]Read from MH i2c: E2 0B 00 [23:37:29]MH_I2C_Read... [23:37:29]Read from MH i2c: E2 0B 00 22 0A 00 83 E1 4A 1C 31 E9 F3 8F 90 00 0E [23:37:29]RAPDU: 83 E1 4A 1C 31 E9 F3 8F 90 00 [23:37:29]wFMCommunicate OK [23:37:29]SAM_PROTO_SignData done [23:37:29]FM_MakeSignedData done [23:37:29]CreateOFDProtocolMessage [23:37:29]wFMCommunicate request_size=4 [23:37:29]MH_SAM_APDU [23:37:29]CAPDU: 80 11 00 00 [23:37:29]Write to MH i2c: E2 08 00 23 0A 80 11 00 00 00 00 00 00 A7 [23:37:29]Write i2c OK [23:37:29]MH_I2C_Read... [23:37:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:29]Read from MH i2c: E2 [23:37:29]MH_I2C_Read... [23:37:29]Read from MH i2c: E2 17 00 [23:37:29]MH_I2C_Read... [23:37:29]Read from MH i2c: E2 17 00 23 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F2 [23:37:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:37:29]wFMCommunicate OK [23:37:29]CreateOFDProtocolMessage done [23:37:29]OFDSenderStorePacket 50083 [23:37:29]StoreOFDPacket docnum=50083 [23:37:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4A 01 00 00 CC CD 42 01 6D CC 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F 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 BE 00 00 00 F4 03 04 00 39 D7 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A3 C3 00 00 35 04 06 00 F9 F6 AE D3 96 5C 83 E1 4A 1C 31 E9 F3 8F [23:37:29]CheckFolder [23:37:29]dirname=/storage/ofd_packets [23:37:29]CheckFolder done [23:37:29]ProducePacketName [23:37:29]name=ofd_packets/00050083 [23:37:29]NVStorageSaveData ofd_packets/00050083 [23:37:29]File name is /storage/ofd_packets/00050083 [23:37:29]Write 360 bytes [23:37:29]NVStorageSaveData done [23:37:29]OFDSenderStorePacket done [23:37:29]KKMCreateOFDPacket done [23:37:29]NVStorageSaveData kkm_last_timestamp [23:37:29]File name is /storage/kkm_last_timestamp [23:37:29]Write 4 bytes [23:37:29]NVStorageSaveData done [23:37:29]ExternCall_PrintAddStr [23:37:29]wPrintStart [23:37:29]Write to MH i2c: 01 00 00 24 0A 2E [23:37:29]Write i2c OK [23:37:29]MH_I2C_Read... [23:37:29]Read from MH i2c: 01 [23:37:29]MH_I2C_Read... [23:37:29]Read from MH i2c: 01 07 00 [23:37:29]MH_I2C_Read... [23:37:29]Read from MH i2c: 01 07 00 24 0A 00 00 00 00 00 FF 0F 43 [23:37:29]RasterBufferAndPrint [23:37:29]line Счет N : (3)190204 [23:37:29]line ИНН: 02508201610067 [23:37:29]line Контрольно-Кассовый Чек [23:37:29]line ПРОДАЖА [23:37:29]line Товар: 4870145004982 [23:37:29]line Пиво Жатецкий Гусь 7 экспортное 0,43л ж/ [23:37:29]line 2.000 * 90.00 [23:37:29]line = 180.00 [23:37:29]line НДС 12% НСП 1% [23:37:29]line > о реализуемом товаре [23:37:29]line ИТОГО: 180.00 [23:37:29]line НСП 1% : 1.59 [23:37:29]line НДС 12% : 19.11 [23:37:29]line Наличными: 180.00 [23:37:29]line Безнал.: 0.00 [23:37:29]line Место: АЗС № 95 "Партнер Нефть" [23:37:29]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [23:37:29]line СНО: Общий режим [23:37:29]line Чек 190 19.08.2024 23:37 [23:37:29]line Смена: 467 ФФД: 1.0 [23:37:29]line ЗНМ: 0300000078 [23:37:29]line РНМ: 0000000000092546 [23:37:29]line Версия ККМ: 001 [23:37:29]line ФМ: 0000000000871800 [23:37:29]line ФД: 50083 [23:37:29]line ФПД: 274837890373212 [23:37:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240819T233729&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50083&fm=274837890373212&tin=02508201610067®Number=0000000000092546&sum=18000 [23:37:29]line 0 [23:37:29]OFD Sender: Processing packet 50083 [packets to send 21, broken 20] [23:37:29]ProducePacketName [23:37:29]name=ofd_packets/00050083 [23:37:29]OFD Sender: To server: pG, [23:37:29]CommunicateWithHost lk.salyk.kg:30040 [23:37:29]ConnectInit lk.salyk.kg [23:37:29]written 0, free lines is 4095 [23:37:30]Write to MH i2c: 01 00 00 4D 0A 57 [23:37:30]Write i2c OK [23:37:30]MH_I2C_Read... [23:37:30]Read from MH i2c: 01 [23:37:30]MH_I2C_Read... [23:37:30]Read from MH i2c: 01 07 00 [23:37:30]MH_I2C_Read... [23:37:30]Read from MH i2c: 01 07 00 4D 0A 00 00 00 00 00 E7 0C 51 [23:37:30]RasterBufferAndPrint [23:37:30]line [23:37:30]line [23:37:30]line [23:37:30]line [23:37:30]line [23:37:30]written 0, free lines is 3309 [23:37:30]MH_Cut [23:37:30]Write to MH i2c: D1 01 00 54 0A 01 30 [23:37:30]Write i2c OK [23:37:30]MH_I2C_Read... [23:37:30]Read from MH i2c: D1 [23:37:30]MH_I2C_Read... [23:37:30]Read from MH i2c: D1 01 00 [23:37:30]MH_I2C_Read... [23:37:30]Read from MH i2c: D1 01 00 54 0A 00 2F [23:37:30]Write to MH i2c: 01 00 00 55 0A 5F [23:37:30]Write i2c OK [23:37:30]MH_I2C_Read... [23:37:30]Connected sock=10 [23:37:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4A 01 00 00 CC CD 42 01 6D CC 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F 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 BE 00 00 00 F4 03 04 00 39 D7 C3 66 0E 04 04 00 D3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A3 C3 00 00 35 04 06 00 F9 F6 AE D3 96 5C 83 E1 4A 1C 31 E9 F3 8F [23:37:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 45 10 47 00 4F 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A3 C3 00 00 F4 03 04 00 A6 81 C3 66 B6 04 01 00 00 88 82 7A 66 72 C0 54 29 [23:37:30]CommunicateWithHost err = 0 [23:37:30]CheckOFDResponse [23:37:30]1017 (14) - 77093643461234 [23:37:30]1041 (16) - 0000000000871800 [23:37:30]1040 (4) - 50083 [23:37:30]1012 (4) - 19.08.2024 17:32 [23:37:30]1206 (1) - 0 [23:37:30]OFD Sender: Remove packet 50083 [23:37:30]ProducePacketName [23:37:30]name=ofd_packets/00050083 [23:37:30]NVStorageDeleteData [23:37:31]*** Cut start [23:37:31]*** Purtial cut [23:37:31]*** CUTSNS_PIN = 0 [23:37:31]*** Stage 1: CUTSNS_PIN = 1 [23:37:31]OFD Sender: No OFD packet to send [23:37:33]Read from MH i2c: 01 [23:37:33]MH_I2C_Read... [23:37:33]*** Stop cut motor [23:37:33]*** Cut end [23:37:33]Read from MH i2c: 01 07 00 [23:37:33]MH_I2C_Read... [23:37:33]Read from MH i2c: 01 07 00 55 0A 00 00 00 00 00 FF 0F 74 [23:37:33]process_action close_receipt done [23:37:33]requested_data is exist [23:37:33]produce_requested_data [23:37:33]requested_item fm.sn is exist - process it [23:37:33]wFMCommunicate request_size=4 [23:37:33]MH_SAM_APDU [23:37:33]CAPDU: 80 11 00 00 [23:37:33]Write to MH i2c: E2 08 00 56 0A 80 11 00 00 00 00 00 00 DA [23:37:33]Write i2c OK [23:37:33]MH_I2C_Read... [23:37:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:33]Read from MH i2c: E2 [23:37:33]MH_I2C_Read... [23:37:33]Read from MH i2c: E2 17 00 [23:37:33]MH_I2C_Read... [23:37:33]Read from MH i2c: E2 17 00 56 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 25 [23:37:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:37:33]wFMCommunicate OK [23:37:33]requested_item fd.num is exist - process it [23:37:33]SAM_PROTO_GetFieldsCounters [23:37:33]wFMCommunicate request_size=4 [23:37:33]MH_SAM_APDU [23:37:33]CAPDU: 80 13 00 00 [23:37:33]Write to MH i2c: E2 08 00 57 0A 80 13 00 00 00 00 00 00 DD [23:37:33]Write i2c OK [23:37:33]MH_I2C_Read... [23:37:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:33]Read from MH i2c: E2 [23:37:33]MH_I2C_Read... [23:37:33]Read from MH i2c: E2 62 00 [23:37:33]MH_I2C_Read... [23:37:33]Read from MH i2c: E2 62 00 57 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A3 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [23:37:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A3 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:37:33]wFMCommunicate OK [23:37:33]SAM_PROTO_GetFieldsCounters done [23:37:33]requested_item shift.num is exist - process it [23:37:33]requested_item shift.opened is exist - process it [23:37:33]req_shift_opened [23:37:33]FM_GetShiftState [23:37:33]SAM_PROTO_GetShiftState [23:37:33]wFMCommunicate request_size=4 [23:37:33]MH_SAM_APDU [23:37:33]CAPDU: 80 13 01 00 [23:37:33]Write to MH i2c: E2 08 00 58 0A 80 13 01 00 00 00 00 00 DF [23:37:33]Write i2c OK [23:37:33]MH_I2C_Read... [23:37:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:33]Read from MH i2c: E2 [23:37:33]MH_I2C_Read... [23:37:33]Read from MH i2c: E2 0E 00 [23:37:33]MH_I2C_Read... [23:37:33]Read from MH i2c: E2 0E 00 58 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 99 [23:37:33]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [23:37:33]wFMCommunicate OK [23:37:33]SAM_PROTO_GetShiftState done [23:37:33]FM_GetShiftState done [23:37:33]req_shift_opened done [23:37:33]requested_item shift.open_date is exist - process it [23:37:33]req_shift_open_date [23:37:33]req_shift_open_date done [23:37:33]produce_requested_data done [23:37:33]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50083,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [23:37:33]process_action_free close_receipt [23:37:33]json_value_free [23:37:33]json_value_free done [23:37:33]process_json_proto returns [23:37:33]Send response to host [23:37:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50083,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [23:37:33]free response buf [23:37:33]execute_script done [23:37:33]execute_script returns [23:37:33]free content buf [23:37:33]Sock 8.Close socket [23:37:33]Sock 8.Thread stoped [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:56]OFD Sender: No OFD packet to send [23:38:01]OFD Sender: No OFD packet to send [23:38:06]OFD Sender: No OFD packet to send [23:38:11]OFD Sender: No OFD packet to send [23:38:16]OFD Sender: No OFD packet to send [23:38:21]OFD Sender: No OFD packet to send [23:38:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]OFD Sender: No OFD packet to send [23:38:41]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]accept exits with 9 [23:51:36]New connection [23:51:36]New thread 3066899812 created [23:51:36]Thread 3066756452 joined [23:51:36]Waiting for new connection... [23:51:36] Sock 9.Parse request [23:51:36]Sock 9.Check first char [23:51:36]Sock 9.First char is OK [23:51:36]request: POST /json_proto HTTP/1.0 [23:51:36]Method: POST [23:51:36]URL: /json_proto [23:51:36]Method is POST - this is cgi request [23:51:36]url: /json_proto [23:51:36]query_string will be loaded in cgi processing [23:51:36]execute_cgi json_proto POST (null) [23:51:36]execute_cgi path=json_proto method=POST [23:51:36]POST find Content-Length [23:51:36]Host: 172.17.46.196:8080 [23:51:36]Content-Length: 215 [23:51:36]Content-Type: application/json [23:51:36] [23:51:36]POST finish read [23:51:36]Found Content-Length = 215 [23:51: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" ] } } [23:51:36]execute_script... [23:51: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" ] } } [23:51:36]POST & json_proto [23:51:36]process_json_proto [23:51:36]json parsed OK: [23:51:36]protocol is kg_v1.0 [23:51:36]action value=get_value [23:51:36]process_action get_value [23:51:36]cmd_get_value [23:51:36]process_action get_value done [23:51:36]requested_data is exist [23:51:36]produce_requested_data [23:51:36]requested_item kkm.sn is exist - process it [23:51:36]requested_item kkm.ver is exist - process it [23:51:36]requested_item fm.sn is exist - process it [23:51:36]wFMCommunicate request_size=4 [23:51:36]MH_SAM_APDU [23:51:36]CAPDU: 80 11 00 00 [23:51:36]Write to MH i2c: E2 08 00 59 0A 80 11 00 00 00 00 00 00 DD [23:51:36]Write i2c OK [23:51:36]MH_I2C_Read... [23:51:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:36]Read from MH i2c: E2 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: E2 17 00 [23:51:36]MH_I2C_Read... [23:51:36]Read from MH i2c: E2 17 00 59 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 28 [23:51:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:51:36]wFMCommunicate OK [23:51:36]requested_item fd.num is exist - process it [23:51:36]SAM_PROTO_GetFieldsCounters [23:51:36]wFMCommunicate request_size=4 [23:51:36]MH_SAM_APDU [23:51:36]CAPDU: 80 13 00 00 [23:51:36]Write to MH i2c: E2 08 00 5A 0A 80 13 00 00 00 00 00 00 E0 [23:51:36]Write i2c OK [23:51:36]MH_I2C_Read... [23:51:36]OFD Sender: No OFD packet to send [23:51:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:37]Read from MH i2c: E2 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 62 00 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 62 00 5A 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A3 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [23:51:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A3 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:37]wFMCommunicate OK [23:51:37]SAM_PROTO_GetFieldsCounters done [23:51:37]requested_item shift.num is exist - process it [23:51:37]requested_item shift.opened is exist - process it [23:51:37]req_shift_opened [23:51:37]FM_GetShiftState [23:51:37]SAM_PROTO_GetShiftState [23:51:37]wFMCommunicate request_size=4 [23:51:37]MH_SAM_APDU [23:51:37]CAPDU: 80 13 01 00 [23:51:37]Write to MH i2c: E2 08 00 5B 0A 80 13 01 00 00 00 00 00 E2 [23:51:37]Write i2c OK [23:51:37]MH_I2C_Read... [23:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:37]Read from MH i2c: E2 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 0E 00 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 0E 00 5B 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 9C [23:51:37]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [23:51:37]wFMCommunicate OK [23:51:37]SAM_PROTO_GetShiftState done [23:51:37]FM_GetShiftState done [23:51:37]req_shift_opened done [23:51:37]requested_item shift.open_date is exist - process it [23:51:37]req_shift_open_date [23:51:37]req_shift_open_date done [23:51:37]produce_requested_data done [23:51:37]produce_requested_data return {"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":50083,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [23:51:37]process_action_free get_value [23:51:37]json_value_free [23:51:37]json_value_free done [23:51:37]process_json_proto returns [23:51:37]Send response to host [23:51:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":50083,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [23:51:37]free response buf [23:51:37]execute_script done [23:51:37]execute_script returns [23:51:37]free content buf [23:51:37]Sock 9.Close socket [23:51:37]Sock 9.Thread stoped [23:51:37]accept exits with 8 [23:51:37]New connection [23:51:37]New thread 3066756452 created [23:51:37]Thread 3066899812 joined [23:51:37]Waiting for new connection... [23:51:37] Sock 8.Parse request [23:51:37]Sock 8.Check first char [23:51:37]Sock 8.First char is OK [23:51:37]request: POST /json_proto HTTP/1.0 [23:51:37]Method: POST [23:51:37]URL: /json_proto [23:51:37]Method is POST - this is cgi request [23:51:37]url: /json_proto [23:51:37]query_string will be loaded in cgi processing [23:51:37]execute_cgi json_proto POST (null) [23:51:37]execute_cgi path=json_proto method=POST [23:51:37]POST find Content-Length [23:51:37]Host: 172.17.46.196:8080 [23:51:37]Content-Length: 331 [23:51:37]Content-Type: application/json [23:51:37] [23:51:37]POST finish read [23:51:37]Found Content-Length = 331 [23:51:37]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" ] } } [23:51:37]execute_script... [23:51:37]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" ] } } [23:51:37]POST & json_proto [23:51:37]process_json_proto [23:51:37]json parsed OK: [23:51:37]protocol is kg_v1.0 [23:51:37]action value=get_value [23:51:37]process_action get_value [23:51:37]cmd_get_value [23:51:37]process_action get_value done [23:51:37]requested_data is exist [23:51:37]produce_requested_data [23:51:37]requested_item fm.sale.total is exist - process it [23:51:37]SAM_PROTO_GetFMData [23:51:37]wFMCommunicate request_size=4 [23:51:37]MH_SAM_APDU [23:51:37]CAPDU: 80 13 03 00 [23:51:37]Write to MH i2c: E2 08 00 5C 0A 80 13 03 00 00 00 00 00 E5 [23:51:37]Write i2c OK [23:51:37]MH_I2C_Read... [23:51:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:37]Read from MH i2c: E2 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 FD 00 [23:51:37]MH_I2C_Read... [23:51:37]Read from MH i2c: E2 FD 00 5C 0A 00 C0 04 85 04 BC 04 6E 04 04 00 FD BF 00 00 69 04 A0 00 6F 04 04 00 EA BF 00 00 B1 04 04 00 32 96 75 3D 70 04 04 00 4E 37 D7 34 72 04 04 00 E4 5E 9E 08 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 64 C9 86 06 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 DD 26 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 48 [23:51:37]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 FD BF 00 00 69 04 A0 00 6F 04 04 00 EA BF 00 00 B1 04 04 00 32 96 75 3D 70 04 04 00 4E 37 D7 34 72 04 04 00 E4 5E 9E 08 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 64 C9 86 06 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 DD 26 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 [23:51:37]wFMCommunicate OK [23:51:37]wFMCommunicate request_size=4 [23:51:37]MH_SAM_APDU [23:51:37]CAPDU: 80 17 00 00 [23:51:37]Write to MH i2c: E2 08 00 5D 0A 80 17 00 00 00 00 00 00 E7 [23:51:37]Write i2c OK [23:51:37]MH_I2C_Read... [23:51:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:38]Read from MH i2c: E2 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 FD 00 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 FD 00 5D 0A 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1A [23:51:38]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:38]wFMCommunicate OK [23:51:38]wFMCommunicate request_size=4 [23:51:38]MH_SAM_APDU [23:51:38]CAPDU: 80 17 00 00 [23:51:38]Write to MH i2c: E2 08 00 5E 0A 80 17 00 00 00 00 00 00 E8 [23:51:38]Write i2c OK [23:51:38]MH_I2C_Read... [23:51:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:38]Read from MH i2c: E2 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 FD 00 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 FD 00 5E 0A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8B [23:51:38]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:38]wFMCommunicate OK [23:51:38]wFMCommunicate request_size=4 [23:51:38]MH_SAM_APDU [23:51:38]CAPDU: 80 17 00 00 [23:51:38]Write to MH i2c: E2 08 00 5F 0A 80 17 00 00 00 00 00 00 E9 [23:51:38]Write i2c OK [23:51:38]MH_I2C_Read... [23:51:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:38]Read from MH i2c: E2 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 FD 00 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 FD 00 5F 0A 00 01 00 04 F7 03 00 00 EF 03 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 90 00 61 [23:51:38]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:38]wFMCommunicate OK [23:51:38]wFMCommunicate request_size=4 [23:51:38]MH_SAM_APDU [23:51:38]CAPDU: 80 17 00 00 [23:51:38]Write to MH i2c: E2 08 00 60 0A 80 17 00 00 00 00 00 00 EA [23:51:38]Write i2c OK [23:51:38]MH_I2C_Read... [23:51:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:51:38]Read from MH i2c: E2 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 DD 00 [23:51:38]MH_I2C_Read... [23:51:38]Read from MH i2c: E2 DD 00 60 0A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D2 [23:51:38]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:51:38]wFMCommunicate OK [23:51:38]SAM_PROTO_GetFMData done [23:51:38]requested_item fm.sale_refund.total is exist - process it [23:51:38]requested_item fm.buy.total is exist - process it [23:51:38]requested_item shift.sale.total is exist - process it [23:51:38]SAM_PROTO_GetShiftData [23:51:38]wFMCommunicate request_size=4 [23:51:38]MH_SAM_APDU [23:51:38]CAPDU: 80 13 02 00 [23:51:38]Write to MH i2c: E2 08 00 61 0A 80 13 02 00 00 00 00 00 E9 [23:51:38]Write i2c OK [23:51:38]MH_I2C_Read... [23:51:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:39]Read from MH i2c: E2 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 FD 00 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 FD 00 61 0A 00 AE 04 AA 04 AA 04 6E 04 04 00 BE 00 00 00 69 04 9B 00 6F 04 04 00 BE 00 00 00 B1 04 03 00 58 2A 23 70 04 03 00 00 BC 1B 72 04 03 00 58 6E 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F3 BB 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 9F 4F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 0E [23:51:39]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 BE 00 00 00 69 04 9B 00 6F 04 04 00 BE 00 00 00 B1 04 03 00 58 2A 23 70 04 03 00 00 BC 1B 72 04 03 00 58 6E 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F3 BB 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 9F 4F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:51:39]wFMCommunicate OK [23:51:39]wFMCommunicate request_size=4 [23:51:39]MH_SAM_APDU [23:51:39]CAPDU: 80 17 00 00 [23:51:39]Write to MH i2c: E2 08 00 62 0A 80 17 00 00 00 00 00 00 EC [23:51:39]Write i2c OK [23:51:39]MH_I2C_Read... [23:51:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:39]Read from MH i2c: E2 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 FD 00 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 FD 00 62 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 0E [23:51:39]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:51:39]wFMCommunicate OK [23:51:39]wFMCommunicate request_size=4 [23:51:39]MH_SAM_APDU [23:51:39]CAPDU: 80 17 00 00 [23:51:39]Write to MH i2c: E2 08 00 63 0A 80 17 00 00 00 00 00 00 ED [23:51:39]Write i2c OK [23:51:39]MH_I2C_Read... [23:51:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:39]Read from MH i2c: E2 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 FD 00 [23:51:39]MH_I2C_Read... [23:51:39]Read from MH i2c: E2 FD 00 63 0A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 A4 [23:51:39]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:51:39]wFMCommunicate OK [23:51:39]wFMCommunicate request_size=4 [23:51:39]MH_SAM_APDU [23:51:39]CAPDU: 80 17 00 00 [23:51:39]Write to MH i2c: E2 08 00 64 0A 80 17 00 00 00 00 00 00 EE [23:51:39]Write i2c OK [23:51:39]MH_I2C_Read... [23:51:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:40]Read from MH i2c: E2 [23:51:40]MH_I2C_Read... [23:51:40]Read from MH i2c: E2 FD 00 [23:51:40]MH_I2C_Read... [23:51:40]Read from MH i2c: E2 FD 00 64 0A 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 60 [23:51:40]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:51:40]wFMCommunicate OK [23:51:40]wFMCommunicate request_size=4 [23:51:40]MH_SAM_APDU [23:51:40]CAPDU: 80 17 00 00 [23:51:40]Write to MH i2c: E2 08 00 65 0A 80 17 00 00 00 00 00 00 EF [23:51:40]Write i2c OK [23:51:40]MH_I2C_Read... [23:51:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:51:40]Read from MH i2c: E2 [23:51:40]MH_I2C_Read... [23:51:40]Read from MH i2c: E2 CB 00 [23:51:40]MH_I2C_Read... [23:51:40]Read from MH i2c: E2 CB 00 65 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D8 [23:51:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:40]wFMCommunicate OK [23:51:40]SAM_PROTO_GetShiftData done [23:51:40]requested_item shift.sale.total_cash is exist - process it [23:51:40]requested_item shift.sale_refund.total is exist - process it [23:51:40]requested_item shift.sale_refund.total_cash is exist - process it [23:51:40]requested_item shift.buy.total is exist - process it [23:51:40]requested_item shift.buy.total_cash is exist - process it [23:51:40]produce_requested_data done [23:51:40]produce_requested_data return {"fm.sale.total":10311163.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":23046.00,"shift.sale.total_cash":18176.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} [23:51:40]process_action_free get_value [23:51:40]json_value_free [23:51:40]json_value_free done [23:51:40]process_json_proto returns [23:51:40]Send response to host [23:51:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10311163.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":23046.00,"shift.sale.total_cash":18176.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}}} [23:51:40]free response buf [23:51:40]execute_script done [23:51:40]execute_script returns [23:51:40]free content buf [23:51:40]Sock 8.Close socket [23:51:40]Sock 8.Thread stoped [23:51:40]accept exits with 9 [23:51:40]New connection [23:51:40]New thread 3066899812 created [23:51:40]Thread 3066756452 joined [23:51:40]Waiting for new connection... [23:51:40] Sock 9.Parse request [23:51:40]Sock 9.Check first char [23:51:40]Sock 9.First char is OK [23:51:40]request: POST /json_proto HTTP/1.0 [23:51:40]Method: POST [23:51:40]URL: /json_proto [23:51:40]Method is POST - this is cgi request [23:51:40]url: /json_proto [23:51:40]query_string will be loaded in cgi processing [23:51:40]execute_cgi json_proto POST (null) [23:51:40]execute_cgi path=json_proto method=POST [23:51:40]POST find Content-Length [23:51:40]Host: 172.17.46.196:8080 [23:51:40]Content-Length: 331 [23:51:40]Content-Type: application/json [23:51:40] [23:51:40]POST finish read [23:51:40]Found Content-Length = 331 [23:51: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" ] } } [23:51:40]execute_script... [23:51: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" ] } } [23:51:40]POST & json_proto [23:51:40]process_json_proto [23:51:40]json parsed OK: [23:51:40]protocol is kg_v1.0 [23:51:40]action value=get_value [23:51:40]process_action get_value [23:51:40]cmd_get_value [23:51:40]process_action get_value done [23:51:40]requested_data is exist [23:51:40]produce_requested_data [23:51:40]requested_item fm.sale.total is exist - process it [23:51:40]SAM_PROTO_GetFMData [23:51:40]wFMCommunicate request_size=4 [23:51:40]MH_SAM_APDU [23:51:40]CAPDU: 80 13 03 00 [23:51:40]Write to MH i2c: E2 08 00 66 0A 80 13 03 00 00 00 00 00 EF [23:51:40]Write i2c OK [23:51:40]MH_I2C_Read... [23:51:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:41]Read from MH i2c: E2 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 FD 00 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 FD 00 66 0A 00 C0 04 85 04 BC 04 6E 04 04 00 FD BF 00 00 69 04 A0 00 6F 04 04 00 EA BF 00 00 B1 04 04 00 32 96 75 3D 70 04 04 00 4E 37 D7 34 72 04 04 00 E4 5E 9E 08 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 64 C9 86 06 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 DD 26 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 52 [23:51:41]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 FD BF 00 00 69 04 A0 00 6F 04 04 00 EA BF 00 00 B1 04 04 00 32 96 75 3D 70 04 04 00 4E 37 D7 34 72 04 04 00 E4 5E 9E 08 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 64 C9 86 06 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 DD 26 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 [23:51:41]wFMCommunicate OK [23:51:41]wFMCommunicate request_size=4 [23:51:41]MH_SAM_APDU [23:51:41]CAPDU: 80 17 00 00 [23:51:41]Write to MH i2c: E2 08 00 67 0A 80 17 00 00 00 00 00 00 F1 [23:51:41]Write i2c OK [23:51:41]MH_I2C_Read... [23:51:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:41]Read from MH i2c: E2 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 FD 00 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 FD 00 67 0A 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 24 [23:51:41]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:41]wFMCommunicate OK [23:51:41]wFMCommunicate request_size=4 [23:51:41]MH_SAM_APDU [23:51:41]CAPDU: 80 17 00 00 [23:51:41]Write to MH i2c: E2 08 00 68 0A 80 17 00 00 00 00 00 00 F2 [23:51:41]Write i2c OK [23:51:41]MH_I2C_Read... [23:51:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:41]Read from MH i2c: E2 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 FD 00 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 FD 00 68 0A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 95 [23:51:41]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:41]wFMCommunicate OK [23:51:41]wFMCommunicate request_size=4 [23:51:41]MH_SAM_APDU [23:51:41]CAPDU: 80 17 00 00 [23:51:41]Write to MH i2c: E2 08 00 69 0A 80 17 00 00 00 00 00 00 F3 [23:51:41]Write i2c OK [23:51:41]MH_I2C_Read... [23:51:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:42]Read from MH i2c: E2 [23:51:42]MH_I2C_Read... [23:51:42]OFD Sender: No OFD packet to send [23:51:42]Read from MH i2c: E2 FD 00 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 FD 00 69 0A 00 01 00 04 F7 03 00 00 EF 03 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 90 00 6B [23:51:42]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:42]wFMCommunicate OK [23:51:42]wFMCommunicate request_size=4 [23:51:42]MH_SAM_APDU [23:51:42]CAPDU: 80 17 00 00 [23:51:42]Write to MH i2c: E2 08 00 6A 0A 80 17 00 00 00 00 00 00 F4 [23:51:42]Write i2c OK [23:51:42]MH_I2C_Read... [23:51:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:51:42]Read from MH i2c: E2 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 DD 00 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 DD 00 6A 0A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DC [23:51:42]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:51:42]wFMCommunicate OK [23:51:42]SAM_PROTO_GetFMData done [23:51:42]requested_item fm.sale_refund.total is exist - process it [23:51:42]requested_item fm.buy.total is exist - process it [23:51:42]requested_item shift.sale.total is exist - process it [23:51:42]SAM_PROTO_GetShiftData [23:51:42]wFMCommunicate request_size=4 [23:51:42]MH_SAM_APDU [23:51:42]CAPDU: 80 13 02 00 [23:51:42]Write to MH i2c: E2 08 00 6B 0A 80 13 02 00 00 00 00 00 F3 [23:51:42]Write i2c OK [23:51:42]MH_I2C_Read... [23:51:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:42]Read from MH i2c: E2 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 FD 00 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 FD 00 6B 0A 00 AE 04 AA 04 AA 04 6E 04 04 00 BE 00 00 00 69 04 9B 00 6F 04 04 00 BE 00 00 00 B1 04 03 00 58 2A 23 70 04 03 00 00 BC 1B 72 04 03 00 58 6E 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F3 BB 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 9F 4F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 18 [23:51:43]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 BE 00 00 00 69 04 9B 00 6F 04 04 00 BE 00 00 00 B1 04 03 00 58 2A 23 70 04 03 00 00 BC 1B 72 04 03 00 58 6E 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F3 BB 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 9F 4F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:51:43]wFMCommunicate OK [23:51:43]wFMCommunicate request_size=4 [23:51:43]MH_SAM_APDU [23:51:43]CAPDU: 80 17 00 00 [23:51:43]Write to MH i2c: E2 08 00 6C 0A 80 17 00 00 00 00 00 00 F6 [23:51:43]Write i2c OK [23:51:43]MH_I2C_Read... [23:51:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:43]Read from MH i2c: E2 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 FD 00 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 FD 00 6C 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 18 [23:51:43]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:51:43]wFMCommunicate OK [23:51:43]wFMCommunicate request_size=4 [23:51:43]MH_SAM_APDU [23:51:43]CAPDU: 80 17 00 00 [23:51:43]Write to MH i2c: E2 08 00 6D 0A 80 17 00 00 00 00 00 00 F7 [23:51:43]Write i2c OK [23:51:43]MH_I2C_Read... [23:51:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:43]Read from MH i2c: E2 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 FD 00 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 FD 00 6D 0A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 AE [23:51:43]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:51:43]wFMCommunicate OK [23:51:43]wFMCommunicate request_size=4 [23:51:43]MH_SAM_APDU [23:51:43]CAPDU: 80 17 00 00 [23:51:43]Write to MH i2c: E2 08 00 6E 0A 80 17 00 00 00 00 00 00 F8 [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 FD 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 FD 00 6E 0A 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 6A [23:51:44]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:51:44]wFMCommunicate OK [23:51:44]wFMCommunicate request_size=4 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 17 00 00 [23:51:44]Write to MH i2c: E2 08 00 6F 0A 80 17 00 00 00 00 00 00 F9 [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 CB 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 CB 00 6F 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E2 [23:51:44]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:44]wFMCommunicate OK [23:51:44]SAM_PROTO_GetShiftData done [23:51:44]requested_item shift.sale.total_cash is exist - process it [23:51:44]requested_item shift.sale_refund.total is exist - process it [23:51:44]requested_item shift.sale_refund.total_cash is exist - process it [23:51:44]requested_item shift.buy.total is exist - process it [23:51:44]requested_item shift.buy.total_cash is exist - process it [23:51:44]produce_requested_data done [23:51:44]produce_requested_data return {"fm.sale.total":10311163.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":23046.00,"shift.sale.total_cash":18176.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} [23:51:44]process_action_free get_value [23:51:44]json_value_free [23:51:44]json_value_free done [23:51:44]process_json_proto returns [23:51:44]Send response to host [23:51:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10311163.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":23046.00,"shift.sale.total_cash":18176.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}}} [23:51:44]free response buf [23:51:44]execute_script done [23:51:44]execute_script returns [23:51:44]free content buf [23:51:44]Sock 9.Close socket [23:51:44]Sock 9.Thread stoped [23:51:44]accept exits with 8 [23:51:44]New connection [23:51:44]New thread 3066756452 created [23:51:44]Thread 3066899812 joined [23:51:44]Waiting for new connection... [23:51:44] Sock 8.Parse request [23:51:44]Sock 8.Check first char [23:51:44]Sock 8.First char is OK [23:51:44]request: POST /json_proto HTTP/1.0 [23:51:44]Method: POST [23:51:44]URL: /json_proto [23:51:44]Method is POST - this is cgi request [23:51:44]url: /json_proto [23:51:44]query_string will be loaded in cgi processing [23:51:44]execute_cgi json_proto POST (null) [23:51:44]execute_cgi path=json_proto method=POST [23:51:44]POST find Content-Length [23:51:44]Host: 172.17.46.196:8080 [23:51:44]Content-Length: 259 [23:51:44]Content-Type: application/json [23:51:44] [23:51:44]POST finish read [23:51:44]Found Content-Length = 259 [23:51:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u043C\u0430\u043D\u0442\u0430\u0439 \u0443. \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:44]execute_script... [23:51:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u043C\u0430\u043D\u0442\u0430\u0439 \u0443. \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:44]POST & json_proto [23:51:44]process_json_proto [23:51:44]json parsed OK: [23:51:44]protocol is kg_v1.0 [23:51:44]action value=x_report [23:51:44]process_action x_report [23:51:44]cmd_x_report [23:51:44]MH_GetDate [23:51:44]Write to MH i2c: F0 00 00 70 0A 69 [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: F0 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: F0 09 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: F0 09 00 70 0A 00 92 DA C3 66 C4 85 C2 66 78 [23:51:44]GetLastDocTimeStamp 1724110649 [23:51:44]current date 1724111506 [23:51:44]FM_GetShiftState [23:51:44]SAM_PROTO_GetShiftState [23:51:44]wFMCommunicate request_size=4 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 13 01 00 [23:51:44]Write to MH i2c: E2 08 00 71 0A 80 13 01 00 00 00 00 00 F8 [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:44]Read from MH i2c: E2 0E 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 0E 00 71 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 B2 [23:51:44]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [23:51:44]wFMCommunicate OK [23:51:44]SAM_PROTO_GetShiftState done [23:51:44]FM_GetShiftState done [23:51:44]KKMCreateXReportDocument [23:51:44]Load OK [23:51:44]Malloc new data [23:51:44]MH_GetDate [23:51:44]Write to MH i2c: F0 00 00 72 0A 6B [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: F0 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: F0 09 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: F0 09 00 72 0A 00 92 DA C3 66 C4 85 C2 66 7A [23:51:44]Malloc new data [23:51:44]Malloc new data [23:51:44]wFMCommunicate request_size=4 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 11 00 00 [23:51:44]Write to MH i2c: E2 08 00 73 0A 80 11 00 00 00 00 00 00 F7 [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 17 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 17 00 73 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 42 [23:51:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:51:44]wFMCommunicate OK [23:51:44]SAM_PROTO_GetFieldsCounters [23:51:44]wFMCommunicate request_size=4 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 13 00 00 [23:51:44]Write to MH i2c: E2 08 00 74 0A 80 13 00 00 00 00 00 00 FA [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:45]Read from MH i2c: E2 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 62 00 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 62 00 74 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A3 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [23:51:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A3 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:45]wFMCommunicate OK [23:51:45]SAM_PROTO_GetFieldsCounters done [23:51:45]Malloc new data [23:51:45]Malloc new data [23:51:45]Malloc new data [23:51:45]KKMCreateXReportDocument OK [23:51:45]KKMSetXReportData OK [23:51:45]KKMPrepareXReportFMData [23:51:45]SAM_PROTO_GetShiftData [23:51:45]wFMCommunicate request_size=4 [23:51:45]MH_SAM_APDU [23:51:45]CAPDU: 80 13 02 00 [23:51:45]Write to MH i2c: E2 08 00 75 0A 80 13 02 00 00 00 00 00 FD [23:51:45]Write i2c OK [23:51:45]MH_I2C_Read... [23:51:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:45]Read from MH i2c: E2 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 FD 00 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 FD 00 75 0A 00 AE 04 AA 04 AA 04 6E 04 04 00 BE 00 00 00 69 04 9B 00 6F 04 04 00 BE 00 00 00 B1 04 03 00 58 2A 23 70 04 03 00 00 BC 1B 72 04 03 00 58 6E 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F3 BB 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 9F 4F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 22 [23:51:45]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 BE 00 00 00 69 04 9B 00 6F 04 04 00 BE 00 00 00 B1 04 03 00 58 2A 23 70 04 03 00 00 BC 1B 72 04 03 00 58 6E 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F3 BB 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 9F 4F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:51:45]wFMCommunicate OK [23:51:45]wFMCommunicate request_size=4 [23:51:45]MH_SAM_APDU [23:51:45]CAPDU: 80 17 00 00 [23:51:45]Write to MH i2c: E2 08 00 76 0A 80 17 00 00 00 00 00 00 00 [23:51:45]Write i2c OK [23:51:45]MH_I2C_Read... [23:51:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:45]Read from MH i2c: E2 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 FD 00 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 FD 00 76 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 22 [23:51:46]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:51:46]wFMCommunicate OK [23:51:46]wFMCommunicate request_size=4 [23:51:46]MH_SAM_APDU [23:51:46]CAPDU: 80 17 00 00 [23:51:46]Write to MH i2c: E2 08 00 77 0A 80 17 00 00 00 00 00 00 01 [23:51:46]Write i2c OK [23:51:46]MH_I2C_Read... [23:51:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:46]Read from MH i2c: E2 [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: E2 FD 00 [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: E2 FD 00 77 0A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 B8 [23:51:46]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:51:46]wFMCommunicate OK [23:51:46]wFMCommunicate request_size=4 [23:51:46]MH_SAM_APDU [23:51:46]CAPDU: 80 17 00 00 [23:51:46]Write to MH i2c: E2 08 00 78 0A 80 17 00 00 00 00 00 00 02 [23:51:46]Write i2c OK [23:51:46]MH_I2C_Read... [23:51:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:46]Read from MH i2c: E2 [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: E2 FD 00 [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: E2 FD 00 78 0A 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 74 [23:51:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:51:47]wFMCommunicate OK [23:51:47]wFMCommunicate request_size=4 [23:51:47]MH_SAM_APDU [23:51:47]CAPDU: 80 17 00 00 [23:51:47]Write to MH i2c: E2 08 00 79 0A 80 17 00 00 00 00 00 00 03 [23:51:47]Write i2c OK [23:51:47]MH_I2C_Read... [23:51:47]OFD Sender: No OFD packet to send [23:51:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:51:47]Read from MH i2c: E2 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 CB 00 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 CB 00 79 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EC [23:51:47]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:47]wFMCommunicate OK [23:51:47]SAM_PROTO_GetShiftData done [23:51:47]1194 (1194) - счетчики итогов смены [23:51:47] 1134 (4) - 190 - количество чеков со всеми признаками расчетов [23:51:47] 1129 (155) - счетчики операций «приход» [23:51:47] 1135 (4) - 190 - количество чеков по признаку расчетов [23:51:47] 1201 (3) - 23046.00 - общая итоговая сумма в чеках [23:51:47] 1136 (3) - 18176.00 - итоговая сумма в чеках наличными [23:51:47] 1138 (3) - 4870.00 - итоговая сумма в чеках безналичными [23:51:47] 1024 (122) - суммы налогов [23:51:47] 1006 (9) - суммы НДС [23:51:47] 1010 (1) - 0% - код ставки НДС [23:51:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:47] 1006 (12) - суммы НДС [23:51:47] 1010 (1) - 12% - код ставки НДС [23:51:47] 1011 (3) - 2447.23 - сумма НДС по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 0% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (11) - суммы НСП [23:51:47] 1014 (1) - 1% - код ставки НСП [23:51:47] 1015 (2) - 203.83 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 2% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 3% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 5% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 0,50% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 1,50% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1130 (141) - счетчики операций «возврат прихода» [23:51:47] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:47] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:47] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:47] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:47] 1024 (117) - суммы налогов [23:51:47] 1006 (9) - суммы НДС [23:51:47] 1010 (1) - 0% - код ставки НДС [23:51:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:47] 1006 (9) - суммы НДС [23:51:47] 1010 (1) - 12% - код ставки НДС [23:51:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 0% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 1% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 2% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 3% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 5% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 0,50% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 1,50% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1131 (141) - счетчики операций «расход» [23:51:47] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:47] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:47] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:47] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:47] 1024 (117) - суммы налогов [23:51:47] 1006 (9) - суммы НДС [23:51:47] 1010 (1) - 0% - код ставки НДС [23:51:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:47] 1006 (9) - суммы НДС [23:51:47] 1010 (1) - 12% - код ставки НДС [23:51:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 0% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 1% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 2% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 3% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 5% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 0,50% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 1,50% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1132 (141) - счетчики операций «возврат расхода» [23:51:47] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:47] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:47] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:47] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:47] 1024 (117) - суммы налогов [23:51:47] 1006 (9) - суммы НДС [23:51:47] 1010 (1) - 0% - код ставки НДС [23:51:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:47] 1006 (9) - суммы НДС [23:51:47] 1010 (1) - 12% - код ставки НДС [23:51:47] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 0% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 1% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 2% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 3% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 5% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 0,50% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1007 (9) - суммы НСП [23:51:47] 1014 (1) - 1,50% - код ставки НСП [23:51:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:47] 1133 (588) - - счетчики коррекции - не используются [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1194 (04AA) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1134 (046E) [23:51:47]Malloc new data [23:51:47]Processing tag 1129 (0469) [23:51:47]Load OK [23:51:47]SetTLVBufToDocument [23:51:47]Processing tag 1135 (046F) [23:51:47]Malloc new data [23:51:48]Processing tag 1201 (04B1) [23:51:48]Malloc new data [23:51:48]Processing tag 1136 (0470) [23:51:48]Malloc new data [23:51:48]Processing tag 1138 (0472) [23:51:48]Malloc new data [23:51:48]Processing tag 1024 (0400) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1006 (03EE) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1010 (03F2) [23:51:48]Malloc new data [23:51:48]Processing tag 1011 (03F3) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1006 (03EE) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1010 (03F2) [23:51:48]Malloc new data [23:51:48]Processing tag 1011 (03F3) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]SetTLVBufToDocument err=0 [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1130 (046A) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1135 (046F) [23:51:48]Malloc new data [23:51:48]Processing tag 1201 (04B1) [23:51:48]Malloc new data [23:51:48]Processing tag 1136 (0470) [23:51:48]Malloc new data [23:51:48]Processing tag 1138 (0472) [23:51:48]Malloc new data [23:51:48]Processing tag 1024 (0400) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1006 (03EE) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1010 (03F2) [23:51:48]Malloc new data [23:51:48]Processing tag 1011 (03F3) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1006 (03EE) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1010 (03F2) [23:51:48]Malloc new data [23:51:48]Processing tag 1011 (03F3) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]SetTLVBufToDocument err=0 [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1131 (046B) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1135 (046F) [23:51:48]Malloc new data [23:51:48]Processing tag 1201 (04B1) [23:51:48]Malloc new data [23:51:48]Processing tag 1136 (0470) [23:51:48]Malloc new data [23:51:48]Processing tag 1138 (0472) [23:51:48]Malloc new data [23:51:48]Processing tag 1024 (0400) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1006 (03EE) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1010 (03F2) [23:51:48]Malloc new data [23:51:48]Processing tag 1011 (03F3) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1006 (03EE) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1010 (03F2) [23:51:48]Malloc new data [23:51:48]Processing tag 1011 (03F3) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]SetTLVBufToDocument err=0 [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1132 (046C) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1135 (046F) [23:51:48]Malloc new data [23:51:48]Processing tag 1201 (04B1) [23:51:48]Malloc new data [23:51:48]Processing tag 1136 (0470) [23:51:48]Malloc new data [23:51:48]Processing tag 1138 (0472) [23:51:48]Malloc new data [23:51:48]Processing tag 1024 (0400) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1006 (03EE) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1010 (03F2) [23:51:48]Malloc new data [23:51:48]Processing tag 1011 (03F3) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1006 (03EE) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1010 (03F2) [23:51:48]Malloc new data [23:51:48]Processing tag 1011 (03F3) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1007 (03EF) [23:51:48]Load OK [23:51:48]SetTLVBufToDocument [23:51:48]Processing tag 1014 (03F6) [23:51:48]Malloc new data [23:51:48]Processing tag 1015 (03F7) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]SetTLVBufToDocument err=0 [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Processing tag 1133 (046D) [23:51:48]Malloc new data [23:51:48]SetTLVBufToDocument err=0 [23:51:48]SetTLVBufToDocument err=0 [23:51:48]Malloc new data [23:51:48]SAM_PROTO_GetFMData [23:51:48]wFMCommunicate request_size=4 [23:51:48]MH_SAM_APDU [23:51:48]CAPDU: 80 13 03 00 [23:51:48]Write to MH i2c: E2 08 00 7A 0A 80 13 03 00 00 00 00 00 03 [23:51:48]Write i2c OK [23:51:48]MH_I2C_Read... [23:51:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:49]Read from MH i2c: E2 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: E2 FD 00 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: E2 FD 00 7A 0A 00 C0 04 85 04 BC 04 6E 04 04 00 FD BF 00 00 69 04 A0 00 6F 04 04 00 EA BF 00 00 B1 04 04 00 32 96 75 3D 70 04 04 00 4E 37 D7 34 72 04 04 00 E4 5E 9E 08 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 64 C9 86 06 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 DD 26 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 66 [23:51:49]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 FD BF 00 00 69 04 A0 00 6F 04 04 00 EA BF 00 00 B1 04 04 00 32 96 75 3D 70 04 04 00 4E 37 D7 34 72 04 04 00 E4 5E 9E 08 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 64 C9 86 06 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 DD 26 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 [23:51:49]wFMCommunicate OK [23:51:49]wFMCommunicate request_size=4 [23:51:49]MH_SAM_APDU [23:51:49]CAPDU: 80 17 00 00 [23:51:49]Write to MH i2c: E2 08 00 7B 0A 80 17 00 00 00 00 00 00 05 [23:51:49]Write i2c OK [23:51:49]MH_I2C_Read... [23:51:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:49]Read from MH i2c: E2 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: E2 FD 00 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: E2 FD 00 7B 0A 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 38 [23:51:49]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:49]wFMCommunicate OK [23:51:49]wFMCommunicate request_size=4 [23:51:49]MH_SAM_APDU [23:51:49]CAPDU: 80 17 00 00 [23:51:49]Write to MH i2c: E2 08 00 7C 0A 80 17 00 00 00 00 00 00 06 [23:51:49]Write i2c OK [23:51:49]MH_I2C_Read... [23:51:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:50]Read from MH i2c: E2 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: E2 FD 00 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: E2 FD 00 7C 0A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A9 [23:51:50]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:50]wFMCommunicate OK [23:51:50]wFMCommunicate request_size=4 [23:51:50]MH_SAM_APDU [23:51:50]CAPDU: 80 17 00 00 [23:51:50]Write to MH i2c: E2 08 00 7D 0A 80 17 00 00 00 00 00 00 07 [23:51:50]Write i2c OK [23:51:50]MH_I2C_Read... [23:51:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:50]Read from MH i2c: E2 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: E2 FD 00 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: E2 FD 00 7D 0A 00 01 00 04 F7 03 00 00 EF 03 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 90 00 7F [23:51:50]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:51:50]wFMCommunicate OK [23:51:50]wFMCommunicate request_size=4 [23:51:50]MH_SAM_APDU [23:51:50]CAPDU: 80 17 00 00 [23:51:50]Write to MH i2c: E2 08 00 7E 0A 80 17 00 00 00 00 00 00 08 [23:51:50]Write i2c OK [23:51:50]MH_I2C_Read... [23:51:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:51:51]Read from MH i2c: E2 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 DD 00 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 DD 00 7E 0A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F0 [23:51:51]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:51:51]wFMCommunicate OK [23:51:51]SAM_PROTO_GetFMData done [23:51:51]FM_GetFMData:85 04 BC 04 6E 04 04 00 FD BF 00 00 69 04 A0 00 6F 04 04 00 EA BF 00 00 B1 04 04 00 32 96 75 3D 70 04 04 00 4E 37 D7 34 72 04 04 00 E4 5E 9E 08 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 64 C9 86 06 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 DD 26 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:51:51]oper:6F 04 04 00 EA BF 00 00 B1 04 04 00 32 96 75 3D 70 04 04 00 4E 37 D7 34 72 04 04 00 E4 5E 9E 08 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 64 C9 86 06 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 DD 26 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:51:51]total:32 96 75 3D [23:51:51]Malloc new data [23:51:51]oper:6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:51:52]total:40 D1 25 [23:51:52]Malloc new data [23:51:52]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:51:52]total: [23:51:52]Malloc new data [23:51:52]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 OFD Sender: No OFD packet to send [23:51:52]03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:51:52]total: [23:51:52]Malloc new data [23:51:52]KKMPrepareXReportFMData err=0 [23:51:52]Х отчет ИНН: 02508201610067 Кассир: Амантай у. Ч. 19.08.2024 23:51 Смена: 266 РНМ: 0000000000092546 ЗНМ: 0300000078 СНО: Общий режим Всего чеков: 190 ИТОГИ ПРИХОД Чеков: 190 Общий итог: 23046.00 Итого наличными: 18176.00 Итого безнал.: 4870.00 НДС 0% : 0.00 НДС 12% : 2447.23 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 203.83 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 18176.00 НС Приход: 10311163.38 НС Возвр.Прихода: 24784.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871800 [23:51:52]StoreToDocumentArchive [23:51:52]MH_GetDate [23:51:52]Write to MH i2c: F0 00 00 7F 0A 78 [23:51:52]Write i2c OK [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: F0 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: F0 09 00 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: F0 09 00 7F 0A 00 9A DA C3 66 C4 85 C2 66 8F [23:51:52]shift 266 fd 1724111514 [23:51:52]Create dir for shift 0266 [23:51:52]save to /storage/0266/doc_1724111514 [23:51:52]save last doc name /storage/0266/doc_1724111514 to /storage/kkm_last_doc_name [23:51:52]save OK [23:51:52]Clear old archive folders... [23:51:52]NVStorageSaveData kkm_last_timestamp [23:51:52]File name is /storage/kkm_last_timestamp [23:51:52]Write 4 bytes [23:51:52]NVStorageSaveData done [23:51:52]ExternCall_PrintAddStr [23:51:52]wPrintStart [23:51:52]Write to MH i2c: 01 00 00 80 0A 8A [23:51:52]Write i2c OK [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: 01 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: 01 07 00 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: 01 07 00 80 0A 00 00 00 00 00 FF 0F 9F [23:51:52]RasterBufferAndPrint [23:51:52]line Х отчет [23:51:52]line ИНН: 02508201610067 [23:51:52]line Кассир: Амантай у. Ч. [23:51:52]line 19.08.2024 23:51 [23:51:52]line Смена: 266 [23:51:52]line РНМ: 0000000000092546 [23:51:52]line ЗНМ: 0300000078 [23:51:52]line СНО: Общий режим [23:51:52]line Всего чеков: 190 [23:51:52]line ИТОГИ ПРИХОД [23:51:52]line Чеков: 190 [23:51:52]line Общий итог: 23046.00 [23:51:52]line Итого наличными: 18176.00 [23:51:52]line Итого безнал.: 4870.00 [23:51:52]line НДС 0% : 0.00 [23:51:52]line НДС 12% : 2447.23 [23:51:52]line НСП 0% : 0.00 [23:51:52]line НСП 1,50% : 0.00 [23:51:52]line НСП 0,50% : 0.00 [23:51:52]line НСП 5% : 0.00 [23:51:52]line НСП 3% : 0.00 [23:51:52]line НСП 2% : 0.00 [23:51:52]line НСП 1% : 203.83 [23:51:52]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:51:52]line Чеков: 0 [23:51:52]line Общий итог: 0.00 [23:51:52]line Итого наличными: 0.00 [23:51:52]line Итого безнал.: 0.00 [23:51:52]line НДС 0% : 0.00 [23:51:52]line НДС 12% : 0.00 [23:51:52]line НСП 0% : 0.00 [23:51:52]line НСП 1,50% : 0.00 [23:51:52]line НСП 0,50% : 0.00 [23:51:52]line НСП 5% : 0.00 [23:51:52]line НСП 3% : 0.00 [23:51:52]line НСП 2% : 0.00 [23:51:52]line НСП 1% : 0.00 [23:51:52]line ИТОГИ РАСХОД [23:51:52]line Чеков: 0 [23:51:52]line Общий итог: 0.00 [23:51:52]line Итого наличными: 0.00 [23:51:52]line Итого безнал.: 0.00 [23:51:52]line НДС 0% : 0.00 [23:51:52]line НДС 12% : 0.00 [23:51:52]line НСП 0% : 0.00 [23:51:52]line НСП 1,50% : 0.00 [23:51:52]line НСП 0,50% : 0.00 [23:51:52]line НСП 5% : 0.00 [23:51:52]line НСП 3% : 0.00 [23:51:52]line НСП 2% : 0.00 [23:51:52]line НСП 1% : 0.00 [23:51:52]line ИТОГИ ВОЗВРАТ РАСХОДА [23:51:52]line Чеков: 0 [23:51:52]line Общий итог: 0.00 [23:51:52]line Итого наличными: 0.00 [23:51:52]line Итого безнал.: 0.00 [23:51:52]line НДС 0% : 0.00 [23:51:52]line НДС 12% : 0.00 [23:51:52]line НСП 0% : 0.00 [23:51:52]line НСП 1,50% : 0.00 [23:51:52]line НСП 0,50% : 0.00 [23:51:52]line НСП 5% : 0.00 [23:51:52]line НСП 3% : 0.00 [23:51:52]line НСП 2% : 0.00 [23:51:52]line НСП 1% : 0.00 [23:51:52]line Сумма внесений: 0.00 [23:51:52]line Сумма выплат: 0.00 [23:51:52]line Нал. в кассе: 18176.00 [23:51:52]line НС Приход: 10311163.38 [23:51:52]line НС Возвр.Прихода: 24784.00 [23:51:52]line НС Расход: 0.00 [23:51:52]line НС Возвр.Расхода: 0.00 [23:51:52]line ФМ: 0000000000871800 [23:51:52]written 0, free lines is 4095 [23:51:53]Write to MH i2c: 01 00 00 CB 0A D5 [23:51:53]Write i2c OK [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: 01 [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: 01 07 00 [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: 01 07 00 CB 0A 00 00 00 00 00 A6 0A 8C [23:51:53]RasterBufferAndPrint [23:51:53]line [23:51:53]line [23:51:53]line [23:51:53]line [23:51:53]line [23:51:53]written 0, free lines is 2759 [23:51:53]MH_Cut [23:51:53]Write to MH i2c: D1 01 00 D2 0A 01 AE [23:51:53]Write i2c OK [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: D1 [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: D1 01 00 [23:51:53]MH_I2C_Read... [23:51:53]Read from MH i2c: D1 01 00 D2 0A 00 AD [23:51:53]Write to MH i2c: 01 00 00 D3 0A DD [23:51:53]Write i2c OK [23:51:53]MH_I2C_Read... [23:51:54]*** Cut start [23:51:54]*** Purtial cut [23:51:54]*** Stage 1: CUTSNS_PIN = 1 [23:51:54]Read from MH i2c: 01 [23:51:54]MH_I2C_Read... [23:51:54]*** Stop cut motor [23:51:54]*** Cut end [23:51:54]Read from MH i2c: 01 07 00 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: 01 07 00 D3 0A 00 00 00 00 00 FF 0F F2 [23:51:54]process_action x_report done [23:51:54]requested_data is exist [23:51:54]produce_requested_data [23:51:54]requested_item fd.num is exist - process it [23:51:54]SAM_PROTO_GetFieldsCounters [23:51:54]wFMCommunicate request_size=4 [23:51:54]MH_SAM_APDU [23:51:54]CAPDU: 80 13 00 00 [23:51:54]Write to MH i2c: E2 08 00 D4 0A 80 13 00 00 00 00 00 00 5A [23:51:54]Write i2c OK [23:51:54]MH_I2C_Read... [23:51:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:54]Read from MH i2c: E2 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 62 00 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 62 00 D4 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A3 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [23:51:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A3 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:54]wFMCommunicate OK [23:51:54]SAM_PROTO_GetFieldsCounters done [23:51:54]requested_item shift.num is exist - process it [23:51:54]requested_item shift.opened is exist - process it [23:51:54]req_shift_opened [23:51:54]FM_GetShiftState [23:51:54]SAM_PROTO_GetShiftState [23:51:54]wFMCommunicate request_size=4 [23:51:54]MH_SAM_APDU [23:51:54]CAPDU: 80 13 01 00 [23:51:54]Write to MH i2c: E2 08 00 D5 0A 80 13 01 00 00 00 00 00 5C [23:51:54]Write i2c OK [23:51:54]MH_I2C_Read... [23:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:54]Read from MH i2c: E2 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 0E 00 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 0E 00 D5 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 16 [23:51:54]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [23:51:54]wFMCommunicate OK [23:51:54]SAM_PROTO_GetShiftState done [23:51:54]FM_GetShiftState done [23:51:54]req_shift_opened done [23:51:54]requested_item shift.open_date is exist - process it [23:51:54]req_shift_open_date [23:51:54]req_shift_open_date done [23:51:54]produce_requested_data done [23:51:54]produce_requested_data return {"fd.num":50083,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [23:51:54]process_action_free x_report [23:51:54]json_value_free [23:51:54]json_value_free done [23:51:54]process_json_proto returns [23:51:54]Send response to host [23:51:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":50083,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [23:51:54]free response buf [23:51:54]execute_script done [23:51:54]execute_script returns [23:51:54]free content buf [23:51:54]Sock 8.Close socket [23:51:54]Sock 8.Thread stoped [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:31]accept exits with 9 [23:52:31]New connection [23:52:31]New thread 3066899812 created [23:52:31]Thread 3066756452 joined [23:52:31]Waiting for new connection... [23:52:31] Sock 9.Parse request [23:52:31]Sock 9.Check first char [23:52:31]Sock 9.First char is OK [23:52:31]request: POST /json_proto HTTP/1.0 [23:52:31]Method: POST [23:52:31]URL: /json_proto [23:52:31]Method is POST - this is cgi request [23:52:31]url: /json_proto [23:52:31]query_string will be loaded in cgi processing [23:52:31]execute_cgi json_proto POST (null) [23:52:31]execute_cgi path=json_proto method=POST [23:52:31]POST find Content-Length [23:52:31]Host: 172.17.46.196:8080 [23:52:31]Content-Length: 215 [23:52:31]Content-Type: application/json [23:52:31] [23:52:31]POST finish read [23:52:31]Found Content-Length = 215 [23:52:31]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" ] } } [23:52:31]execute_script... [23:52:31]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" ] } } [23:52:31]POST & json_proto [23:52:31]process_json_proto [23:52:31]json parsed OK: [23:52:31]protocol is kg_v1.0 [23:52:31]action value=get_value [23:52:31]process_action get_value [23:52:31]cmd_get_value [23:52:31]process_action get_value done [23:52:31]requested_data is exist [23:52:31]produce_requested_data [23:52:31]requested_item kkm.sn is exist - process it [23:52:31]requested_item kkm.ver is exist - process it [23:52:31]requested_item fm.sn is exist - process it [23:52:31]wFMCommunicate request_size=4 [23:52:31]MH_SAM_APDU [23:52:31]CAPDU: 80 11 00 00 [23:52:31]Write to MH i2c: E2 08 00 D6 0A 80 11 00 00 00 00 00 00 5A [23:52:31]Write i2c OK [23:52:31]MH_I2C_Read... [23:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:31]Read from MH i2c: E2 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 17 00 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 17 00 D6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A5 [23:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:52:31]wFMCommunicate OK [23:52:31]requested_item fd.num is exist - process it [23:52:31]SAM_PROTO_GetFieldsCounters [23:52:31]wFMCommunicate request_size=4 [23:52:31]MH_SAM_APDU [23:52:31]CAPDU: 80 13 00 00 [23:52:31]Write to MH i2c: E2 08 00 D7 0A 80 13 00 00 00 00 00 00 5D [23:52:31]Write i2c OK [23:52:31]MH_I2C_Read... [23:52:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:32]Read from MH i2c: E2 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 62 00 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 62 00 D7 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A3 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [23:52:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A3 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:32]wFMCommunicate OK [23:52:32]SAM_PROTO_GetFieldsCounters done [23:52:32]requested_item shift.num is exist - process it [23:52:32]requested_item shift.opened is exist - process it [23:52:32]req_shift_opened [23:52:32]FM_GetShiftState [23:52:32]SAM_PROTO_GetShiftState [23:52:32]wFMCommunicate request_size=4 [23:52:32]MH_SAM_APDU [23:52:32]CAPDU: 80 13 01 00 [23:52:32]Write to MH i2c: E2 08 00 D8 0A 80 13 01 00 00 00 00 00 5F [23:52:32]Write i2c OK [23:52:32]MH_I2C_Read... [23:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:32]Read from MH i2c: E2 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 0E 00 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 0E 00 D8 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 19 [23:52:32]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [23:52:32]wFMCommunicate OK [23:52:32]SAM_PROTO_GetShiftState done [23:52:32]FM_GetShiftState done [23:52:32]req_shift_opened done [23:52:32]requested_item shift.open_date is exist - process it [23:52:32]req_shift_open_date [23:52:32]req_shift_open_date done [23:52:32]produce_requested_data done [23:52:32]produce_requested_data return {"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":50083,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361} [23:52:32]process_action_free get_value [23:52:32]json_value_free [23:52:32]json_value_free done [23:52:32]process_json_proto returns [23:52:32]Send response to host [23:52:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":50083,"shift.num":467,"shift.opened":1,"shift.open_date":1724026361}}} [23:52:32]free response buf [23:52:32]execute_script done [23:52:32]execute_script returns [23:52:32]free content buf [23:52:32]Sock 9.Close socket [23:52:32]Sock 9.Thread stoped [23:52:32]accept exits with 8 [23:52:32]New connection [23:52:32]New thread 3066756452 created [23:52:32]Thread 3066899812 joined [23:52:32]Waiting for new connection... [23:52:32] Sock 8.Parse request [23:52:32]Sock 8.Check first char [23:52:32]Sock 8.First char is OK [23:52:32]request: POST /json_proto HTTP/1.0 [23:52:32]Method: POST [23:52:32]URL: /json_proto [23:52:32]Method is POST - this is cgi request [23:52:32]url: /json_proto [23:52:32]query_string will be loaded in cgi processing [23:52:32]execute_cgi json_proto POST (null) [23:52:32]execute_cgi path=json_proto method=POST [23:52:32]POST find Content-Length [23:52:32]Host: 172.17.46.196:8080 [23:52:32]Content-Length: 331 [23:52:32]Content-Type: application/json [23:52:32] [23:52:32]POST finish read [23:52:32]Found Content-Length = 331 [23:52:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:32]execute_script... [23:52:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:32]POST & json_proto [23:52:32]process_json_proto [23:52:32]json parsed OK: [23:52:32]protocol is kg_v1.0 [23:52:32]action value=get_value [23:52:32]process_action get_value [23:52:32]cmd_get_value [23:52:32]process_action get_value done [23:52:32]requested_data is exist [23:52:32]produce_requested_data [23:52:32]requested_item fm.sale.total is exist - process it [23:52:32]SAM_PROTO_GetFMData [23:52:32]wFMCommunicate request_size=4 [23:52:32]MH_SAM_APDU [23:52:32]CAPDU: 80 13 03 00 [23:52:32]Write to MH i2c: E2 08 00 D9 0A 80 13 03 00 00 00 00 00 62 [23:52:32]OFD Sender: No OFD packet to send [23:52:32]Write i2c OK [23:52:32]MH_I2C_Read... [23:52:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:32]Read from MH i2c: E2 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 FD 00 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 FD 00 D9 0A 00 C0 04 85 04 BC 04 6E 04 04 00 FD BF 00 00 69 04 A0 00 6F 04 04 00 EA BF 00 00 B1 04 04 00 32 96 75 3D 70 04 04 00 4E 37 D7 34 72 04 04 00 E4 5E 9E 08 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 64 C9 86 06 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 DD 26 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 C5 [23:52:32]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 FD BF 00 00 69 04 A0 00 6F 04 04 00 EA BF 00 00 B1 04 04 00 32 96 75 3D 70 04 04 00 4E 37 D7 34 72 04 04 00 E4 5E 9E 08 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 64 C9 86 06 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 DD 26 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 [23:52:32]wFMCommunicate OK [23:52:32]wFMCommunicate request_size=4 [23:52:32]MH_SAM_APDU [23:52:32]CAPDU: 80 17 00 00 [23:52:32]Write to MH i2c: E2 08 00 DA 0A 80 17 00 00 00 00 00 00 64 [23:52:32]Write i2c OK [23:52:32]MH_I2C_Read... [23:52:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:33]Read from MH i2c: E2 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 FD 00 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 FD 00 DA 0A 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 97 [23:52:33]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:33]wFMCommunicate OK [23:52:33]wFMCommunicate request_size=4 [23:52:33]MH_SAM_APDU [23:52:33]CAPDU: 80 17 00 00 [23:52:33]Write to MH i2c: E2 08 00 DB 0A 80 17 00 00 00 00 00 00 65 [23:52:33]Write i2c OK [23:52:33]MH_I2C_Read... [23:52:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:33]Read from MH i2c: E2 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 FD 00 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 FD 00 DB 0A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 08 [23:52:33]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:33]wFMCommunicate OK [23:52:33]wFMCommunicate request_size=4 [23:52:33]MH_SAM_APDU [23:52:33]CAPDU: 80 17 00 00 [23:52:33]Write to MH i2c: E2 08 00 DC 0A 80 17 00 00 00 00 00 00 66 [23:52:33]Write i2c OK [23:52:33]MH_I2C_Read... [23:52:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:33]Read from MH i2c: E2 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 FD 00 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 FD 00 DC 0A 00 01 00 04 F7 03 00 00 EF 03 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 90 00 DE [23:52:33]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:33]wFMCommunicate OK [23:52:33]wFMCommunicate request_size=4 [23:52:33]MH_SAM_APDU [23:52:33]CAPDU: 80 17 00 00 [23:52:33]Write to MH i2c: E2 08 00 DD 0A 80 17 00 00 00 00 00 00 67 [23:52:33]Write i2c OK [23:52:33]MH_I2C_Read... [23:52:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:52:33]Read from MH i2c: E2 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 DD 00 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 DD 00 DD 0A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:52:33]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:52:33]wFMCommunicate OK [23:52:33]SAM_PROTO_GetFMData done [23:52:33]requested_item fm.sale_refund.total is exist - process it [23:52:33]requested_item fm.buy.total is exist - process it [23:52:33]requested_item shift.sale.total is exist - process it [23:52:33]SAM_PROTO_GetShiftData [23:52:33]wFMCommunicate request_size=4 [23:52:33]MH_SAM_APDU [23:52:33]CAPDU: 80 13 02 00 [23:52:33]Write to MH i2c: E2 08 00 DE 0A 80 13 02 00 00 00 00 00 66 [23:52:33]Write i2c OK [23:52:33]MH_I2C_Read... [23:52:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:52:34]Read from MH i2c: E2 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 FD 00 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 FD 00 DE 0A 00 AE 04 AA 04 AA 04 6E 04 04 00 BE 00 00 00 69 04 9B 00 6F 04 04 00 BE 00 00 00 B1 04 03 00 58 2A 23 70 04 03 00 00 BC 1B 72 04 03 00 58 6E 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F3 BB 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 9F 4F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 8B [23:52:34]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 BE 00 00 00 69 04 9B 00 6F 04 04 00 BE 00 00 00 B1 04 03 00 58 2A 23 70 04 03 00 00 BC 1B 72 04 03 00 58 6E 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F3 BB 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 9F 4F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:52:34]wFMCommunicate OK [23:52:34]wFMCommunicate request_size=4 [23:52:34]MH_SAM_APDU [23:52:34]CAPDU: 80 17 00 00 [23:52:34]Write to MH i2c: E2 08 00 DF 0A 80 17 00 00 00 00 00 00 69 [23:52:34]Write i2c OK [23:52:34]MH_I2C_Read... [23:52:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:34]Read from MH i2c: E2 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 FD 00 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 FD 00 DF 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 8B [23:52:34]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:52:34]wFMCommunicate OK [23:52:34]wFMCommunicate request_size=4 [23:52:34]MH_SAM_APDU [23:52:34]CAPDU: 80 17 00 00 [23:52:34]Write to MH i2c: E2 08 00 E0 0A 80 17 00 00 00 00 00 00 6A [23:52:34]Write i2c OK [23:52:34]MH_I2C_Read... [23:52:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:35]Read from MH i2c: E2 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 FD 00 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 FD 00 E0 0A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 21 [23:52:35]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:52:35]wFMCommunicate OK [23:52:35]wFMCommunicate request_size=4 [23:52:35]MH_SAM_APDU [23:52:35]CAPDU: 80 17 00 00 [23:52:35]Write to MH i2c: E2 08 00 E1 0A 80 17 00 00 00 00 00 00 6B [23:52:35]Write i2c OK [23:52:35]MH_I2C_Read... [23:52:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:35]Read from MH i2c: E2 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 FD 00 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 FD 00 E1 0A 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 DD [23:52:35]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:52:35]wFMCommunicate OK [23:52:35]wFMCommunicate request_size=4 [23:52:35]MH_SAM_APDU [23:52:35]CAPDU: 80 17 00 00 [23:52:35]Write to MH i2c: E2 08 00 E2 0A 80 17 00 00 00 00 00 00 6C [23:52:35]Write i2c OK [23:52:35]MH_I2C_Read... [23:52:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:52:35]Read from MH i2c: E2 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 CB 00 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 CB 00 E2 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 55 [23:52:35]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:35]wFMCommunicate OK [23:52:35]SAM_PROTO_GetShiftData done [23:52:35]requested_item shift.sale.total_cash is exist - process it [23:52:35]requested_item shift.sale_refund.total is exist - process it [23:52:35]requested_item shift.sale_refund.total_cash is exist - process it [23:52:35]requested_item shift.buy.total is exist - process it [23:52:35]requested_item shift.buy.total_cash is exist - process it [23:52:35]produce_requested_data done [23:52:35]produce_requested_data return {"fm.sale.total":10311163.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":23046.00,"shift.sale.total_cash":18176.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} [23:52:35]process_action_free get_value [23:52:35]json_value_free [23:52:35]json_value_free done [23:52:35]process_json_proto returns [23:52:35]Send response to host [23:52:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10311163.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":23046.00,"shift.sale.total_cash":18176.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}}} [23:52:35]free response buf [23:52:35]execute_script done [23:52:35]execute_script returns [23:52:35]free content buf [23:52:35]Sock 8.Close socket [23:52:35]Sock 8.Thread stoped [23:52:35]accept exits with 9 [23:52:35]New connection [23:52:35]New thread 3066899812 created [23:52:35]Thread 3066756452 joined [23:52:35]Waiting for new connection... [23:52:35] Sock 9.Parse request [23:52:35]Sock 9.Check first char [23:52:35]Sock 9.First char is OK [23:52:35]request: POST /json_proto HTTP/1.0 [23:52:35]Method: POST [23:52:35]URL: /json_proto [23:52:35]Method is POST - this is cgi request [23:52:35]url: /json_proto [23:52:35]query_string will be loaded in cgi processing [23:52:35]execute_cgi json_proto POST (null) [23:52:35]execute_cgi path=json_proto method=POST [23:52:35]POST find Content-Length [23:52:35]Host: 172.17.46.196:8080 [23:52:35]Content-Length: 331 [23:52:35]Content-Type: application/json [23:52:35] [23:52:35]POST finish read [23:52:35]Found Content-Length = 331 [23:52: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" ] } } [23:52:35]execute_script... [23:52: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" ] } } [23:52:35]POST & json_proto [23:52:35]process_json_proto [23:52:35]json parsed OK: [23:52:35]protocol is kg_v1.0 [23:52:35]action value=get_value [23:52:35]process_action get_value [23:52:35]cmd_get_value [23:52:35]process_action get_value done [23:52:35]requested_data is exist [23:52:35]produce_requested_data [23:52:35]requested_item fm.sale.total is exist - process it [23:52:35]SAM_PROTO_GetFMData [23:52:35]wFMCommunicate request_size=4 [23:52:35]MH_SAM_APDU [23:52:35]CAPDU: 80 13 03 00 [23:52:35]Write to MH i2c: E2 08 00 E3 0A 80 13 03 00 00 00 00 00 6C [23:52:35]Write i2c OK [23:52:35]MH_I2C_Read... [23:52:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:36]Read from MH i2c: E2 [23:52:36]MH_I2C_Read... [23:52:36]Read from MH i2c: E2 FD 00 [23:52:36]MH_I2C_Read... [23:52:36]Read from MH i2c: E2 FD 00 E3 0A 00 C0 04 85 04 BC 04 6E 04 04 00 FD BF 00 00 69 04 A0 00 6F 04 04 00 EA BF 00 00 B1 04 04 00 32 96 75 3D 70 04 04 00 4E 37 D7 34 72 04 04 00 E4 5E 9E 08 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 64 C9 86 06 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 DD 26 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 CF [23:52:36]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 FD BF 00 00 69 04 A0 00 6F 04 04 00 EA BF 00 00 B1 04 04 00 32 96 75 3D 70 04 04 00 4E 37 D7 34 72 04 04 00 E4 5E 9E 08 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 64 C9 86 06 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 DD 26 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 [23:52:36]wFMCommunicate OK [23:52:36]wFMCommunicate request_size=4 [23:52:36]MH_SAM_APDU [23:52:36]CAPDU: 80 17 00 00 [23:52:36]Write to MH i2c: E2 08 00 E4 0A 80 17 00 00 00 00 00 00 6E [23:52:36]Write i2c OK [23:52:36]MH_I2C_Read... [23:52:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:36]Read from MH i2c: E2 [23:52:36]MH_I2C_Read... [23:52:36]Read from MH i2c: E2 FD 00 [23:52:36]MH_I2C_Read... [23:52:36]Read from MH i2c: E2 FD 00 E4 0A 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A1 [23:52:36]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:36]wFMCommunicate OK [23:52:36]wFMCommunicate request_size=4 [23:52:36]MH_SAM_APDU [23:52:36]CAPDU: 80 17 00 00 [23:52:36]Write to MH i2c: E2 08 00 E5 0A 80 17 00 00 00 00 00 00 6F [23:52:36]Write i2c OK [23:52:36]MH_I2C_Read... [23:52:37]Read from MH i2c: E2 [23:52:37]MH_I2C_Read... [23:52:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:37]Read from MH i2c: E2 FD 00 [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: E2 FD 00 E5 0A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 12 [23:52:37]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:37]wFMCommunicate OK [23:52:37]wFMCommunicate request_size=4 [23:52:37]MH_SAM_APDU [23:52:37]CAPDU: 80 17 00 00 [23:52:37]Write to MH i2c: E2 08 00 E6 0A 80 17 00 00 00 00 00 00 70 [23:52:37]Write i2c OK [23:52:37]MH_I2C_Read... [23:52:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:37]Read from MH i2c: E2 [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: E2 FD 00 [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: E2 FD 00 E6 0A 00 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [23:52:37]00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 E8 [23:52:37]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:37]wFMCommunicate OK [23:52:37]wFMCommunicate request_size=4 [23:52:37]MH_SAM_APDU [23:52:37]CAPDU: 80 17 00 00 [23:52:37]Write to MH i2c: E2 08 00 E7 0A 80 17 00 00 00 00 00 00 71 [23:52:37]Write i2c OK [23:52:37]MH_I2C_Read... [23:52:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:52:37]Read from MH i2c: E2 [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: E2 DD 00 [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: E2 DD 00 E7 0A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 59 [23:52:38]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:52:38]wFMCommunicate OK [23:52:38]SAM_PROTO_GetFMData done [23:52:38]requested_item fm.sale_refund.total is exist - process it [23:52:38]requested_item fm.buy.total is exist - process it [23:52:38]requested_item shift.sale.total is exist - process it [23:52:38]SAM_PROTO_GetShiftData [23:52:38]wFMCommunicate request_size=4 [23:52:38]MH_SAM_APDU [23:52:38]CAPDU: 80 13 02 00 [23:52:38]Write to MH i2c: E2 08 00 E8 0A 80 13 02 00 00 00 00 00 70 [23:52:38]Write i2c OK [23:52:38]MH_I2C_Read... [23:52:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:52:38]Read from MH i2c: E2 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: E2 FD 00 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: E2 FD 00 E8 0A 00 AE 04 AA 04 AA 04 6E 04 04 00 BE 00 00 00 69 04 9B 00 6F 04 04 00 BE 00 00 00 B1 04 03 00 58 2A 23 70 04 03 00 00 BC 1B 72 04 03 00 58 6E 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F3 BB 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 9F 4F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 95 [23:52:38]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 BE 00 00 00 69 04 9B 00 6F 04 04 00 BE 00 00 00 B1 04 03 00 58 2A 23 70 04 03 00 00 BC 1B 72 04 03 00 58 6E 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F3 BB 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 9F 4F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:52:38]wFMCommunicate OK [23:52:38]wFMCommunicate request_size=4 [23:52:38]MH_SAM_APDU [23:52:38]CAPDU: 80 17 00 00 [23:52:38]Write to MH i2c: E2 08 00 E9 0A 80 17 00 00 00 00 00 00 73 [23:52:38]Write i2c OK [23:52:38]MH_I2C_Read... [23:52:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:38]Read from MH i2c: E2 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: E2 FD 00 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: E2 FD 00 E9 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 95 [23:52:39]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:52:39]wFMCommunicate OK [23:52:39]wFMCommunicate request_size=4 [23:52:39]MH_SAM_APDU [23:52:39]CAPDU: 80 17 00 00 [23:52:39]Write to MH i2c: E2 08 00 EA 0A 80 17 00 00 00 00 00 00 74 [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 FD 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 FD 00 EA 0A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 2B [23:52:39]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:52:39]wFMCommunicate OK [23:52:39]wFMCommunicate request_size=4 [23:52:39]MH_SAM_APDU [23:52:39]CAPDU: 80 17 00 00 [23:52:39]Write to MH i2c: E2 08 00 EB 0A 80 17 00 00 00 00 00 00 75 [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 FD 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 FD 00 EB 0A 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 E7 [23:52:40]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:52:40]wFMCommunicate OK [23:52:40]wFMCommunicate request_size=4 [23:52:40]MH_SAM_APDU [23:52:40]CAPDU: 80 17 00 00 [23:52:40]Write to MH i2c: E2 08 00 EC 0A 80 17 00 00 00 00 00 00 76 [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:52:40]Read from MH i2c: E2 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 CB 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 CB 00 EC 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5F [23:52:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:40]wFMCommunicate OK [23:52:40]SAM_PROTO_GetShiftData done [23:52:40]requested_item shift.sale.total_cash is exist - process it [23:52:40]requested_item shift.sale_refund.total is exist - process it [23:52:40]requested_item shift.sale_refund.total_cash is exist - process it [23:52:40]requested_item shift.buy.total is exist - process it [23:52:40]requested_item shift.buy.total_cash is exist - process it [23:52:40]produce_requested_data done [23:52:40]produce_requested_data return {"fm.sale.total":10311163.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":23046.00,"shift.sale.total_cash":18176.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} [23:52:40]process_action_free get_value [23:52:40]json_value_free [23:52:40]json_value_free done [23:52:40]process_json_proto returns [23:52:40]Send response to host [23:52:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10311163.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":23046.00,"shift.sale.total_cash":18176.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}}} [23:52:40]free response buf [23:52:40]execute_script done [23:52:40]execute_script returns [23:52:40]free content buf [23:52:40]Sock 9.Close socket [23:52:40]Sock 9.Thread stoped [23:52:40]accept exits with 8 [23:52:40]New connection [23:52:40]New thread 3066756452 created [23:52:40]Thread 3066899812 joined [23:52:40]Waiting for new connection... [23:52:40] Sock 8.Parse request [23:52:40]Sock 8.Check first char [23:52:40]Sock 8.First char is OK [23:52:40]request: POST /json_proto HTTP/1.0 [23:52:40]Method: POST [23:52:40]URL: /json_proto [23:52:40]Method is POST - this is cgi request [23:52:40]url: /json_proto [23:52:40]query_string will be loaded in cgi processing [23:52:40]execute_cgi json_proto POST (null) [23:52:40]execute_cgi path=json_proto method=POST [23:52:40]POST find Content-Length [23:52:40]Host: 172.17.46.196:8080 [23:52:40]Content-Length: 262 [23:52:40]Content-Type: application/json [23:52:40] [23:52:40]POST finish read [23:52:40]Found Content-Length = 262 [23:52:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u043C\u0430\u043D\u0442\u0430\u0439 \u0443. \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:40]execute_script... [23:52:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u043C\u0430\u043D\u0442\u0430\u0439 \u0443. \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:40]POST & json_proto [23:52:40]process_json_proto [23:52:40]json parsed OK: [23:52:40]protocol is kg_v1.0 [23:52:40]action value=close_shift [23:52:40]process_action close_shift [23:52:40]cmd_close_shift [23:52:40]MH_GetDate [23:52:40]Write to MH i2c: F0 00 00 ED 0A E6 [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: F0 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: F0 09 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: F0 09 00 ED 0A 00 CA DA C3 66 C4 85 C2 66 2D [23:52:40]GetLastDocTimeStamp 1724111506 [23:52:40]current date 1724111562 [23:52:40]FM_GetShiftState [23:52:40]SAM_PROTO_GetShiftState [23:52:40]wFMCommunicate request_size=4 [23:52:40]MH_SAM_APDU [23:52:40]CAPDU: 80 13 01 00 [23:52:40]Write to MH i2c: E2 08 00 EE 0A 80 13 01 00 00 00 00 00 75 [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:40]Read from MH i2c: E2 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 0E 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 0E 00 EE 0A 00 09 00 01 F9 8D C2 66 00 00 00 00 90 00 2F [23:52:40]RAPDU: 09 00 01 F9 8D C2 66 00 00 00 00 90 00 [23:52:40]wFMCommunicate OK [23:52:40]SAM_PROTO_GetShiftState done [23:52:40]FM_GetShiftState done [23:52:40]KKMCreateCloseShiftDocument [23:52:40]Load OK [23:52:40]Malloc new data [23:52:40]MH_GetDate [23:52:40]Write to MH i2c: F0 00 00 EF 0A E8 [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: F0 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: F0 09 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: F0 09 00 EF 0A 00 CA DA C3 66 C4 85 C2 66 2F [23:52:40]Malloc new data [23:52:40]Malloc new data [23:52:40]Malloc new data [23:52:40]Malloc new data [23:52:40]KKMCreateCloseShiftDocument OK [23:52:40]KKMSetCloseShiftData OK [23:52:40]ProcessDocumentItem done err = 0, tmpTLVsize=73 [23:52:40]tlvbuf is 01959A70 [23:52:40]KKMLoadAndSignCloseShiftData [23:52:40]SAM_PROTO_ProcessDocument [23:52:40]wFMCommunicate request_size=9 [23:52:40]MH_SAM_APDU [23:52:40]CAPDU: 80 15 01 00 04 05 00 49 00 [23:52:40]Write to MH i2c: E2 0C 00 F0 0A 80 15 01 00 04 00 05 00 49 00 00 00 CF [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:52:40]Read from MH i2c: E2 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 03 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 03 00 F0 0A 00 90 00 6E [23:52:40]RAPDU: 90 00 [23:52:40]wFMCommunicate OK [23:52:40]wFMCommunicate request_size=23 [23:52:40]MH_SAM_APDU [23:52:40]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:52:40]Write to MH i2c: E2 1A 00 F1 0A 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 70 [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:40]Read from MH i2c: E2 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 03 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 03 00 F1 0A 00 90 00 6F [23:52:40]RAPDU: 90 00 [23:52:40]wFMCommunicate OK [23:52:40]wFMCommunicate request_size=32 [23:52:40]MH_SAM_APDU [23:52:40]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D0 B0 D0 B9 20 D1 83 2E 20 D0 A7 2E 20 [23:52:40]Write to MH i2c: E2 23 00 F2 0A 80 15 02 00 1B 00 FD 03 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D0 B0 D0 B9 20 D1 83 2E 20 D0 A7 2E 20 00 00 A5 [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:40]Read from MH i2c: E2 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 03 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 03 00 F2 0A 00 90 00 70 [23:52:40]RAPDU: 90 00 [23:52:40]wFMCommunicate OK [23:52:40]wFMCommunicate request_size=13 [23:52:40]MH_SAM_APDU [23:52:40]CAPDU: 80 15 02 00 08 F4 03 04 00 CA DA C3 66 [23:52:40]Write to MH i2c: E2 10 00 F3 0A 80 15 02 00 08 00 F4 03 04 00 CA DA C3 66 00 00 55 [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:41]Read from MH i2c: E2 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 03 00 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 03 00 F3 0A 00 90 00 71 [23:52:41]RAPDU: 90 00 [23:52:41]wFMCommunicate OK [23:52:41]wFMCommunicate request_size=25 [23:52:41]MH_SAM_APDU [23:52:41]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 [23:52:41]Write to MH i2c: E2 1C 00 F4 0A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 00 00 E1 [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:41]Read from MH i2c: E2 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 03 00 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 03 00 F4 0A 00 90 00 72 [23:52:41]RAPDU: 90 00 [23:52:41]wFMCommunicate OK [23:52:41]wFMCommunicate request_size=4 [23:52:41]MH_SAM_APDU [23:52:41]CAPDU: 80 15 03 00 [23:52:41]Write to MH i2c: E2 08 00 F5 0A 80 15 03 00 00 00 00 00 80 [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:41]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:52:41]Read from MH i2c: E2 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 FD 00 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 FD 00 F5 0A 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A4 C3 00 00 0E 04 04 00 D3 01 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 C0 00 00 00 AA 04 AA 04 6E 04 04 00 BE 00 00 00 69 04 9B 00 6F 04 04 00 BE 00 00 00 B1 04 03 00 58 2A 23 70 04 03 00 00 BC 1B 72 04 03 00 58 6E 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F3 BB 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 9F 4F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F5 [23:52:41]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A4 C3 00 00 0E 04 04 00 D3 01 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 C0 00 00 00 AA 04 AA 04 6E 04 04 00 BE 00 00 00 69 04 9B 00 6F 04 04 00 BE 00 00 00 B1 04 03 00 58 2A 23 70 04 03 00 00 BC 1B 72 04 03 00 58 6E 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F3 BB 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 9F 4F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:41]wFMCommunicate OK [23:52:41]SAM_PROTO_ProcessDocument answer len = 1265 [23:52:41]SAM_PROTO_ProcessDocument remain to read = 1017 [23:52:41]wFMCommunicate request_size=4 [23:52:41]MH_SAM_APDU [23:52:41]CAPDU: 80 17 00 00 [23:52:41]Write to MH i2c: E2 08 00 F6 0A 80 17 00 00 00 00 00 00 80 [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:42]Read from MH i2c: E2 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 FD 00 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 FD 00 F6 0A 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C9 [23:52:42]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:42]wFMCommunicate OK [23:52:42]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:52:42]SAM_PROTO_ProcessDocument remain to read = 767 [23:52:42]wFMCommunicate request_size=4 [23:52:42]MH_SAM_APDU [23:52:42]CAPDU: 80 17 00 00 [23:52:42]Write to MH i2c: E2 08 00 F7 0A 80 17 00 00 00 00 00 00 81 [23:52:42]Write i2c OK [23:52:42]MH_I2C_Read... [23:52:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:42]Read from MH i2c: E2 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 FD 00 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 FD 00 F7 0A 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 E3 [23:52:42]RAPDU: 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 OFD Sender: No OFD packet to send [23:52:42]F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:43]wFMCommunicate OK [23:52:43]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:52:43]SAM_PROTO_ProcessDocument remain to read = 517 [23:52:43]wFMCommunicate request_size=4 [23:52:43]MH_SAM_APDU [23:52:43]CAPDU: 80 17 00 00 [23:52:43]Write to MH i2c: E2 08 00 F8 0A 80 17 00 00 00 00 00 00 82 [23:52:43]Write i2c OK [23:52:43]MH_I2C_Read... [23:52:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:43]Read from MH i2c: E2 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 FD 00 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 FD 00 F8 0A 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0C [23:52:43]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:43]wFMCommunicate OK [23:52:43]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:52:43]SAM_PROTO_ProcessDocument remain to read = 267 [23:52:43]wFMCommunicate request_size=4 [23:52:43]MH_SAM_APDU [23:52:43]CAPDU: 80 17 00 00 [23:52:43]Write to MH i2c: E2 08 00 F9 0A 80 17 00 00 00 00 00 00 83 [23:52:43]Write i2c OK [23:52:43]MH_I2C_Read... [23:52:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:43]Read from MH i2c: E2 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 FD 00 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 FD 00 F9 0A 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4B [23:52:44]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:44]wFMCommunicate OK [23:52:44]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:52:44]SAM_PROTO_ProcessDocument remain to read = 17 [23:52:44]wFMCommunicate request_size=4 [23:52:44]MH_SAM_APDU [23:52:44]CAPDU: 80 17 00 00 [23:52:44]Write to MH i2c: E2 08 00 FA 0A 80 17 00 00 00 00 00 00 84 [23:52:44]Write i2c OK [23:52:44]MH_I2C_Read... [23:52:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [23:52:44]Read from MH i2c: E2 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: E2 14 00 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: E2 14 00 FA 0A 00 01 00 06 F7 03 00 00 35 04 06 00 EB 5C 5A 2F 6C 5D 90 00 62 [23:52:44]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 EB 5C 5A 2F 6C 5D 90 00 [23:52:44]wFMCommunicate OK [23:52:44]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [23:52:44]SAM_PROTO_ProcessDocument done [23:52:44]1209 (1) - 1.0 - номер версии ФФД [23:52:44]1041 (16) - 0000000000871800 - номер ФМ [23:52:44]1040 (4) - 50084 - номер ФД [23:52:44]1038 (4) - 467 - номер смены [23:52:44]1118 (4) - 190 - количество кассовых чеков за смену [23:52:44]1111 (4) - 192 - общее количество ФД за смену [23:52:44]1194 (1194) - счетчики итогов смены [23:52:44] 1134 (4) - 190 - количество чеков со всеми признаками расчетов [23:52:44] 1129 (155) - счетчики операций «приход» [23:52:44] 1135 (4) - 190 - количество чеков по признаку расчетов [23:52:44] 1201 (3) - 23046.00 - общая итоговая сумма в чеках [23:52:44] 1136 (3) - 18176.00 - итоговая сумма в чеках наличными [23:52:44] 1138 (3) - 4870.00 - итоговая сумма в чеках безналичными [23:52:44] 1024 (122) - суммы налогов [23:52:44] 1006 (9) - суммы НДС [23:52:44] 1010 (1) - 0% - код ставки НДС [23:52:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:44] 1006 (12) - суммы НДС [23:52:44] 1010 (1) - 12% - код ставки НДС [23:52:44] 1011 (3) - 2447.23 - сумма НДС по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 0% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (11) - суммы НСП [23:52:44] 1014 (1) - 1% - код ставки НСП [23:52:44] 1015 (2) - 203.83 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 2% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 3% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 5% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 0,50% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 1,50% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1130 (141) - счетчики операций «возврат прихода» [23:52:44] 1135 (4) - 0 - количество чеков по признаку расчетов [23:52:44] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:52:44] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:52:44] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:44] 1024 (117) - суммы налогов [23:52:44] 1006 (9) - суммы НДС [23:52:44] 1010 (1) - 0% - код ставки НДС [23:52:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:44] 1006 (9) - суммы НДС [23:52:44] 1010 (1) - 12% - код ставки НДС [23:52:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 0% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 1% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 2% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 3% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 5% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 0,50% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 1,50% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1131 (141) - счетчики операций «расход» [23:52:44] 1135 (4) - 0 - количество чеков по признаку расчетов [23:52:44] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:52:44] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:52:44] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:44] 1024 (117) - суммы налогов [23:52:44] 1006 (9) - суммы НДС [23:52:44] 1010 (1) - 0% - код ставки НДС [23:52:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:44] 1006 (9) - суммы НДС [23:52:44] 1010 (1) - 12% - код ставки НДС [23:52:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 0% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 1% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 2% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 3% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 5% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 0,50% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 1,50% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1132 (141) - счетчики операций «возврат расхода» [23:52:44] 1135 (4) - 0 - количество чеков по признаку расчетов [23:52:44] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:52:44] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:52:44] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:44] 1024 (117) - суммы налогов [23:52:44] 1006 (9) - суммы НДС [23:52:44] 1010 (1) - 0% - код ставки НДС [23:52:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:44] 1006 (9) - суммы НДС [23:52:44] 1010 (1) - 12% - код ставки НДС [23:52:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 0% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 1% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 2% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 3% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 5% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 0,50% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1007 (9) - суммы НСП [23:52:44] 1014 (1) - 1,50% - код ставки НСП [23:52:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:44] 1133 (588) - - счетчики коррекции - не используются [23:52:44]1077 (6) - 258781882575965 - ФПД [23:52:44]SetTLVBufToDocument [23:52:44]Processing tag 1209 (04B9) [23:52:44]Malloc new data [23:52:44]Processing tag 1041 (0411) [23:52:44]Processing tag 1040 (0410) [23:52:44]Malloc new data [23:52:44]Processing tag 1038 (040E) [23:52:44]Malloc new data [23:52:44]Processing tag 1118 (045E) [23:52:44]Malloc new data [23:52:44]Processing tag 1111 (0457) [23:52:44]Malloc new data [23:52:44]Processing tag 1194 (04AA) [23:52:44]Load OK [23:52:44]SetTLVBufToDocument [23:52:44]Processing tag 1134 (046E) [23:52:44]Malloc new data [23:52:44]Processing tag 1129 (0469) [23:52:44]Load OK [23:52:44]SetTLVBufToDocument [23:52:44]Processing tag 1135 (046F) [23:52:44]Malloc new data [23:52:44]Processing tag 1201 (04B1) [23:52:44]Malloc new data [23:52:44]Processing tag 1136 (0470) [23:52:44]Malloc new data [23:52:44]Processing tag 1138 (0472) [23:52:44]Malloc new data [23:52:44]Processing tag 1024 (0400) [23:52:44]Load OK [23:52:44]SetTLVBufToDocument [23:52:44]Processing tag 1006 (03EE) [23:52:44]Load OK [23:52:44]SetTLVBufToDocument [23:52:44]Processing tag 1010 (03F2) [23:52:44]Malloc new data [23:52:44]Processing tag 1011 (03F3) [23:52:44]Malloc new data [23:52:44]SetTLVBufToDocument err=0 [23:52:44]Processing tag 1006 (03EE) [23:52:44]Load OK [23:52:44]SetTLVBufToDocument [23:52:44]Processing tag 1010 (03F2) [23:52:44]Malloc new data [23:52:44]Processing tag 1011 (03F3) [23:52:44]Malloc new data [23:52:44]SetTLVBufToDocument err=0 [23:52:44]Processing tag 1007 (03EF) [23:52:44]Load OK [23:52:44]SetTLVBufToDocument [23:52:44]Processing tag 1014 (03F6) [23:52:44]Malloc new data [23:52:44]Processing tag 1015 (03F7) [23:52:44]Malloc new data [23:52:44]SetTLVBufToDocument err=0 [23:52:44]Processing tag 1007 (03EF) [23:52:44]Load OK [23:52:44]SetTLVBufToDocument [23:52:44]Processing tag 1014 (03F6) [23:52:44]Malloc new data [23:52:44]Processing tag 1015 (03F7) [23:52:44]Malloc new data [23:52:44]SetTLVBufToDocument err=0 [23:52:44]Processing tag 1007 (03EF) [23:52:44]Load OK [23:52:44]SetTLVBufToDocument [23:52:44]Processing tag 1014 (03F6) [23:52:44]Malloc new data [23:52:44]Processing tag 1015 (03F7) [23:52:44]Malloc new data [23:52:44]SetTLVBufToDocument err=0 [23:52:44]Processing tag 1007 (03EF) [23:52:44]Load OK [23:52:44]SetTLVBufToDocument [23:52:44]Processing tag 1014 (03F6) [23:52:44]Malloc new data [23:52:44]Processing tag 1015 (03F7) [23:52:44]Malloc new data [23:52:44]SetTLVBufToDocument err=0 [23:52:44]Processing tag 1007 (03EF) [23:52:44]Load OK [23:52:44]SetTLVBufToDocument [23:52:44]Processing tag 1014 (03F6) [23:52:44]Malloc new data [23:52:44]Processing tag 1015 (03F7) [23:52:44]Malloc new data [23:52:44]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]SetTLVBufToDocument err=0 [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1130 (046A) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1135 (046F) [23:52:45]Malloc new data [23:52:45]Processing tag 1201 (04B1) [23:52:45]Malloc new data [23:52:45]Processing tag 1136 (0470) [23:52:45]Malloc new data [23:52:45]Processing tag 1138 (0472) [23:52:45]Malloc new data [23:52:45]Processing tag 1024 (0400) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1006 (03EE) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1010 (03F2) [23:52:45]Malloc new data [23:52:45]Processing tag 1011 (03F3) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1006 (03EE) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1010 (03F2) [23:52:45]Malloc new data [23:52:45]Processing tag 1011 (03F3) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]SetTLVBufToDocument err=0 [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1131 (046B) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1135 (046F) [23:52:45]Malloc new data [23:52:45]Processing tag 1201 (04B1) [23:52:45]Malloc new data [23:52:45]Processing tag 1136 (0470) [23:52:45]Malloc new data [23:52:45]Processing tag 1138 (0472) [23:52:45]Malloc new data [23:52:45]Processing tag 1024 (0400) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1006 (03EE) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1010 (03F2) [23:52:45]Malloc new data [23:52:45]Processing tag 1011 (03F3) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1006 (03EE) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1010 (03F2) [23:52:45]Malloc new data [23:52:45]Processing tag 1011 (03F3) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]SetTLVBufToDocument err=0 [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1132 (046C) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1135 (046F) [23:52:45]Malloc new data [23:52:45]Processing tag 1201 (04B1) [23:52:45]Malloc new data [23:52:45]Processing tag 1136 (0470) [23:52:45]Malloc new data [23:52:45]Processing tag 1138 (0472) [23:52:45]Malloc new data [23:52:45]Processing tag 1024 (0400) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1006 (03EE) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1010 (03F2) [23:52:45]Malloc new data [23:52:45]Processing tag 1011 (03F3) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1006 (03EE) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1010 (03F2) [23:52:45]Malloc new data [23:52:45]Processing tag 1011 (03F3) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1007 (03EF) [23:52:45]Load OK [23:52:45]SetTLVBufToDocument [23:52:45]Processing tag 1014 (03F6) [23:52:45]Malloc new data [23:52:45]Processing tag 1015 (03F7) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]SetTLVBufToDocument err=0 [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1133 (046D) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Processing tag 1077 (0435) [23:52:45]Malloc new data [23:52:45]SetTLVBufToDocument err=0 [23:52:45]Malloc new data [23:52:45]SAM_PROTO_GetFMData [23:52:45]wFMCommunicate request_size=4 [23:52:45]MH_SAM_APDU [23:52:45]CAPDU: 80 13 03 00 [23:52:45]Write to MH i2c: E2 08 00 FB 0A 80 13 03 00 00 00 00 00 84 [23:52:45]Write i2c OK [23:52:45]MH_I2C_Read... [23:52:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:46]Read from MH i2c: E2 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 FD 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 FD 00 FB 0A 00 C0 04 85 04 BC 04 6E 04 04 00 FD BF 00 00 69 04 A0 00 6F 04 04 00 EA BF 00 00 B1 04 04 00 32 96 75 3D 70 04 04 00 4E 37 D7 34 72 04 04 00 E4 5E 9E 08 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 64 C9 86 06 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 DD 26 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 E7 [23:52:46]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 FD BF 00 00 69 04 A0 00 6F 04 04 00 EA BF 00 00 B1 04 04 00 32 96 75 3D 70 04 04 00 4E 37 D7 34 72 04 04 00 E4 5E 9E 08 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 64 C9 86 06 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 DD 26 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 [23:52:46]wFMCommunicate OK [23:52:46]wFMCommunicate request_size=4 [23:52:46]MH_SAM_APDU [23:52:46]CAPDU: 80 17 00 00 [23:52:46]Write to MH i2c: E2 08 00 FC 0A 80 17 00 00 00 00 00 00 86 [23:52:46]Write i2c OK [23:52:46]MH_I2C_Read... [23:52:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:46]Read from MH i2c: E2 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 FD 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 FD 00 FC 0A 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B9 [23:52:46]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:46]wFMCommunicate OK [23:52:46]wFMCommunicate request_size=4 [23:52:46]MH_SAM_APDU [23:52:46]CAPDU: 80 17 00 00 [23:52:46]Write to MH i2c: E2 08 00 FD 0A 80 17 00 00 00 00 00 00 87 [23:52:46]Write i2c OK [23:52:46]MH_I2C_Read... [23:52:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:47]Read from MH i2c: E2 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 FD 00 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 FD 00 FD 0A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2A [23:52:47]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:47]wFMCommunicate OK [23:52:47]wFMCommunicate request_size=4 [23:52:47]MH_SAM_APDU [23:52:47]CAPDU: 80 17 00 00 [23:52:47]Write to MH i2c: E2 08 00 FE 0A 80 17 00 00 00 00 00 00 88 [23:52:47]Write i2c OK [23:52:47]MH_I2C_Read... [23:52:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:47]Read from MH i2c: E2 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 FD 00 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: E2 FD 00 FE 0A 00 01 00 04 F7 03 00 00 EF 03 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 90 00 00 [23:52:47]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:48]wFMCommunicate OK [23:52:48]wFMCommunicate request_size=4 [23:52:48]MH_SAM_APDU [23:52:48]CAPDU: 80 17 00 00 [23:52:48]Write to MH i2c: E2 08 00 FF 0A 80 17 00 00 00 00 00 00 89 [23:52:48]OFD Sender: No OFD packet to send [23:52:48]Write i2c OK [23:52:48]MH_I2C_Read... [23:52:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [23:52:48]Read from MH i2c: E2 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: E2 DD 00 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: E2 DD 00 FF 0A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 71 [23:52:48]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:52:48]wFMCommunicate OK [23:52:48]SAM_PROTO_GetFMData done [23:52:48]Malloc new data [23:52:48]Malloc new data [23:52:48]Malloc new data [23:52:48]Malloc new data [23:52:48]KKMLoadAndSignCloseShiftData err=0 [23:52:48]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Амантай у. Ч. 19.08.2024 23:52 Смена: 467 РНМ: 0000000000092546 ЗНМ: 0300000078 СНО: Общий режим Чеков за смену: 190 ФД за смену: 192 Всего чеков: 190 ИТОГИ ПРИХОД Чеков: 190 Общий итог: 23046.00 Итого наличными: 18176.00 Итого безнал.: 4870.00 НДС 0% : 0.00 НДС 12% : 2447.23 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 203.83 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 18176.00 НС Приход: 10311163.38 НС Возвр.Прихода: 24784.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 50084 ФМ: 0000000000871800 ФПД: 258781882575965 [23:52:48]StoreToDocumentArchive [23:52:48]shift 467 fd 50084 [23:52:48]save to /storage/0467/doc_00050084 [23:52:48]save last doc name /storage/0467/doc_00050084 to /storage/kkm_last_doc_name [23:52:48]save OK [23:52:48]Clear old archive folders... [23:52:48]Remove dir /storage/0266 [23:52:48]opendir ok [23:52:48]file . [23:52:48]file .. [23:52:48]file doc_1724111514 [23:52:48]remove file /storage/0266/doc_1724111514 [23:52:48]remove dir /storage/0266 [23:52:48]NVStorageSaveData kkm_registers [23:52:48]File name is /storage/kkm_registers [23:52:48]Write 24 bytes [23:52:48]NVStorageSaveData done [23:52:48]NVStorageSaveData kkm_registers [23:52:48]File name is /storage/kkm_registers [23:52:48]Write 24 bytes [23:52:48]NVStorageSaveData done [23:52:48]ProcessDocumentItem done err = 0, tmpTLVsize=1381 [23:52:48]tlvbuf is 019979E0 [23:52:48]SAM_PROTO_ClearQueue [23:52:48]wFMCommunicate request_size=4 [23:52:48]MH_SAM_APDU [23:52:48]CAPDU: 80 09 00 00 [23:52:48]Write to MH i2c: E2 08 00 00 0B 80 09 00 00 00 00 00 00 7D [23:52:48]Write i2c OK [23:52:48]MH_I2C_Read... [23:52:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:48]Read from MH i2c: E2 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: E2 03 00 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: E2 03 00 00 0B 00 90 00 7F [23:52:48]RAPDU: 90 00 [23:52:48]wFMCommunicate OK [23:52:48]SAM_PROTO_ClearQueue done [23:52:48]KKMCreateOFDPacket [23:52:48]OFDProtocolAddRootSTLVToBuf [23:52:48]FM_MakeSignedData [23:52:48]FM_MakeSignedData [23:52:48]SAM_PROTO_SignData [23:52:48]wFMCommunicate request_size=4 [23:52:48]MH_SAM_APDU [23:52:48]CAPDU: 80 0D 01 02 [23:52:48]Write to MH i2c: E2 08 00 01 0B 80 0D 01 02 00 00 00 00 85 [23:52:48]Write i2c OK [23:52:48]MH_I2C_Read... [23:52:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:48]Read from MH i2c: E2 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: E2 03 00 [23:52:48]MH_I2C_Read... [23:52:48]Read from MH i2c: E2 03 00 01 0B 00 90 00 80 [23:52:48]RAPDU: 90 00 [23:52:48]wFMCommunicate OK [23:52:48]wFMCommunicate request_size=255 [23:52:48]MH_SAM_APDU [23:52:48]CAPDU: 80 0D 02 02 FA 05 00 65 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D0 B0 D0 B9 20 D1 83 2E 20 D0 A7 2E 20 F4 03 04 00 CA DA C3 66 0E 04 04 00 D3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 5E 04 04 00 BE 00 00 00 57 04 04 00 C0 00 00 00 AA 04 D5 04 6E 04 04 00 BE 00 00 00 69 04 A2 00 6F 04 04 00 BE 00 00 00 B1 04 03 00 58 2A 23 70 04 03 00 00 BC 1B 72 04 03 00 58 6E 07 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 F3 BB 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 [23:52:48]Write to MH i2c: E2 02 01 02 0B 80 0D 02 02 FA 00 05 00 65 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D0 B0 D0 B9 20 D1 83 2E 20 D0 A7 2E 20 F4 03 04 00 CA DA C3 66 0E 04 04 00 D3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 5E 04 04 00 BE 00 00 00 57 04 04 00 C0 00 00 00 AA 04 D5 04 6E 04 04 00 BE 00 00 00 69 04 A2 00 6F 04 04 00 BE 00 00 00 B1 04 03 00 58 2A 23 70 04 03 00 00 BC 1B 72 04 03 00 58 6E 07 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 F3 BB 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 00 00 65 [23:52:49]Write i2c OK [23:52:49]MH_I2C_Read... [23:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:49]Read from MH i2c: E2 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 03 00 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 03 00 02 0B 00 90 00 81 [23:52:49]RAPDU: 90 00 [23:52:49]wFMCommunicate OK [23:52:49]wFMCommunicate request_size=255 [23:52:49]MH_SAM_APDU [23:52:49]CAPDU: 80 0D 02 02 FA F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 9F 4F 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 [23:52:49]Write to MH i2c: E2 02 01 03 0B 80 0D 02 02 FA 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 9F 4F 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 00 00 E0 [23:52:49]Write i2c OK [23:52:49]MH_I2C_Read... [23:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:49]Read from MH i2c: E2 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 03 00 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: E2 03 00 03 0B 00 90 00 82 [23:52:49]RAPDU: 90 00 [23:52:49]wFMCommunicate OK [23:52:49]wFMCommunicate request_size=255 [23:52:49]MH_SAM_APDU [23:52:49]CAPDU: 80 0D 02 02 FA 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 [23:52:50]Write to MH i2c: E2 02 01 04 0B 80 0D 02 02 FA 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 00 00 50 [23:52:50]Write i2c OK [23:52:50]MH_I2C_Read... [23:52:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:50]Read from MH i2c: E2 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 03 00 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 03 00 04 0B 00 90 00 83 [23:52:50]RAPDU: 90 00 [23:52:50]wFMCommunicate OK [23:52:50]wFMCommunicate request_size=255 [23:52:50]MH_SAM_APDU [23:52:50]CAPDU: 80 0D 02 02 FA 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 [23:52:50]Write to MH i2c: E2 02 01 05 0B 80 0D 02 02 FA 00 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 00 00 4E [23:52:50]Write i2c OK [23:52:50]MH_I2C_Read... [23:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:51]Read from MH i2c: E2 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: E2 03 00 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: E2 03 00 05 0B 00 90 00 84 [23:52:51]RAPDU: 90 00 [23:52:51]wFMCommunicate OK [23:52:51]wFMCommunicate request_size=255 [23:52:51]MH_SAM_APDU [23:52:51]CAPDU: 80 0D 02 02 FA 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:52:51]Write to MH i2c: E2 02 01 06 0B 80 0D 02 02 FA 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 16 [23:52:51]Write i2c OK [23:52:51]MH_I2C_Read... [23:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:52]Read from MH i2c: E2 [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: E2 03 00 [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: E2 03 00 06 0B 00 90 00 85 [23:52:52]RAPDU: 90 00 [23:52:52]wFMCommunicate OK [23:52:52]wFMCommunicate request_size=140 [23:52:52]MH_SAM_APDU [23:52:52]CAPDU: 80 0D 02 02 87 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A4 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 EB 5C 5A 2F 6C 5D [23:52:52]Write to MH i2c: E2 8F 00 07 0B 80 0D 02 02 87 00 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A4 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 EB 5C 5A 2F 6C 5D 00 00 C3 [23:52:52]Write i2c OK [23:52:52]MH_I2C_Read... [23:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:52]Read from MH i2c: E2 [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: E2 03 00 [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: E2 03 00 07 0B 00 90 00 86 [23:52:52]RAPDU: 90 00 [23:52:52]wFMCommunicate OK [23:52:52]wFMCommunicate request_size=4 [23:52:52]MH_SAM_APDU [23:52:52]CAPDU: 80 0D 03 02 [23:52:52]Write to MH i2c: E2 08 00 08 0B 80 0D 03 02 00 00 00 00 8E [23:52:52]Write i2c OK [23:52:52]MH_I2C_Read... [23:52:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:52]Read from MH i2c: E2 [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: E2 0B 00 [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: E2 0B 00 08 0B 00 69 25 F3 68 E3 2F E0 BD 90 00 27 [23:52:52]RAPDU: 69 25 F3 68 E3 2F E0 BD 90 00 [23:52:52]wFMCommunicate OK [23:52:52]SAM_PROTO_SignData done [23:52:52]FM_MakeSignedData done [23:52:52]CreateOFDProtocolMessage [23:52:52]wFMCommunicate request_size=4 [23:52:52]MH_SAM_APDU [23:52:52]CAPDU: 80 11 00 00 [23:52:52]Write to MH i2c: E2 08 00 09 0B 80 11 00 00 00 00 00 00 8E [23:52:52]Write i2c OK [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: E2 [23:52:52]MH_I2C_Read... [23:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:52]Read from MH i2c: E2 17 00 [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: E2 17 00 09 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D9 [23:52:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [23:52:52]wFMCommunicate OK [23:52:52]CreateOFDProtocolMessage done [23:52:52]OFDSenderStorePacket 50084 [23:52:52]StoreOFDPacket docnum=50084 [23:52:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 79 05 00 00 80 D6 71 05 0A DE 5A 05 01 00 05 00 65 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D0 B0 D0 B9 20 D1 83 2E 20 D0 A7 2E 20 F4 03 04 00 CA DA C3 66 0E 04 04 00 D3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 5E 04 04 00 BE 00 00 00 57 04 04 00 C0 00 00 00 AA 04 D5 04 6E 04 04 00 BE 00 00 00 69 04 A2 00 6F 04 04 00 BE 00 00 00 B1 04 03 00 58 2A 23 70 04 03 00 00 BC 1B 72 04 03 00 58 6E 07 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 F3 BB 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 9F 4F 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 A4 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 EB 5C 5A 2F 6C 5D 69 25 F3 68 E3 2F E0 BD [23:52:52]CheckFolder [23:52:52]dirname=/storage/ofd_packets [23:52:52]CheckFolder done [23:52:52]ProducePacketName [23:52:52]name=ofd_packets/00050084 [23:52:52]NVStorageSaveData ofd_packets/00050084 [23:52:52]File name is /storage/ofd_packets/00050084 [23:52:52]Write 1431 bytes [23:52:52]NVStorageSaveData done [23:52:52]OFDSenderStorePacket done [23:52:52]KKMCreateOFDPacket done [23:52:52]NVStorageSaveData kkm_last_timestamp [23:52:52]File name is /storage/kkm_last_timestamp [23:52:52]Write 4 bytes [23:52:52]NVStorageSaveData done [23:52:52]ExternCall_PrintAddStr [23:52:52]wPrintStart [23:52:52]Write to MH i2c: 01 00 00 0A 0B 15 [23:52:52]Write i2c OK [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: 01 [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: 01 07 00 [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: 01 07 00 0A 0B 00 00 00 00 00 FF 0F 2A [23:52:52]RasterBufferAndPrint [23:52:52]line Отчет о закрытии смены [23:52:52]line ФФД: 1.0 [23:52:52]line ИНН: 02508201610067 [23:52:52]line Кассир: Амантай у. Ч. [23:52:52]line 19.08.2024 23:52 [23:52:53]line Смена: 467 [23:52:53]line РНМ: 0000000000092546 [23:52:53]line ЗНМ: 0300000078 [23:52:53]line СНО: Общий режим [23:52:53]line Чеков за смену: 190 [23:52:53]line ФД за смену: 192 [23:52:53]line Всего чеков: 190 [23:52:53]line ИТОГИ ПРИХОД [23:52:53]line Чеков: 190 [23:52:53]line Общий итог: 23046.00 [23:52:53]line Итого наличными: 18176.00 [23:52:53]line Итого безнал.: 4870.00 [23:52:53]line НДС 0% : 0.00 [23:52:53]line НДС 12% : 2447.23 [23:52:53]line НСП 0% : 0.00 [23:52:53]line НСП 1,50% : 0.00 [23:52:53]line НСП 0,50% : 0.00 [23:52:53]line НСП 5% : 0.00 [23:52:53]line НСП 3% : 0.00 [23:52:53]line НСП 2% : 0.00 [23:52:53]line НСП 1% : 203.83 [23:52:53]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:52:53]line Чеков: 0 [23:52:53]line Общий итог: 0.00 [23:52:53]line Итого наличными: 0.00 [23:52:53]line Итого безнал.: 0.00 [23:52:53]line НДС 0% : 0.00 [23:52:53]line НДС 12% : 0.00 [23:52:53]line НСП 0% : 0.00 [23:52:53]line НСП 1,50% : 0.00 [23:52:53]line НСП 0,50% : 0.00 [23:52:53]line НСП 5% : 0.00 [23:52:53]line НСП 3% : 0.00 [23:52:53]line НСП 2% : 0.00 [23:52:53]line НСП 1% : 0.00 [23:52:53]line ИТОГИ РАСХОД [23:52:53]line Чеков: 0 [23:52:53]line Общий итог: 0.00 [23:52:53]line Итого наличными: 0.00 [23:52:53]line Итого безнал.: 0.00 [23:52:53]line НДС 0% : 0.00 [23:52:53]line НДС 12% : 0.00 [23:52:53]line НСП 0% : 0.00 [23:52:53]line НСП 1,50% : 0.00 [23:52:53]line НСП 0,50% : 0.00 [23:52:53]line НСП 5% : 0.00 [23:52:53]line НСП 3% : 0.00 [23:52:53]line НСП 2% : 0.00 [23:52:53]line НСП 1% : 0.00 [23:52:53]line ИТОГИ ВОЗВРАТ РАСХОДА [23:52:53]line Чеков: 0 [23:52:53]line Общий итог: 0.00 [23:52:53]line Итого наличными: 0.00 [23:52:53]line Итого безнал.: 0.00 [23:52:53]line НДС 0% : 0.00 [23:52:53]line НДС 12% : 0.00 [23:52:53]line НСП 0% : 0.00 [23:52:53]line НСП 1,50% : 0.00 [23:52:53]line НСП 0,50% : 0.00 [23:52:53]line НСП 5% : 0.00 [23:52:53]line НСП 3% : 0.00 [23:52:53]line НСП 2% : 0.00 [23:52:53]line НСП 1% : 0.00 [23:52:53]line Сумма внесений: 0.00 [23:52:53]line Сумма выплат: 0.00 [23:52:53]line Нал. в кассе: 18176.00 [23:52:53]line НС Приход: 10311163.38 [23:52:53]line НС Возвр.Прихода: 24784.00 [23:52:53]line НС Расход: 0.00 [23:52:53]line НС Возвр.Расхода: 0.00 [23:52:53]line ФД: 50084 [23:52:53]line ФМ: 0000000000871800 [23:52:53]line ФПД: 258781882575965 [23:52:53]OFD Sender: Processing packet 50084 [packets to send 21, broken 20] [23:52:53]ProducePacketName [23:52:53]name=ofd_packets/00050084 [23:52:53]OFD Sender: To server: pG, [23:52:53]CommunicateWithHost lk.salyk.kg:30040 [23:52:53]ConnectInit lk.salyk.kg [23:52:53]written 0, free lines is 4095 [23:52:53]Connected sock=10 [23:52:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 79 05 00 00 80 D6 71 05 0A DE 5A 05 01 00 05 00 65 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D0 B0 D0 B9 20 D1 83 2E 20 D0 A7 2E 20 F4 03 04 00 CA DA C3 66 0E 04 04 00 D3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 5E 04 04 00 BE 00 00 00 57 04 04 00 C0 00 00 00 AA 04 D5 04 6E 04 04 00 BE 00 00 00 69 04 A2 00 6F 04 04 00 BE 00 00 00 B1 04 03 00 58 2A 23 70 04 03 00 00 BC 1B 72 04 03 00 58 6E 07 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 F3 BB 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 9F 4F 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 Write to MH i2c: 01 01 00 00 00 00 F7 5A 03 0B 00 65 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF [23:52:54]03 09 Write i2c OK [23:52:54]00 MH_I2C_Read... [23:52:54]F6 Read from MH i2c: 03 01 01 [23:52:54]00 MH_I2C_Read... [23:52:54]02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 Read from MH i2c: F7 01 03 07 00 00 [23:52:54]00 MH_I2C_Read... [23:52:54]EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 Read from MH i2c: F6 01 03 07 01 00 00 5A 05 0B F7 00 03 00 00 00 00 00 EF 00 D0 0B 47 [23:52:54]RasterBufferAndPrint [23:52:54]line [23:52:54]line [23:52:54]line [23:52:54]line [23:52:54]line [23:52:54]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 written 0, free lines is 3111 [23:52:54]06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 MH_Cut [23:52:54]B1 Write to MH i2c: 04 D1 00 01 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 61 00 0B F2 01 03 3E 01 [23:52:54]00 00 Write i2c OK [23:52:54]F3 MH_I2C_Read... [23:52:54]03 Read from MH i2c: 00 D1 00 [23:52:54]EE MH_I2C_Read... [23:52:54]03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 Read from MH i2c: F7 D1 03 01 00 00 00 [23:52:54]EF MH_I2C_Read... [23:52:54]03 09 00 Read from MH i2c: F6 D1 03 01 01 00 00 61 01 0B F7 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 3D 00 [23:52:54]EF Write to MH i2c: 03 01 09 00 00 00 F6 62 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 0B 00 6D 04 [23:52:54]F7 03 00 00 EF 03 09 00 F6 03 01 Write i2c OK [23:52:54]00 MH_I2C_Read... [23:52:54]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 A4 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 EB 5C 5A 2F 6C 5D 69 25 F3 68 E3 2F E0 BD [23:52:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 DD 87 47 00 13 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A4 C3 00 00 F4 03 04 00 42 85 C3 66 B6 04 01 00 00 EF BE 23 AB 4B 7B E7 13 [23:52:55]CommunicateWithHost err = 0 [23:52:55]*** Cut start [23:52:55]CheckOFDResponse [23:52:55]*** Purtial cut [23:52:55]1017 (14) - 77093643461234 [23:52:55]*** CUTSNS_PIN = 0 [23:52:55]1041 (16) - 0000000000871800 [23:52:55]1040 (4) - 50084 [23:52:55]1012 (4) - 19.08.2024 17:47 [23:52:55]1206 (1) - 0 [23:52:55]OFD Sender: Remove packet 50084 [23:52:55]ProducePacketName [23:52:55]name=ofd_packets/00050084 [23:52:55]NVStorageDeleteData [23:52:55]*** Stage 1: CUTSNS_PIN = 1 [23:52:55]OFD Sender: No OFD packet to send [23:52:57]Read from MH i2c: 01 [23:52:57]MH_I2C_Read... [23:52:57]*** Stop cut motor [23:52:57]*** Cut end [23:52:57]Read from MH i2c: 01 07 00 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: 01 07 00 62 0B 00 00 00 00 00 FF 0F 82 [23:52:57]process_action close_shift done [23:52:57]requested_data is exist [23:52:57]produce_requested_data [23:52:57]requested_item fd.num is exist - process it [23:52:57]SAM_PROTO_GetFieldsCounters [23:52:57]wFMCommunicate request_size=4 [23:52:57]MH_SAM_APDU [23:52:57]CAPDU: 80 13 00 00 [23:52:57]Write to MH i2c: E2 08 00 63 0B 80 13 00 00 00 00 00 00 EA [23:52:57]Write i2c OK [23:52:57]MH_I2C_Read... [23:52:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:57]Read from MH i2c: E2 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: E2 62 00 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: E2 62 00 63 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A4 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [23:52:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A4 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:57]wFMCommunicate OK [23:52:57]SAM_PROTO_GetFieldsCounters done [23:52:57]requested_item shift.num is exist - process it [23:52:57]requested_item shift.opened is exist - process it [23:52:57]req_shift_opened [23:52:57]FM_GetShiftState [23:52:57]SAM_PROTO_GetShiftState [23:52:57]wFMCommunicate request_size=4 [23:52:57]MH_SAM_APDU [23:52:57]CAPDU: 80 13 01 00 [23:52:57]Write to MH i2c: E2 08 00 64 0B 80 13 01 00 00 00 00 00 EC [23:52:57]Write i2c OK [23:52:57]MH_I2C_Read... [23:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:57]Read from MH i2c: E2 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: E2 0E 00 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: E2 0E 00 64 0B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F7 [23:52:57]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:52:57]wFMCommunicate OK [23:52:57]SAM_PROTO_GetShiftState done [23:52:57]FM_GetShiftState done [23:52:57]req_shift_opened done [23:52:57]requested_item shift.open_date is exist - process it [23:52:57]req_shift_open_date [23:52:57]FM_GetShiftState [23:52:57]SAM_PROTO_GetShiftState [23:52:57]wFMCommunicate request_size=4 [23:52:57]MH_SAM_APDU [23:52:57]CAPDU: 80 13 01 00 [23:52:57]Write to MH i2c: E2 08 00 65 0B 80 13 01 00 00 00 00 00 ED [23:52:57]Write i2c OK [23:52:57]MH_I2C_Read... [23:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:57]Read from MH i2c: E2 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: E2 0E 00 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: E2 0E 00 65 0B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F8 [23:52:57]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:52:57]wFMCommunicate OK [23:52:57]SAM_PROTO_GetShiftState done [23:52:57]FM_GetShiftState done [23:52:57]req_shift_open_date done [23:52:57]produce_requested_data done [23:52:57]produce_requested_data return {"fd.num":50084,"shift.num":467,"shift.opened":0,"shift.open_date":0} [23:52:57]process_action_free close_shift [23:52:57]json_value_free [23:52:57]json_value_free done [23:52:57]process_json_proto returns [23:52:57]Send response to host [23:52:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":50084,"shift.num":467,"shift.opened":0,"shift.open_date":0}}} [23:52:57]free response buf [23:52:57]execute_script done [23:52:57]execute_script returns [23:52:57]free content buf [23:52:57]Sock 8.Close socket [23:52:57]Sock 8.Thread stoped [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:10]OFD Sender: No OFD packet to send [23:53:11]int [23:53:11]Write to MH i2c: 01 00 00 66 0B 71 [23:53:11]*** FLAG_PRN_KEY set [23:53:11]Write i2c OK [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: 01 [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: 01 07 00 [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: 01 07 00 66 0B 00 08 00 00 00 FF 0F 8E [23:53:11]state=0 [23:53:11]Key pressed [23:53:11]Feed [23:53:11]Write to MH i2c: D8 00 00 67 0B 49 [23:53:11]Write i2c OK [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: D8 [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: D8 01 00 [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: D8 01 00 67 0B 00 4A [23:53:11]int line is 0 - check status [23:53:11]Write to MH i2c: 01 00 00 68 0B 73 [23:53:11]Write i2c OK [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: 01 [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: 01 07 00 [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: 01 07 00 68 0B 00 48 00 00 00 3C 00 FE [23:53:11]state=2 [23:53:11]Key pressed [23:53:11]int [23:53:11]Write to MH i2c: 01 00 00 69 0B 74 [23:53:11]Write i2c OK [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: 01 [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: 01 07 00 [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: 01 07 00 69 0B 00 48 00 00 00 3C 00 FF [23:53:11]state=2 [23:53:11]Key pressed [23:53:11]int [23:53:11]Write to MH i2c: 01 00 00 6A 0B 75 [23:53:11]*** FLAG_PRN_KEY reset [23:53:11]Write i2c OK [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: 01 [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: 01 07 00 [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: 01 07 00 6A 0B 00 00 00 00 00 FF 0F 8A [23:53:11]state=2 [23:53:11]Stop feed [23:53:15]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:15]OFD Sender: No OFD packet to send [23:57:20]OFD Sender: No OFD packet to send [23:57:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:56]OFD Sender: No OFD packet to send [00:07:01]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:31]OFD Sender: No OFD packet to send [00:07:36]OFD Sender: No OFD packet to send [00:07:41]OFD Sender: No OFD packet to send [00:07:46]OFD Sender: No OFD packet to send [00:07:51]OFD Sender: No OFD packet to send [00:07:56]OFD Sender: No OFD packet to send [00:08:01]OFD Sender: No OFD packet to send [00:08:06]OFD Sender: No OFD packet to send [00:08:11]OFD Sender: No OFD packet to send [00:08:16]OFD Sender: No OFD packet to send [00:08:21]OFD Sender: No OFD packet to send [00:08:26]OFD Sender: No OFD packet to send [00:08:31]OFD Sender: No OFD packet to send [00:08:36]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:46]OFD Sender: No OFD packet to send [00:08:51]OFD Sender: No OFD packet to send [00:08:56]OFD Sender: No OFD packet to send [00:09:01]OFD Sender: No OFD packet to send [00:09:06]OFD Sender: No OFD packet to send [00:09:11]OFD Sender: No OFD packet to send [00:09:16]OFD Sender: No OFD packet to send [00:09:21]OFD Sender: No OFD packet to send [00:09:26]OFD Sender: No OFD packet to send [00:09:31]OFD Sender: No OFD packet to send [00:09:36]OFD Sender: No OFD packet to send [00:09:41]OFD Sender: No OFD packet to send [00:09:46]OFD Sender: No OFD packet to send [00:09:51]OFD Sender: No OFD packet to send [00:09:56]OFD Sender: No OFD packet to send [00:10:01]OFD Sender: No OFD packet to send [00:10:06]OFD Sender: No OFD packet to send [00:10:11]OFD Sender: No OFD packet to send [00:10:16]OFD Sender: No OFD packet to send [00:10:21]OFD Sender: No OFD packet to send [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:36]OFD Sender: No OFD packet to send [00:10:41]OFD Sender: No OFD packet to send [00:10:46]OFD Sender: No OFD packet to send [00:10:51]OFD Sender: No OFD packet to send [00:10:56]OFD Sender: No OFD packet to send [00:11:01]OFD Sender: No OFD packet to send [00:11:06]OFD Sender: No OFD packet to send [00:11:11]OFD Sender: No OFD packet to send [00:11:16]OFD Sender: No OFD packet to send [00:11:21]OFD Sender: No OFD packet to send [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:45]accept exits with 9 [00:12:45]New connection [00:12:45]New thread 3066899812 created [00:12:45]Thread 3066756452 joined [00:12:45]Waiting for new connection... [00:12:45] Sock 9.Parse request [00:12:45]Sock 9.Check first char [00:12:45]Sock 9.First char is OK [00:12:45]request: POST /json_proto HTTP/1.0 [00:12:45]Method: POST [00:12:45]URL: /json_proto [00:12:45]Method is POST - this is cgi request [00:12:45]url: /json_proto [00:12:45]query_string will be loaded in cgi processing [00:12:45]execute_cgi json_proto POST (null) [00:12:45]execute_cgi path=json_proto method=POST [00:12:45]POST find Content-Length [00:12:45]Host: 172.17.46.196:8080 [00:12:45]Content-Length: 215 [00:12:45]Content-Type: application/json [00:12:45] [00:12:45]POST finish read [00:12:45]Found Content-Length = 215 [00:12:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:45]execute_script... [00:12:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:45]POST & json_proto [00:12:45]process_json_proto [00:12:45]json parsed OK: [00:12:45]protocol is kg_v1.0 [00:12:45]action value=get_value [00:12:45]process_action get_value [00:12:45]cmd_get_value [00:12:45]process_action get_value done [00:12:45]requested_data is exist [00:12:45]produce_requested_data [00:12:45]requested_item kkm.sn is exist - process it [00:12:45]requested_item kkm.ver is exist - process it [00:12:45]requested_item fm.sn is exist - process it [00:12:45]wFMCommunicate request_size=4 [00:12:45]MH_SAM_APDU [00:12:45]CAPDU: 80 11 00 00 [00:12:45]Write to MH i2c: E2 08 00 6B 0B 80 11 00 00 00 00 00 00 F0 [00:12:45]Write i2c OK [00:12:45]MH_I2C_Read... [00:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:45]Read from MH i2c: E2 [00:12:45]MH_I2C_Read... [00:12:45]Read from MH i2c: E2 17 00 [00:12:45]MH_I2C_Read... [00:12:45]Read from MH i2c: E2 17 00 6B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3B [00:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:12:45]wFMCommunicate OK [00:12:45]requested_item fd.num is exist - process it [00:12:45]SAM_PROTO_GetFieldsCounters [00:12:45]wFMCommunicate request_size=4 [00:12:45]MH_SAM_APDU [00:12:45]CAPDU: 80 13 00 00 [00:12:45]Write to MH i2c: E2 08 00 6C 0B 80 13 00 00 00 00 00 00 F3 [00:12:45]Write i2c OK [00:12:45]MH_I2C_Read... [00:12:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:45]Read from MH i2c: E2 [00:12:45]MH_I2C_Read... [00:12:45]Read from MH i2c: E2 62 00 [00:12:45]MH_I2C_Read... [00:12:45]Read from MH i2c: E2 62 00 6C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A4 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [00:12:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A4 C3 00 00 0E 04 04 00 D3 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:45]wFMCommunicate OK [00:12:45]SAM_PROTO_GetFieldsCounters done [00:12:45]requested_item shift.num is exist - process it [00:12:45]requested_item shift.opened is exist - process it [00:12:45]req_shift_opened [00:12:45]FM_GetShiftState [00:12:45]SAM_PROTO_GetShiftState [00:12:45]wFMCommunicate request_size=4 [00:12:45]MH_SAM_APDU [00:12:45]CAPDU: 80 13 01 00 [00:12:45]Write to MH i2c: E2 08 00 6D 0B 80 13 01 00 00 00 00 00 F5 [00:12:45]Write i2c OK [00:12:45]MH_I2C_Read... [00:12:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:45]Read from MH i2c: E2 [00:12:45]MH_I2C_Read... [00:12:45]Read from MH i2c: E2 0E 00 [00:12:45]MH_I2C_Read... [00:12:45]Read from MH i2c: E2 0E 00 6D 0B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 00 [00:12:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:45]wFMCommunicate OK [00:12:45]SAM_PROTO_GetShiftState done [00:12:45]FM_GetShiftState done [00:12:45]req_shift_opened done [00:12:45]requested_item shift.open_date is exist - process it [00:12:45]req_shift_open_date [00:12:45]FM_GetShiftState [00:12:45]SAM_PROTO_GetShiftState [00:12:45]wFMCommunicate request_size=4 [00:12:45]MH_SAM_APDU [00:12:45]CAPDU: 80 13 01 00 [00:12:45]Write to MH i2c: E2 08 00 6E 0B 80 13 01 00 00 00 00 00 F6 [00:12:45]Write i2c OK [00:12:45]MH_I2C_Read... [00:12:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:45]Read from MH i2c: E2 [00:12:45]MH_I2C_Read... [00:12:45]Read from MH i2c: E2 0E 00 [00:12:45]MH_I2C_Read... [00:12:45]Read from MH i2c: E2 0E 00 6E 0B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 01 [00:12:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:45]wFMCommunicate OK [00:12:45]SAM_PROTO_GetShiftState done [00:12:45]FM_GetShiftState done [00:12:45]req_shift_open_date done [00:12:45]produce_requested_data done [00:12:45]produce_requested_data return {"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":50084,"shift.num":467,"shift.opened":0,"shift.open_date":0} [00:12:45]process_action_free get_value [00:12:45]json_value_free [00:12:45]json_value_free done [00:12:45]process_json_proto returns [00:12:45]Send response to host [00:12:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000078","kkm.ver":"001","fm.sn":"0000000000871800","fd.num":50084,"shift.num":467,"shift.opened":0,"shift.open_date":0}}} [00:12:45]free response buf [00:12:45]execute_script done [00:12:45]execute_script returns [00:12:45]free content buf [00:12:45]Sock 9.Close socket [00:12:45]Sock 9.Thread stoped [00:12:45]accept exits with 10 [00:12:45]New connection [00:12:45]New thread 3066756452 created [00:12:45]Thread 3066899812 joined [00:12:45]Waiting for new connection... [00:12:45] Sock 10.Parse request [00:12:45]Sock 10.Check first char [00:12:45]Sock 10.First char is OK [00:12:45]request: POST /json_proto HTTP/1.0 [00:12:45]Method: POST [00:12:45]URL: /json_proto [00:12:45]Method is POST - this is cgi request [00:12:45]url: /json_proto [00:12:45]query_string will be loaded in cgi processing [00:12:45]execute_cgi json_proto POST (null) [00:12:45]execute_cgi path=json_proto method=POST [00:12:45]POST find Content-Length [00:12:45]Host: 172.17.46.196:8080 [00:12:45]Content-Length: 331 [00:12:45]Content-Type: application/json [00:12:45] [00:12:45]POST finish read [00:12:45]Found Content-Length = 331 [00:12:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:12:45]execute_script... [00:12:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:12:45]POST & json_proto [00:12:45]process_json_proto [00:12:45]json parsed OK: [00:12:45]protocol is kg_v1.0 [00:12:45]action value=get_value [00:12:45]process_action get_value [00:12:45]cmd_get_value [00:12:45]process_action get_value done [00:12:45]requested_data is exist [00:12:45]produce_requested_data [00:12:45]requested_item fm.sale.total is exist - process it [00:12:45]SAM_PROTO_GetFMData [00:12:45]wFMCommunicate request_size=4 [00:12:45]MH_SAM_APDU [00:12:45]CAPDU: 80 13 03 00 [00:12:45]Write to MH i2c: E2 08 00 6F 0B 80 13 03 00 00 00 00 00 F9 [00:12:45]Write i2c OK [00:12:45]MH_I2C_Read... [00:12:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:46]Read from MH i2c: E2 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 FD 00 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 FD 00 6F 0B 00 C0 04 85 04 BC 04 6E 04 04 00 FD BF 00 00 69 04 A0 00 6F 04 04 00 EA BF 00 00 B1 04 04 00 32 96 75 3D 70 04 04 00 4E 37 D7 34 72 04 04 00 E4 5E 9E 08 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 64 C9 86 06 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 DD 26 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 5C [00:12:46]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 FD BF 00 00 69 04 A0 00 6F 04 04 00 EA BF 00 00 B1 04 04 00 32 96 75 3D 70 04 04 00 4E 37 D7 34 72 04 04 00 E4 5E 9E 08 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 64 C9 86 06 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 DD 26 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 [00:12:46]wFMCommunicate OK [00:12:46]wFMCommunicate request_size=4 [00:12:46]MH_SAM_APDU [00:12:46]CAPDU: 80 17 00 00 [00:12:46]Write to MH i2c: E2 08 00 70 0B 80 17 00 00 00 00 00 00 FB [00:12:46]Write i2c OK [00:12:46]MH_I2C_Read... [00:12:46]OFD Sender: No OFD packet to send [00:12:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:46]Read from MH i2c: E2 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 FD 00 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 FD 00 70 0B 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2E [00:12:46]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:46]wFMCommunicate OK [00:12:46]wFMCommunicate request_size=4 [00:12:46]MH_SAM_APDU [00:12:46]CAPDU: 80 17 00 00 [00:12:46]Write to MH i2c: E2 08 00 71 0B 80 17 00 00 00 00 00 00 FC [00:12:46]Write i2c OK [00:12:46]MH_I2C_Read... [00:12:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:46]Read from MH i2c: E2 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 FD 00 [00:12:46]MH_I2C_Read... [00:12:46]Read from MH i2c: E2 FD 00 71 0B 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9F [00:12:46]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:46]wFMCommunicate OK [00:12:46]wFMCommunicate request_size=4 [00:12:46]MH_SAM_APDU [00:12:46]CAPDU: 80 17 00 00 [00:12:46]Write to MH i2c: E2 08 00 72 0B 80 17 00 00 00 00 00 00 FD [00:12:46]Write i2c OK [00:12:46]MH_I2C_Read... [00:12:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:47]Read from MH i2c: E2 [00:12:47]MH_I2C_Read... [00:12:47]Read from MH i2c: E2 FD 00 [00:12:47]MH_I2C_Read... [00:12:47]Read from MH i2c: E2 FD 00 72 0B 00 01 00 04 F7 03 00 00 EF 03 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 90 00 75 [00:12:47]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:47]wFMCommunicate OK [00:12:47]wFMCommunicate request_size=4 [00:12:47]MH_SAM_APDU [00:12:47]CAPDU: 80 17 00 00 [00:12:47]Write to MH i2c: E2 08 00 73 0B 80 17 00 00 00 00 00 00 FE [00:12:47]Write i2c OK [00:12:47]MH_I2C_Read... [00:12:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:12:47]Read from MH i2c: E2 [00:12:47]MH_I2C_Read... [00:12:47]Read from MH i2c: E2 DD 00 [00:12:47]MH_I2C_Read... [00:12:47]Read from MH i2c: E2 DD 00 73 0B 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E6 [00:12:47]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12:47]wFMCommunicate OK [00:12:47]SAM_PROTO_GetFMData done [00:12:47]requested_item fm.sale_refund.total is exist - process it [00:12:47]requested_item fm.buy.total is exist - process it [00:12:47]requested_item shift.sale.total is exist - process it [00:12:47]SAM_PROTO_GetShiftData [00:12:47]wFMCommunicate request_size=4 [00:12:47]MH_SAM_APDU [00:12:47]CAPDU: 80 13 02 00 [00:12:47]Write to MH i2c: E2 08 00 74 0B 80 13 02 00 00 00 00 00 FD [00:12:47]Write i2c OK [00:12:47]MH_I2C_Read... [00:12:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:47]Read from MH i2c: E2 [00:12:47]MH_I2C_Read... [00:12:47]Read from MH i2c: E2 FD 00 [00:12:47]MH_I2C_Read... [00:12:47]Read from MH i2c: E2 FD 00 74 0B 00 AE 04 AA 04 AA 04 6E 04 04 00 BE 00 00 00 69 04 9B 00 6F 04 04 00 BE 00 00 00 B1 04 03 00 58 2A 23 70 04 03 00 00 BC 1B 72 04 03 00 58 6E 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F3 BB 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 9F 4F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 22 [00:12:47]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 BE 00 00 00 69 04 9B 00 6F 04 04 00 BE 00 00 00 B1 04 03 00 58 2A 23 70 04 03 00 00 BC 1B 72 04 03 00 58 6E 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F3 BB 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 9F 4F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:12:47]wFMCommunicate OK [00:12:47]wFMCommunicate request_size=4 [00:12:47]MH_SAM_APDU [00:12:47]CAPDU: 80 17 00 00 [00:12:47]Write to MH i2c: E2 08 00 75 0B 80 17 00 00 00 00 00 00 00 [00:12:47]Write i2c OK [00:12:47]MH_I2C_Read... [00:12:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:48]Read from MH i2c: E2 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 FD 00 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 FD 00 75 0B 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 22 [00:12:48]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:12:48]wFMCommunicate OK [00:12:48]wFMCommunicate request_size=4 [00:12:48]MH_SAM_APDU [00:12:48]CAPDU: 80 17 00 00 [00:12:48]Write to MH i2c: E2 08 00 76 0B 80 17 00 00 00 00 00 00 01 [00:12:48]Write i2c OK [00:12:48]MH_I2C_Read... [00:12:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:48]Read from MH i2c: E2 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 FD 00 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 FD 00 76 0B 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 B8 [00:12:48]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:12:48]wFMCommunicate OK [00:12:48]wFMCommunicate request_size=4 [00:12:48]MH_SAM_APDU [00:12:48]CAPDU: 80 17 00 00 [00:12:48]Write to MH i2c: E2 08 00 77 0B 80 17 00 00 00 00 00 00 02 [00:12:48]Write i2c OK [00:12:48]MH_I2C_Read... [00:12:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:48]Read from MH i2c: E2 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 FD 00 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 FD 00 77 0B 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 74 [00:12:48]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:12:48]wFMCommunicate OK [00:12:48]wFMCommunicate request_size=4 [00:12:48]MH_SAM_APDU [00:12:48]CAPDU: 80 17 00 00 [00:12:48]Write to MH i2c: E2 08 00 78 0B 80 17 00 00 00 00 00 00 03 [00:12:48]Write i2c OK [00:12:48]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 CB 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 CB 00 78 0B 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EC [00:12:49]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:12:49]wFMCommunicate OK [00:12:49]SAM_PROTO_GetShiftData done [00:12:49]requested_item shift.sale.total_cash is exist - process it [00:12:49]requested_item shift.sale_refund.total is exist - process it [00:12:49]requested_item shift.sale_refund.total_cash is exist - process it [00:12:49]requested_item shift.buy.total is exist - process it [00:12:49]requested_item shift.buy.total_cash is exist - process it [00:12:49]produce_requested_data done [00:12:49]produce_requested_data return {"fm.sale.total":10311163.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":23046.00,"shift.sale.total_cash":18176.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:12:49]process_action_free get_value [00:12:49]json_value_free [00:12:49]json_value_free done [00:12:49]process_json_proto returns [00:12:49]Send response to host [00:12:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10311163.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":23046.00,"shift.sale.total_cash":18176.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:12:49]free response buf [00:12:49]execute_script done [00:12:49]execute_script returns [00:12:49]free content buf [00:12:49]Sock 10.Close socket [00:12:49]Sock 10.Thread stoped [00:12:49]accept exits with 8 [00:12:49]New connection [00:12:49]New thread 3066899812 created [00:12:49]Thread 3066756452 joined [00:12:49]Waiting for new connection... [00:12:49] Sock 8.Parse request [00:12:49]Sock 8.Check first char [00:12:49]Sock 8.First char is OK [00:12:49]request: POST /json_proto HTTP/1.0 [00:12:49]Method: POST [00:12:49]URL: /json_proto [00:12:49]Method is POST - this is cgi request [00:12:49]url: /json_proto [00:12:49]query_string will be loaded in cgi processing [00:12:49]execute_cgi json_proto POST (null) [00:12:49]execute_cgi path=json_proto method=POST [00:12:49]POST find Content-Length [00:12:49]Host: 172.17.46.196:8080 [00:12:49]Content-Length: 261 [00:12:49]Content-Type: application/json [00:12:49] [00:12:49]POST finish read [00:12:49]Found Content-Length = 261 [00:12:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0430\u043B\u044B\u0431\u0435\u043A \u0443. \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:49]execute_script... [00:12:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0430\u043B\u044B\u0431\u0435\u043A \u0443. \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:49]POST & json_proto [00:12:49]process_json_proto [00:12:49]json parsed OK: [00:12:49]protocol is kg_v1.0 [00:12:49]action value=open_shift [00:12:49]process_action open_shift [00:12:49]cmd_open_shift [00:12:49]MH_GetDate [00:12:49]Write to MH i2c: F0 00 00 79 0B 73 [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: F0 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: F0 09 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: F0 09 00 79 0B 00 83 DF C3 66 C4 85 C2 66 78 [00:12:49]GetLastDocTimeStamp 1724111562 [00:12:49]current date 1724112771 [00:12:49]FM_GetShiftState [00:12:49]SAM_PROTO_GetShiftState [00:12:49]wFMCommunicate request_size=4 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 13 01 00 [00:12:49]Write to MH i2c: E2 08 00 7A 0B 80 13 01 00 00 00 00 00 02 [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 0E 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 0E 00 7A 0B 00 09 00 00 00 00 00 00 00 00 00 00 90 00 0D [00:12:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:49]wFMCommunicate OK [00:12:49]SAM_PROTO_GetShiftState done [00:12:49]FM_GetShiftState done [00:12:49]KKMCreateOpenShiftDocument [00:12:49]Load OK [00:12:49]Malloc new data [00:12:49]MH_GetDate [00:12:49]Write to MH i2c: F0 00 00 7B 0B 75 [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: F0 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: F0 09 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: F0 09 00 7B 0B 00 83 DF C3 66 C4 85 C2 66 7A [00:12:49]Malloc new data [00:12:49]KKMCreateOpenShiftDocument OK [00:12:49]KKMSetOpenShiftData OK [00:12:49]ProcessDocumentItem done err = 0, tmpTLVsize=191 [00:12:49]tlvbuf is 019EEFF0 [00:12:49]KKMLoadAndSignOpenShiftData [00:12:49]SAM_PROTO_ProcessDocument [00:12:49]wFMCommunicate request_size=9 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 15 01 00 04 02 00 BF 00 [00:12:49]Write to MH i2c: E2 0C 00 7C 0B 80 15 01 00 04 00 02 00 BF 00 00 00 CF [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 7C 0B 00 90 00 FB [00:12:49]RAPDU: 90 00 [00:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=23 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:12:49]Write to MH i2c: E2 1A 00 7D 0B 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 FD [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 7D 0B 00 90 00 FC [00:12:49]RAPDU: 90 00 [00:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=32 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 9A D0 B0 D0 BB D1 8B D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9D 2E 20 [00:12:49]Write to MH i2c: E2 23 00 7E 0B 80 15 02 00 1B 00 FD 03 17 00 D0 9A D0 B0 D0 BB D1 8B D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9D 2E 20 00 00 34 [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 7E 0B 00 90 00 FD [00:12:49]RAPDU: 90 00 [00:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=78 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 15 02 00 49 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 [00:12:49]Write to MH i2c: E2 51 00 7F 0B 80 15 02 00 49 00 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 00 00 01 [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 7F 0B 00 90 00 FE [00:12:49]RAPDU: 90 00 [00:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=50 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 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:12:49]Write to MH i2c: E2 35 00 80 0B 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 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 88 [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 80 0B 00 90 00 FF [00:12:49]RAPDU: 90 00 [00:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=13 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 15 02 00 08 F4 03 04 00 83 DF C3 66 [00:12:49]Write to MH i2c: E2 10 00 81 0B 80 15 02 00 08 00 F4 03 04 00 83 DF C3 66 00 00 A2 [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 81 0B 00 90 00 00 [00:12:49]RAPDU: 90 00 [00:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=25 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 [00:12:49]Write to MH i2c: E2 1C 00 82 0B 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 00 00 70 [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:49]Read from MH i2c: E2 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 [00:12:49]MH_I2C_Read... [00:12:49]Read from MH i2c: E2 03 00 82 0B 00 90 00 01 [00:12:49]RAPDU: 90 00 [00:12:49]wFMCommunicate OK [00:12:49]wFMCommunicate request_size=4 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 15 03 00 [00:12:49]Write to MH i2c: E2 08 00 83 0B 80 15 03 00 00 00 00 00 0F [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 38 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 38 00 83 0B 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A5 C3 00 00 0E 04 04 00 D4 01 00 00 35 04 06 00 F9 B1 57 2C D8 69 90 00 7E [00:12:50]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A5 C3 00 00 0E 04 04 00 D4 01 00 00 35 04 06 00 F9 B1 57 2C D8 69 90 00 [00:12:50]wFMCommunicate OK [00:12:50]SAM_PROTO_ProcessDocument answer len = 51 [00:12:50]SAM_PROTO_ProcessDocument done [00:12:50]SetTLVBufToDocument [00:12:50]Processing tag 1209 (04B9) [00:12:50]Malloc new data [00:12:50]Processing tag 1041 (0411) [00:12:50]Processing tag 1040 (0410) [00:12:50]Malloc new data [00:12:50]Processing tag 1038 (040E) [00:12:50]Malloc new data [00:12:50]Processing tag 1077 (0435) [00:12:50]Malloc new data [00:12:50]SetTLVBufToDocument err=0 [00:12:50]KKMLoadAndSignOpenShiftData store KKM data [00:12:50]KKMLoadAndSignOpenShiftData err=0 [00:12:50]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Калыбек у. Н. Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 Место: АЗС № 95 "Партнер Нефть" 20.08.2024 00:12 Смена: 468 РНМ: 0000000000092546 ЗНМ: 0300000078 ФД: 50085 ФМ: 0000000000871800 ФПД: 274540067084393 [00:12:50]StoreToDocumentArchive [00:12:50]shift 468 fd 50085 [00:12:50]Create dir for shift 0468 [00:12:50]save to /storage/0468/doc_00050085 [00:12:50]save last doc name /storage/0468/doc_00050085 to /storage/kkm_last_doc_name [00:12:50]save OK [00:12:50]Clear old archive folders... [00:12:50]Remove dir /storage/0467 [00:12:50]opendir ok [00:12:50]file . [00:12:50]file .. [00:12:50]file doc_00049893 [00:12:50]remove file /storage/0467/doc_00049893 [00:12:50]file doc_00049894 [00:12:50]remove file /storage/0467/doc_00049894 [00:12:50]file doc_00049895 [00:12:50]remove file /storage/0467/doc_00049895 [00:12:50]file doc_00049896 [00:12:50]remove file /storage/0467/doc_00049896 [00:12:50]file doc_00049897 [00:12:50]remove file /storage/0467/doc_00049897 [00:12:50]file doc_00049898 [00:12:50]remove file /storage/0467/doc_00049898 [00:12:50]file doc_00049899 [00:12:50]remove file /storage/0467/doc_00049899 [00:12:50]file doc_00049900 [00:12:50]remove file /storage/0467/doc_00049900 [00:12:50]file doc_00049901 [00:12:50]remove file /storage/0467/doc_00049901 [00:12:50]file doc_00049902 [00:12:50]remove file /storage/0467/doc_00049902 [00:12:50]file doc_00049903 [00:12:50]remove file /storage/0467/doc_00049903 [00:12:50]file doc_00049904 [00:12:50]remove file /storage/0467/doc_00049904 [00:12:50]file doc_00049905 [00:12:50]remove file /storage/0467/doc_00049905 [00:12:50]file doc_00049906 [00:12:50]remove file /storage/0467/doc_00049906 [00:12:50]file doc_00049907 [00:12:50]remove file /storage/0467/doc_00049907 [00:12:50]file doc_00049908 [00:12:50]remove file /storage/0467/doc_00049908 [00:12:50]file doc_00049909 [00:12:50]remove file /storage/0467/doc_00049909 [00:12:50]file doc_00049910 [00:12:50]remove file /storage/0467/doc_00049910 [00:12:50]file doc_00049911 [00:12:50]remove file /storage/0467/doc_00049911 [00:12:50]file doc_00049912 [00:12:50]remove file /storage/0467/doc_00049912 [00:12:50]file doc_00049913 [00:12:50]remove file /storage/0467/doc_00049913 [00:12:50]file doc_00049914 [00:12:50]remove file /storage/0467/doc_00049914 [00:12:50]file doc_00049915 [00:12:50]remove file /storage/0467/doc_00049915 [00:12:50]file doc_00049916 [00:12:50]remove file /storage/0467/doc_00049916 [00:12:50]file doc_00049917 [00:12:50]remove file /storage/0467/doc_00049917 [00:12:50]file doc_00049918 [00:12:50]remove file /storage/0467/doc_00049918 [00:12:50]file doc_00049919 [00:12:50]remove file /storage/0467/doc_00049919 [00:12:50]file doc_00049920 [00:12:50]remove file /storage/0467/doc_00049920 [00:12:50]file doc_00049921 [00:12:50]remove file /storage/0467/doc_00049921 [00:12:50]file doc_00049922 [00:12:50]remove file /storage/0467/doc_00049922 [00:12:50]file doc_00049923 [00:12:50]remove file /storage/0467/doc_00049923 [00:12:50]file doc_00049924 [00:12:50]remove file /storage/0467/doc_00049924 [00:12:50]file doc_00049925 [00:12:50]remove file /storage/0467/doc_00049925 [00:12:50]file doc_00049926 [00:12:50]remove file /storage/0467/doc_00049926 [00:12:50]file doc_00049927 [00:12:50]remove file /storage/0467/doc_00049927 [00:12:50]file doc_00049928 [00:12:50]remove file /storage/0467/doc_00049928 [00:12:50]file doc_00049929 [00:12:50]remove file /storage/0467/doc_00049929 [00:12:50]file doc_00049930 [00:12:50]remove file /storage/0467/doc_00049930 [00:12:50]file doc_00049931 [00:12:50]remove file /storage/0467/doc_00049931 [00:12:50]file doc_00049932 [00:12:50]remove file /storage/0467/doc_00049932 [00:12:50]file doc_00049933 [00:12:50]remove file /storage/0467/doc_00049933 [00:12:50]file doc_00049934 [00:12:50]remove file /storage/0467/doc_00049934 [00:12:50]file doc_00049935 [00:12:50]remove file /storage/0467/doc_00049935 [00:12:50]file doc_00049936 [00:12:50]remove file /storage/0467/doc_00049936 [00:12:50]file doc_00049937 [00:12:50]remove file /storage/0467/doc_00049937 [00:12:50]file doc_00049938 [00:12:50]remove file /storage/0467/doc_00049938 [00:12:50]file doc_00049939 [00:12:50]remove file /storage/0467/doc_00049939 [00:12:50]file doc_00049940 [00:12:50]remove file /storage/0467/doc_00049940 [00:12:50]file doc_00049941 [00:12:50]remove file /storage/0467/doc_00049941 [00:12:50]file doc_00049942 [00:12:50]remove file /storage/0467/doc_00049942 [00:12:50]file doc_00049943 [00:12:50]remove file /storage/0467/doc_00049943 [00:12:50]file doc_00049944 [00:12:50]remove file /storage/0467/doc_00049944 [00:12:50]file doc_00049945 [00:12:50]remove file /storage/0467/doc_00049945 [00:12:50]file doc_00049946 [00:12:50]remove file /storage/0467/doc_00049946 [00:12:50]file doc_00049947 [00:12:50]remove file /storage/0467/doc_00049947 [00:12:50]file doc_00049948 [00:12:50]remove file /storage/0467/doc_00049948 [00:12:50]file doc_00049949 [00:12:50]remove file /storage/0467/doc_00049949 [00:12:50]file doc_00049950 [00:12:50]remove file /storage/0467/doc_00049950 [00:12:50]file doc_00049951 [00:12:50]remove file /storage/0467/doc_00049951 [00:12:50]file doc_00049952 [00:12:50]remove file /storage/0467/doc_00049952 [00:12:50]file doc_00049953 [00:12:50]remove file /storage/0467/doc_00049953 [00:12:50]file doc_00049954 [00:12:50]remove file /storage/0467/doc_00049954 [00:12:50]file doc_00049955 [00:12:50]remove file /storage/0467/doc_00049955 [00:12:50]file doc_00049956 [00:12:50]remove file /storage/0467/doc_00049956 [00:12:50]file doc_00049957 [00:12:50]remove file /storage/0467/doc_00049957 [00:12:50]file doc_00049958 [00:12:50]remove file /storage/0467/doc_00049958 [00:12:50]file doc_00049959 [00:12:50]remove file /storage/0467/doc_00049959 [00:12:50]file doc_00049960 [00:12:50]remove file /storage/0467/doc_00049960 [00:12:50]file doc_00049961 [00:12:50]remove file /storage/0467/doc_00049961 [00:12:50]file doc_00049962 [00:12:50]remove file /storage/0467/doc_00049962 [00:12:50]file doc_00049963 [00:12:50]remove file /storage/0467/doc_00049963 [00:12:50]file doc_00049964 [00:12:50]remove file /storage/0467/doc_00049964 [00:12:50]file doc_00049965 [00:12:50]remove file /storage/0467/doc_00049965 [00:12:50]file doc_00049966 [00:12:50]remove file /storage/0467/doc_00049966 [00:12:50]file doc_00049967 [00:12:50]remove file /storage/0467/doc_00049967 [00:12:50]file doc_00049968 [00:12:50]remove file /storage/0467/doc_00049968 [00:12:50]file doc_00049969 [00:12:50]remove file /storage/0467/doc_00049969 [00:12:50]file doc_00049970 [00:12:50]remove file /storage/0467/doc_00049970 [00:12:50]file doc_00049971 [00:12:50]remove file /storage/0467/doc_00049971 [00:12:50]file doc_00049972 [00:12:50]remove file /storage/0467/doc_00049972 [00:12:50]file doc_00049973 [00:12:50]remove file /storage/0467/doc_00049973 [00:12:50]file doc_00049974 [00:12:50]remove file /storage/0467/doc_00049974 [00:12:50]file doc_00049975 [00:12:50]remove file /storage/0467/doc_00049975 [00:12:50]file doc_00049976 [00:12:50]remove file /storage/0467/doc_00049976 [00:12:50]file doc_00049977 [00:12:50]remove file /storage/0467/doc_00049977 [00:12:50]file doc_00049978 [00:12:50]remove file /storage/0467/doc_00049978 [00:12:50]file doc_00049979 [00:12:50]remove file /storage/0467/doc_00049979 [00:12:50]file doc_00049980 [00:12:50]remove file /storage/0467/doc_00049980 [00:12:50]file doc_00049981 [00:12:50]remove file /storage/0467/doc_00049981 [00:12:50]file doc_00049982 [00:12:50]remove file /storage/0467/doc_00049982 [00:12:50]file doc_00049983 [00:12:50]remove file /storage/0467/doc_00049983 [00:12:50]file doc_00049984 [00:12:50]remove file /storage/0467/doc_00049984 [00:12:50]file doc_00049985 [00:12:50]remove file /storage/0467/doc_00049985 [00:12:50]file doc_00049986 [00:12:50]remove file /storage/0467/doc_00049986 [00:12:50]file doc_00049987 [00:12:50]remove file /storage/0467/doc_00049987 [00:12:50]file doc_00049988 [00:12:50]remove file /storage/0467/doc_00049988 [00:12:50]file doc_00049989 [00:12:50]remove file /storage/0467/doc_00049989 [00:12:50]file doc_00049990 [00:12:50]remove file /storage/0467/doc_00049990 [00:12:50]file doc_00049991 [00:12:50]remove file /storage/0467/doc_00049991 [00:12:50]file doc_00049992 [00:12:50]remove file /storage/0467/doc_00049992 [00:12:50]file doc_00049993 [00:12:50]remove file /storage/0467/doc_00049993 [00:12:50]file doc_00049994 [00:12:50]remove file /storage/0467/doc_00049994 [00:12:50]file doc_00049995 [00:12:50]remove file /storage/0467/doc_00049995 [00:12:50]file doc_00049996 [00:12:50]remove file /storage/0467/doc_00049996 [00:12:50]file doc_00049997 [00:12:50]remove file /storage/0467/doc_00049997 [00:12:50]file doc_00049998 [00:12:50]remove file /storage/0467/doc_00049998 [00:12:50]file doc_00049999 [00:12:50]remove file /storage/0467/doc_00049999 [00:12:50]file doc_00050000 [00:12:50]remove file /storage/0467/doc_00050000 [00:12:50]file doc_00050001 [00:12:50]remove file /storage/0467/doc_00050001 [00:12:50]file doc_00050002 [00:12:50]remove file /storage/0467/doc_00050002 [00:12:50]file doc_00050003 [00:12:50]remove file /storage/0467/doc_00050003 [00:12:50]file doc_00050004 [00:12:50]remove file /storage/0467/doc_00050004 [00:12:50]file doc_00050005 [00:12:50]remove file /storage/0467/doc_00050005 [00:12:50]file doc_00050006 [00:12:50]remove file /storage/0467/doc_00050006 [00:12:50]file doc_00050007 [00:12:50]remove file /storage/0467/doc_00050007 [00:12:50]file doc_00050008 [00:12:50]remove file /storage/0467/doc_00050008 [00:12:50]file doc_00050009 [00:12:50]remove file /storage/0467/doc_00050009 [00:12:50]file doc_00050010 [00:12:50]remove file /storage/0467/doc_00050010 [00:12:50]file doc_00050011 [00:12:50]remove file /storage/0467/doc_00050011 [00:12:50]file doc_00050012 [00:12:50]remove file /storage/0467/doc_00050012 [00:12:50]file doc_00050013 [00:12:50]remove file /storage/0467/doc_00050013 [00:12:50]file doc_00050014 [00:12:50]remove file /storage/0467/doc_00050014 [00:12:50]file doc_00050015 [00:12:50]remove file /storage/0467/doc_00050015 [00:12:50]file doc_00050016 [00:12:50]remove file /storage/0467/doc_00050016 [00:12:50]file doc_00050017 [00:12:50]remove file /storage/0467/doc_00050017 [00:12:50]file doc_00050018 [00:12:50]remove file /storage/0467/doc_00050018 [00:12:50]file doc_00050019 [00:12:50]remove file /storage/0467/doc_00050019 [00:12:50]file doc_00050020 [00:12:50]remove file /storage/0467/doc_00050020 [00:12:50]file doc_00050021 [00:12:50]remove file /storage/0467/doc_00050021 [00:12:50]file doc_00050022 [00:12:50]remove file /storage/0467/doc_00050022 [00:12:50]file doc_00050023 [00:12:50]remove file /storage/0467/doc_00050023 [00:12:50]file doc_00050024 [00:12:50]remove file /storage/0467/doc_00050024 [00:12:50]file doc_00050025 [00:12:50]remove file /storage/0467/doc_00050025 [00:12:50]file doc_00050026 [00:12:50]remove file /storage/0467/doc_00050026 [00:12:50]file doc_00050027 [00:12:50]remove file /storage/0467/doc_00050027 [00:12:50]file doc_00050028 [00:12:50]remove file /storage/0467/doc_00050028 [00:12:50]file doc_00050029 [00:12:50]remove file /storage/0467/doc_00050029 [00:12:50]file doc_00050030 [00:12:50]remove file /storage/0467/doc_00050030 [00:12:50]file doc_00050031 [00:12:50]remove file /storage/0467/doc_00050031 [00:12:50]file doc_00050032 [00:12:50]remove file /storage/0467/doc_00050032 [00:12:50]file doc_00050033 [00:12:50]remove file /storage/0467/doc_00050033 [00:12:51]file doc_00050034 [00:12:51]remove file /storage/0467/doc_00050034 [00:12:51]file doc_00050035 [00:12:51]remove file /storage/0467/doc_00050035 [00:12:51]file doc_00050036 [00:12:51]remove file /storage/0467/doc_00050036 [00:12:51]file doc_00050037 [00:12:51]remove file /storage/0467/doc_00050037 [00:12:51]file doc_00050038 [00:12:51]remove file /storage/0467/doc_00050038 [00:12:51]file doc_00050039 [00:12:51]remove file /storage/0467/doc_00050039 [00:12:51]file doc_00050040 [00:12:51]remove file /storage/0467/doc_00050040 [00:12:51]file doc_00050041 [00:12:51]remove file /storage/0467/doc_00050041 [00:12:51]file doc_00050042 [00:12:51]remove file /storage/0467/doc_00050042 [00:12:51]file doc_00050043 [00:12:51]remove file /storage/0467/doc_00050043 [00:12:51]file doc_00050044 [00:12:51]remove file /storage/0467/doc_00050044 [00:12:51]file doc_00050045 [00:12:51]remove file /storage/0467/doc_00050045 [00:12:51]file doc_00050046 [00:12:51]remove file /storage/0467/doc_00050046 [00:12:51]file doc_00050047 [00:12:51]remove file /storage/0467/doc_00050047 [00:12:51]file doc_00050048 [00:12:51]remove file /storage/0467/doc_00050048 [00:12:51]file doc_00050049 [00:12:51]remove file /storage/0467/doc_00050049 [00:12:51]file doc_00050050 [00:12:51]remove file /storage/0467/doc_00050050 [00:12:51]file doc_00050051 [00:12:51]remove file /storage/0467/doc_00050051 [00:12:51]file doc_00050052 [00:12:51]remove file /storage/0467/doc_00050052 [00:12:51]file doc_00050053 [00:12:51]remove file /storage/0467/doc_00050053 [00:12:51]file doc_00050054 [00:12:51]remove file /storage/0467/doc_00050054 [00:12:51]file doc_00050055 [00:12:51]remove file /storage/0467/doc_00050055 [00:12:51]file doc_00050056 [00:12:51]remove file /storage/0467/doc_00050056 [00:12:51]file doc_00050057 [00:12:51]remove file /storage/0467/doc_00050057 [00:12:51]file doc_00050058 [00:12:51]remove file /storage/0467/doc_00050058 [00:12:51]file doc_00050059 [00:12:51]remove file /storage/0467/doc_00050059 [00:12:51]file doc_00050060 [00:12:51]remove file /storage/0467/doc_00050060 [00:12:51]file doc_00050061 [00:12:51]remove file /storage/0467/doc_00050061 [00:12:51]file doc_00050062 [00:12:51]remove file /storage/0467/doc_00050062 [00:12:51]file doc_00050063 [00:12:51]remove file /storage/0467/doc_00050063 [00:12:51]file doc_00050064 [00:12:51]remove file /storage/0467/doc_00050064 [00:12:51]file doc_00050065 [00:12:51]remove file /storage/0467/doc_00050065 [00:12:51]file doc_00050066 [00:12:51]remove file /storage/0467/doc_00050066 [00:12:51]file doc_00050067 [00:12:51]remove file /storage/0467/doc_00050067 [00:12:51]file doc_00050068 [00:12:51]remove file /storage/0467/doc_00050068 [00:12:51]file doc_00050069 [00:12:51]remove file /storage/0467/doc_00050069 [00:12:51]file doc_00050070 [00:12:51]remove file /storage/0467/doc_00050070 [00:12:51]file doc_00050071 [00:12:51]remove file /storage/0467/doc_00050071 [00:12:51]file doc_00050072 [00:12:51]remove file /storage/0467/doc_00050072 [00:12:51]file doc_00050073 [00:12:51]remove file /storage/0467/doc_00050073 [00:12:51]file doc_00050074 [00:12:51]remove file /storage/0467/doc_00050074 [00:12:51]file doc_00050075 [00:12:51]remove file /storage/0467/doc_00050075 [00:12:51]file doc_00050076 [00:12:51]remove file /storage/0467/doc_00050076 [00:12:51]file doc_00050077 [00:12:51]remove file /storage/0467/doc_00050077 [00:12:51]file doc_00050078 [00:12:51]remove file /storage/0467/doc_00050078 [00:12:51]file doc_00050079 [00:12:51]remove file /storage/0467/doc_00050079 [00:12:51]file doc_00050080 [00:12:51]remove file /storage/0467/doc_00050080 [00:12:51]file doc_00050081 [00:12:51]remove file /storage/0467/doc_00050081 [00:12:51]file doc_00050082 [00:12:51]remove file /storage/0467/doc_00050082 [00:12:51]file doc_00050083 [00:12:51]remove file /storage/0467/doc_00050083 [00:12:51]file doc_00050084 [00:12:51]remove file /storage/0467/doc_00050084 [00:12:51]remove dir /storage/0467 [00:12:51]ProcessDocumentItem done err = 0, tmpTLVsize=242 [00:12:51]tlvbuf is B6F48860 [00:12:51]SAM_PROTO_ClearQueue [00:12:51]wFMCommunicate request_size=4 [00:12:51]MH_SAM_APDU [00:12:51]CAPDU: 80 09 00 00 [00:12:51]Write to MH i2c: E2 08 00 84 0B 80 09 00 00 00 00 00 00 01 [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:51]Read from MH i2c: E2 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 84 0B 00 90 00 03 [00:12:51]RAPDU: 90 00 [00:12:51]wFMCommunicate OK [00:12:51]SAM_PROTO_ClearQueue done [00:12:51]KKMCreateOFDPacket [00:12:51]OFDProtocolAddRootSTLVToBuf [00:12:51]FM_MakeSignedData [00:12:51]FM_MakeSignedData [00:12:51]SAM_PROTO_SignData [00:12:51]wFMCommunicate request_size=4 [00:12:51]MH_SAM_APDU [00:12:51]CAPDU: 80 0D 01 02 [00:12:51]Write to MH i2c: E2 08 00 85 0B 80 0D 01 02 00 00 00 00 09 [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:51]Read from MH i2c: E2 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 85 0B 00 90 00 04 [00:12:51]RAPDU: 90 00 [00:12:51]wFMCommunicate OK [00:12:51]wFMCommunicate request_size=251 [00:12:51]MH_SAM_APDU [00:12:51]CAPDU: 80 0D 02 02 F6 02 00 F2 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 17 00 D0 9A D0 B0 D0 BB D1 8B D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9D 2E 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 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 83 DF C3 66 0E 04 04 00 D4 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A5 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 F9 B1 57 2C D8 69 [00:12:51]Write to MH i2c: E2 FE 00 86 0B 80 0D 02 02 F6 00 02 00 F2 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 17 00 D0 9A D0 B0 D0 BB D1 8B D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9D 2E 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 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 83 DF C3 66 0E 04 04 00 D4 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A5 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 F9 B1 57 2C D8 69 00 00 0E [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]OFD Sender: No OFD packet to send [00:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:51]Read from MH i2c: E2 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 03 00 86 0B 00 90 00 05 [00:12:51]RAPDU: 90 00 [00:12:51]wFMCommunicate OK [00:12:51]wFMCommunicate request_size=4 [00:12:51]MH_SAM_APDU [00:12:51]CAPDU: 80 0D 03 02 [00:12:51]Write to MH i2c: E2 08 00 87 0B 80 0D 03 02 00 00 00 00 0D [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:51]Read from MH i2c: E2 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 0B 00 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 0B 00 87 0B 00 4B 16 8B 6B EB AC B5 1D 90 00 CE [00:12:51]RAPDU: 4B 16 8B 6B EB AC B5 1D 90 00 [00:12:51]wFMCommunicate OK [00:12:51]SAM_PROTO_SignData done [00:12:51]FM_MakeSignedData done [00:12:51]CreateOFDProtocolMessage [00:12:51]wFMCommunicate request_size=4 [00:12:51]MH_SAM_APDU [00:12:51]CAPDU: 80 11 00 00 [00:12:51]Write to MH i2c: E2 08 00 88 0B 80 11 00 00 00 00 00 00 0D [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:51]Read from MH i2c: E2 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 17 00 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: E2 17 00 88 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 58 [00:12:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [00:12:51]wFMCommunicate OK [00:12:51]CreateOFDProtocolMessage done [00:12:51]OFDSenderStorePacket 50085 [00:12:51]StoreOFDPacket docnum=50085 [00:12:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 06 01 00 00 33 60 FE 00 7B 57 5A 02 01 00 02 00 F2 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 17 00 D0 9A D0 B0 D0 BB D1 8B D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9D 2E 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 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 83 DF C3 66 0E 04 04 00 D4 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A5 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 F9 B1 57 2C D8 69 4B 16 8B 6B EB AC B5 1D [00:12:51]CheckFolder [00:12:51]dirname=/storage/ofd_packets [00:12:51]CheckFolder done [00:12:51]ProducePacketName [00:12:51]name=ofd_packets/00050085 [00:12:51]NVStorageSaveData ofd_packets/00050085 [00:12:51]File name is /storage/ofd_packets/00050085 [00:12:51]Write 292 bytes [00:12:51]NVStorageSaveData done [00:12:51]OFDSenderStorePacket done [00:12:51]KKMCreateOFDPacket done [00:12:51]NVStorageSaveData kkm_last_timestamp [00:12:51]File name is /storage/kkm_last_timestamp [00:12:51]Write 4 bytes [00:12:51]NVStorageSaveData done [00:12:51]ExternCall_PrintAddStr [00:12:51]wPrintStart [00:12:51]Write to MH i2c: 01 00 00 89 0B 94 [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: 01 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: 01 07 00 [00:12:51]MH_I2C_Read... [00:12:51]OFD Sender: Processing packet 50085 [packets to send 21, broken 20] [00:12:51]ProducePacketName [00:12:51]name=ofd_packets/00050085 [00:12:51]OFD Sender: To server: pG, [00:12:51]CommunicateWithHost lk.salyk.kg:30040 [00:12:51]ConnectInit lk.salyk.kg [00:12:51]Read from MH i2c: 01 07 00 89 0B 00 00 00 00 00 FF 0F A9 [00:12:51]RasterBufferAndPrint [00:12:51]line Отчет об открытии смены [00:12:51]line ФФД: 1.0 [00:12:51]line ИНН: 02508201610067 [00:12:51]line Кассир: Калыбек у. Н. [00:12:51]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [00:12:51]line Место: АЗС № 95 "Партнер Нефть" [00:12:51]line 20.08.2024 00:12 [00:12:51]line Смена: 468 [00:12:51]line РНМ: 0000000000092546 [00:12:51]line ЗНМ: 0300000078 [00:12:51]line ФД: 50085 [00:12:51]line ФМ: 0000000000871800 [00:12:51]line ФПД: 274540067084393 [00:12:51]written 0, free lines is 4095 [00:12:52]Write to MH i2c: 01 00 00 9B 0B A6 [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: 01 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: 01 07 00 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: 01 07 00 9B 0B 00 00 00 00 00 55 0E 10 [00:12:52]RasterBufferAndPrint [00:12:52]line [00:12:52]line [00:12:52]line [00:12:52]line [00:12:52]line [00:12:52]written 0, free lines is 3681 [00:12:52]MH_Cut [00:12:52]Write to MH i2c: D1 01 00 A2 0B 01 7F [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: D1 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: D1 01 00 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: D1 01 00 A2 0B 00 7E [00:12:52]Write to MH i2c: 01 00 00 A3 0B AE [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:52]Connected sock=10 [00:12:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 06 01 00 00 33 60 FE 00 7B 57 5A 02 01 00 02 00 F2 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 17 00 D0 9A D0 B0 D0 BB D1 8B D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9D 2E 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 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 83 DF C3 66 0E 04 04 00 D4 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A5 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 F9 B1 57 2C D8 69 4B 16 8B 6B EB AC B5 1D [00:12:52]*** Cut start [00:12:52]*** Purtial cut [00:12:52]*** Stage 1: CUTSNS_PIN = 1 [00:12:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B8 88 47 00 AD 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A5 C3 00 00 F4 03 04 00 F0 89 C3 66 B6 04 01 00 00 D9 DC 29 5E E2 01 06 AC [00:12:52]CommunicateWithHost err = 0 [00:12:52]CheckOFDResponse [00:12:52]1017 (14) - 77093643461234 [00:12:52]1041 (16) - 0000000000871800 [00:12:52]1040 (4) - 50085 [00:12:52]1012 (4) - 19.08.2024 18:07 [00:12:52]1206 (1) - 0 [00:12:52]OFD Sender: Remove packet 50085 [00:12:52]ProducePacketName [00:12:52]name=ofd_packets/00050085 [00:12:52]NVStorageDeleteData [00:12:52]Read from MH i2c: 01 [00:12:52]MH_I2C_Read... [00:12:52]*** Stop cut motor [00:12:52]*** Cut end [00:12:52]Read from MH i2c: 01 07 00 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: 01 07 00 A3 0B 00 00 00 00 00 FF 0F C3 [00:12:52]process_action open_shift done [00:12:52]requested_data is exist [00:12:52]produce_requested_data [00:12:52]requested_item fd.num is exist - process it [00:12:52]SAM_PROTO_GetFieldsCounters [00:12:52]wFMCommunicate request_size=4 [00:12:52]MH_SAM_APDU [00:12:52]CAPDU: 80 13 00 00 [00:12:52]Write to MH i2c: E2 08 00 A4 0B 80 13 00 00 00 00 00 00 2B [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:53]Read from MH i2c: E2 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 62 00 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 62 00 A4 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A5 C3 00 00 0E 04 04 00 D4 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 82 [00:12:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A5 C3 00 00 0E 04 04 00 D4 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:12:53]wFMCommunicate OK [00:12:53]SAM_PROTO_GetFieldsCounters done [00:12:53]requested_item shift.num is exist - process it [00:12:53]requested_item shift.opened is exist - process it [00:12:53]req_shift_opened [00:12:53]FM_GetShiftState [00:12:53]SAM_PROTO_GetShiftState [00:12:53]wFMCommunicate request_size=4 [00:12:53]MH_SAM_APDU [00:12:53]CAPDU: 80 13 01 00 [00:12:53]Write to MH i2c: E2 08 00 A5 0B 80 13 01 00 00 00 00 00 2D [00:12:53]Write i2c OK [00:12:53]MH_I2C_Read... [00:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:53]Read from MH i2c: E2 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 0E 00 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 0E 00 A5 0B 00 09 00 01 83 DF C3 66 00 00 00 00 90 00 C4 [00:12:53]RAPDU: 09 00 01 83 DF C3 66 00 00 00 00 90 00 [00:12:53]wFMCommunicate OK [00:12:53]SAM_PROTO_GetShiftState done [00:12:53]FM_GetShiftState done [00:12:53]req_shift_opened done [00:12:53]requested_item shift.open_date is exist - process it [00:12:53]req_shift_open_date [00:12:53]req_shift_open_date done [00:12:53]produce_requested_data done [00:12:53]produce_requested_data return {"fd.num":50085,"shift.num":468,"shift.opened":1,"shift.open_date":1724112771} [00:12:53]process_action_free open_shift [00:12:53]json_value_free [00:12:53]json_value_free done [00:12:53]process_json_proto returns [00:12:53]Send response to host [00:12:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":50085,"shift.num":468,"shift.opened":1,"shift.open_date":1724112771}}} [00:12:53]free response buf [00:12:53]execute_script done [00:12:53]execute_script returns [00:12:53]free content buf [00:12:53]Sock 8.Close socket [00:12:53]Sock 8.Thread stoped [00:12:53]accept exits with 9 [00:12:53]New connection [00:12:53]New thread 3066756452 created [00:12:53]Thread 3066899812 joined [00:12:53]Waiting for new connection... [00:12:53] Sock 9.Parse request [00:12:53]Sock 9.Check first char [00:12:53]Sock 9.First char is OK [00:12:53]request: POST /json_proto HTTP/1.0 [00:12:53]Method: POST [00:12:53]URL: /json_proto [00:12:53]Method is POST - this is cgi request [00:12:53]url: /json_proto [00:12:53]query_string will be loaded in cgi processing [00:12:53]execute_cgi json_proto POST (null) [00:12:53]execute_cgi path=json_proto method=POST [00:12:53]POST find Content-Length [00:12:53]Host: 172.17.46.196:8080 [00:12:53]Content-Length: 331 [00:12:53]Content-Type: application/json [00:12:53] [00:12:53]POST finish read [00:12:53]Found Content-Length = 331 [00:12: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" ] } } [00:12:53]execute_script... [00:12: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" ] } } [00:12:53]POST & json_proto [00:12:53]process_json_proto [00:12:53]json parsed OK: [00:12:53]protocol is kg_v1.0 [00:12:53]action value=get_value [00:12:53]process_action get_value [00:12:53]cmd_get_value [00:12:53]process_action get_value done [00:12:53]requested_data is exist [00:12:53]produce_requested_data [00:12:53]requested_item fm.sale.total is exist - process it [00:12:53]SAM_PROTO_GetFMData [00:12:53]wFMCommunicate request_size=4 [00:12:53]MH_SAM_APDU [00:12:53]CAPDU: 80 13 03 00 [00:12:53]Write to MH i2c: E2 08 00 A6 0B 80 13 03 00 00 00 00 00 30 [00:12:53]Write i2c OK [00:12:53]MH_I2C_Read... [00:12:53]OFD Sender: No OFD packet to send [00:12:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:53]Read from MH i2c: E2 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 FD 00 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 FD 00 A6 0B 00 C0 04 85 04 BC 04 6E 04 04 00 FD BF 00 00 69 04 A0 00 6F 04 04 00 EA BF 00 00 B1 04 04 00 32 96 75 3D 70 04 04 00 4E 37 D7 34 72 04 04 00 E4 5E 9E 08 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 64 C9 86 06 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 DD 26 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 93 [00:12:53]RAPDU: C0 04 85 04 BC 04 6E 04 04 00 FD BF 00 00 69 04 A0 00 6F 04 04 00 EA BF 00 00 B1 04 04 00 32 96 75 3D 70 04 04 00 4E 37 D7 34 72 04 04 00 E4 5E 9E 08 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 64 C9 86 06 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 DD 26 8B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A 00 6F 04 04 00 13 00 00 00 B1 04 03 00 40 D1 25 70 04 03 00 54 A4 25 72 04 02 00 EC 2C 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 39 04 04 EF 03 09 00 F6 03 01 90 00 [00:12:53]wFMCommunicate OK [00:12:53]wFMCommunicate request_size=4 [00:12:53]MH_SAM_APDU [00:12:53]CAPDU: 80 17 00 00 [00:12:53]Write to MH i2c: E2 08 00 A7 0B 80 17 00 00 00 00 00 00 32 [00:12:53]Write i2c OK [00:12:53]MH_I2C_Read... [00:12:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:54]Read from MH i2c: E2 [00:12:54]MH_I2C_Read... [00:12:54]Read from MH i2c: E2 FD 00 [00:12:54]MH_I2C_Read... [00:12:54]Read from MH i2c: E2 FD 00 A7 0B 00 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 65 [00:12:54]RAPDU: 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 B0 55 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:54]wFMCommunicate OK [00:12:54]wFMCommunicate request_size=4 [00:12:54]MH_SAM_APDU [00:12:54]CAPDU: 80 17 00 00 [00:12:54]Write to MH i2c: E2 08 00 A8 0B 80 17 00 00 00 00 00 00 33 [00:12:54]Write i2c OK [00:12:54]MH_I2C_Read... [00:12:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:54]Read from MH i2c: E2 [00:12:54]MH_I2C_Read... [00:12:54]Read from MH i2c: E2 FD 00 [00:12:54]MH_I2C_Read... [00:12:54]Read from MH i2c: E2 FD 00 A8 0B 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D6 [00:12:54]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:54]wFMCommunicate OK [00:12:54]wFMCommunicate request_size=4 [00:12:54]MH_SAM_APDU [00:12:54]CAPDU: 80 17 00 00 [00:12:54]Write to MH i2c: E2 08 00 A9 0B 80 17 00 00 00 00 00 00 34 [00:12:54]Write i2c OK [00:12:54]MH_I2C_Read... [00:12:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:54]Read from MH i2c: E2 [00:12:54]MH_I2C_Read... [00:12:54]Read from MH i2c: E2 FD 00 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 FD 00 A9 0B 00 01 00 04 F7 03 00 00 EF 03 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 90 00 AC [00:12:55]RAPDU: 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:55]wFMCommunicate OK [00:12:55]wFMCommunicate request_size=4 [00:12:55]MH_SAM_APDU [00:12:55]CAPDU: 80 17 00 00 [00:12:55]Write to MH i2c: E2 08 00 AA 0B 80 17 00 00 00 00 00 00 35 [00:12:55]Write i2c OK [00:12:55]MH_I2C_Read... [00:12:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 218! [00:12:55]Read from MH i2c: E2 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 DD 00 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 DD 00 AA 0B 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1D [00:12:55]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12:55]wFMCommunicate OK [00:12:55]SAM_PROTO_GetFMData done [00:12:55]requested_item fm.sale_refund.total is exist - process it [00:12:55]requested_item fm.buy.total is exist - process it [00:12:55]requested_item shift.sale.total is exist - process it [00:12:55]SAM_PROTO_GetShiftData [00:12:55]wFMCommunicate request_size=4 [00:12:55]MH_SAM_APDU [00:12:55]CAPDU: 80 13 02 00 [00:12:55]Write to MH i2c: E2 08 00 AB 0B 80 13 02 00 00 00 00 00 34 [00:12:55]Write i2c OK [00:12:55]MH_I2C_Read... [00:12:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:56]Read from MH i2c: E2 [00:12:56]MH_I2C_Read... [00:12:56]Read from MH i2c: E2 FD 00 [00:12:56]MH_I2C_Read... [00:12:56]Read from MH i2c: E2 FD 00 AB 0B 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 A7 [00:12:56]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:12:56]wFMCommunicate OK [00:12:56]wFMCommunicate request_size=4 [00:12:56]MH_SAM_APDU [00:12:56]CAPDU: 80 17 00 00 [00:12:56]Write to MH i2c: E2 08 00 AC 0B 80 17 00 00 00 00 00 00 37 [00:12:56]Write i2c OK [00:12:56]MH_I2C_Read... [00:12:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:56]Read from MH i2c: E2 [00:12:56]MH_I2C_Read... [00:12:56]Read from MH i2c: E2 FD 00 [00:12:56]MH_I2C_Read... [00:12:56]Read from MH i2c: E2 FD 00 AC 0B 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 3F [00:12:56]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:12:56]wFMCommunicate OK [00:12:56]wFMCommunicate request_size=4 [00:12:56]MH_SAM_APDU [00:12:56]CAPDU: 80 17 00 00 [00:12:56]Write to MH i2c: E2 08 00 AD 0B 80 17 00 00 00 00 00 00 38 [00:12:56]Write i2c OK [00:12:56]MH_I2C_Read... [00:12:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:57]Read from MH i2c: E2 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 FD 00 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 FD 00 AD 0B 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 0A [00:12:57]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:12:57]wFMCommunicate OK [00:12:57]wFMCommunicate request_size=4 [00:12:57]MH_SAM_APDU [00:12:57]CAPDU: 80 17 00 00 [00:12:57]Write to MH i2c: E2 08 00 AE 0B 80 17 00 00 00 00 00 00 39 [00:12:57]Write i2c OK [00:12:57]MH_I2C_Read... [00:12:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:57]Read from MH i2c: E2 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 FD 00 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 FD 00 AE 0B 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 AB [00:12:57]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:12:57]wFMCommunicate OK [00:12:57]wFMCommunicate request_size=4 [00:12:57]MH_SAM_APDU [00:12:57]CAPDU: 80 17 00 00 [00:12:57]Write to MH i2c: E2 08 00 AF 0B 80 17 00 00 00 00 00 00 3A [00:12:57]Write i2c OK [00:12:57]MH_I2C_Read... [00:12:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:12:58]Read from MH i2c: E2 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: E2 BD 00 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: E2 BD 00 AF 0B 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 20 [00:12:58]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:12:58]wFMCommunicate OK [00:12:58]SAM_PROTO_GetShiftData done [00:12:58]requested_item shift.sale.total_cash is exist - process it [00:12:58]requested_item shift.sale_refund.total is exist - process it [00:12:58]requested_item shift.sale_refund.total_cash is exist - process it [00:12:58]requested_item shift.buy.total is exist - process it [00:12:58]requested_item shift.buy.total_cash is exist - process it [00:12:58]produce_requested_data done [00:12:58]produce_requested_data return {"fm.sale.total":10311163.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:12:58]process_action_free get_value [00:12:58]json_value_free [00:12:58]json_value_free done [00:12:58]process_json_proto returns [00:12:58]Send response to host [00:12:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":10311163.38,"fm.sale_refund.total":24784.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:12:58]free response buf [00:12:58]execute_script done [00:12:58]execute_script returns [00:12:58]free content buf [00:12:58]Sock 9.Close socket [00:12:58]Sock 9.Thread stoped [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:09]OFD Sender: No OFD packet to send [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:30]OFD Sender: No OFD packet to send [00:51:35]OFD Sender: No OFD packet to send [00:51:40]OFD Sender: No OFD packet to send [00:51:45]OFD Sender: No OFD packet to send [00:51:50]OFD Sender: No OFD packet to send [00:51:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:15]OFD Sender: No OFD packet to send [00:52:20]OFD Sender: No OFD packet to send [00:52:25]OFD Sender: No OFD packet to send [00:52:30]OFD Sender: No OFD packet to send [00:52:35]OFD Sender: No OFD packet to send [00:52:40]OFD Sender: No OFD packet to send [00:52:45]OFD Sender: No OFD packet to send [00:52:50]OFD Sender: No OFD packet to send [00:52:55]OFD Sender: No OFD packet to send [00:53:00]OFD Sender: No OFD packet to send [00:53:05]OFD Sender: No OFD packet to send [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:40]OFD Sender: No OFD packet to send [00:55:45]OFD Sender: No OFD packet to send [00:55:50]OFD Sender: No OFD packet to send [00:55:55]OFD Sender: No OFD packet to send [00:56:00]OFD Sender: No OFD packet to send [00:56:05]OFD Sender: No OFD packet to send [00:56:10]OFD Sender: No OFD packet to send [00:56:15]OFD Sender: No OFD packet to send [00:56:20]OFD Sender: No OFD packet to send [00:56:25]OFD Sender: No OFD packet to send [00:56:30]OFD Sender: No OFD packet to send [00:56:35]OFD Sender: No OFD packet to send [00:56:40]OFD Sender: No OFD packet to send [00:56:45]OFD Sender: No OFD packet to send [00:56:50]OFD Sender: No OFD packet to send [00:56:55]OFD Sender: No OFD packet to send [00:57:00]OFD Sender: No OFD packet to send [00:57:05]OFD Sender: No OFD packet to send [00:57:10]OFD Sender: No OFD packet to send [00:57:15]OFD Sender: No OFD packet to send [00:57:20]OFD Sender: No OFD packet to send [00:57:25]OFD Sender: No OFD packet to send [00:57:30]OFD Sender: No OFD packet to send [00:57:35]OFD Sender: No OFD packet to send [00:57:40]OFD Sender: No OFD packet to send [00:57:45]OFD Sender: No OFD packet to send [00:57:50]OFD Sender: No OFD packet to send [00:57:55]OFD Sender: No OFD packet to send [00:58:00]OFD Sender: No OFD packet to send [00:58:05]OFD Sender: No OFD packet to send [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:36]OFD Sender: No OFD packet to send [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11:16]OFD Sender: No OFD packet to send [01:11:21]OFD Sender: No OFD packet to send [01:11:26]OFD Sender: No OFD packet to send [01:11:31]OFD Sender: No OFD packet to send [01:11:36]OFD Sender: No OFD packet to send [01:11:41]OFD Sender: No OFD packet to send [01:11:46]OFD Sender: No OFD packet to send [01:11:51]OFD Sender: No OFD packet to send [01:11:56]OFD Sender: No OFD packet to send [01:12:01]OFD Sender: No OFD packet to send [01:12:06]OFD Sender: No OFD packet to send [01:12:07]accept exits with 8 [01:12:07]New connection [01:12:07]New thread 3066899812 created [01:12:07]Thread 3066756452 joined [01:12:07]Waiting for new connection... [01:12:07] Sock 8.Parse request [01:12:07]Sock 8.Check first char [01:12:07]Sock 8.First char is OK [01:12:07]request: POST /json_proto HTTP/1.0 [01:12:07]Method: POST [01:12:07]URL: /json_proto [01:12:07]Method is POST - this is cgi request [01:12:07]url: /json_proto [01:12:07]query_string will be loaded in cgi processing [01:12:07]execute_cgi json_proto POST (null) [01:12:07]execute_cgi path=json_proto method=POST [01:12:07]POST find Content-Length [01:12:07]Host: 172.17.46.196:8080 [01:12:07]Content-Length: 675 [01:12:07]Content-Type: application/json [01:12:07] [01:12:07]POST finish read [01:12:07]Found Content-Length = 675 [01:12:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190206", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:12:07]execute_script... [01:12:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190206", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:12:07]POST & json_proto [01:12:07]process_json_proto [01:12:07]json parsed OK: [01:12:07]protocol is kg_v1.0 [01:12:07]action value=close_receipt [01:12:07]process_action close_receipt [01:12:07]cmd_close_receipt [01:12:07]MH_GetDate [01:12:07]Write to MH i2c: F0 00 00 B0 0B AA [01:12:07]Write i2c OK [01:12:07]MH_I2C_Read... [01:12:07]Read from MH i2c: F0 [01:12:07]MH_I2C_Read... [01:12:07]Read from MH i2c: F0 09 00 [01:12:07]MH_I2C_Read... [01:12:07]Read from MH i2c: F0 09 00 B0 0B 00 69 ED C3 66 C4 85 C2 66 A3 [01:12:07]GetLastDocTimeStamp 1724112771 [01:12:07]current date 1724116329 [01:12:07]FM_GetShiftState [01:12:07]SAM_PROTO_GetShiftState [01:12:07]wFMCommunicate request_size=4 [01:12:07]MH_SAM_APDU [01:12:07]CAPDU: 80 13 01 00 [01:12:07]Write to MH i2c: E2 08 00 B1 0B 80 13 01 00 00 00 00 00 39 [01:12:07]Write i2c OK [01:12:07]MH_I2C_Read... [01:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:12:07]Read from MH i2c: E2 [01:12:07]MH_I2C_Read... [01:12:07]Read from MH i2c: E2 0E 00 [01:12:07]MH_I2C_Read... [01:12:07]Read from MH i2c: E2 0E 00 B1 0B 00 09 00 01 83 DF C3 66 00 00 00 00 90 00 D0 [01:12:07]RAPDU: 09 00 01 83 DF C3 66 00 00 00 00 90 00 [01:12:07]wFMCommunicate OK [01:12:07]SAM_PROTO_GetShiftState done [01:12:07]FM_GetShiftState done [01:12:07]opened in 1724112771 [01:12:07]opened+sec_in_day 1724199171 [01:12:07]quantity*price = 6500 [01:12:07]sum+1 = 6501 [01:12:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 1 20.08.2024 01:12 Смена: 468 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50086 ФПД: 22855258818080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T011209&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50086&fm=22855258818080&tin=02508201610067®Number=0000000000092546&sum=6500 0 [01:12:08]StoreToDocumentArchive [01:12:08]shift 468 fd 50086 [01:12:08]save to /storage/0468/doc_00050086 [01:12:08]save last doc name /storage/0468/doc_00050086 to /storage/kkm_last_doc_name [01:12:08]save OK [01:12:08]Clear old archive folders... [01:12:08]ProcessDocumentItem done err = 0, tmpTLVsize=286 [01:12:08]tlvbuf is 019255A0 [01:12:08]SAM_PROTO_ClearQueue [01:12:08]wFMCommunicate request_size=4 [01:12:08]MH_SAM_APDU [01:12:08]CAPDU: 80 09 00 00 [01:12:08]Write to MH i2c: E2 08 00 BE 0B 80 09 00 00 00 00 00 00 3B [01:12:08]Write i2c OK [01:12:08]MH_I2C_Read... [01:12:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:12:08]Read from MH i2c: E2 [01:12:08]MH_I2C_Read... [01:12:08]Read from MH i2c: E2 03 00 [01:12:08]MH_I2C_Read... [01:12:08]Read from MH i2c: E2 03 00 BE 0B 00 90 00 3D [01:12:08]RAPDU: 90 00 [01:12:08]wFMCommunicate OK [01:12:08]SAM_PROTO_ClearQueue done [01:12:08]KKMCreateOFDPacket [01:12:08]OFDProtocolAddRootSTLVToBuf [01:12:08]FM_MakeSignedData [01:12:08]FM_MakeSignedData [01:12:08]SAM_PROTO_SignData [01:12:08]wFMCommunicate request_size=4 [01:12:08]MH_SAM_APDU [01:12:08]CAPDU: 80 0D 01 02 [01:12:08]Write to MH i2c: E2 08 00 BF 0B 80 0D 01 02 00 00 00 00 43 [01:12:08]Write i2c OK [01:12:08]MH_I2C_Read... [01:12:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:12:08]Read from MH i2c: E2 [01:12:08]MH_I2C_Read... [01:12:08]Read from MH i2c: E2 03 00 [01:12:08]MH_I2C_Read... [01:12:08]Read from MH i2c: E2 03 00 BF 0B 00 90 00 3E [01:12:08]RAPDU: 90 00 [01:12:08]wFMCommunicate OK [01:12:08]wFMCommunicate request_size=255 [01:12:08]MH_SAM_APDU [01:12:08]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 69 ED C3 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 [01:12:08]Write to MH i2c: E2 02 01 C0 0B 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 69 ED C3 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 00 00 5F [01:12:08]Write i2c OK [01:12:08]MH_I2C_Read... [01:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:12:09]Read from MH i2c: E2 [01:12:09]MH_I2C_Read... [01:12:09]Read from MH i2c: E2 03 00 [01:12:09]MH_I2C_Read... [01:12:09]Read from MH i2c: E2 03 00 C0 0B 00 90 00 3F [01:12:09]RAPDU: 90 00 [01:12:09]wFMCommunicate OK [01:12:09]wFMCommunicate request_size=45 [01:12:09]MH_SAM_APDU [01:12:09]CAPDU: 80 0D 02 02 28 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A6 C3 00 00 35 04 06 00 14 C9 67 95 46 20 [01:12:09]Write to MH i2c: E2 30 00 C1 0B 80 0D 02 02 28 00 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A6 C3 00 00 35 04 06 00 14 C9 67 95 46 20 00 00 3C [01:12:09]Write i2c OK [01:12:09]MH_I2C_Read... [01:12:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:12:09]Read from MH i2c: E2 [01:12:09]MH_I2C_Read... [01:12:09]Read from MH i2c: E2 03 00 [01:12:09]MH_I2C_Read... [01:12:09]Read from MH i2c: E2 03 00 C1 0B 00 90 00 40 [01:12:09]RAPDU: 90 00 [01:12:09]wFMCommunicate OK [01:12:09]wFMCommunicate request_size=4 [01:12:09]MH_SAM_APDU [01:12:09]CAPDU: 80 0D 03 02 [01:12:09]Write to MH i2c: E2 08 00 C2 0B 80 0D 03 02 00 00 00 00 48 [01:12:09]Write i2c OK [01:12:09]MH_I2C_Read... [01:12:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:12:09]Read from MH i2c: E2 [01:12:09]MH_I2C_Read... [01:12:09]Read from MH i2c: E2 0B 00 [01:12:09]MH_I2C_Read... [01:12:09]Read from MH i2c: E2 0B 00 C2 0B 00 79 42 F5 59 22 B8 F6 69 90 00 8B [01:12:09]RAPDU: 79 42 F5 59 22 B8 F6 69 90 00 [01:12:09]wFMCommunicate OK [01:12:09]SAM_PROTO_SignData done [01:12:09]FM_MakeSignedData done [01:12:09]CreateOFDProtocolMessage [01:12:09]wFMCommunicate request_size=4 [01:12:09]MH_SAM_APDU [01:12:09]CAPDU: 80 11 00 00 [01:12:09]Write to MH i2c: E2 08 00 C3 0B 80 11 00 00 00 00 00 00 48 [01:12:09]Write i2c OK [01:12:09]MH_I2C_Read... [01:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:12:09]Read from MH i2c: E2 [01:12:09]MH_I2C_Read... [01:12:09]Read from MH i2c: E2 17 00 [01:12:09]MH_I2C_Read... [01:12:09]Read from MH i2c: E2 17 00 C3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 93 [01:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:12:09]wFMCommunicate OK [01:12:09]CreateOFDProtocolMessage done [01:12:09]OFDSenderStorePacket 50086 [01:12:09]StoreOFDPacket docnum=50086 [01:12:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 32 01 00 00 57 06 2A 01 14 0E 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 69 ED C3 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A6 C3 00 00 35 04 06 00 14 C9 67 95 46 20 79 42 F5 59 22 B8 F6 69 [01:12:09]CheckFolder [01:12:09]dirname=/storage/ofd_packets [01:12:09]CheckFolder done [01:12:09]ProducePacketName [01:12:09]name=ofd_packets/00050086 [01:12:09]NVStorageSaveData ofd_packets/00050086 [01:12:09]File name is /storage/ofd_packets/00050086 [01:12:09]Write 336 bytes [01:12:09]NVStorageSaveData done [01:12:09]OFDSenderStorePacket done [01:12:09]KKMCreateOFDPacket done [01:12:09]NVStorageSaveData kkm_last_timestamp [01:12:09]File name is /storage/kkm_last_timestamp [01:12:09]Write 4 bytes [01:12:09]NVStorageSaveData done [01:12:09]ExternCall_PrintAddStr [01:12:09]wPrintStart [01:12:09]Write to MH i2c: 01 00 00 C4 0B CF [01:12:09]Write i2c OK [01:12:09]MH_I2C_Read... [01:12:09]Read from MH i2c: 01 [01:12:09]MH_I2C_Read... [01:12:09]Read from MH i2c: 01 07 00 [01:12:09]MH_I2C_Read... [01:12:09]Read from MH i2c: 01 07 00 C4 0B 00 00 00 00 00 FF 0F E4 [01:12:09]RasterBufferAndPrint [01:12:09]line Счет N : (3)190206 [01:12:09]line ИНН: 02508201610067 [01:12:09]line Контрольно-Кассовый Чек [01:12:09]line ПРОДАЖА [01:12:09]line Товар: 4700040114120 [01:12:09]line Султан чай 1л. чер персик [01:12:09]line 1.000 * 65.00 [01:12:09]line = 65.00 [01:12:09]line НДС 12% НСП 1% [01:12:09]line > о реализуемом товаре [01:12:09]line ИТОГО: 65.00 [01:12:09]line НСП 1% : 0.57 [01:12:09]line НДС 12% : 6.90 [01:12:09]line Наличными: 65.00 [01:12:09]line Безнал.: 0.00 [01:12:09]line Место: АЗС № 95 "Партнер Нефть" [01:12:09]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [01:12:09]line СНО: Общий режим [01:12:09]line Чек 1 20.08.2024 01:12 [01:12:09]line Смена: 468 ФФД: 1.0 [01:12:09]line ЗНМ: 0300000078 [01:12:09]line РНМ: 0000000000092546 [01:12:09]line Версия ККМ: 001 [01:12:09]line ФМ: 0000000000871800 [01:12:09]line ФД: 50086 [01:12:09]line ФПД: 22855258818080 [01:12:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T011209&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50086&fm=22855258818080&tin=02508201610067®Number=0000000000092546&sum=6500 [01:12:09]OFD Sender: Processing packet 50086 [packets to send 21, broken 20] [01:12:09]ProducePacketName [01:12:09]name=ofd_packets/00050086 [01:12:09]OFD Sender: To server: pG, [01:12:09]CommunicateWithHost lk.salyk.kg:30040 [01:12:09]ConnectInit lk.salyk.kg [01:12:09]line 0 [01:12:09]written 0, free lines is 4095 [01:12:09]Write to MH i2c: 01 00 00 EC 0B F7 [01:12:09]Write i2c OK [01:12:09]MH_I2C_Read... [01:12:09]Read from MH i2c: 01 [01:12:09]MH_I2C_Read... [01:12:09]Read from MH i2c: 01 07 00 [01:12:09]MH_I2C_Read... [01:12:09]Read from MH i2c: 01 07 00 EC 0B 00 00 00 00 00 E3 0C ED [01:12:09]RasterBufferAndPrint [01:12:09]line [01:12:09]line [01:12:09]line [01:12:09]line [01:12:09]line [01:12:09]written 0, free lines is 3302 [01:12:09]MH_Cut [01:12:09]Write to MH i2c: D1 01 00 F3 0B 01 D0 [01:12:09]Write i2c OK [01:12:09]MH_I2C_Read... [01:12:09]Read from MH i2c: D1 [01:12:09]MH_I2C_Read... [01:12:09]Read from MH i2c: D1 01 00 [01:12:09]MH_I2C_Read... [01:12:09]Read from MH i2c: D1 01 00 F3 0B 00 CF [01:12:09]Write to MH i2c: 01 00 00 F4 0B FF [01:12:09]Write i2c OK [01:12:09]MH_I2C_Read... [01:12:10]*** Cut start [01:12:10]*** Purtial cut [01:12:10]*** CUTSNS_PIN = 0 [01:12:10]*** Stage 1: CUTSNS_PIN = 1 [01:12:12]Read from MH i2c: 01 [01:12:12]MH_I2C_Read... [01:12:12]*** Stop cut motor [01:12:12]*** Cut end [01:12:12]Read from MH i2c: 01 07 00 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: 01 07 00 F4 0B 00 00 00 00 00 FF 0F 14 [01:12:12]process_action close_receipt done [01:12:12]requested_data is exist [01:12:12]produce_requested_data [01:12:12]requested_item fm.sn is exist - process it [01:12:12]wFMCommunicate request_size=4 [01:12:12]MH_SAM_APDU [01:12:12]CAPDU: 80 11 00 00 [01:12:12]Write to MH i2c: E2 08 00 F5 0B 80 11 00 00 00 00 00 00 7A [01:12:12]Write i2c OK [01:12:12]MH_I2C_Read... [01:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:12:12]Read from MH i2c: E2 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: E2 17 00 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: E2 17 00 F5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C5 [01:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:12:12]wFMCommunicate OK [01:12:12]requested_item fd.num is exist - process it [01:12:12]SAM_PROTO_GetFieldsCounters [01:12:12]wFMCommunicate request_size=4 [01:12:12]MH_SAM_APDU [01:12:12]CAPDU: 80 13 00 00 [01:12:12]Write to MH i2c: E2 08 00 F6 0B 80 13 00 00 00 00 00 00 7D [01:12:12]Write i2c OK [01:12:12]MH_I2C_Read... [01:12:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:12:12]Read from MH i2c: E2 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: E2 62 00 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: E2 62 00 F6 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A6 C3 00 00 0E 04 04 00 D4 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 D8 [01:12:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A6 C3 00 00 0E 04 04 00 D4 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:12:12]wFMCommunicate OK [01:12:12]SAM_PROTO_GetFieldsCounters done [01:12:12]requested_item shift.num is exist - process it [01:12:12]requested_item shift.opened is exist - process it [01:12:12]req_shift_opened [01:12:12]FM_GetShiftState [01:12:12]SAM_PROTO_GetShiftState [01:12:12]wFMCommunicate request_size=4 [01:12:12]MH_SAM_APDU [01:12:12]CAPDU: 80 13 01 00 [01:12:12]Write to MH i2c: E2 08 00 F7 0B 80 13 01 00 00 00 00 00 7F [01:12:12]Write i2c OK [01:12:12]MH_I2C_Read... [01:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:12:12]Read from MH i2c: E2 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: E2 0E 00 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: E2 0E 00 F7 0B 00 09 00 01 83 DF C3 66 00 00 00 00 90 00 16 [01:12:12]RAPDU: 09 00 01 83 DF C3 66 00 00 00 00 90 00 [01:12:12]wFMCommunicate OK [01:12:12]SAM_PROTO_GetShiftState done [01:12:12]FM_GetShiftState done [01:12:12]req_shift_opened done [01:12:12]requested_item shift.open_date is exist - process it [01:12:12]req_shift_open_date [01:12:12]req_shift_open_date done [01:12:12]produce_requested_data done [01:12:12]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50086,"shift.num":468,"shift.opened":1,"shift.open_date":1724112771} [01:12:12]process_action_free close_receipt [01:12:12]json_value_free [01:12:12]json_value_free done [01:12:12]process_json_proto returns [01:12:12]Send response to host [01:12:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50086,"shift.num":468,"shift.opened":1,"shift.open_date":1724112771}}} [01:12:12]free response buf [01:12:12]execute_script done [01:12:12]execute_script returns [01:12:12]free content buf [01:12:12]Sock 8.Close socket [01:12:12]Sock 8.Thread stoped [01:14:22]ConnectInit Can't connect to host [01:14:22]CommunicateWithHost connect error [01:14:22]CommunicateWithHost err = -1 [01:14:22]OFD Sender: Server communicate error [01:14:27]OFD Sender: Processing packet 50086 [packets to send 21, broken 20] [01:14:27]ProducePacketName [01:14:27]name=ofd_packets/00050086 [01:14:27]OFD Sender: To server: pG, [01:14:27]CommunicateWithHost lk.salyk.kg:30040 [01:14:27]ConnectInit lk.salyk.kg [01:14:27]Connected sock=10 [01:14:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 32 01 00 00 57 06 2A 01 14 0E 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 69 ED C3 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A6 C3 00 00 35 04 06 00 14 C9 67 95 46 20 79 42 F5 59 22 B8 F6 69 [01:14:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 78 B8 47 00 DF 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A6 C3 00 00 F4 03 04 00 5F 98 C3 66 B6 04 01 00 00 00 B8 CD 43 F9 42 40 73 [01:14:27]CommunicateWithHost err = 0 [01:14:27]CheckOFDResponse [01:14:27]1017 (14) - 77093643461234 [01:14:27]1041 (16) - 0000000000871800 [01:14:27]1040 (4) - 50086 [01:14:27]1012 (4) - 19.08.2024 19:09 [01:14:27]1206 (1) - 0 [01:14:27]OFD Sender: Remove packet 50086 [01:14:27]ProducePacketName [01:14:27]name=ofd_packets/00050086 [01:14:27]NVStorageDeleteData [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:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:09]accept exits with 9 [01:16:09]New connection [01:16:09]New thread 3066756452 created [01:16:09]Thread 3066899812 joined [01:16:09]Waiting for new connection... [01:16:09] Sock 9.Parse request [01:16:09]Sock 9.Check first char [01:16:09]Sock 9.First char is OK [01:16:09]request: POST /json_proto HTTP/1.0 [01:16:09]Method: POST [01:16:09]URL: /json_proto [01:16:09]Method is POST - this is cgi request [01:16:09]url: /json_proto [01:16:09]query_string will be loaded in cgi processing [01:16:09]execute_cgi json_proto POST (null) [01:16:09]execute_cgi path=json_proto method=POST [01:16:09]POST find Content-Length [01:16:09]Host: 172.17.46.196:8080 [01:16:09]Content-Length: 934 [01:16:09]Content-Type: application/json [01:16:09] [01:16:09]POST finish read [01:16:09]Found Content-Length = 934 [01:16:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190207", "tax_sys" : 0, "items" : [ { "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:16:09]execute_script... [01:16:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190207", "tax_sys" : 0, "items" : [ { "code": "50173822", "name": "\u0420/\u0436 Orbit \u0431/\u0441\u0430\u0445 \u043C\u044F\u0442\u0430 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:16:09]POST & json_proto [01:16:09]process_json_proto [01:16:09]json parsed OK: [01:16:09]protocol is kg_v1.0 [01:16:09]action value=close_receipt [01:16:09]process_action close_receipt [01:16:09]cmd_close_receipt [01:16:09]MH_GetDate [01:16:09]Write to MH i2c: F0 00 00 F8 0B F2 [01:16:09]Write i2c OK [01:16:09]MH_I2C_Read... [01:16:09]Read from MH i2c: F0 [01:16:09]MH_I2C_Read... [01:16:09]Read from MH i2c: F0 09 00 [01:16:09]MH_I2C_Read... [01:16:09]Read from MH i2c: F0 09 00 F8 0B 00 5C EE C3 66 C4 85 C2 66 DF [01:16:09]GetLastDocTimeStamp 1724116329 [01:16:09]current date 1724116572 [01:16:09]FM_GetShiftState [01:16:09]SAM_PROTO_GetShiftState [01:16:09]wFMCommunicate request_size=4 [01:16:09]MH_SAM_APDU [01:16:09]CAPDU: 80 13 01 00 [01:16:09]Write to MH i2c: E2 08 00 F9 0B 80 13 01 00 00 00 00 00 81 [01:16:09]Write i2c OK [01:16:09]MH_I2C_Read... [01:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:16:09]Read from MH i2c: E2 [01:16:09]MH_I2C_Read... [01:16:09]Read from MH i2c: E2 0E 00 [01:16:09]MH_I2C_Read... [01:16:09]Read from MH i2c: E2 0E 00 F9 0B 00 09 00 01 83 DF C3 66 00 00 00 00 90 00 18 [01:16:09]RAPDU: 09 00 01 83 DF C3 66 00 00 00 00 90 00 [01:16:09]wFMCommunicate OK [01:16:09]SAM_PROTO_GetShiftState done [01:16:09]FM_GetShiftState done [01:16:09]opened in 1724112771 [01:16:09]opened+sec_in_day 1724199171 [01:16:09]quantity*price = 4500 [01:16:09]sum+1 = 4501 [01:16:09]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027450 Напиток FuzeTea чай манго,ром 0,5л 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 2 20.08.2024 01:16 Смена: 468 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50087 ФПД: 260393791775338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T011612&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50087&fm=260393791775338&tin=02508201610067®Number=0000000000092546&sum=17500 0 [01:16:10]StoreToDocumentArchive [01:16:10]shift 468 fd 50087 [01:16:10]save to /storage/0468/doc_00050087 [01:16:10]save last doc name /storage/0468/doc_00050087 to /storage/kkm_last_doc_name [01:16:10]save OK [01:16:10]Clear old archive folders... [01:16:10]ProcessDocumentItem done err = 0, tmpTLVsize=399 [01:16:10]tlvbuf is 019A9440 [01:16:10]SAM_PROTO_ClearQueue [01:16:10]wFMCommunicate request_size=4 [01:16:10]MH_SAM_APDU [01:16:10]CAPDU: 80 09 00 00 [01:16:10]Write to MH i2c: E2 08 00 06 0C 80 09 00 00 00 00 00 00 84 [01:16:10]Write i2c OK [01:16:10]MH_I2C_Read... [01:16:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:16:10]Read from MH i2c: E2 [01:16:10]MH_I2C_Read... [01:16:10]Read from MH i2c: E2 03 00 [01:16:10]MH_I2C_Read... [01:16:10]Read from MH i2c: E2 03 00 06 0C 00 90 00 86 [01:16:10]RAPDU: 90 00 [01:16:10]wFMCommunicate OK [01:16:10]SAM_PROTO_ClearQueue done [01:16:10]KKMCreateOFDPacket [01:16:10]OFDProtocolAddRootSTLVToBuf [01:16:10]FM_MakeSignedData [01:16:10]FM_MakeSignedData [01:16:10]SAM_PROTO_SignData [01:16:10]wFMCommunicate request_size=4 [01:16:10]MH_SAM_APDU [01:16:10]CAPDU: 80 0D 01 02 [01:16:10]Write to MH i2c: E2 08 00 07 0C 80 0D 01 02 00 00 00 00 8C [01:16:10]Write i2c OK [01:16:10]MH_I2C_Read... [01:16:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:16:11]Read from MH i2c: E2 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 03 00 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 03 00 07 0C 00 90 00 87 [01:16:11]RAPDU: 90 00 [01:16:11]wFMCommunicate OK [01:16:11]wFMCommunicate request_size=255 [01:16:11]MH_SAM_APDU [01:16:11]CAPDU: 80 0D 02 02 FA 03 00 8F 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 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 [01:16:11]Write to MH i2c: E2 02 01 08 0C 80 0D 02 02 FA 00 03 00 8F 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 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 00 00 72 [01:16:11]Write i2c OK [01:16:11]MH_I2C_Read... [01:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:16:11]Read from MH i2c: E2 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 03 00 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 03 00 08 0C 00 90 00 88 [01:16:11]RAPDU: 90 00 [01:16:11]wFMCommunicate OK [01:16:11]wFMCommunicate request_size=158 [01:16:11]MH_SAM_APDU [01:16:11]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 5C EE C3 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A7 C3 00 00 35 04 06 00 EC D3 A7 75 E2 6A [01:16:11]Write to MH i2c: E2 A1 00 09 0C 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 5C EE C3 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A7 C3 00 00 35 04 06 00 EC D3 A7 75 E2 6A 00 00 68 [01:16:11]Write i2c OK [01:16:11]MH_I2C_Read... [01:16:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:16:11]Read from MH i2c: E2 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 03 00 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 03 00 09 0C 00 90 00 89 [01:16:11]RAPDU: 90 00 [01:16:11]wFMCommunicate OK [01:16:11]wFMCommunicate request_size=4 [01:16:11]MH_SAM_APDU [01:16:11]CAPDU: 80 0D 03 02 [01:16:11]Write to MH i2c: E2 08 00 0A 0C 80 0D 03 02 00 00 00 00 91 [01:16:11]Write i2c OK [01:16:11]MH_I2C_Read... [01:16:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:16:11]Read from MH i2c: E2 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 0B 00 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 0B 00 0A 0C 00 9F 64 0F 89 7F 73 28 34 90 00 7B [01:16:11]RAPDU: 9F 64 0F 89 7F 73 28 34 90 00 [01:16:11]wFMCommunicate OK [01:16:11]SAM_PROTO_SignData done [01:16:11]FM_MakeSignedData done [01:16:11]CreateOFDProtocolMessage [01:16:11]wFMCommunicate request_size=4 [01:16:11]MH_SAM_APDU [01:16:11]CAPDU: 80 11 00 00 [01:16:11]Write to MH i2c: E2 08 00 0B 0C 80 11 00 00 00 00 00 00 91 [01:16:11]Write i2c OK [01:16:11]MH_I2C_Read... [01:16:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:16:11]Read from MH i2c: E2 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 17 00 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: E2 17 00 0B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DC [01:16:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:16:11]wFMCommunicate OK [01:16:11]CreateOFDProtocolMessage done [01:16:11]OFDSenderStorePacket 50087 [01:16:11]StoreOFDPacket docnum=50087 [01:16:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A3 01 00 00 AF 24 9B 01 FA EE 5A 03 01 00 03 00 8F 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 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 5C EE C3 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A7 C3 00 00 35 04 06 00 EC D3 A7 75 E2 6A 9F 64 0F 89 7F 73 28 34 [01:16:11]CheckFolder [01:16:11]dirname=/storage/ofd_packets [01:16:11]CheckFolder done [01:16:11]ProducePacketName [01:16:11]name=ofd_packets/00050087 [01:16:11]NVStorageSaveData ofd_packets/00050087 [01:16:11]File name is /storage/ofd_packets/00050087 [01:16:11]Write 449 bytes [01:16:11]NVStorageSaveData done [01:16:11]OFDSenderStorePacket done [01:16:11]KKMCreateOFDPacket done [01:16:11]NVStorageSaveData kkm_last_timestamp [01:16:11]File name is /storage/kkm_last_timestamp [01:16:11]Write 4 bytes [01:16:11]NVStorageSaveData done [01:16:11]ExternCall_PrintAddStr [01:16:11]wPrintStart [01:16:11]Write to MH i2c: 01 00 00 0C 0C 18 [01:16:11]Write i2c OK [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: 01 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: 01 07 00 [01:16:11]MH_I2C_Read... [01:16:11]Read from MH i2c: 01 07 00 0C 0C 00 00 00 00 00 FF 0F 2D [01:16:11]RasterBufferAndPrint [01:16:11]line Счет N : (3)190207 [01:16:11]line ИНН: 02508201610067 [01:16:11]line Контрольно-Кассовый Чек [01:16:11]line ПРОДАЖА [01:16:11]line Товар: 50173822 [01:16:11]line Р/ж Orbit б/сах мята 13,6г [01:16:11]line 1.000 * 45.00 [01:16:11]line = 45.00 [01:16:11]line НДС 12% НСП 1% [01:16:11]line > о реализуемом товаре [01:16:11]line Товар: 5449000027450 [01:16:11]line Напиток FuzeTea чай манго,ром 0,5л [01:16:11]line 2.000 * 65.00 [01:16:11]line = 130.00 [01:16:11]line НДС 12% НСП 1% [01:16:11]line > о реализуемом товаре [01:16:11]line ИТОГО: 175.00 [01:16:11]line НСП 1% : 1.55 [01:16:11]line НДС 12% : 18.58 [01:16:11]line Наличными: 175.00 [01:16:11]line Безнал.: 0.00 [01:16:11]line Место: АЗС № 95 "Партнер Нефть" [01:16:11]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [01:16:11]line СНО: Общий режим [01:16:11]line Чек 2 20.08.2024 01:16 [01:16:11]line Смена: 468 ФФД: 1.0 [01:16:11]line ЗНМ: 0300000078 [01:16:11]line РНМ: 0000000000092546 [01:16:11]line Версия ККМ: 001 [01:16:11]line ФМ: 0000000000871800 [01:16:11]line ФД: 50087 [01:16:11]line ФПД: 260393791775338 [01:16:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T011612&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50087&fm=260393791775338&tin=02508201610067®Number=0000000000092546&sum=17500 [01:16:11]line 0 [01:16:11]OFD Sender: Processing packet 50087 [packets to send 21, broken 20] [01:16:11]ProducePacketName [01:16:11]name=ofd_packets/00050087 [01:16:11]OFD Sender: To server: pG, [01:16:11]CommunicateWithHost lk.salyk.kg:30040 [01:16:11]ConnectInit lk.salyk.kg [01:16:11]written 0, free lines is 4095 [01:16:12]Connected sock=10 [01:16:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A3 01 00 00 AF 24 9B 01 FA EE 5A 03 01 00 03 00 8F 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 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 5C EE C3 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A7 C3 00 00 35 04 06 00 EC D3 A7 75 E2 6A 9F 64 0F 89 7F 73 28 34 [01:16:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F9 87 47 00 35 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A7 C3 00 00 F4 03 04 00 C8 98 C3 66 B6 04 01 00 00 95 8E A0 80 91 18 28 CE [01:16:12]CommunicateWithHost err = 0 [01:16:12]CheckOFDResponse [01:16:12]1017 (14) - 77093643461234 [01:16:12]1041 (16) - 0000000000871800 [01:16:12]1040 (4) - 50087 [01:16:12]1012 (4) - 19.08.2024 19:11 [01:16:12]1206 (1) - 0 [01:16:12]OFD Sender: Remove packet 50087 [01:16:12]ProducePacketName [01:16:12]name=ofd_packets/00050087 [01:16:12]NVStorageDeleteData [01:16:12]Write to MH i2c: 01 00 00 3B 0C 47 [01:16:12]Write i2c OK [01:16:12]MH_I2C_Read... [01:16:12]Read from MH i2c: 01 [01:16:12]MH_I2C_Read... [01:16:12]Read from MH i2c: 01 07 00 [01:16:12]MH_I2C_Read... [01:16:12]Read from MH i2c: 01 07 00 3B 0C 00 00 00 00 00 7E 0C D8 [01:16:12]RasterBufferAndPrint [01:16:12]line [01:16:12]line [01:16:12]line [01:16:12]line [01:16:12]line [01:16:12]written 0, free lines is 3204 [01:16:12]MH_Cut [01:16:12]Write to MH i2c: D1 01 00 42 0C 01 20 [01:16:12]Write i2c OK [01:16:12]MH_I2C_Read... [01:16:12]Read from MH i2c: D1 [01:16:12]MH_I2C_Read... [01:16:12]Read from MH i2c: D1 01 00 [01:16:12]MH_I2C_Read... [01:16:12]Read from MH i2c: D1 01 00 42 0C 00 1F [01:16:12]Write to MH i2c: 01 00 00 43 0C 4F [01:16:12]Write i2c OK [01:16:12]MH_I2C_Read... [01:16:12]OFD Sender: No OFD packet to send [01:16:13]*** Cut start [01:16:13]*** Purtial cut [01:16:13]*** Stage 1: CUTSNS_PIN = 1 [01:16:13]Read from MH i2c: 01 [01:16:13]MH_I2C_Read... [01:16:13]*** Stop cut motor [01:16:13]*** Cut end [01:16:13]Read from MH i2c: 01 07 00 [01:16:13]MH_I2C_Read... [01:16:13]Read from MH i2c: 01 07 00 43 0C 00 00 00 00 00 FF 0F 64 [01:16:13]process_action close_receipt done [01:16:13]requested_data is exist [01:16:13]produce_requested_data [01:16:13]requested_item fm.sn is exist - process it [01:16:13]wFMCommunicate request_size=4 [01:16:13]MH_SAM_APDU [01:16:13]CAPDU: 80 11 00 00 [01:16:13]Write to MH i2c: E2 08 00 44 0C 80 11 00 00 00 00 00 00 CA [01:16:13]Write i2c OK [01:16:13]MH_I2C_Read... [01:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:16:13]Read from MH i2c: E2 [01:16:13]MH_I2C_Read... [01:16:13]Read from MH i2c: E2 17 00 [01:16:13]MH_I2C_Read... [01:16:13]Read from MH i2c: E2 17 00 44 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 15 [01:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:16:13]wFMCommunicate OK [01:16:13]requested_item fd.num is exist - process it [01:16:13]SAM_PROTO_GetFieldsCounters [01:16:13]wFMCommunicate request_size=4 [01:16:13]MH_SAM_APDU [01:16:13]CAPDU: 80 13 00 00 [01:16:13]Write to MH i2c: E2 08 00 45 0C 80 13 00 00 00 00 00 00 CD [01:16:13]Write i2c OK [01:16:13]MH_I2C_Read... [01:16:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:16:13]Read from MH i2c: E2 [01:16:13]MH_I2C_Read... [01:16:13]Read from MH i2c: E2 62 00 [01:16:13]MH_I2C_Read... [01:16:13]Read from MH i2c: E2 62 00 45 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A7 C3 00 00 0E 04 04 00 D4 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 2C [01:16:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A7 C3 00 00 0E 04 04 00 D4 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 [01:16:13]wFMCommunicate OK [01:16:13]SAM_PROTO_GetFieldsCounters done [01:16:13]requested_item shift.num is exist - process it [01:16:13]requested_item shift.opened is exist - process it [01:16:13]req_shift_opened [01:16:13]FM_GetShiftState [01:16:13]SAM_PROTO_GetShiftState [01:16:13]wFMCommunicate request_size=4 [01:16:13]MH_SAM_APDU [01:16:13]CAPDU: 80 13 01 00 [01:16:13]Write to MH i2c: E2 08 00 46 0C 80 13 01 00 00 00 00 00 CF [01:16:13]Write i2c OK [01:16:13]MH_I2C_Read... [01:16:13]Read from MH i2c: E2 [01:16:13]MH_I2C_Read... [01:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:16:13]Read from MH i2c: E2 0E 00 [01:16:13]MH_I2C_Read... [01:16:13]Read from MH i2c: E2 0E 00 46 0C 00 09 00 01 83 DF C3 66 00 00 00 00 90 00 66 [01:16:13]RAPDU: 09 00 01 83 DF C3 66 00 00 00 00 90 00 [01:16:13]wFMCommunicate OK [01:16:13]SAM_PROTO_GetShiftState done [01:16:13]FM_GetShiftState done [01:16:13]req_shift_opened done [01:16:13]requested_item shift.open_date is exist - process it [01:16:13]req_shift_open_date [01:16:13]req_shift_open_date done [01:16:13]produce_requested_data done [01:16:13]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50087,"shift.num":468,"shift.opened":1,"shift.open_date":1724112771} [01:16:13]process_action_free close_receipt [01:16:13]json_value_free [01:16:13]json_value_free done [01:16:13]process_json_proto returns [01:16:13]Send response to host [01:16:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50087,"shift.num":468,"shift.opened":1,"shift.open_date":1724112771}}} [01:16:13]free response buf [01:16:13]execute_script done [01:16:13]execute_script returns [01:16:13]free content buf [01:16:13]Sock 9.Close socket [01:16:13]Sock 9.Thread stoped [01:16:17]OFD Sender: No OFD packet to send [01:16:22]OFD Sender: No OFD packet to send [01:16:27]OFD Sender: No OFD packet to send [01:16:32]OFD Sender: No OFD packet to send [01:16:37]OFD Sender: No OFD packet to send [01:16:42]OFD Sender: No OFD packet to send [01:16:47]OFD Sender: No OFD packet to send [01:16:52]OFD Sender: No OFD packet to send [01:16:57]OFD Sender: No OFD packet to send [01:17:02]OFD Sender: No OFD packet to send [01:17:07]OFD Sender: No OFD packet to send [01:17:12]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:51]accept exits with 8 [01:20:51]New connection [01:20:51]New thread 3066899812 created [01:20:51]Thread 3066756452 joined [01:20:51]Waiting for new connection... [01:20:51] Sock 8.Parse request [01:20:51]Sock 8.Check first char [01:20:51]Sock 8.First char is OK [01:20:51]request: POST /json_proto HTTP/1.0 [01:20:51]Method: POST [01:20:51]URL: /json_proto [01:20:51]Method is POST - this is cgi request [01:20:51]url: /json_proto [01:20:51]query_string will be loaded in cgi processing [01:20:51]execute_cgi json_proto POST (null) [01:20:51]execute_cgi path=json_proto method=POST [01:20:51]POST find Content-Length [01:20:51]Host: 172.17.46.196:8080 [01:20:51]Content-Length: 663 [01:20:51]Content-Type: application/json [01:20:51] [01:20:51]POST finish read [01:20:51]Found Content-Length = 663 [01:20:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190208", "tax_sys" : 0, "items" : [ { "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 62.00, "quantity" : 1.000, "sum" : 62.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 62.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:51]execute_script... [01:20: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)190208", "tax_sys" : 0, "items" : [ { "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 62.00, "quantity" : 1.000, "sum" : 62.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 62.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:51]POST & json_proto [01:20:51]process_json_proto [01:20:51]json parsed OK: [01:20:51]protocol is kg_v1.0 [01:20:51]action value=close_receipt [01:20:51]process_action close_receipt [01:20:51]cmd_close_receipt [01:20:51]MH_GetDate [01:20:51]Write to MH i2c: F0 00 00 47 0C 42 [01:20:51]Write i2c OK [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: F0 [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: F0 09 00 [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: F0 09 00 47 0C 00 75 EF C3 66 C4 85 C2 66 49 [01:20:51]GetLastDocTimeStamp 1724116572 [01:20:51]current date 1724116853 [01:20:51]FM_GetShiftState [01:20:51]SAM_PROTO_GetShiftState [01:20:51]wFMCommunicate request_size=4 [01:20:51]MH_SAM_APDU [01:20:51]CAPDU: 80 13 01 00 [01:20:51]Write to MH i2c: E2 08 00 48 0C 80 13 01 00 00 00 00 00 D1 [01:20:51]Write i2c OK [01:20:51]MH_I2C_Read... [01:20:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:51]Read from MH i2c: E2 [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: E2 0E 00 [01:20:51]MH_I2C_Read... [01:20:51]Read from MH i2c: E2 0E 00 48 0C 00 09 00 01 83 DF C3 66 00 00 00 00 90 00 68 [01:20:51]RAPDU: 09 00 01 83 DF C3 66 00 00 00 00 90 00 [01:20:51]wFMCommunicate OK [01:20:51]SAM_PROTO_GetShiftState done [01:20:51]FM_GetShiftState done [01:20:51]opened in 1724112771 [01:20:51]opened+sec_in_day 1724199171 [01:20:51]quantity*price = 6200 [01:20:51]sum+1 = 6201 [01:20:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 62.00 НСП 1% : 0.55 НДС 12% : 6.58 Наличными: 62.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 3 20.08.2024 01:20 Смена: 468 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50088 ФПД: 5419922060331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T012053&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50088&fm=5419922060331&tin=02508201610067®Number=0000000000092546&sum=6200 0 [01:20:52]StoreToDocumentArchive [01:20:52]shift 468 fd 50088 [01:20:52]save to /storage/0468/doc_00050088 [01:20:52]save last doc name /storage/0468/doc_00050088 to /storage/kkm_last_doc_name [01:20:52]save OK [01:20:52]Clear old archive folders... [01:20:52]ProcessDocumentItem done err = 0, tmpTLVsize=286 [01:20:52]tlvbuf is 019B6590 [01:20:52]SAM_PROTO_ClearQueue [01:20:52]wFMCommunicate request_size=4 [01:20:52]MH_SAM_APDU [01:20:52]CAPDU: 80 09 00 00 [01:20:52]Write to MH i2c: E2 08 00 55 0C 80 09 00 00 00 00 00 00 D3 [01:20:52]Write i2c OK [01:20:52]MH_I2C_Read... [01:20:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:20:52]Read from MH i2c: E2 [01:20:52]MH_I2C_Read... [01:20:52]Read from MH i2c: E2 03 00 [01:20:52]MH_I2C_Read... [01:20:52]Read from MH i2c: E2 03 00 55 0C 00 90 00 D5 [01:20:52]RAPDU: 90 00 [01:20:52]wFMCommunicate OK [01:20:52]SAM_PROTO_ClearQueue done [01:20:52]KKMCreateOFDPacket [01:20:52]OFDProtocolAddRootSTLVToBuf [01:20:52]FM_MakeSignedData [01:20:52]FM_MakeSignedData [01:20:52]SAM_PROTO_SignData [01:20:52]wFMCommunicate request_size=4 [01:20:52]MH_SAM_APDU [01:20:52]CAPDU: 80 0D 01 02 [01:20:52]Write to MH i2c: E2 08 00 56 0C 80 0D 01 02 00 00 00 00 DB [01:20:52]Write i2c OK [01:20:52]MH_I2C_Read... [01:20:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:20:52]Read from MH i2c: E2 [01:20:52]MH_I2C_Read... [01:20:52]Read from MH i2c: E2 03 00 [01:20:52]MH_I2C_Read... [01:20:52]Read from MH i2c: E2 03 00 56 0C 00 90 00 D6 [01:20:52]RAPDU: 90 00 [01:20:52]wFMCommunicate OK [01:20:52]wFMCommunicate request_size=255 [01:20:52]MH_SAM_APDU [01:20:52]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 02 00 00 00 00 07 04 06 00 38 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 75 EF C3 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 [01:20:52]Write to MH i2c: E2 02 01 57 0C 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 02 00 00 00 00 07 04 06 00 38 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 75 EF C3 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 00 00 9F [01:20:52]Write i2c OK [01:20:52]MH_I2C_Read... [01:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:53]Read from MH i2c: E2 [01:20:53]MH_I2C_Read... [01:20:53]Read from MH i2c: E2 03 00 [01:20:53]MH_I2C_Read... [01:20:53]Read from MH i2c: E2 03 00 57 0C 00 90 00 D7 [01:20:53]RAPDU: 90 00 [01:20:53]wFMCommunicate OK [01:20:53]wFMCommunicate request_size=45 [01:20:53]MH_SAM_APDU [01:20:53]CAPDU: 80 0D 02 02 28 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A8 C3 00 00 35 04 06 00 04 ED EC 87 74 2B [01:20:53]Write to MH i2c: E2 30 00 58 0C 80 0D 02 02 28 00 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A8 C3 00 00 35 04 06 00 04 ED EC 87 74 2B 00 00 9A [01:20:53]Write i2c OK [01:20:53]MH_I2C_Read... [01:20:53]OFD Sender: No OFD packet to send [01:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:53]Read from MH i2c: E2 [01:20:53]MH_I2C_Read... [01:20:53]Read from MH i2c: E2 03 00 [01:20:53]MH_I2C_Read... [01:20:53]Read from MH i2c: E2 03 00 58 0C 00 90 00 D8 [01:20:53]RAPDU: 90 00 [01:20:53]wFMCommunicate OK [01:20:53]wFMCommunicate request_size=4 [01:20:53]MH_SAM_APDU [01:20:53]CAPDU: 80 0D 03 02 [01:20:53]Write to MH i2c: E2 08 00 59 0C 80 0D 03 02 00 00 00 00 E0 [01:20:53]Write i2c OK [01:20:53]MH_I2C_Read... [01:20:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:20:53]Read from MH i2c: E2 [01:20:53]MH_I2C_Read... [01:20:53]Read from MH i2c: E2 0B 00 [01:20:53]MH_I2C_Read... [01:20:53]Read from MH i2c: E2 0B 00 59 0C 00 1E C5 B5 BF 8D EC D0 B1 90 00 32 [01:20:53]RAPDU: 1E C5 B5 BF 8D EC D0 B1 90 00 [01:20:53]wFMCommunicate OK [01:20:53]SAM_PROTO_SignData done [01:20:53]FM_MakeSignedData done [01:20:53]CreateOFDProtocolMessage [01:20:53]wFMCommunicate request_size=4 [01:20:53]MH_SAM_APDU [01:20:53]CAPDU: 80 11 00 00 [01:20:53]Write to MH i2c: E2 08 00 5A 0C 80 11 00 00 00 00 00 00 E0 [01:20:53]Write i2c OK [01:20:53]MH_I2C_Read... [01:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:53]Read from MH i2c: E2 [01:20:53]MH_I2C_Read... [01:20:53]Read from MH i2c: E2 17 00 [01:20:53]MH_I2C_Read... [01:20:53]Read from MH i2c: E2 17 00 5A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2B [01:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:20:53]wFMCommunicate OK [01:20:53]CreateOFDProtocolMessage done [01:20:53]OFDSenderStorePacket 50088 [01:20:53]StoreOFDPacket docnum=50088 [01:20:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 32 01 00 00 1E E9 2A 01 5E D6 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 02 00 00 00 00 07 04 06 00 38 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 75 EF C3 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A8 C3 00 00 35 04 06 00 04 ED EC 87 74 2B 1E C5 B5 BF 8D EC D0 B1 [01:20:53]CheckFolder [01:20:53]dirname=/storage/ofd_packets [01:20:53]CheckFolder done [01:20:53]ProducePacketName [01:20:53]name=ofd_packets/00050088 [01:20:53]NVStorageSaveData ofd_packets/00050088 [01:20:53]File name is /storage/ofd_packets/00050088 [01:20:53]Write 336 bytes [01:20:53]NVStorageSaveData done [01:20:53]OFDSenderStorePacket done [01:20:53]KKMCreateOFDPacket done [01:20:53]NVStorageSaveData kkm_last_timestamp [01:20:53]File name is /storage/kkm_last_timestamp [01:20:53]Write 4 bytes [01:20:53]NVStorageSaveData done [01:20:53]ExternCall_PrintAddStr [01:20:53]wPrintStart [01:20:53]Write to MH i2c: 01 00 00 5B 0C 67 [01:20:53]Write i2c OK [01:20:53]MH_I2C_Read... [01:20:53]Read from MH i2c: 01 [01:20:53]MH_I2C_Read... [01:20:53]Read from MH i2c: 01 07 00 [01:20:53]MH_I2C_Read... [01:20:53]Read from MH i2c: 01 07 00 5B 0C 00 00 00 00 00 FF 0F 7C [01:20:53]RasterBufferAndPrint [01:20:53]line Счет N : (3)190208 [01:20:53]line ИНН: 02508201610067 [01:20:53]line Контрольно-Кассовый Чек [01:20:53]line ПРОДАЖА [01:20:53]line Товар: 4607120854184 [01:20:53]line Снек Орехи BEERKa Арахис 90г [01:20:53]line 1.000 * 62.00 [01:20:53]line = 62.00 [01:20:53]line НДС 12% НСП 1% [01:20:53]line > о реализуемом товаре [01:20:53]line ИТОГО: 62.00 [01:20:53]line НСП 1% : 0.55 [01:20:53]line НДС 12% : 6.58 [01:20:53]line Наличными: 62.00 [01:20:53]line Безнал.: 0.00 [01:20:53]line Место: АЗС № 95 "Партнер Нефть" [01:20:53]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [01:20:53]line СНО: Общий режим [01:20:53]line Чек 3 20.08.2024 01:20 [01:20:53]line Смена: 468 ФФД: 1.0 [01:20:53]line ЗНМ: 0300000078 [01:20:53]line РНМ: 0000000000092546 [01:20:53]line Версия ККМ: 001 [01:20:53]line ФМ: 0000000000871800 [01:20:53]line ФД: 50088 [01:20:53]line ФПД: 5419922060331 [01:20:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T012053&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50088&fm=5419922060331&tin=02508201610067®Number=0000000000092546&sum=6200 [01:20:53]line 0 [01:20:53]OFD Sender: Processing packet 50088 [packets to send 21, broken 20] [01:20:53]ProducePacketName [01:20:53]name=ofd_packets/00050088 [01:20:53]OFD Sender: To server: pG, [01:20:53]CommunicateWithHost lk.salyk.kg:30040 [01:20:53]ConnectInit lk.salyk.kg [01:20:53]written 0, free lines is 4095 [01:20:53]Connected sock=10 [01:20:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 32 01 00 00 1E E9 2A 01 5E D6 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 18 00 00 00 00 13 04 06 00 38 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 02 00 00 00 00 07 04 06 00 38 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 75 EF C3 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A8 C3 00 00 35 04 06 00 04 ED EC 87 74 2B 1E C5 B5 BF 8D EC D0 B1 [01:20:54]Write to MH i2c: 01 00 00 84 0C 90 [01:20:54]Write i2c OK [01:20:54]MH_I2C_Read... [01:20:54]Read from MH i2c: 01 [01:20:54]MH_I2C_Read... [01:20:54]Read from MH i2c: 01 07 00 [01:20:54]MH_I2C_Read... [01:20:54]Read from MH i2c: 01 07 00 84 0C 00 00 00 00 00 CF 0C 72 [01:20:54]RasterBufferAndPrint [01:20:54]line [01:20:54]line [01:20:54]line [01:20:54]line [01:20:54]line [01:20:54]written 0, free lines is 3285 [01:20:54]MH_Cut [01:20:54]Write to MH i2c: D1 01 00 8B 0C 01 69 [01:20:54]Write i2c OK [01:20:54]MH_I2C_Read... [01:20:54]Read from MH i2c: D1 [01:20:54]MH_I2C_Read... [01:20:54]Read from MH i2c: D1 01 00 [01:20:54]MH_I2C_Read... [01:20:54]Read from MH i2c: D1 01 00 8B 0C 00 68 [01:20:54]Write to MH i2c: 01 00 00 8C 0C 98 [01:20:54]Write i2c OK [01:20:54]MH_I2C_Read... [01:20:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 BC F7 47 00 12 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A8 C3 00 00 F4 03 04 00 E1 99 C3 66 B6 04 01 00 00 93 24 43 4A 54 E0 A2 D6 [01:20:54]CommunicateWithHost err = 0 [01:20:54]CheckOFDResponse [01:20:54]1017 (14) - 77093643461234 [01:20:54]1041 (16) - 0000000000871800 [01:20:54]1040 (4) - 50088 [01:20:54]1012 (4) - 19.08.2024 19:15 [01:20:54]1206 (1) - 0 [01:20:54]OFD Sender: Remove packet 50088 [01:20:54]ProducePacketName [01:20:54]name=ofd_packets/00050088 [01:20:54]NVStorageDeleteData [01:20:54]OFD Sender: No OFD packet to send [01:20:54]*** Cut start [01:20:54]*** Purtial cut [01:20:54]*** CUTSNS_PIN = 0 [01:20:55]*** Stage 1: CUTSNS_PIN = 1 [01:20:56]Read from MH i2c: 01 [01:20:56]MH_I2C_Read... [01:20:56]*** Stop cut motor [01:20:56]*** Cut end [01:20:56]Read from MH i2c: 01 07 00 [01:20:56]MH_I2C_Read... [01:20:56]Read from MH i2c: 01 07 00 8C 0C 00 00 00 00 00 FF 0F AD [01:20:56]process_action close_receipt done [01:20:56]requested_data is exist [01:20:56]produce_requested_data [01:20:56]requested_item fm.sn is exist - process it [01:20:56]wFMCommunicate request_size=4 [01:20:56]MH_SAM_APDU [01:20:56]CAPDU: 80 11 00 00 [01:20:56]Write to MH i2c: E2 08 00 8D 0C 80 11 00 00 00 00 00 00 13 [01:20:56]Write i2c OK [01:20:56]MH_I2C_Read... [01:20:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:56]Read from MH i2c: E2 [01:20:56]MH_I2C_Read... [01:20:56]Read from MH i2c: E2 17 00 [01:20:56]MH_I2C_Read... [01:20:56]Read from MH i2c: E2 17 00 8D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5E [01:20:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:20:56]wFMCommunicate OK [01:20:56]requested_item fd.num is exist - process it [01:20:56]SAM_PROTO_GetFieldsCounters [01:20:56]wFMCommunicate request_size=4 [01:20:56]MH_SAM_APDU [01:20:56]CAPDU: 80 13 00 00 [01:20:56]Write to MH i2c: E2 08 00 8E 0C 80 13 00 00 00 00 00 00 16 [01:20:56]Write i2c OK [01:20:56]MH_I2C_Read... [01:20:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:20:57]Read from MH i2c: E2 [01:20:57]MH_I2C_Read... [01:20:57]Read from MH i2c: E2 62 00 [01:20:57]MH_I2C_Read... [01:20:57]Read from MH i2c: E2 62 00 8E 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A8 C3 00 00 0E 04 04 00 D4 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 79 [01:20:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A8 C3 00 00 0E 04 04 00 D4 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 [01:20:57]wFMCommunicate OK [01:20:57]SAM_PROTO_GetFieldsCounters done [01:20:57]requested_item shift.num is exist - process it [01:20:57]requested_item shift.opened is exist - process it [01:20:57]req_shift_opened [01:20:57]FM_GetShiftState [01:20:57]SAM_PROTO_GetShiftState [01:20:57]wFMCommunicate request_size=4 [01:20:57]MH_SAM_APDU [01:20:57]CAPDU: 80 13 01 00 [01:20:57]Write to MH i2c: E2 08 00 8F 0C 80 13 01 00 00 00 00 00 18 [01:20:57]Write i2c OK [01:20:57]MH_I2C_Read... [01:20:57]Read from MH i2c: E2 [01:20:57]MH_I2C_Read... [01:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:57]Read from MH i2c: E2 0E 00 [01:20:57]MH_I2C_Read... [01:20:57]Read from MH i2c: E2 0E 00 8F 0C 00 09 00 01 83 DF C3 66 00 00 00 00 90 00 AF [01:20:57]RAPDU: 09 00 01 83 DF C3 66 00 00 00 00 90 00 [01:20:57]wFMCommunicate OK [01:20:57]SAM_PROTO_GetShiftState done [01:20:57]FM_GetShiftState done [01:20:57]req_shift_opened done [01:20:57]requested_item shift.open_date is exist - process it [01:20:57]req_shift_open_date [01:20:57]req_shift_open_date done [01:20:57]produce_requested_data done [01:20:57]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50088,"shift.num":468,"shift.opened":1,"shift.open_date":1724112771} [01:20:57]process_action_free close_receipt [01:20:57]json_value_free [01:20:57]json_value_free done [01:20:57]process_json_proto returns [01:20:57]Send response to host [01:20:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50088,"shift.num":468,"shift.opened":1,"shift.open_date":1724112771}}} [01:20:57]free response buf [01:20:57]execute_script done [01:20:57]execute_script returns [01:20:57]free content buf [01:20:57]Sock 8.Close socket [01:20:57]Sock 8.Thread stoped [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:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35: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:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:08]accept exits with 9 [01:46:08]New connection [01:46:08]New thread 3066756452 created [01:46:08]Thread 3066899812 joined [01:46:08]Waiting for new connection... [01:46:08] Sock 9.Parse request [01:46:08]Sock 9.Check first char [01:46:08]Sock 9.First char is OK [01:46:08]request: POST /json_proto HTTP/1.0 [01:46:08]Method: POST [01:46:08]URL: /json_proto [01:46:08]Method is POST - this is cgi request [01:46:08]url: /json_proto [01:46:08]query_string will be loaded in cgi processing [01:46:08]execute_cgi json_proto POST (null) [01:46:08]execute_cgi path=json_proto method=POST [01:46:08]POST find Content-Length [01:46:08]Host: 172.17.46.196:8080 [01:46:08]Content-Length: 613 [01:46:08]Content-Type: application/json [01:46:08] [01:46:08]POST finish read [01:46:08]Found Content-Length = 613 [01:46:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190209", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:46:08]execute_script... [01: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)190209", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:46:08]POST & json_proto [01:46:08]process_json_proto [01:46:08]json parsed OK: [01:46:08]protocol is kg_v1.0 [01:46:08]action value=close_receipt [01:46:08]process_action close_receipt [01:46:08]cmd_close_receipt [01:46:08]MH_GetDate [01:46:08]Write to MH i2c: F0 00 00 90 0C 8B [01:46:08]Write i2c OK [01:46:08]MH_I2C_Read... [01:46:08]Read from MH i2c: F0 [01:46:08]MH_I2C_Read... [01:46:08]Read from MH i2c: F0 09 00 [01:46:08]MH_I2C_Read... [01:46:08]Read from MH i2c: F0 09 00 90 0C 00 62 F5 C3 66 C4 85 C2 66 85 [01:46:08]GetLastDocTimeStamp 1724116853 [01:46:08]current date 1724118370 [01:46:08]FM_GetShiftState [01:46:08]SAM_PROTO_GetShiftState [01:46:08]wFMCommunicate request_size=4 [01:46:08]MH_SAM_APDU [01:46:08]CAPDU: 80 13 01 00 [01:46:08]Write to MH i2c: E2 08 00 91 0C 80 13 01 00 00 00 00 00 1A [01:46:08]Write i2c OK [01:46:08]MH_I2C_Read... [01:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:46:08]Read from MH i2c: E2 [01:46:08]MH_I2C_Read... [01:46:08]Read from MH i2c: E2 0E 00 [01:46:08]MH_I2C_Read... [01:46:08]Read from MH i2c: E2 0E 00 91 0C 00 09 00 01 83 DF C3 66 00 00 00 00 90 00 B1 [01:46:08]RAPDU: 09 00 01 83 DF C3 66 00 00 00 00 90 00 [01:46:08]wFMCommunicate OK [01:46:08]SAM_PROTO_GetShiftState done [01:46:08]FM_GetShiftState done [01:46:08]opened in 1724112771 [01:46:08]opened+sec_in_day 1724199171 [01:46:08]quantity*price = 8000 [01:46:08]sum+1 = 8001 [01:46:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 4 20.08.2024 01:46 Смена: 468 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50089 ФПД: 145214796526991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T014610&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50089&fm=145214796526991&tin=02508201610067®Number=0000000000092546&sum=8000 0 [01:46:09]StoreToDocumentArchive [01:46:09]shift 468 fd 50089 [01:46:09]save to /storage/0468/doc_00050089 [01:46:09]save last doc name /storage/0468/doc_00050089 to /storage/kkm_last_doc_name [01:46:09]save OK [01:46:09]Clear old archive folders... [01:46:09]ProcessDocumentItem done err = 0, tmpTLVsize=268 [01:46:09]tlvbuf is 019A47B0 [01:46:09]SAM_PROTO_ClearQueue [01:46:09]wFMCommunicate request_size=4 [01:46:09]MH_SAM_APDU [01:46:09]CAPDU: 80 09 00 00 [01:46:09]Write to MH i2c: E2 08 00 9E 0C 80 09 00 00 00 00 00 00 1C [01:46:09]Write i2c OK [01:46:09]MH_I2C_Read... [01:46:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:46:09]Read from MH i2c: E2 [01:46:09]MH_I2C_Read... [01:46:09]Read from MH i2c: E2 03 00 [01:46:09]MH_I2C_Read... [01:46:09]Read from MH i2c: E2 03 00 9E 0C 00 90 00 1E [01:46:09]RAPDU: 90 00 [01:46:09]wFMCommunicate OK [01:46:09]SAM_PROTO_ClearQueue done [01:46:09]KKMCreateOFDPacket [01:46:09]OFDProtocolAddRootSTLVToBuf [01:46:09]FM_MakeSignedData [01:46:09]FM_MakeSignedData [01:46:09]SAM_PROTO_SignData [01:46:09]wFMCommunicate request_size=4 [01:46:09]MH_SAM_APDU [01:46:09]CAPDU: 80 0D 01 02 [01:46:09]Write to MH i2c: E2 08 00 9F 0C 80 0D 01 02 00 00 00 00 24 [01:46:09]Write i2c OK [01:46:09]MH_I2C_Read... [01:46:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:46:09]Read from MH i2c: E2 [01:46:09]MH_I2C_Read... [01:46:09]Read from MH i2c: E2 03 00 [01:46:09]MH_I2C_Read... [01:46:09]Read from MH i2c: E2 03 00 9F 0C 00 90 00 1F [01:46:09]RAPDU: 90 00 [01:46:09]wFMCommunicate OK [01:46:09]wFMCommunicate request_size=255 [01:46:09]MH_SAM_APDU [01:46:09]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 62 F5 C3 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [01:46:09]Write to MH i2c: E2 02 01 A0 0C 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 62 F5 C3 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 91 [01:46:09]Write i2c OK [01:46:09]MH_I2C_Read... [01:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:46:09]Read from MH i2c: E2 [01:46:09]MH_I2C_Read... [01:46:09]Read from MH i2c: E2 03 00 [01:46:09]MH_I2C_Read... [01:46:09]Read from MH i2c: E2 03 00 A0 0C 00 90 00 20 [01:46:09]RAPDU: 90 00 [01:46:09]wFMCommunicate OK [01:46:09]wFMCommunicate request_size=27 [01:46:09]MH_SAM_APDU [01:46:09]CAPDU: 80 0D 02 02 16 31 38 30 30 10 04 04 00 A9 C3 00 00 35 04 06 00 84 12 74 5C F5 8F [01:46:09]Write to MH i2c: E2 1E 00 A1 0C 80 0D 02 02 16 00 31 38 30 30 10 04 04 00 A9 C3 00 00 35 04 06 00 84 12 74 5C F5 8F 00 00 C9 [01:46:09]Write i2c OK [01:46:09]MH_I2C_Read... [01:46:10]Read from MH i2c: E2 [01:46:10]MH_I2C_Read... [01:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:46:10]Read from MH i2c: E2 03 00 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: E2 03 00 A1 0C 00 90 00 21 [01:46:10]RAPDU: 90 00 [01:46:10]wFMCommunicate OK [01:46:10]wFMCommunicate request_size=4 [01:46:10]MH_SAM_APDU [01:46:10]CAPDU: 80 0D 03 02 [01:46:10]Write to MH i2c: E2 08 00 A2 0C 80 0D 03 02 00 00 00 00 29 [01:46:10]Write i2c OK [01:46:10]MH_I2C_Read... [01:46:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:46:10]Read from MH i2c: E2 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: E2 0B 00 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: E2 0B 00 A2 0C 00 FA 2A CC 49 06 0D 0D 7A 90 00 FD [01:46:10]RAPDU: FA 2A CC 49 06 0D 0D 7A 90 00 [01:46:10]wFMCommunicate OK [01:46:10]SAM_PROTO_SignData done [01:46:10]FM_MakeSignedData done [01:46:10]CreateOFDProtocolMessage [01:46:10]wFMCommunicate request_size=4 [01:46:10]MH_SAM_APDU [01:46:10]CAPDU: 80 11 00 00 [01:46:10]Write to MH i2c: E2 08 00 A3 0C 80 11 00 00 00 00 00 00 29 [01:46:10]Write i2c OK [01:46:10]MH_I2C_Read... [01:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:46:10]Read from MH i2c: E2 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: E2 17 00 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: E2 17 00 A3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 74 [01:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:46:10]wFMCommunicate OK [01:46:10]CreateOFDProtocolMessage done [01:46:10]OFDSenderStorePacket 50089 [01:46:10]StoreOFDPacket docnum=50089 [01:46:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 20 01 00 00 52 E2 18 01 B0 8B 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 62 F5 C3 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A9 C3 00 00 35 04 06 00 84 12 74 5C F5 8F FA 2A CC 49 06 0D 0D 7A [01:46:10]CheckFolder [01:46:10]dirname=/storage/ofd_packets [01:46:10]CheckFolder done [01:46:10]ProducePacketName [01:46:10]name=ofd_packets/00050089 [01:46:10]NVStorageSaveData ofd_packets/00050089 [01:46:10]File name is /storage/ofd_packets/00050089 [01:46:10]Write 318 bytes [01:46:10]NVStorageSaveData done [01:46:10]OFDSenderStorePacket done [01:46:10]KKMCreateOFDPacket done [01:46:10]NVStorageSaveData kkm_last_timestamp [01:46:10]File name is /storage/kkm_last_timestamp [01:46:10]Write 4 bytes [01:46:10]NVStorageSaveData done [01:46:10]ExternCall_PrintAddStr [01:46:10]wPrintStart [01:46:10]Write to MH i2c: 01 00 00 A4 0C B0 [01:46:10]Write i2c OK [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: 01 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: 01 07 00 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: 01 07 00 A4 0C 00 00 00 00 00 FF 0F C5 [01:46:10]RasterBufferAndPrint [01:46:10]line Счет N : (3)190209 [01:46:10]line ИНН: 02508201610067 [01:46:10]line Контрольно-Кассовый Чек [01:46:10]line ПРОДАЖА [01:46:10]line Товар: 4870001570057 [01:46:10]line Напиток Pepsi 0,5л [01:46:10]line 1.000 * 80.00 [01:46:10]line = 80.00 [01:46:10]line НДС 12% НСП 1% [01:46:10]line > о реализуемом товаре [01:46:10]line ИТОГО: 80.00 [01:46:10]line НСП 1% : 0.71 [01:46:10]line НДС 12% : 8.50 [01:46:10]line Наличными: 80.00 [01:46:10]line Безнал.: 0.00 [01:46:10]line Место: АЗС № 95 "Партнер Нефть" [01:46:10]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [01:46:10]line СНО: Общий режим [01:46:10]line Чек 4 20.08.2024 01:46 [01:46:10]line Смена: 468 ФФД: 1.0 [01:46:10]line ЗНМ: 0300000078 [01:46:10]line РНМ: 0000000000092546 [01:46:10]line Версия ККМ: 001 [01:46:10]line ФМ: 0000000000871800 [01:46:10]line ФД: 50089 [01:46:10]line ФПД: 145214796526991 [01:46:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T014610&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50089&fm=145214796526991&tin=02508201610067®Number=0000000000092546&sum=8000 [01:46:10]line 0 [01:46:10]written 0, free lines is 4095 [01:46:10]OFD Sender: Processing packet 50089 [packets to send 21, broken 20] [01:46:10]ProducePacketName [01:46:10]name=ofd_packets/00050089 [01:46:10]OFD Sender: To server: pG, [01:46:10]CommunicateWithHost lk.salyk.kg:30040 [01:46:10]ConnectInit lk.salyk.kg [01:46:10]Connected sock=10 [01: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 31 38 30 30 20 01 00 00 52 E2 18 01 B0 8B 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 62 F5 C3 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A9 C3 00 00 35 04 06 00 84 12 74 5C F5 8F FA 2A CC 49 06 0D 0D 7A [01:46:10]Write to MH i2c: 01 00 00 CC 0C D8 [01:46:10]Write i2c OK [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: 01 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: 01 07 00 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: 01 07 00 CC 0C 00 00 00 00 00 F7 0C E2 [01:46:10]RasterBufferAndPrint [01:46:10]line [01:46:10]line [01:46:10]line [01:46:10]line [01:46:10]line [01:46:10]written 0, free lines is 3325 [01:46:10]MH_Cut [01:46:10]Write to MH i2c: D1 01 00 D3 0C 01 B1 [01:46:10]Write i2c OK [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: D1 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: D1 01 00 [01:46:10]MH_I2C_Read... [01:46:10]Read from MH i2c: D1 01 00 D3 0C 00 B0 [01:46:10]Write to MH i2c: 01 00 00 D4 0C E0 [01:46:10]Write i2c OK [01:46:10]MH_I2C_Read... [01:46:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 85 AD 47 00 30 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A9 C3 00 00 F4 03 04 00 CE 9F C3 66 B6 04 01 00 00 70 F0 22 FF 9F 15 FB 01 [01:46:10]CommunicateWithHost err = 0 [01:46:10]CheckOFDResponse [01:46:10]1017 (14) - 77093643461234 [01:46:10]1041 (16) - 0000000000871800 [01:46:10]1040 (4) - 50089 [01:46:10]1012 (4) - 19.08.2024 19:41 [01:46:10]1206 (1) - 0 [01:46:10]OFD Sender: Remove packet 50089 [01:46:10]ProducePacketName [01:46:10]name=ofd_packets/00050089 [01:46:10]NVStorageDeleteData [01:46:11]OFD Sender: No OFD packet to send [01:46:11]*** Cut start [01:46:11]*** Purtial cut [01:46:11]*** Stage 1: CUTSNS_PIN = 1 [01:46:11]Read from MH i2c: 01 [01:46:11]MH_I2C_Read... [01:46:11]*** Stop cut motor [01:46:11]*** Cut end [01:46:11]Read from MH i2c: 01 07 00 [01:46:11]MH_I2C_Read... [01:46:11]Read from MH i2c: 01 07 00 D4 0C 00 00 00 00 00 FF 0F F5 [01:46:11]process_action close_receipt done [01:46:11]requested_data is exist [01:46:11]produce_requested_data [01:46:11]requested_item fm.sn is exist - process it [01:46:11]wFMCommunicate request_size=4 [01:46:11]MH_SAM_APDU [01:46:11]CAPDU: 80 11 00 00 [01:46:11]Write to MH i2c: E2 08 00 D5 0C 80 11 00 00 00 00 00 00 5B [01:46:11]Write i2c OK [01:46:11]MH_I2C_Read... [01:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:46:11]Read from MH i2c: E2 [01:46:11]MH_I2C_Read... [01:46:11]Read from MH i2c: E2 17 00 [01:46:11]MH_I2C_Read... [01:46:11]Read from MH i2c: E2 17 00 D5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A6 [01:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:46:11]wFMCommunicate OK [01:46:11]requested_item fd.num is exist - process it [01:46:11]SAM_PROTO_GetFieldsCounters [01:46:11]wFMCommunicate request_size=4 [01:46:11]MH_SAM_APDU [01:46:11]CAPDU: 80 13 00 00 [01:46:11]Write to MH i2c: E2 08 00 D6 0C 80 13 00 00 00 00 00 00 5E [01:46:11]Write i2c OK [01:46:11]MH_I2C_Read... [01:46:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:46:11]Read from MH i2c: E2 [01:46:11]MH_I2C_Read... [01:46:11]Read from MH i2c: E2 62 00 [01:46:11]MH_I2C_Read... [01:46:11]Read from MH i2c: E2 62 00 D6 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A9 C3 00 00 0E 04 04 00 D4 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 C5 [01:46:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A9 C3 00 00 0E 04 04 00 D4 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:46:11]wFMCommunicate OK [01:46:11]SAM_PROTO_GetFieldsCounters done [01:46:11]requested_item shift.num is exist - process it [01:46:11]requested_item shift.opened is exist - process it [01:46:11]req_shift_opened [01:46:11]FM_GetShiftState [01:46:11]SAM_PROTO_GetShiftState [01:46:11]wFMCommunicate request_size=4 [01:46:11]MH_SAM_APDU [01:46:11]CAPDU: 80 13 01 00 [01:46:11]Write to MH i2c: E2 08 00 D7 0C 80 13 01 00 00 00 00 00 60 [01:46:11]Write i2c OK [01:46:11]MH_I2C_Read... [01:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:46:11]Read from MH i2c: E2 [01:46:11]MH_I2C_Read... [01:46:11]Read from MH i2c: E2 0E 00 [01:46:11]MH_I2C_Read... [01:46:11]Read from MH i2c: E2 0E 00 D7 0C 00 09 00 01 83 DF C3 66 00 00 00 00 90 00 F7 [01:46:11]RAPDU: 09 00 01 83 DF C3 66 00 00 00 00 90 00 [01:46:11]wFMCommunicate OK [01:46:11]SAM_PROTO_GetShiftState done [01:46:11]FM_GetShiftState done [01:46:11]req_shift_opened done [01:46:11]requested_item shift.open_date is exist - process it [01:46:11]req_shift_open_date [01:46:11]req_shift_open_date done [01:46:11]produce_requested_data done [01:46:11]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50089,"shift.num":468,"shift.opened":1,"shift.open_date":1724112771} [01:46:11]process_action_free close_receipt [01:46:11]json_value_free [01:46:11]json_value_free done [01:46:11]process_json_proto returns [01:46:11]Send response to host [01:46:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50089,"shift.num":468,"shift.opened":1,"shift.open_date":1724112771}}} [01:46:11]free response buf [01:46:11]execute_script done [01:46:11]execute_script returns [01:46:11]free content buf [01:46:11]Sock 9.Close socket [01:46:11]Sock 9.Thread stoped [01:46:16]OFD Sender: No OFD packet to send [01:46:21]OFD Sender: No OFD packet to send [01:46:26]OFD Sender: No OFD packet to send [01:46:31]OFD Sender: No OFD packet to send [01:46:36]OFD Sender: No OFD packet to send [01:46:41]OFD Sender: No OFD packet to send [01:46:46]OFD Sender: No OFD packet to send [01:46:51]OFD Sender: No OFD packet to send [01:46:56]OFD Sender: No OFD packet to send [01:47:01]OFD Sender: No OFD packet to send [01:47:06]OFD Sender: No OFD packet to send [01:47:11]OFD Sender: No OFD packet to send [01:47:16]OFD Sender: No OFD packet to send [01:47:21]OFD Sender: No OFD packet to send [01:47:26]OFD Sender: No OFD packet to send [01:47:31]OFD Sender: No OFD packet to send [01:47:36]OFD Sender: No OFD packet to send [01:47:41]OFD Sender: No OFD packet to send [01:47:46]OFD Sender: No OFD packet to send [01:47:51]OFD Sender: No OFD packet to send [01:47:56]OFD Sender: No OFD packet to send [01:48:01]OFD Sender: No OFD packet to send [01:48:06]OFD Sender: No OFD packet to send [01:48:11]OFD Sender: No OFD packet to send [01:48:16]OFD Sender: No OFD packet to send [01:48:21]OFD Sender: No OFD packet to send [01:48:26]OFD Sender: No OFD packet to send [01:48:31]OFD Sender: No OFD packet to send [01:48:36]OFD Sender: No OFD packet to send [01:48:41]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]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:57]OFD Sender: No OFD packet to send [02:15:02]OFD Sender: No OFD packet to send [02:15:07]OFD Sender: No OFD packet to send [02:15:12]OFD Sender: No OFD packet to send [02:15:17]OFD Sender: No OFD packet to send [02:15:22]OFD Sender: No OFD packet to send [02:15:27]OFD Sender: No OFD packet to send [02:15:32]OFD Sender: No OFD packet to send [02:15:37]OFD Sender: No OFD packet to send [02:15:42]OFD Sender: No OFD packet to send [02:15:47]OFD Sender: No OFD packet to send [02:15:52]OFD Sender: No OFD packet to send [02:15:57]OFD Sender: No OFD packet to send [02:16:02]OFD Sender: No OFD packet to send [02:16:07]OFD Sender: No OFD packet to send [02:16:12]OFD Sender: No OFD packet to send [02:16:17]OFD Sender: No OFD packet to send [02:16:22]OFD Sender: No OFD packet to send [02:16:27]OFD Sender: No OFD packet to send [02:16:32]OFD Sender: No OFD packet to send [02:16:37]OFD Sender: No OFD packet to send [02:16:42]OFD Sender: No OFD packet to send [02:16:47]OFD Sender: No OFD packet to send [02:16:52]OFD Sender: No OFD packet to send [02:16:57]OFD Sender: No OFD packet to send [02:17:02]OFD Sender: No OFD packet to send [02:17:07]OFD Sender: No OFD packet to send [02:17:12]OFD Sender: No OFD packet to send [02:17:17]OFD Sender: No OFD packet to send [02:17:22]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:42]OFD Sender: No OFD packet to send [02:17:47]OFD Sender: No OFD packet to send [02:17:52]OFD Sender: No OFD packet to send [02:17:57]OFD Sender: No OFD packet to send [02:18:02]OFD Sender: No OFD packet to send [02:18:07]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:27]OFD Sender: No OFD packet to send [02:18:32]OFD Sender: No OFD packet to send [02:18:37]OFD Sender: No OFD packet to send [02:18:42]OFD Sender: No OFD packet to send [02:18:47]OFD Sender: No OFD packet to send [02:18:52]OFD Sender: No OFD packet to send [02:18:57]OFD Sender: No OFD packet to send [02:19:02]OFD Sender: No OFD packet to send [02:19:07]OFD Sender: No OFD packet to send [02:19:12]OFD Sender: No OFD packet to send [02:19:17]OFD Sender: No OFD packet to send [02:19:22]OFD Sender: No OFD packet to send [02:19:27]OFD Sender: No OFD packet to send [02:19:32]OFD Sender: No OFD packet to send [02:19:37]OFD Sender: No OFD packet to send [02:19:42]OFD Sender: No OFD packet to send [02:19:47]OFD Sender: No OFD packet to send [02:19:52]OFD Sender: No OFD packet to send [02:19:57]OFD Sender: No OFD packet to send [02:20:02]OFD Sender: No OFD packet to send [02:20:07]OFD Sender: No OFD packet to send [02:20:12]OFD Sender: No OFD packet to send [02:20:17]OFD Sender: No OFD packet to send [02:20:22]OFD Sender: No OFD packet to send [02:20:27]OFD Sender: No OFD packet to send [02:20:32]OFD Sender: No OFD packet to send [02:20:37]OFD Sender: No OFD packet to send [02:20:42]OFD Sender: No OFD packet to send [02:20:47]OFD Sender: No OFD packet to send [02:20:52]OFD Sender: No OFD packet to send [02:20:57]OFD Sender: No OFD packet to send [02:21:02]OFD Sender: No OFD packet to send [02:21:07]OFD Sender: No OFD packet to send [02:21:12]OFD Sender: No OFD packet to send [02:21:17]OFD Sender: No OFD packet to send [02:21:22]OFD Sender: No OFD packet to send [02:21:27]OFD Sender: No OFD packet to send [02:21:32]OFD Sender: No OFD packet to send [02:21:37]OFD Sender: No OFD packet to send [02:21:42]OFD Sender: No OFD packet to send [02:21:47]OFD Sender: No OFD packet to send [02:21:52]OFD Sender: No OFD packet to send [02:21:57]OFD Sender: No OFD packet to send [02:22:02]OFD Sender: No OFD packet to send [02:22:07]OFD Sender: No OFD packet to send [02:22:12]OFD Sender: No OFD packet to send [02:22:17]OFD Sender: No OFD packet to send [02:22:22]OFD Sender: No OFD packet to send [02:22:27]OFD Sender: No OFD packet to send [02:22:32]OFD Sender: No OFD packet to send [02:22:37]OFD Sender: No OFD packet to send [02:22:42]OFD Sender: No OFD packet to send [02:22:47]OFD Sender: No OFD packet to send [02:22:52]OFD Sender: No OFD packet to send [02:22:57]OFD Sender: No OFD packet to send [02:23:02]OFD Sender: No OFD packet to send [02:23:07]OFD Sender: No OFD packet to send [02:23:12]OFD Sender: No OFD packet to send [02:23:17]OFD Sender: No OFD packet to send [02:23:22]OFD Sender: No OFD packet to send [02:23:27]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:32]accept exits with 8 [02:32:32]New connection [02:32:32]New thread 3066899812 created [02:32:32]Thread 3066756452 joined [02:32:32]Waiting for new connection... [02:32:32] Sock 8.Parse request [02:32:32]Sock 8.Check first char [02:32:32]Sock 8.First char is OK [02:32:32]request: POST /json_proto HTTP/1.0 [02:32:32]Method: POST [02:32:32]URL: /json_proto [02:32:32]Method is POST - this is cgi request [02:32:32]url: /json_proto [02:32:32]query_string will be loaded in cgi processing [02:32:32]execute_cgi json_proto POST (null) [02:32:32]execute_cgi path=json_proto method=POST [02:32:32]POST find Content-Length [02:32:32]Host: 172.17.46.196:8080 [02:32:32]Content-Length: 621 [02:32:32]Content-Type: application/json [02:32:32] [02:32:32]POST finish read [02:32:32]Found Content-Length = 621 [02:32:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)190210", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:32:32]execute_script... [02:32: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)190210", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:32:32]POST & json_proto [02:32:32]process_json_proto [02:32:32]json parsed OK: [02:32:32]protocol is kg_v1.0 [02:32:32]action value=close_receipt [02:32:32]process_action close_receipt [02:32:32]cmd_close_receipt [02:32:32]MH_GetDate [02:32:32]Write to MH i2c: F0 00 00 D8 0C D3 [02:32:32]Write i2c OK [02:32:32]MH_I2C_Read... [02:32:32]Read from MH i2c: F0 [02:32:32]MH_I2C_Read... [02:32:32]Read from MH i2c: F0 09 00 [02:32:32]MH_I2C_Read... [02:32:32]Read from MH i2c: F0 09 00 D8 0C 00 42 00 C4 66 C4 85 C2 66 B9 [02:32:32]GetLastDocTimeStamp 1724118370 [02:32:32]current date 1724121154 [02:32:32]FM_GetShiftState [02:32:32]SAM_PROTO_GetShiftState [02:32:32]wFMCommunicate request_size=4 [02:32:32]MH_SAM_APDU [02:32:32]CAPDU: 80 13 01 00 [02:32:32]Write to MH i2c: E2 08 00 D9 0C 80 13 01 00 00 00 00 00 62 [02:32:32]Write i2c OK [02:32:32]MH_I2C_Read... [02:32:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:32:32]Read from MH i2c: E2 [02:32:32]MH_I2C_Read... [02:32:32]Read from MH i2c: E2 0E 00 [02:32:32]MH_I2C_Read... [02:32:32]Read from MH i2c: E2 0E 00 D9 0C 00 09 00 01 83 DF C3 66 00 00 00 00 90 00 F9 [02:32:32]RAPDU: 09 00 01 83 DF C3 66 00 00 00 00 90 00 [02:32:32]wFMCommunicate OK [02:32:32]SAM_PROTO_GetShiftState done [02:32:32]FM_GetShiftState done [02:32:32]opened in 1724112771 [02:32:32]opened+sec_in_day 1724199171 [02:32:32]quantity*price = 14000 [02:32:32]sum+1 = 14001 [02:32:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 5 20.08.2024 02:32 Смена: 468 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 50090 ФПД: 238547824951952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T023235&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50090&fm=238547824951952&tin=02508201610067®Number=0000000000092546&sum=14000 0 [02:32:33]StoreToDocumentArchive [02:32:33]shift 468 fd 50090 [02:32:33]save to /storage/0468/doc_00050090 [02:32:33]save last doc name /storage/0468/doc_00050090 to /storage/kkm_last_doc_name [02:32:33]save OK [02:32:33]Clear old archive folders... [02:32:33]ProcessDocumentItem done err = 0, tmpTLVsize=273 [02:32:33]tlvbuf is 019256A0 [02:32:33]SAM_PROTO_ClearQueue [02:32:33]wFMCommunicate request_size=4 [02:32:33]MH_SAM_APDU [02:32:33]CAPDU: 80 09 00 00 [02:32:33]Write to MH i2c: E2 08 00 E6 0C 80 09 00 00 00 00 00 00 64 [02:32:33]Write i2c OK [02:32:33]MH_I2C_Read... [02:32:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:32:33]Read from MH i2c: E2 [02:32:33]MH_I2C_Read... [02:32:33]Read from MH i2c: E2 03 00 [02:32:33]MH_I2C_Read... [02:32:33]Read from MH i2c: E2 03 00 E6 0C 00 90 00 66 [02:32:33]RAPDU: 90 00 [02:32:33]wFMCommunicate OK [02:32:33]SAM_PROTO_ClearQueue done [02:32:33]KKMCreateOFDPacket [02:32:33]OFDProtocolAddRootSTLVToBuf [02:32:33]FM_MakeSignedData [02:32:33]FM_MakeSignedData [02:32:33]SAM_PROTO_SignData [02:32:33]wFMCommunicate request_size=4 [02:32:33]MH_SAM_APDU [02:32:33]CAPDU: 80 0D 01 02 [02:32:33]Write to MH i2c: E2 08 00 E7 0C 80 0D 01 02 00 00 00 00 6C [02:32:33]Write i2c OK [02:32:33]MH_I2C_Read... [02:32:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:32:33]Read from MH i2c: E2 [02:32:33]MH_I2C_Read... [02:32:33]Read from MH i2c: E2 03 00 [02:32:33]MH_I2C_Read... [02:32:33]Read from MH i2c: E2 03 00 E7 0C 00 90 00 67 [02:32:33]RAPDU: 90 00 [02:32:33]wFMCommunicate OK [02:32:33]wFMCommunicate request_size=255 [02:32:33]MH_SAM_APDU [02:32:33]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 43 00 C4 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [02:32:33]Write to MH i2c: E2 02 01 E8 0C 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 43 00 C4 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 A9 [02:32:33]Write i2c OK [02:32:33]MH_I2C_Read... [02:32:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:32:33]Read from MH i2c: E2 [02:32:33]MH_I2C_Read... [02:32:33]Read from MH i2c: E2 03 00 [02:32:33]MH_I2C_Read... [02:32:33]Read from MH i2c: E2 03 00 E8 0C 00 90 00 68 [02:32:33]RAPDU: 90 00 [02:32:33]wFMCommunicate OK [02:32:33]wFMCommunicate request_size=32 [02:32:33]MH_SAM_APDU [02:32:33]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 AA C3 00 00 35 04 06 00 D8 F5 3E 5E 42 90 [02:32:33]Write to MH i2c: E2 23 00 E9 0C 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 AA C3 00 00 35 04 06 00 D8 F5 3E 5E 42 90 00 00 6C [02:32:33]Write i2c OK [02:32:33]MH_I2C_Read... [02:32:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:32:33]Read from MH i2c: E2 [02:32:33]MH_I2C_Read... [02:32:33]Read from MH i2c: E2 03 00 [02:32:33]MH_I2C_Read... [02:32:33]Read from MH i2c: E2 03 00 E9 0C 00 90 00 69 [02:32:33]RAPDU: 90 00 [02:32:33]wFMCommunicate OK [02:32:33]wFMCommunicate request_size=4 [02:32:33]MH_SAM_APDU [02:32:33]CAPDU: 80 0D 03 02 [02:32:33]Write to MH i2c: E2 08 00 EA 0C 80 0D 03 02 00 00 00 00 71 [02:32:33]Write i2c OK [02:32:33]MH_I2C_Read... [02:32:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:32:34]Read from MH i2c: E2 [02:32:34]MH_I2C_Read... [02:32:34]Read from MH i2c: E2 0B 00 [02:32:34]MH_I2C_Read... [02:32:34]Read from MH i2c: E2 0B 00 EA 0C 00 32 1A 5B BE FD 86 0A DC 90 00 40 [02:32:34]RAPDU: 32 1A 5B BE FD 86 0A DC 90 00 [02:32:34]wFMCommunicate OK [02:32:34]SAM_PROTO_SignData done [02:32:34]FM_MakeSignedData done [02:32:34]CreateOFDProtocolMessage [02:32:34]wFMCommunicate request_size=4 [02:32:34]MH_SAM_APDU [02:32:34]CAPDU: 80 11 00 00 [02:32:34]Write to MH i2c: E2 08 00 EB 0C 80 11 00 00 00 00 00 00 71 [02:32:34]Write i2c OK [02:32:34]MH_I2C_Read... [02:32:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:32:34]Read from MH i2c: E2 [02:32:34]MH_I2C_Read... [02:32:34]Read from MH i2c: E2 17 00 [02:32:34]MH_I2C_Read... [02:32:34]Read from MH i2c: E2 17 00 EB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BC [02:32:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [02:32:34]wFMCommunicate OK [02:32:34]CreateOFDProtocolMessage done [02:32:34]OFDSenderStorePacket 50090 [02:32:34]StoreOFDPacket docnum=50090 [02:32:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 A0 97 1D 01 4F FE 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 43 00 C4 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AA C3 00 00 35 04 06 00 D8 F5 3E 5E 42 90 32 1A 5B BE FD 86 0A DC [02:32:34]CheckFolder [02:32:34]dirname=/storage/ofd_packets [02:32:34]CheckFolder done [02:32:34]ProducePacketName [02:32:34]name=ofd_packets/00050090 [02:32:34]NVStorageSaveData ofd_packets/00050090 [02:32:34]File name is /storage/ofd_packets/00050090 [02:32:34]Write 323 bytes [02:32:34]NVStorageSaveData done [02:32:34]OFDSenderStorePacket done [02:32:34]KKMCreateOFDPacket done [02:32:34]NVStorageSaveData kkm_last_timestamp [02:32:34]File name is /storage/kkm_last_timestamp [02:32:34]Write 4 bytes [02:32:34]NVStorageSaveData done [02:32:34]ExternCall_PrintAddStr [02:32:34]wPrintStart [02:32:34]Write to MH i2c: 01 00 00 EC 0C F8 [02:32:34]Write i2c OK [02:32:34]MH_I2C_Read... [02:32:34]Read from MH i2c: 01 [02:32:34]MH_I2C_Read... [02:32:34]Read from MH i2c: 01 07 00 [02:32:34]MH_I2C_Read... [02:32:34]Read from MH i2c: 01 07 00 EC 0C 00 00 00 00 00 FF 0F 0D [02:32:34]RasterBufferAndPrint [02:32:34]line Счет N : (3)190210 [02:32:34]line ИНН: 02508201610067 [02:32:34]line Контрольно-Кассовый Чек [02:32:34]line ПРОДАЖА [02:32:34]line Товар: 48743570 [02:32:34]line Сигареты Winston XStyle Blue [02:32:34]line 1.000 * 140.00 [02:32:34]line = 140.00 [02:32:34]line НДС 12% НСП 1% [02:32:34]line > о реализуемом товаре [02:32:34]line ИТОГО: 140.00 [02:32:34]line НСП 1% : 1.24 [02:32:34]line НДС 12% : 14.87 [02:32:34]line Наличными: 140.00 [02:32:34]line Безнал.: 0.00 [02:32:34]line Место: АЗС № 95 "Партнер Нефть" [02:32:34]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [02:32:34]line СНО: Общий режим [02:32:34]line Чек 5 20.08.2024 02:32 [02:32:34]line Смена: 468 ФФД: 1.0 [02:32:34]line ЗНМ: 0300000078 [02:32:34]line РНМ: 0000000000092546 [02:32:34]line Версия ККМ: 001 [02:32:34]line ФМ: 0000000000871800 [02:32:34]line ФД: 50090 [02:32:34]line ФПД: 238547824951952 [02:32:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240820T023235&type=1&operation_type=1&fn_number=0000000000871800&fd_number=50090&fm=238547824951952&tin=02508201610067®Number=0000000000092546&sum=14000 [02:32:34]line 0 [02:32:34]written 0, free lines is 4095 [02:32:34]OFD Sender: Processing packet 50090 [packets to send 21, broken 20] [02:32:34]ProducePacketName [02:32:34]name=ofd_packets/00050090 [02:32:34]OFD Sender: To server: pG, [02:32:34]CommunicateWithHost lk.salyk.kg:30040 [02:32:34]ConnectInit lk.salyk.kg [02:32:34]Write to MH i2c: 01 00 00 14 0D 21 [02:32:34]Write i2c OK [02:32:34]MH_I2C_Read... [02:32:34]Read from MH i2c: 01 [02:32:34]MH_I2C_Read... [02:32:34]Read from MH i2c: 01 07 00 [02:32:34]MH_I2C_Read... [02:32:34]Read from MH i2c: 01 07 00 14 0D 00 00 00 00 00 D3 0C 07 [02:32:34]RasterBufferAndPrint [02:32:34]line [02:32:34]line [02:32:34]line [02:32:34]line [02:32:34]line [02:32:34]written 0, free lines is 3291 [02:32:34]MH_Cut [02:32:34]Write to MH i2c: D1 01 00 1B 0D 01 FA [02:32:34]Write i2c OK [02:32:34]MH_I2C_Read... [02:32:34]Read from MH i2c: D1 [02:32:34]MH_I2C_Read... [02:32:34]Read from MH i2c: D1 01 00 [02:32:34]MH_I2C_Read... [02:32:34]Read from MH i2c: D1 01 00 1B 0D 00 F9 [02:32:34]Write to MH i2c: 01 00 00 1C 0D 29 [02:32:34]Write i2c OK [02:32:34]MH_I2C_Read... [02:32:34]Connected sock=10 [02:32:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 A0 97 1D 01 4F FE 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 43 00 C4 66 0E 04 04 00 D4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AA C3 00 00 35 04 06 00 D8 F5 3E 5E 42 90 32 1A 5B BE FD 86 0A DC [02:32:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 CC 11 47 00 48 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 AA C3 00 00 F4 03 04 00 AE AA C3 66 B6 04 01 00 00 C4 63 0D B3 21 90 74 15 [02:32:35]CommunicateWithHost err = 0 [02:32:35]CheckOFDResponse [02:32:35]1017 (14) - 77093643461234 [02:32:35]1041 (16) - 0000000000871800 [02:32:35]1040 (4) - 50090 [02:32:35]1012 (4) - 19.08.2024 20:27 [02:32:35]1206 (1) - 0 [02:32:35]OFD Sender: Remove packet 50090 [02:32:35]ProducePacketName [02:32:35]name=ofd_packets/00050090 [02:32:35]NVStorageDeleteData [02:32:35]*** Cut start [02:32:35]*** Purtial cut [02:32:35]*** CUTSNS_PIN = 0 [02:32:35]*** Stage 1: CUTSNS_PIN = 1 [02:32:35]OFD Sender: No OFD packet to send [02:32:37]Read from MH i2c: 01 [02:32:37]MH_I2C_Read... [02:32:37]*** Stop cut motor [02:32:37]*** Cut end [02:32:37]Read from MH i2c: 01 07 00 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: 01 07 00 1C 0D 00 00 00 00 00 FF 0F 3E [02:32:37]process_action close_receipt done [02:32:37]requested_data is exist [02:32:37]produce_requested_data [02:32:37]requested_item fm.sn is exist - process it [02:32:37]wFMCommunicate request_size=4 [02:32:37]MH_SAM_APDU [02:32:37]CAPDU: 80 11 00 00 [02:32:37]Write to MH i2c: E2 08 00 1D 0D 80 11 00 00 00 00 00 00 A4 [02:32:37]Write i2c OK [02:32:37]MH_I2C_Read... [02:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:32:37]Read from MH i2c: E2 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: E2 17 00 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: E2 17 00 1D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EF [02:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [02:32:37]wFMCommunicate OK [02:32:37]requested_item fd.num is exist - process it [02:32:37]SAM_PROTO_GetFieldsCounters [02:32:37]wFMCommunicate request_size=4 [02:32:37]MH_SAM_APDU [02:32:37]CAPDU: 80 13 00 00 [02:32:37]Write to MH i2c: E2 08 00 1E 0D 80 13 00 00 00 00 00 00 A7 [02:32:37]Write i2c OK [02:32:37]MH_I2C_Read... [02:32:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:32:37]Read from MH i2c: E2 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: E2 62 00 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: E2 62 00 1E 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 AA C3 00 00 0E 04 04 00 D4 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 12 [02:32:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 AA C3 00 00 0E 04 04 00 D4 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:32:37]wFMCommunicate OK [02:32:37]SAM_PROTO_GetFieldsCounters done [02:32:37]requested_item shift.num is exist - process it [02:32:37]requested_item shift.opened is exist - process it [02:32:37]req_shift_opened [02:32:37]FM_GetShiftState [02:32:37]SAM_PROTO_GetShiftState [02:32:37]wFMCommunicate request_size=4 [02:32:37]MH_SAM_APDU [02:32:37]CAPDU: 80 13 01 00 [02:32:37]Write to MH i2c: E2 08 00 1F 0D 80 13 01 00 00 00 00 00 A9 [02:32:37]Write i2c OK [02:32:37]MH_I2C_Read... [02:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:32:37]Read from MH i2c: E2 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: E2 0E 00 [02:32:37]MH_I2C_Read... [02:32:37]Read from MH i2c: E2 0E 00 1F 0D 00 09 00 01 83 DF C3 66 00 00 00 00 90 00 40 [02:32:37]RAPDU: 09 00 01 83 DF C3 66 00 00 00 00 90 00 [02:32:37]wFMCommunicate OK [02:32:37]SAM_PROTO_GetShiftState done [02:32:37]FM_GetShiftState done [02:32:37]req_shift_opened done [02:32:37]requested_item shift.open_date is exist - process it [02:32:37]req_shift_open_date [02:32:37]req_shift_open_date done [02:32:37]produce_requested_data done [02:32:37]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":50090,"shift.num":468,"shift.opened":1,"shift.open_date":1724112771} [02:32:37]process_action_free close_receipt [02:32:37]json_value_free [02:32:37]json_value_free done [02:32:37]process_json_proto returns [02:32:37]Send response to host [02:32:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":50090,"shift.num":468,"shift.opened":1,"shift.open_date":1724112771}}} [02:32:37]free response buf [02:32:37]execute_script done [02:32:37]execute_script returns [02:32:37]free content buf [02:32:37]Sock 8.Close socket [02:32:37]Sock 8.Thread stoped [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send [02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:11]OFD Sender: No OFD packet to send [02:52:16]OFD Sender: No OFD packet to send [02:52:21]OFD Sender: No OFD packet to send [02:52:26]OFD Sender: No OFD packet to send [02:52:31]OFD Sender: No OFD packet to send [02:52:36]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:46]OFD Sender: No OFD packet to send [02:52:51]OFD Sender: No OFD packet to send [02:52:56]OFD Sender: No OFD packet to send [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53:11]OFD Sender: No OFD packet to send [02:53:16]OFD Sender: No OFD packet to send [02:53:21]OFD Sender: No OFD packet to send [02:53:26]OFD Sender: No OFD packet to send [02:53:31]OFD Sender: No OFD packet to send [02:53:36]OFD Sender: No OFD packet to send [02:53:41]OFD Sender: No OFD packet to send [02:53:46]OFD Sender: No OFD packet to send [02:53:51]OFD Sender: No OFD packet to send [02:53:56]OFD Sender: No OFD packet to send [02:54:01]OFD Sender: No OFD packet to send [02:54:06]OFD Sender: No OFD packet to send [02:54:11]OFD Sender: No OFD packet to send [02:54:16]OFD Sender: No OFD packet to send [02:54:21]OFD Sender: No OFD packet to send [02:54:26]OFD Sender: No OFD packet to send [02:54:31]OFD Sender: No OFD packet to send [02:54:36]OFD Sender: No OFD packet to send [02:54:41]OFD Sender: No OFD packet to send [02:54:46]OFD Sender: No OFD packet to send [02:54:51]OFD Sender: No OFD packet to send [02:54:56]OFD Sender: No OFD packet to send [02:55:01]OFD Sender: No OFD packet to send [02:55:06]OFD Sender: No OFD packet to send [02:55:11]OFD Sender: No OFD packet to send [02:55:16]OFD Sender: No OFD packet to send [02:55:21]OFD Sender: No OFD packet to send [02:55:26]OFD Sender: No OFD packet to send [02:55:31]OFD Sender: No OFD packet to send [02:55:36]OFD Sender: No OFD packet to send [02:55:41]OFD Sender: No OFD packet to send [02:55:46]OFD Sender: No OFD packet to send [02:55:51]OFD Sender: No OFD packet to send [02:55:56]OFD Sender: No OFD packet to send [02:56:01]OFD Sender: No OFD packet to send [02:56:06]OFD Sender: No OFD packet to send [02:56:11]OFD Sender: No OFD packet to send [02:56:16]OFD Sender: No OFD packet to send [02:56:21]OFD Sender: No OFD packet to send [02:56:26]OFD Sender: No OFD packet to send [02:56:31]OFD Sender: No OFD packet to send [02:56:36]OFD Sender: No OFD packet to send [02:56:41]OFD Sender: No OFD packet to send [02:56:46]OFD Sender: No OFD packet to send [02:56:51]OFD Sender: No OFD packet to send [02:56:56]OFD Sender: No OFD packet to send [02:57:01]OFD Sender: No OFD packet to send [02:57:06]OFD Sender: No OFD packet to send [02:57:11]OFD Sender: No OFD packet to send [02:57:16]OFD Sender: No OFD packet to send [02:57:21]OFD Sender: No OFD packet to send [02:57:26]OFD Sender: No OFD packet to send [02:57:31]OFD Sender: No OFD packet to send [02:57:36]OFD Sender: No OFD packet to send [02:57:41]OFD Sender: No OFD packet to send [02:57:46]OFD Sender: No OFD packet to send [02:57:51]OFD Sender: No OFD packet to send [02:57:56]OFD Sender: No OFD packet to send [02:58:01]OFD Sender: No OFD packet to send [02:58:06]OFD Sender: No OFD packet to send [02:58:11]OFD Sender: No OFD packet to send [02:58:16]OFD Sender: No OFD packet to send [02:58:21]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:36]OFD Sender: No OFD packet to send [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]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